Changeset 224052 in webkit


Ignore:
Timestamp:
Oct 26, 2017 3:00:17 PM (6 years ago)
Author:
rniwa@webkit.org
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:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r224050 r224052  
     12017-10-26  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        LayoutTest http/tests/security/clipboard/copy-paste-html-cross-origin-iframe-across-origin.html is a flaky failure
     4        https://bugs.webkit.org/show_bug.cgi?id=178828
     5
     6        Reviewed by Wenson Hsieh.
     7
     8        When the pasted content's iframe's body isn't available, wait for load event.
     9
     10        * http/tests/security/clipboard/resources/content-to-copy.html: Always wait for load event before notifying
     11        the parent page that it had finish loading.
     12        * http/tests/security/clipboard/resources/subdirectory/paste-html.html:
     13
    1142017-10-26  Myles C. Maxfield  <mmaxfield@apple.com>
    215
  • trunk/LayoutTests/http/tests/security/clipboard/resources/content-to-copy.html

    r223678 r224052  
    44<img src="mozilla.gif">
    55<script>
    6 top.postMessage({type: 'contentLoaded'}, '*');
     6window.onload = parent.postMessage({type: 'contentLoaded'}, '*');
    77</script>
    88</body>
  • trunk/LayoutTests/http/tests/security/clipboard/resources/subdirectory/paste-html.html

    r223678 r224052  
    2828                }
    2929
    30                 if (frame.contentDocument && frame.contentDocument.body.innerHTML == '')
     30                if (frame.contentDocument && (!frame.contentDocument.body || frame.contentDocument.body.innerHTML == ''))
    3131                    frame.onload = waitForImage;
    3232                else
Note: See TracChangeset for help on using the changeset viewer.