WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
187658
REGRESSION: Layout Test http/tests/security/bypassing-cors-checks-for-extension-urls.html is Flaky
https://bugs.webkit.org/show_bug.cgi?id=187658
Summary
REGRESSION: Layout Test http/tests/security/bypassing-cors-checks-for-extensi...
Truitt Savell
Reported
2018-07-13 13:51:24 PDT
The following layout test is failing on Sierra and High Sierra WK2 http/tests/security/bypassing-cors-checks-for-extension-urls.html Probable cause: Investigating further. The test just became flakey on 7/12/18 and around
r233780
. Investigating further but at this time I am not certain what revision started the flakiness. What I can gather is that the test is no longer reliably receiving two console messages at the start of the output. Flakiness Dashboard:
https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=http%2Ftests%2Fsecurity%2Fbypassing-cors-checks-for-extension-urls.html
diff text: --- /Volumes/Data/slave/highsierra-release-tests-wk2/build/layout-test-results/http/tests/security/bypassing-cors-checks-for-extension-urls-expected.txt +++ /Volumes/Data/slave/highsierra-release-tests-wk2/build/layout-test-results/http/tests/security/bypassing-cors-checks-for-extension-urls-actual.txt @@ -1,5 +1,3 @@ -CONSOLE MESSAGE: line 19: Cross origin requests are only supported for HTTP. -CONSOLE MESSAGE: line 19: XMLHttpRequest cannot load safari-extension://test1 due to access control checks. This test ensures that XHR/Fetch will bypass CORS for user extension URLS in case the page is running user scripts.
Attachments
Patch
(7.00 KB, patch)
2018-08-31 18:38 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Ryan Haddad
Comment 1
2018-07-17 12:01:48 PDT
We should find out what revision caused this since it happened so recently.
Truitt Savell
Comment 2
2018-07-17 12:13:52 PDT
Strange thing while trying to reproduce. if you run the test with a test runner it will pass the first time then constantly fail all iterations after that. run it with 6 runners and it passes 6 times and fails all further iterations. Tested and reproduced on
r233780
and
r233750
. going to test further back.
Alexey Proskuryakov
Comment 3
2018-07-17 15:37:26 PDT
This may mean that the test is flaky because a preceding test sets some state, in the same way as this test breaks attempts to run it more than once in a single process. Definitely worth getting a repro case.
Radar WebKit Bug Importer
Comment 4
2018-07-17 15:37:42 PDT
<
rdar://problem/42306442
>
Truitt Savell
Comment 5
2018-07-17 16:04:40 PDT
*** This bug has been marked as a duplicate of
bug 187541
***
Truitt Savell
Comment 6
2018-07-17 16:08:13 PDT
marked dup accidentally.
Truitt Savell
Comment 7
2018-07-20 14:12:35 PDT
It was Noticed that this test: http/tests/security/blocked-on-redirect.html always seems to run directly before: http/tests/security/bypassing-cors-checks-for-extension-urls.html on the same test runner when it fails. If they are both run together repeatedly then they both will fail continuously. Example: 19:17:33.285 95669 worker/5 http/tests/security/blocked-on-redirect.html passed 19:17:33.444 95661 worker/1 http/tests/navigation/replacestate-base-legal.html passed 19:17:33.623 95661 worker/1 http/tests/navigation/replacestate-updates-referrer.html passed 19:17:33.910 95669 "ruby -I /Volumes/Data/slave/highsierra-debug-tests-wk2/build/Websites/bugs.webkit.org/PrettyPatch /Volumes/Data/slave/highsierra-debug-tests-wk2/build/Websites/bugs.webkit.org/PrettyPatch/prettify.rb /Volumes/Data/slave/highsierra-debug-tests-wk2/build/layout-test-results/http/tests/security/bypassing-cors-checks-for-extension-urls-diff.txt" took 0.26s 19:17:33.913 95617 [22595/50037] http/tests/security/bypassing-cors-checks-for-extension-urls.html failed unexpectedly (text diff) 19:17:33.912 95669 worker/5 http/tests/security/bypassing-cors-checks-for-extension-urls.html failed: 19:17:33.912 95669 worker/5 text diff
Ryan Haddad
Comment 8
2018-07-23 10:40:43 PDT
Marked test as flaky in
https://trac.webkit.org/r234101
Truitt Savell
Comment 9
2018-08-31 11:38:24 PDT
Update: After bisecting through the test runner this test ran on I found the test that triggers the failure of http/tests/security/bypassing-cors-checks-for-extension-urls.html. http/tests/contentextensions/injected-script-callback.html will cause this failure. Command: run-webkit-tests --root testbuild-235549 http/tests/contentextensions/injected-script-callback.html http/tests/security/bypassing-cors-checks-for-extension-urls.html --child-processes 1 --force --no-retry above command will %100 cause http/tests/security/bypassing-cors-checks-for-extension-urls.html to fail. http/tests/contentextensions/injected-script-callback.html was added in
https://trac.webkit.org/changeset/233782/webkit
which lines up with when http/tests/security/bypassing-cors-checks-for-extension-urls.html became flakey. additional validation: I skipped running http/tests/contentextensions/injected-script-callback.html in the test runner I was bisecting and no failure occurred with http/tests/security/bypassing-cors-checks-for-extension-urls.html
youenn fablet
Comment 10
2018-08-31 18:38:11 PDT
Created
attachment 348696
[details]
Patch
WebKit Commit Bot
Comment 11
2018-09-03 16:17:30 PDT
Comment on
attachment 348696
[details]
Patch Clearing flags on attachment: 348696 Committed
r235602
: <
https://trac.webkit.org/changeset/235602
>
WebKit Commit Bot
Comment 12
2018-09-03 16:17:32 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug