From 308592e785fd0da763bf76cc9738bf80722bcc83 Mon Sep 17 00:00:00 2001 From: kkapsner Date: Wed, 29 May 2019 00:20:27 +0200 Subject: [PATCH] Protection for document.write and document.wirteln broke in Firefox 69 Fixes #357 --- lib/iframeProtection.js | 6 ++++++ releaseNotes.txt | 1 + 2 files changed, 7 insertions(+) diff --git a/lib/iframeProtection.js b/lib/iframeProtection.js index 09bfcd1..62ff30f 100644 --- a/lib/iframeProtection.js +++ b/lib/iframeProtection.js @@ -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){ diff --git a/releaseNotes.txt b/releaseNotes.txt index 2c1abfa..a50b005 100644 --- a/releaseNotes.txt +++ b/releaseNotes.txt @@ -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