Bug 182134

Summary: ServiceWorkerClientFetch should not consider responses without Location headers as redirection responses
Product: WebKit Reporter: youenn fablet <youennf>
Component: Service WorkersAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, beidson, cdumez, commit-queue, ews-watchlist, jlewis3, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=182311
Bug Depends on: 182193    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews104 for mac-sierra-wk2
none
Archive of layout-test-results from ews125 for ios-simulator-wk2
none
Patch none

Description youenn fablet 2018-01-25 12:09:33 PST
ServiceWorkerClientFetch should not consider responses without Location headers as redirection responses
Comment 1 youenn fablet 2018-01-25 12:12:40 PST
Created attachment 332296 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2018-01-25 12:36:24 PST
<rdar://problem/36878770>
Comment 3 Chris Dumez 2018-01-25 12:41:45 PST
Comment on attachment 332296 [details]
Patch

r=me
Comment 4 EWS Watchlist 2018-01-25 13:12:11 PST
Comment on attachment 332296 [details]
Patch

Attachment 332296 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/6211908

New failing tests:
imported/w3c/web-platform-tests/service-workers/service-worker/navigation-redirect.https.html
Comment 5 EWS Watchlist 2018-01-25 13:12:12 PST
Created attachment 332304 [details]
Archive of layout-test-results from ews104 for mac-sierra-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-sierra-wk2  Platform: Mac OS X 10.12.6
Comment 6 EWS Watchlist 2018-01-25 13:43:48 PST
Comment on attachment 332296 [details]
Patch

Attachment 332296 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/6212000

New failing tests:
imported/w3c/web-platform-tests/service-workers/service-worker/navigation-redirect.https.html
Comment 7 EWS Watchlist 2018-01-25 13:43:49 PST
Created attachment 332309 [details]
Archive of layout-test-results from ews125 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews125  Port: ios-simulator-wk2  Platform: Mac OS X 10.12.6
Comment 8 youenn fablet 2018-01-26 16:58:49 PST
Created attachment 332432 [details]
Patch
Comment 9 WebKit Commit Bot 2018-01-29 18:15:19 PST
Comment on attachment 332432 [details]
Patch

Clearing flags on attachment: 332432

Committed r227770: <https://trac.webkit.org/changeset/227770>
Comment 10 WebKit Commit Bot 2018-01-29 18:15:21 PST
All reviewed patches have been landed.  Closing bug.
Comment 12 Matt Lewis 2018-01-30 11:03:04 PST
It looks like the crash this test is hitting is the same in: https://bugs.webkit.org/show_bug.cgi?id=182054
Comment 13 youenn fablet 2018-01-30 11:09:20 PST
(In reply to Matt Lewis from comment #12)
> It looks like the crash this test is hitting is the same in:
> https://bugs.webkit.org/show_bug.cgi?id=182054

That makes sense.
Before the patch, the patch was skipped.
With the patch, the test runs successfully and uses message ports internally to help testing.