Index: LayoutTests/fast/forms/suggestion-picker/week-suggestion-picker-reset-value-after-reload.html |
diff --git a/LayoutTests/fast/forms/suggestion-picker/week-suggestion-picker-reset-value-after-reload.html b/LayoutTests/fast/forms/suggestion-picker/week-suggestion-picker-reset-value-after-reload.html |
index 62cb58c681591c73b1339a2a9392b439f34c9797..069f9621a6905e2ae63dfaeed678b6660e383bd6 100644 |
--- a/LayoutTests/fast/forms/suggestion-picker/week-suggestion-picker-reset-value-after-reload.html |
+++ b/LayoutTests/fast/forms/suggestion-picker/week-suggestion-picker-reset-value-after-reload.html |
@@ -13,7 +13,12 @@ var iframe; |
var testInput1; |
var testInput2; |
+var iframeReloaded = false; |
+ |
function runOnOpenPopup1() { |
+ if (iframeReloaded) |
+ return; |
+ |
iframe = document.getElementById('iframe'); |
popupWindow.focus(); |
@@ -48,6 +53,7 @@ function runOnOpenPopup2AfterClosing() { |
iframe.addEventListener('load', function () { parent.runOnIFrameLoad(); }); |
iframe.contentWindow.location.reload(); |
+ iframeReloaded = true; |
} |
function runOnIFrameLoad() |