Bug 185259 - REGRESSION: Layout Test http/tests/security/location-cross-origin.html is a flaky failure
Summary: REGRESSION: Layout Test http/tests/security/location-cross-origin.html is a f...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-05-03 10:19 PDT by Ryan Haddad
Modified: 2018-05-03 11:14 PDT (History)
3 users (show)

See Also:


Attachments
Patch (1.84 KB, patch)
2018-05-03 10:35 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Haddad 2018-05-03 10:19:27 PDT
The following layout test is flaky on debug bots.

http/tests/security/location-cross-origin.html

Probable cause:

Unknown.

Flakiness Dashboard:

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=http%2Ftests%2Fsecurity%2Flocation-cross-origin.html

--- /Volumes/Data/slave/sierra-debug-tests-wk2/build/layout-test-results/http/tests/security/location-cross-origin-expected.txt
+++ /Volumes/Data/slave/sierra-debug-tests-wk2/build/layout-test-results/http/tests/security/location-cross-origin-actual.txt
@@ -49,7 +49,7 @@
 PASS Object.getOwnPropertyDescriptor(window.location, 'hash').set.call(frames[0].location, 1) threw exception SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame. Protocols, domains, and ports must match..
 PASS Object.defineProperty(frames[0].location, 'foo', { value: 1 }) threw exception SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame. Protocols, domains, and ports must match..
 PASS frames[0].location.href = 'about:blank' did not throw exception.
-PASS frames[0].location.href is "about:blank"
+FAIL frames[0].location.href should be about:blank. Threw exception SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame. Protocols, domains, and ports must match.
 PASS successfullyParsed is true
 
 TEST COMPLETE
Comment 1 Ryan Haddad 2018-05-03 10:21:26 PDT
Flakiness dashboard suggests that this regressed with https://trac.webkit.org/changeset/230926, but I have not yet attempted to reproduce the failure locally.
Comment 2 Chris Dumez 2018-05-03 10:24:08 PDT
(In reply to Ryan Haddad from comment #1)
> Flakiness dashboard suggests that this regressed with
> https://trac.webkit.org/changeset/230926, but I have not yet attempted to
> reproduce the failure locally.

Will look now.
Comment 3 Chris Dumez 2018-05-03 10:25:44 PDT
(In reply to Chris Dumez from comment #2)
> (In reply to Ryan Haddad from comment #1)
> > Flakiness dashboard suggests that this regressed with
> > https://trac.webkit.org/changeset/230926, but I have not yet attempted to
> > reproduce the failure locally.
> 
> Will look now.

shouldNotThrow("frames[0].location.href = 'about:blank'");
    setTimeout(function() {
        shouldBeEqualToString("frames[0].location.href", "about:blank");
        finishJSTest();
    }, 100);

setTimeout 100, great.
Comment 4 Chris Dumez 2018-05-03 10:35:49 PDT
Created attachment 339425 [details]
Patch
Comment 5 WebKit Commit Bot 2018-05-03 11:13:59 PDT
Comment on attachment 339425 [details]
Patch

Clearing flags on attachment: 339425

Committed r231315: <https://trac.webkit.org/changeset/231315>
Comment 6 WebKit Commit Bot 2018-05-03 11:14:00 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 Radar WebKit Bug Importer 2018-05-03 11:14:29 PDT
<rdar://problem/39947471>