Skip to content

Commit 2e16ef7

Browse files
committed
use vis hidden and pos abs for iframe to workaround FF bug DuendeArchive#311
1 parent 4f77c85 commit 2e16ef7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/CheckSessionIFrame.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ export default class CheckSessionIFrame {
1616
this._frame_origin = url.substr(0, idx);
1717

1818
this._frame = window.document.createElement("iframe");
19-
this._frame.style.display = "none";
19+
//this._frame.style.display = "none";
20+
this._frame.style.visibility = "hidden";
21+
this._frame.style.position = "absolute";
2022
this._frame.src = url;
2123

2224
}

src/IFrameWindow.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import Log from './Log';
55

6-
const DefaultTimeout = 30000;
6+
const DefaultTimeout = 10000;
77

88
export default class IFrameWindow {
99

@@ -19,7 +19,9 @@ export default class IFrameWindow {
1919
window.addEventListener("message", this._boundMessageEvent, false);
2020

2121
this._frame = window.document.createElement("iframe");
22-
this._frame.style.display = "none";
22+
//this._frame.style.display = "none";
23+
this._frame.style.visibility = "hidden";
24+
this._frame.style.position = "absolute";
2325
window.document.body.appendChild(this._frame);
2426
}
2527

0 commit comments

Comments
 (0)