mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-07-01 12:30:23 +12:00
#10: manually imported fixes from e762a29d30
This commit is contained in:
parent
1ab6e08f71
commit
031f6a90ee
13
platform/firefox/bootstrap.js
vendored
13
platform/firefox/bootstrap.js
vendored
|
@ -60,6 +60,19 @@ function startup(data, reason) {
|
||||||
}
|
}
|
||||||
|
|
||||||
let hiddenDoc = appShell.hiddenDOMWindow.document;
|
let hiddenDoc = appShell.hiddenDOMWindow.document;
|
||||||
|
|
||||||
|
// https://github.com/gorhill/uBlock/issues/10
|
||||||
|
// Fixed by github.com/AlexVallat:
|
||||||
|
// https://github.com/chrisaljoudi/uBlock/issues/1149
|
||||||
|
// https://github.com/AlexVallat/uBlock/commit/e762a29d308caa46578cdc34a9be92c4ad5ecdd0
|
||||||
|
if ( hiddenDoc.readyState === 'loading' ) {
|
||||||
|
hiddenDoc.addEventListener('DOMContentLoaded', onReady);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// I believe this needs to be called in case it was added above.
|
||||||
|
hiddenDoc.removeEventListener('DOMContentLoaded', onReady);
|
||||||
|
|
||||||
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')
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue