From c38cd70e91214a6f3510d78433653c85bf4d2df9 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 10 May 2020 14:08:18 -0400 Subject: Load frame content using contentDocument.location.href instead of src attribute (#529) --- ext/fg/js/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/fg') diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js index c024bb64..d45c7c2a 100644 --- a/ext/fg/js/popup.js +++ b/ext/fg/js/popup.js @@ -336,9 +336,9 @@ class Popup { const {secret, token} = await this._initializeFrame(this._frame, this._targetOrigin, this._frameId, (frame) => { frame.removeAttribute('src'); frame.removeAttribute('srcdoc'); - frame.setAttribute('src', chrome.runtime.getURL('/fg/float.html')); this._observeFullscreen(true); this._onFullscreenChanged(); + frame.contentDocument.location.href = chrome.runtime.getURL('/fg/float.html'); }); this._frameSecret = secret; this._frameToken = token; -- cgit v1.2.3