From fcbc622cef7034595b6d49458be15c28a9e95819 Mon Sep 17 00:00:00 2001 From: kkapsner Date: Sun, 3 Jan 2021 17:32:57 +0100 Subject: [PATCH] Revert iframe protection upon window unload Fixes #519 --- lib/iframeProtection.js | 3 +++ releaseNotes.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/iframeProtection.js b/lib/iframeProtection.js index c9d6d9b..42cf545 100644 --- a/lib/iframeProtection.js +++ b/lib/iframeProtection.js @@ -41,6 +41,9 @@ return false; } } + window.addEventListener("unload", function(){ + extension.revertProperties(window, "iframeProtection"); + }); return changeProperty; } diff --git a/releaseNotes.txt b/releaseNotes.txt index e70b92e..090af57 100644 --- a/releaseNotes.txt +++ b/releaseNotes.txt @@ -6,7 +6,7 @@ Version 1.5: - added {empty}, {false} and {undefined} to webGL preference parameters (i.e. VENDOR, RENDERER, UNMASKED_VENDOR_WEBGL and UNMASKED_RENDERER_WEBGL) fixes: - - + - protection of DOM manipulations on unloaded windows may break websites known issues: - if a data URL is blocked the page action button does not appear