Bug 161627 - http/tests/security/contentSecurityPolicy/worker-csp-blocks-xhr-redirect-cross-origin.html is flaky
Summary: http/tests/security/contentSecurityPolicy/worker-csp-blocks-xhr-redirect-cros...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-06 05:49 PDT by youenn fablet
Modified: 2016-09-06 09:05 PDT (History)
7 users (show)

See Also:


Attachments
Patch (4.44 KB, patch)
2016-09-06 05:52 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (4.44 KB, patch)
2016-09-06 05:53 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2016-09-06 05:49:00 PDT
Following on bug 161389, http/tests/security/contentSecurityPolicy/worker-csp-blocks-xhr-redirect-cross-origin.html is flaky as a redirectResponse is sent both to SubresourceLoader::willSendRequestInternal and SubresourceLoader::didReceiveResponse.
The first call marks the resource as as cross-origin as the redirection (same-origin) redirects to a cross-origin resource.
The second then checks for CORS on the same redirection.
Comment 1 youenn fablet 2016-09-06 05:52:31 PDT
Created attachment 288019 [details]
Patch
Comment 2 youenn fablet 2016-09-06 05:53:13 PDT
Created attachment 288020 [details]
Patch
Comment 3 WebKit Commit Bot 2016-09-06 09:05:38 PDT
Comment on attachment 288020 [details]
Patch

Clearing flags on attachment: 288020

Committed r205481: <http://trac.webkit.org/changeset/205481>
Comment 4 WebKit Commit Bot 2016-09-06 09:05:42 PDT
All reviewed patches have been landed.  Closing bug.