Bug 184114 - NetworkResourceLoader does not need to expose all redirect response headers
Summary: NetworkResourceLoader does not need to expose all redirect response headers
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: InRadar
Depends on:
Blocks:
 
Reported: 2018-03-28 15:17 PDT by youenn fablet
Modified: 2018-04-04 14:02 PDT (History)
8 users (show)

See Also:


Attachments
Patch (8.83 KB, patch)
2018-03-28 17:08 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (8.88 KB, patch)
2018-03-29 13:29 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (28.52 KB, patch)
2018-04-02 10:15 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-sierra (2.31 MB, application/zip)
2018-04-02 11:30 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews115 for mac-sierra (3.20 MB, application/zip)
2018-04-02 12:54 PDT, EWS Watchlist
no flags Details
Patch (27.44 KB, patch)
2018-04-02 13:47 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews205 for win-future (12.14 MB, application/zip)
2018-04-02 18:35 PDT, EWS Watchlist
no flags Details
Patch for landing (29.54 KB, patch)
2018-04-03 14:17 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 2018-03-28 15:17:48 PDT
Some headers are not used by WebContent processes although they may be leaked to JavaScript.
Comment 1 youenn fablet 2018-03-28 17:08:52 PDT
Created attachment 336735 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2018-03-29 13:03:35 PDT
<rdar://problem/39010557>
Comment 3 youenn fablet 2018-03-29 13:29:38 PDT
Created attachment 336801 [details]
Patch
Comment 4 youenn fablet 2018-04-02 10:15:55 PDT
Created attachment 336994 [details]
Patch
Comment 5 youenn fablet 2018-04-02 11:08:16 PDT
I forgot to skip http/wpt/loading/redirect-headers.html in WK1 since this is a WK2 only test...
Comment 6 EWS Watchlist 2018-04-02 11:30:19 PDT
Comment on attachment 336994 [details]
Patch

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

New failing tests:
http/wpt/loading/redirect-headers.html
Comment 7 EWS Watchlist 2018-04-02 11:30:20 PDT
Created attachment 337005 [details]
Archive of layout-test-results from ews103 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 8 EWS Watchlist 2018-04-02 12:54:33 PDT
Comment on attachment 336994 [details]
Patch

Attachment 336994 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/7180997

New failing tests:
http/wpt/loading/redirect-headers.html
Comment 9 EWS Watchlist 2018-04-02 12:54:34 PDT
Created attachment 337015 [details]
Archive of layout-test-results from ews115 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews115  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 10 youenn fablet 2018-04-02 13:47:59 PDT
Created attachment 337025 [details]
Patch
Comment 11 youenn fablet 2018-04-02 13:52:51 PDT
(In reply to youenn fablet from comment #10)
> Created attachment 337025 [details]
> Patch

Skipping new test for WK1 that does not implement response header filtering
Comment 12 EWS Watchlist 2018-04-02 18:35:34 PDT
Comment on attachment 337025 [details]
Patch

Attachment 337025 [details] did not pass win-ews (win):
Output: http://webkit-queues.webkit.org/results/7186253

New failing tests:
http/wpt/loading/redirect-headers.html
Comment 13 EWS Watchlist 2018-04-02 18:35:45 PDT
Created attachment 337049 [details]
Archive of layout-test-results from ews205 for win-future

The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews205  Port: win-future  Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Comment 14 youenn fablet 2018-04-03 14:17:12 PDT
Created attachment 337114 [details]
Patch for landing
Comment 15 WebKit Commit Bot 2018-04-03 15:20:27 PDT
Comment on attachment 337114 [details]
Patch for landing

Clearing flags on attachment: 337114

Committed r230224: <https://trac.webkit.org/changeset/230224>
Comment 16 WebKit Commit Bot 2018-04-03 15:20:28 PDT
All reviewed patches have been landed.  Closing bug.
Comment 17 Ryan Haddad 2018-04-04 14:02:39 PDT
The LayoutTest added with this change is a flaky failure on macOS:

--- /Volumes/Data/slave/sierra-release-tests-wk2/build/layout-test-results/http/wpt/loading/redirect-headers-expected.txt
+++ /Volumes/Data/slave/sierra-release-tests-wk2/build/layout-test-results/http/wpt/loading/redirect-headers-actual.txt
@@ -7,5 +7,4 @@
 http://localhost:8800/WebKit/loading/redirect-headers.html - didFinishLoading
 http://localhost:8800/WebKit/beacon/resources/redirect.py?status=302&location=/ - willSendRequest <NSURLRequest URL http://localhost:8800/?status=302&location=%2F&count=1, main document URL http://localhost:8800/WebKit/loading/redirect-headers.html, http method GET> redirectResponse <NSURLResponse http://localhost:8800/WebKit/beacon/resources/redirect.py?status=302&location=/, http status code 302, 6 headers>
 http://localhost:8800/WebKit/beacon/resources/redirect.py?status=302&location=/ - didReceiveResponse <NSURLResponse http://localhost:8800/?status=302&location=%2F&count=1, http status code 200>
-http://localhost:8800/WebKit/beacon/resources/redirect.py?status=302&location=/ - didFinishLoading
 
https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=http%2Fwpt%2Floading%2Fredirect-headers.html