RESOLVED FIXED 184741
Use NetworkLoadChecker for XHR/fetch loads
https://bugs.webkit.org/show_bug.cgi?id=184741
Summary Use NetworkLoadChecker for XHR/fetch loads
youenn fablet
Reported 2018-04-18 11:14:07 PDT
Use NetworkLoadChecker for XHR/fetch loads. This will allow us to handle CORS/CSP/ContentBlockers all in NetworkProcess.
Attachments
Patch (149.29 KB, patch)
2018-04-18 11:33 PDT, youenn fablet
ews-watchlist: commit-queue-
Archive of layout-test-results from ews100 for mac-sierra (958.38 KB, application/zip)
2018-04-18 12:30 PDT, EWS Watchlist
no flags
Patch (68.49 KB, patch)
2018-04-26 11:50 PDT, youenn fablet
no flags
Patch (70.08 KB, patch)
2018-04-26 13:15 PDT, youenn fablet
no flags
Patch (69.47 KB, patch)
2018-04-26 13:39 PDT, youenn fablet
no flags
Archive of layout-test-results from ews100 for mac-sierra (2.24 MB, application/zip)
2018-04-26 14:37 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews124 for ios-simulator-wk2 (2.18 MB, application/zip)
2018-04-26 15:10 PDT, EWS Watchlist
no flags
Patch (72.81 KB, patch)
2018-04-26 15:22 PDT, youenn fablet
no flags
Patch (74.15 KB, patch)
2018-04-26 16:01 PDT, youenn fablet
no flags
Patch (74.16 KB, patch)
2018-04-26 17:03 PDT, youenn fablet
no flags
Archive of layout-test-results from ews125 for ios-simulator-wk2 (13.59 MB, application/zip)
2018-04-26 18:44 PDT, EWS Watchlist
no flags
Patch (75.48 KB, patch)
2018-04-26 20:48 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2018-04-18 11:33:46 PDT
EWS Watchlist
Comment 2 2018-04-18 11:34:56 PDT
Attachment 338230 [details] did not pass style-queue: ERROR: Source/WebKit/NetworkProcess/NetworkResourceLoader.h:152: The parameter name "request" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 1 in 76 files If any of these errors are false positives, please file a bug against check-webkit-style.
EWS Watchlist
Comment 3 2018-04-18 12:30:52 PDT
Comment on attachment 338230 [details] Patch Attachment 338230 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/7360713 Number of test failures exceeded the failure limit.
EWS Watchlist
Comment 4 2018-04-18 12:30:53 PDT
Created attachment 338244 [details] Archive of layout-test-results from ews100 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-sierra Platform: Mac OS X 10.12.6
youenn fablet
Comment 5 2018-04-26 11:50:30 PDT
youenn fablet
Comment 6 2018-04-26 13:15:12 PDT
youenn fablet
Comment 7 2018-04-26 13:39:46 PDT
EWS Watchlist
Comment 8 2018-04-26 14:37:34 PDT
Comment on attachment 338911 [details] Patch Attachment 338911 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/7472441 New failing tests: http/tests/security/contentSecurityPolicy/connect-src-xmlhttprequest-redirect-to-blocked.html imported/w3c/web-platform-tests/cors/late-upload-events.htm
EWS Watchlist
Comment 9 2018-04-26 14:37:35 PDT
Created attachment 338917 [details] Archive of layout-test-results from ews100 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-sierra Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 10 2018-04-26 15:10:30 PDT
Comment on attachment 338911 [details] Patch Attachment 338911 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/7472512 New failing tests: http/tests/quicklook/same-origin-xmlhttprequest-allowed.html
EWS Watchlist
Comment 11 2018-04-26 15:10:32 PDT
Created attachment 338921 [details] Archive of layout-test-results from ews124 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews124 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.4
youenn fablet
Comment 12 2018-04-26 15:22:47 PDT
youenn fablet
Comment 13 2018-04-26 16:01:35 PDT
youenn fablet
Comment 14 2018-04-26 17:03:51 PDT
EWS Watchlist
Comment 15 2018-04-26 18:44:02 PDT
Comment on attachment 338938 [details] Patch Attachment 338938 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/7474737 New failing tests: http/tests/quicklook/same-origin-xmlhttprequest-allowed.html
EWS Watchlist
Comment 16 2018-04-26 18:44:04 PDT
Created attachment 338949 [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.13.4
youenn fablet
Comment 17 2018-04-26 20:48:53 PDT
WebKit Commit Bot
Comment 18 2018-04-27 11:10:24 PDT
Comment on attachment 338961 [details] Patch Clearing flags on attachment: 338961 Committed r231107: <https://trac.webkit.org/changeset/231107>
WebKit Commit Bot
Comment 19 2018-04-27 11:10:25 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 20 2018-04-27 11:12:22 PDT
youenn fablet
Comment 21 2018-04-27 14:08:39 PDT
*** Bug 184696 has been marked as a duplicate of this bug. ***
Daniel Bates
Comment 22 2018-05-20 13:53:16 PDT
(In reply to Build Bot from comment #15) > Comment on attachment 338938 [details] > Patch > > Attachment 338938 [details] did not pass ios-sim-ews (ios-simulator-wk2): > Output: http://webkit-queues.webkit.org/results/7474737 > > New failing tests: > http/tests/quicklook/same-origin-xmlhttprequest-allowed.html This failure represents a change in behavior... (In reply to youenn fablet from comment #17) > Created attachment 338961 [details] > Patch ...that was unfortunately incorporated into this patch without explanation and... (In reply to WebKit Commit Bot from comment #18) > Comment on attachment 338961 [details] > Patch > > Clearing flags on attachment: 338961 > > Committed r231107: <https://trac.webkit.org/changeset/231107> landed in this commit :( Filed bug #185807 to address this test regression.
Daniel Bates
Comment 23 2018-07-28 12:51:01 PDT
(In reply to WebKit Commit Bot from comment #18) > Comment on attachment 338961 [details] > Patch > > Clearing flags on attachment: 338961 > > Committed r231107: <https://trac.webkit.org/changeset/231107> This change makes MoviStar+ launch to a blank black screen. See bug #188139 for more details.
Daniel Bates
Comment 24 2018-07-28 13:11:42 PDT
(In reply to WebKit Commit Bot from comment #18) > Comment on attachment 338961 [details] > Patch > > Clearing flags on attachment: 338961 > > Committed r231107: <https://trac.webkit.org/changeset/231107> It is disingenuous that this change landed under the guise of using "NetworkLoadChecker for XHR/fetch loads" and was "covered by existing tests". Both statements are half-truths when viewed in the best light. This change does at least three things: 1. It refactors code in WebCore so as to support the kind of "hand-off" needed for the NetworkLoadChecker in the NetworkProcess to take responsibility for XHR/Fetch loads. This change is expected given the title of this bug, the description given in comment #0, and what little is explicitly written or can be inferred from the ChangeLog. 2. (Unexplained behavior change) Change in behavior with respect to Quick Look XHR caught by test failure http/tests/quicklook/same-origin-xmlhttprequest-allowed.html. See bug #185807 for more details. 3. (Unexplained behavior change) Preflight XHRs are blocked for non-HTTP(s) schemes. See bug #188139 for more details.
Note You need to log in before you can comment on or make changes to this bug.