mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-29 11:30:20 +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;
|
||||
|
||||
// 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(
|
||||
hiddenDoc.createElementNS('http://www.w3.org/1999/xhtml', 'iframe')
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue