Changeset 223800 in webkit
- Timestamp:
- Oct 20, 2017 4:55:35 PM (6 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r223799 r223800 1 2017-10-20 Ryosuke Niwa <rniwa@webkit.org> 2 3 http/tests/security/clipboard/drag-drop-html-cross-origin-iframe-in-same-origin.html is flaky 4 https://bugs.webkit.org/show_bug.cgi?id=178606 5 6 Reviewed by Wenson Hsieh. 7 8 The bug was caused by the race condition during the page loading of iframes. 9 10 Waiting for message event wasn't doing anything useful because it was receiving the message from 11 source iframe before the drag & drop had started. 12 13 Fixed the bug by waiting for the second message event. Also replaced the wait for load event 14 by the wait for the first message event for clarity. 15 16 * http/tests/security/clipboard/drag-drop-html-cross-origin-iframe-in-same-origin.html: 17 1 18 2017-10-20 Ryan Haddad <ryanhaddad@apple.com> 2 19 -
trunk/LayoutTests/http/tests/security/clipboard/drag-drop-html-cross-origin-iframe-in-same-origin.html
r223678 r223800 23 23 jsTestIsAsync = true; 24 24 25 window.onload = () => { 25 let loadCount = 0; 26 window.onmessage = (event) => { 27 if (!loadCount++) 28 runTest() 29 else 30 checkFrameAccess(); 31 } 32 33 function runTest() { 26 34 document.getElementById('source').focus(); 27 35 document.execCommand('selectAll'); … … 59 67 }); 60 68 observer.observe(destination, {childList: true, subtree: true}); 61 62 window.onmessage = checkFrameAccess;63 69 } 64 70
Note: See TracChangeset
for help on using the changeset viewer.