From fc17c6a60368e57be432fbc284c53413dfab09bc Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 23 Jul 2016 15:17:35 -0700 Subject: [PATCH] Use document.write to populate IFRAME, as this avoids flicker on navbar buttons and performs better. Will have to conditionally do the old behavior for Firefox. --- ext/fg/js/popup.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js index 4ec34249..11b25d8f 100644 --- a/ext/fg/js/popup.js +++ b/ext/fg/js/popup.js @@ -59,7 +59,10 @@ class Popup { setContent(content) { if (this.popup !== null) { - this.popup.srcdoc = content; + const doc = this.popup.contentDocument; + doc.open(); + doc.write(content); + doc.close(); } }