Title: [224052] trunk/LayoutTests
Revision
224052
Author
[email protected]
Date
2017-10-26 15:00:17 -0700 (Thu, 26 Oct 2017)

Log Message

LayoutTest http/tests/security/clipboard/copy-paste-html-cross-origin-iframe-across-origin.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=178828

Reviewed by Wenson Hsieh.

When the pasted content's iframe's body isn't available, wait for load event.

* http/tests/security/clipboard/resources/content-to-copy.html: Always wait for load event before notifying
the parent page that it had finish loading.
* http/tests/security/clipboard/resources/subdirectory/paste-html.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (224051 => 224052)


--- trunk/LayoutTests/ChangeLog	2017-10-26 21:41:19 UTC (rev 224051)
+++ trunk/LayoutTests/ChangeLog	2017-10-26 22:00:17 UTC (rev 224052)
@@ -1,3 +1,16 @@
+2017-10-26  Ryosuke Niwa  <[email protected]>
+
+        LayoutTest http/tests/security/clipboard/copy-paste-html-cross-origin-iframe-across-origin.html is a flaky failure
+        https://bugs.webkit.org/show_bug.cgi?id=178828
+
+        Reviewed by Wenson Hsieh.
+
+        When the pasted content's iframe's body isn't available, wait for load event.
+
+        * http/tests/security/clipboard/resources/content-to-copy.html: Always wait for load event before notifying
+        the parent page that it had finish loading.
+        * http/tests/security/clipboard/resources/subdirectory/paste-html.html:
+
 2017-10-26  Myles C. Maxfield  <[email protected]>
 
         [iOS] Update expected results for platform/ios/ios/fast/text/opticalFontWith*.html

Modified: trunk/LayoutTests/http/tests/security/clipboard/resources/content-to-copy.html (224051 => 224052)


--- trunk/LayoutTests/http/tests/security/clipboard/resources/content-to-copy.html	2017-10-26 21:41:19 UTC (rev 224051)
+++ trunk/LayoutTests/http/tests/security/clipboard/resources/content-to-copy.html	2017-10-26 22:00:17 UTC (rev 224052)
@@ -3,7 +3,7 @@
 <body>
 <img src=""
 <script>
-top.postMessage({type: 'contentLoaded'}, '*');
+window._onload_ = parent.postMessage({type: 'contentLoaded'}, '*');
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/http/tests/security/clipboard/resources/subdirectory/paste-html.html (224051 => 224052)


--- trunk/LayoutTests/http/tests/security/clipboard/resources/subdirectory/paste-html.html	2017-10-26 21:41:19 UTC (rev 224051)
+++ trunk/LayoutTests/http/tests/security/clipboard/resources/subdirectory/paste-html.html	2017-10-26 22:00:17 UTC (rev 224052)
@@ -27,7 +27,7 @@
                         resolve();
                 }
 
-                if (frame.contentDocument && frame.contentDocument.body.innerHTML == '')
+                if (frame.contentDocument && (!frame.contentDocument.body || frame.contentDocument.body.innerHTML == ''))
                     frame._onload_ = waitForImage;
                 else
                     waitForImage();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to