Skip to content

Commit

Permalink
Do not block root document at launch in Chromium-based browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Apr 2, 2022
1 parent 0c7318d commit 507ed26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platform/chromium/vapi-background-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()}`)
};
Expand Down

0 comments on commit 507ed26

Please sign in to comment.