Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(588)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/mixedContent/filesystem-url-in-iframe.html

Issue 1475863005: [Async][WIP] Call FrameLoader::checkCompleted() asynchronously to avoid sync body.onload() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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');
};

Powered by Google App Engine
This is Rietveld 408576698