mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
this fixes #845
This commit is contained in:
parent
e7daeb3edc
commit
b859d22c83
1 changed files with 4 additions and 1 deletions
|
@ -74,6 +74,9 @@ vAPI.insertHTML = (function() {
|
|||
const parser = Components.classes['@mozilla.org/parserutils;1']
|
||||
.getService(Components.interfaces.nsIParserUtils);
|
||||
|
||||
// https://github.com/gorhill/uBlock/issues/845
|
||||
// Apparently dashboard pages execute with `about:blank` principal.
|
||||
|
||||
return function(node, html) {
|
||||
while ( node.firstChild ) {
|
||||
node.removeChild(node.firstChild);
|
||||
|
@ -83,7 +86,7 @@ vAPI.insertHTML = (function() {
|
|||
html,
|
||||
parser.SanitizerAllowStyle,
|
||||
false,
|
||||
Services.io.newURI(document.baseURI, null, null),
|
||||
Services.io.newURI('about:blank'/*document.baseURI*/, null, null),
|
||||
document.documentElement
|
||||
));
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue