WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
181067
Service Worker should expose redirect mode for navigation loads as manual
https://bugs.webkit.org/show_bug.cgi?id=181067
Summary
Service Worker should expose redirect mode for navigation loads as manual
youenn fablet
Reported
2017-12-20 16:45:28 PST
Service Worker should expose redirect mode for navigation loads as manual
Attachments
Patch
(9.09 KB, patch)
2017-12-20 16:50 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews123 for ios-simulator-wk2
(2.33 MB, application/zip)
2017-12-20 18:03 PST
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews106 for mac-elcapitan-wk2
(2.74 MB, application/zip)
2017-12-20 18:14 PST
,
EWS Watchlist
no flags
Details
Patch
(11.30 KB, patch)
2018-01-03 05:00 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch for landing
(11.26 KB, patch)
2018-01-04 00:20 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2017-12-20 16:50:45 PST
Created
attachment 329967
[details]
Patch
youenn fablet
Comment 2
2017-12-20 16:52:53 PST
Submitted web-platform-tests pull request:
https://github.com/w3c/web-platform-tests/pull/8764
EWS Watchlist
Comment 3
2017-12-20 18:03:50 PST
Comment on
attachment 329967
[details]
Patch
Attachment 329967
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/5782450
New failing tests: imported/w3c/web-platform-tests/service-workers/service-worker/navigation-redirect-body.https.html
EWS Watchlist
Comment 4
2017-12-20 18:03:52 PST
Created
attachment 329982
[details]
Archive of layout-test-results from ews123 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews123 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 5
2017-12-20 18:14:35 PST
Comment on
attachment 329967
[details]
Patch
Attachment 329967
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/5782805
New failing tests: imported/w3c/web-platform-tests/service-workers/service-worker/navigation-redirect-body.https.html
EWS Watchlist
Comment 6
2017-12-20 18:14:36 PST
Created
attachment 329985
[details]
Archive of layout-test-results from ews106 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
youenn fablet
Comment 7
2017-12-20 18:18:45 PST
Both tests run fine on my machine but not on bots. Wonder whether this is due to some HTTPS setup issue.
youenn fablet
Comment 8
2018-01-03 05:00:52 PST
Created
attachment 330373
[details]
Patch
Alex Christensen
Comment 9
2018-01-03 12:35:37 PST
Comment on
attachment 330373
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=330373&action=review
> Source/WebCore/loader/CrossOriginAccessControl.cpp:139 > + if (!headersToKeep.contains(HTTPHeaderName::ContentType)) { > + if (!isCrossOriginSafeRequestHeader(HTTPHeaderName::ContentType, request.httpContentType()))
You could just use && here
> Source/WebKit/WebProcess/Storage/ServiceWorkerClientFetch.cpp:90 > + if ((options.redirect != FetchOptions::Redirect::Manual && options.mode != FetchOptions::Mode::Navigate) && response.tainting() == ResourceResponse::Tainting::Opaqueredirect)
This has unnecessary parentheses.
youenn fablet
Comment 10
2018-01-04 00:20:06 PST
Created
attachment 330450
[details]
Patch for landing
WebKit Commit Bot
Comment 11
2018-01-04 00:39:58 PST
Comment on
attachment 330450
[details]
Patch for landing Clearing flags on attachment: 330450 Committed
r226400
: <
https://trac.webkit.org/changeset/226400
>
WebKit Commit Bot
Comment 12
2018-01-04 00:40:00 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 13
2018-01-04 00:40:37 PST
<
rdar://problem/36292980
>
youenn fablet
Comment 14
2018-01-31 18:47:38 PST
Submitted web-platform-tests pull request:
https://github.com/w3c/web-platform-tests/pull/9332
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