Protection for document.write and document.wirteln broke in Firefox 69

Fixes #357
This commit is contained in:
kkapsner 2019-05-29 00:20:27 +02:00
parent b7d888dee1
commit 308592e785
2 changed files with 7 additions and 0 deletions

View File

@ -142,6 +142,9 @@
const documentWriteDescriptor = Object.getOwnPropertyDescriptor(
wrappedWindow.HTMLDocument.prototype,
"write"
) || Object.getOwnPropertyDescriptor(
wrappedWindow.Document.prototype,
"write"
);
const documentWrite = documentWriteDescriptor.value;
documentWriteDescriptor.value = exportFunction(function write(str){
@ -161,6 +164,9 @@
const documentWritelnDescriptor = Object.getOwnPropertyDescriptor(
wrappedWindow.HTMLDocument.prototype,
"writeln"
) || Object.getOwnPropertyDescriptor(
wrappedWindow.Document.prototype,
"writeln"
);
const documentWriteln = documentWritelnDescriptor.value;
documentWritelnDescriptor.value = exportFunction(function writeln(str){

View File

@ -7,6 +7,7 @@ Version 0.5.10:
fixes:
- setter for innerHTML broke pages
- protection for document.write and document.wirteln broke in Firefox 69
known issues:
- if a data URL is blocked the page action button does not appear