mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-31 09:01:56 +01:00
Protection for document.write and document.wirteln broke in Firefox 69
Fixes #357
This commit is contained in:
parent
b7d888dee1
commit
308592e785
@ -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){
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user