mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
commit
6c877ee06a
2 changed files with 7 additions and 1 deletions
6
platform/firefox/bootstrap.js
vendored
6
platform/firefox/bootstrap.js
vendored
|
|
@ -60,6 +60,12 @@ function startup(data, reason) {
|
|||
}
|
||||
|
||||
let hiddenDoc = appShell.hiddenDOMWindow.document;
|
||||
|
||||
if ( hiddenDoc.readyState === 'loading' ) {
|
||||
hiddenDoc.addEventListener('DOMContentLoaded', onReady);
|
||||
return;
|
||||
}
|
||||
|
||||
bgProcess = hiddenDoc.documentElement.appendChild(
|
||||
hiddenDoc.createElementNS('http://www.w3.org/1999/xhtml', 'iframe')
|
||||
);
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ vAPI.app.restart = function() {
|
|||
var cleanupTasks = [];
|
||||
|
||||
// This must be updated manually, every time a new task is added/removed
|
||||
var expectedNumberOfCleanups = 7;
|
||||
var expectedNumberOfCleanups = 6; // 7 instances of cleanupTasks.push, but one is unique to fennec, and one to desktop.
|
||||
|
||||
window.addEventListener('unload', function() {
|
||||
for ( var cleanup of cleanupTasks ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue