Bug 183865

Summary: Move request checking out of PingLoad for future reuse in NetworkLoad
Product: WebKit Reporter: youenn fablet <youennf>
Component: Service WorkersAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, cdumez, commit-queue, dbates, ews-watchlist, mkwst, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Archive of layout-test-results from ews115 for mac-sierra
none
Patch for landing none

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.