Bug 209154 - [ Mac wk1 ] http/tests/security/clipboard/copy-paste-html-cross-origin-iframe-across-origin.html is flaky failing.
Summary: [ Mac wk1 ] http/tests/security/clipboard/copy-paste-html-cross-origin-iframe...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Mac macOS 10.14
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-03-16 16:07 PDT by Jason Lawrence
Modified: 2020-05-07 11:33 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Lawrence 2020-03-16 16:07:08 PDT
http/tests/security/clipboard/copy-paste-html-cross-origin-iframe-across-origin.html 

Description:
This test is flaky failing on Mac wk1. The flaky failures go back to November 2019. 

History:
https://results.webkit.org/?suite=layout-tests&test=http%2Ftests%2Fsecurity%2Fclipboard%2Fcopy-paste-html-cross-origin-iframe-across-origin.html&platform=mac&version_name=Catalina&version_name=Mojave&flavor=wk1&limit=50000

Diff:
--- /Volumes/Data/slave/mojave-debug-tests-wk1/build/layout-test-results/http/tests/security/clipboard/copy-paste-html-cross-origin-iframe-across-origin-expected.txt
+++ /Volumes/Data/slave/mojave-debug-tests-wk1/build/layout-test-results/http/tests/security/clipboard/copy-paste-html-cross-origin-iframe-across-origin-actual.txt
@@ -1,7 +1,3 @@
-CONSOLE MESSAGE: line 1: Blocked a frame with origin "http://localhost:8000" from accessing a frame with origin "http://127.0.0.1:8000". Protocols, domains, and ports must match.
-CONSOLE MESSAGE: line 1: Blocked a frame with origin "http://localhost:8000" from accessing a frame with origin "http://localhost:8080". Protocols, domains, and ports must match.
-CONSOLE MESSAGE: line 1: Blocked a frame with origin "http://localhost:8000" from accessing a frame with origin "http://127.0.0.1:8000". Protocols, domains, and ports must match.
-CONSOLE MESSAGE: line 1: Blocked a frame with origin "http://localhost:8000" from accessing a frame with origin "http://localhost:8080". Protocols, domains, and ports must match.
 This tests copying and pasting HTML by the default action. WebKit should sanitize the HTML across origin.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -15,24 +11,11 @@
 PASS new URL(fragment.querySelector(".cross-origin-frame").src).protocol is "http:"
 PASS new URL(fragment.querySelector(".same-origin-frame-with-data-url").src).protocol is "http:"
 PASS new URL(fragment.querySelector(".cross-origin-frame-with-data-url").src).protocol is "http:"
-PASS frames.length is 4
-PASS new URL(frames[0].src).protocol is "http:"
-PASS frames[0].canAccessContentDocument is false
-PASS new URL(frames[0].imageSrc).protocol is "http:"
-PASS frames[0].imageWidth is 80
-PASS new URL(frames[1].src).protocol is "http:"
-PASS frames[1].canAccessContentDocument is false
-PASS new URL(frames[1].imageSrc).protocol is "http:"
-PASS frames[1].imageWidth is 80
-PASS new URL(frames[2].src).protocol is "http:"
-PASS frames[2].canAccessContentDocument is false
-PASS new URL(frames[2].imageSrc).protocol is "data:"
-PASS frames[2].imageWidth is 10
-PASS new URL(frames[3].src).protocol is "http:"
-PASS frames[3].canAccessContentDocument is false
-PASS new URL(frames[3].imageSrc).protocol is "data:"
-PASS frames[3].imageWidth is 10
 PASS successfullyParsed is true
 
 TEST COMPLETE
+Copy
 
+hello,  
+      
+
Comment 1 Radar WebKit Bug Importer 2020-03-16 16:07:26 PDT
<rdar://problem/60514527>
Comment 2 Jason Lawrence 2020-03-16 16:13:21 PDT
I have marked this test as failing while this issue is investigated.
https://trac.webkit.org/changeset/258526/webkit
Comment 3 Jason Lawrence 2020-05-07 11:24:46 PDT
This test is passing consistently now. I have removed the expectations here: https://trac.webkit.org/changeset/261318/webkit