From fcb6b320ba213e5412d97860e92b60f56c81d836 Mon Sep 17 00:00:00 2001
From: Tor-Einar Skog <tor-einar.skog@bioforsk.no>
Date: Thu, 19 Nov 2015 14:18:59 +0100
Subject: [PATCH] Hiding the iFrame to avoid scrolling to bottom of page on
 Firefox (and possibly other browsers)

---
 security/static/security/js/crossdomainstorage.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/security/static/security/js/crossdomainstorage.js b/security/static/security/js/crossdomainstorage.js
index 4ac372e9..c2feaa71 100644
--- a/security/static/security/js/crossdomainstorage.js
+++ b/security/static/security/js/crossdomainstorage.js
@@ -26,7 +26,7 @@ CrossDomainStorage.prototype = {
         if (!this._iframe){
             if (window.postMessage && window.JSON && window.localStorage){
                 this._iframe = document.createElement("iframe");
-                this._iframe.style.cssText = "position:absolute;width:1px;height:1px;left:-9999px;";
+                this._iframe.style.cssText = "display:none;position:absolute;width:1px;height:1px;left:-9999px;";
                 document.body.appendChild(this._iframe);
 
                 if (window.addEventListener){
-- 
GitLab