1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-22 02:12:44 +01:00

Do not block root document at launch in Chromium-based browsers

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2063
This commit is contained in:
Raymond Hill 2022-03-30 12:15:44 -04:00
parent 0c7318d6f7
commit 78a15b648f
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -181,8 +181,11 @@ vAPI.Tabs = class extends vAPI.Tabs {
return Array.from(out);
}
// https://github.com/uBlockOrigin/uBlock-issues/issues/2063
// Do not interfere with root document
suspendOneRequest(details) {
this.suspendedTabIds.add(details.tabId);
if ( details.type === 'main_frame' ) { return; }
return {
redirectUrl: vAPI.getURL(`web_accessible_resources/empty?secret=${vAPI.warSecret()}`)
};