Bug 183865 - Move request checking out of PingLoad for future reuse in NetworkLoad
Summary: Move request checking out of PingLoad for future reuse in NetworkLoad
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Service Workers (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-03-21 13:11 PDT by youenn fablet
Modified: 2018-03-27 16:26 PDT (History)
7 users (show)

See Also:


Attachments
Patch (47.30 KB, patch)
2018-03-21 13:27 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (47.33 KB, patch)
2018-03-21 13:38 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (45.77 KB, patch)
2018-03-21 13:50 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (45.78 KB, patch)
2018-03-21 13:52 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (44.32 KB, patch)
2018-03-23 10:06 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews115 for mac-sierra (2.85 MB, application/zip)
2018-03-23 12:02 PDT, EWS Watchlist
no flags Details
Patch for landing (44.38 KB, patch)
2018-03-27 14:14 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-21 13:11:03 PDT
Move request checking out of PingLoad for future reuse in NetworkLoad
Comment 1 youenn fablet 2018-03-21 13:27:18 PDT
Created attachment 336225 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2018-03-21 13:28:03 PDT
<rdar://problem/38720873>
Comment 3 youenn fablet 2018-03-21 13:38:56 PDT
Created attachment 336227 [details]
Patch
Comment 4 Alex Christensen 2018-03-21 13:42:29 PDT
Comment on attachment 336227 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=336227&action=review

> Source/WebKit/NetworkProcess/NetworkCORSPreflightChecker.cpp:84
> -    m_completionCallback(Result::Failure);
> +    returnResult(Result::Failure);

CompletionHandlers null themselves out when called, so these changes are redundant with the change in NetworkCORSPreflightChecker.h
Comment 5 youenn fablet 2018-03-21 13:50:20 PDT
Created attachment 336231 [details]
Patch
Comment 6 youenn fablet 2018-03-21 13:52:46 PDT
Created attachment 336232 [details]
Patch
Comment 7 Daniel Bates 2018-03-21 18:25:46 PDT
Comment on attachment 336232 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=336232&action=review

> Source/WebKit/ChangeLog:16
> +        Fixed a bug in PingLoad to ensure that credentials are not sent when going from a third-party

Would it be straightforward to separate out this change into its own bug? If so, I suggest we do so and keeps this patch focused  on the refactoring and correctness of the refactoring. The benefit of this approach is that in the event that the refactoring causes a regression we can roll it out without rolling out the bug fix. It would also enable us to take only the bug fix on a branch if desired.
Comment 8 youenn fablet 2018-03-21 20:19:00 PDT
(In reply to Daniel Bates from comment #7)
> Comment on attachment 336232 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=336232&action=review
> 
> > Source/WebKit/ChangeLog:16
> > +        Fixed a bug in PingLoad to ensure that credentials are not sent when going from a third-party
> 
> Would it be straightforward to separate out this change into its own bug? If
> so, I suggest we do so and keeps this patch focused  on the refactoring and
> correctness of the refactoring. The benefit of this approach is that in the
> event that the refactoring causes a regression we can roll it out without
> rolling out the bug fix. It would also enable us to take only the bug fix on
> a branch if desired.

I can prepare the bug fix patch tomorrow.
I don't think this changes much of the review of this patch though.
Putting it in r? for now.
Comment 9 youenn fablet 2018-03-23 10:06:52 PDT
Created attachment 336383 [details]
Patch
Comment 10 EWS Watchlist 2018-03-23 12:02:07 PDT
Comment on attachment 336383 [details]
Patch

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

New failing tests:
media/modern-media-controls/tracks-panel/tracks-panel-hide-esc-key.html
Comment 11 EWS Watchlist 2018-03-23 12:02:08 PDT
Created attachment 336401 [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 12 youenn fablet 2018-03-23 16:54:09 PDT
Comment on attachment 336383 [details]
Patch

Test failure is unrelated
Comment 13 Chris Dumez 2018-03-27 09:34:47 PDT
Comment on attachment 336383 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=336383&action=review

r=me with tiny nit.

> Source/WebKit/NetworkProcess/NetworkCORSPreflightChecker.h:50
> +    enum class Result { Success, Failure, Cancelled };

We prefer Canceled with 1 'l'.
Comment 14 youenn fablet 2018-03-27 14:14:56 PDT
Created attachment 336617 [details]
Patch for landing
Comment 15 WebKit Commit Bot 2018-03-27 16:26:40 PDT
Comment on attachment 336617 [details]
Patch for landing

Clearing flags on attachment: 336617

Committed r230014: <https://trac.webkit.org/changeset/230014>
Comment 16 WebKit Commit Bot 2018-03-27 16:26:42 PDT
All reviewed patches have been landed.  Closing bug.