mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-17 07:52:42 +01:00
commit
6c877ee06a
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;
|
let hiddenDoc = appShell.hiddenDOMWindow.document;
|
||||||
|
|
||||||
|
if ( hiddenDoc.readyState === 'loading' ) {
|
||||||
|
hiddenDoc.addEventListener('DOMContentLoaded', onReady);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
bgProcess = hiddenDoc.documentElement.appendChild(
|
bgProcess = hiddenDoc.documentElement.appendChild(
|
||||||
hiddenDoc.createElementNS('http://www.w3.org/1999/xhtml', 'iframe')
|
hiddenDoc.createElementNS('http://www.w3.org/1999/xhtml', 'iframe')
|
||||||
);
|
);
|
||||||
|
@ -65,7 +65,7 @@ vAPI.app.restart = function() {
|
|||||||
var cleanupTasks = [];
|
var cleanupTasks = [];
|
||||||
|
|
||||||
// This must be updated manually, every time a new task is added/removed
|
// 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() {
|
window.addEventListener('unload', function() {
|
||||||
for ( var cleanup of cleanupTasks ) {
|
for ( var cleanup of cleanupTasks ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user