You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 9, 2022. It is now read-only.
document-blocked doesn't appear in Chrome Incognito mode #1225
In a Chrome Incognito window (with Chrome configured to run uBlock in Incognito), the document-blocked page doesn't appear when the user tries to visit a blocked URL. Instead, they receive a Chrome error page with ERR_ADDRESS_UNREACHABLE.
This is observed in 41.0.2272.118 with uBlock 0.9.3.0.
Because incognito tabs cannot use this shared process, an extension using the "spanning" incognito mode will not be able to load pages from its extension package into the main frame of an incognito tab.
Trying split mode did fix the specific issue here, but there were side-effects, which I am not sure whether they are ok or not.
The split mode causes two uBlocks to run at the same time, one for non-incognito tabs and one for incognito tabs. This means that all in-memory data won't be synchronized between the two uBlock, until it is reloaded in memory. An example: if I disable strict-blocking for a site in incognito mode, it will still be blocked in in non-incognito mode until uBlock is restarted for that context. Same with dynamic rules, etc. I think these side effects are more acceptable than strict blocking being broken in incognito mode.
uMatrix uses a data URI, which doesn't suffer the restriction of spanning mode, but that page in uMatrix has no javascript, unlike the one here. I suppose the javascript file could be converted into a data URI, and the extension page itself converted into a data URI...
In a Chrome Incognito window (with Chrome configured to run uBlock in Incognito), the document-blocked page doesn't appear when the user tries to visit a blocked URL. Instead, they receive a Chrome error page with ERR_ADDRESS_UNREACHABLE.
This is observed in 41.0.2272.118 with uBlock 0.9.3.0.