Index: third_party/WebKit/LayoutTests/http/tests/security/mixedContent/filesystem-url-in-iframe.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/filesystem-url-in-iframe.html b/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/filesystem-url-in-iframe.html |
index 5b6e64162478ccba9740d0413886d9f8577fd6b3..014be426db743b91557d4d4e612a16d5d5ce707d 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/filesystem-url-in-iframe.html |
+++ b/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/filesystem-url-in-iframe.html |
@@ -19,10 +19,6 @@ if (location.protocol != 'https:') |
location = 'https://127.0.0.1:8443/security/mixedContent/filesystem-url-in-iframe.html'; |
else { |
var iframe = document.querySelector('iframe'); |
- iframe.onload = function () { |
- if (window.testRunner) |
- testRunner.notifyDone(); |
- }; |
// Opening a file system with temporary storage |
window.webkitRequestFileSystem(TEMPORARY, 1024*1024 /*1MB*/, function(fs) { |
@@ -30,6 +26,10 @@ else { |
fileEntry.createWriter(function(fileWriter) { |
fileWriter.onwriteend = function(e) { |
alert('PASS (1/2): File written'); |
+ iframe.onload = function () { |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+ }; |
iframe.src = fileEntry.toURL('text/html'); |
}; |