Bug 155800

Summary: Remove firing assertion when redirecting
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
sam: review+
Archive of layout-test-results from ews113 for mac-yosemite none

Description Alex Christensen 2016-03-23 11:58:01 PDT
Remove firing assertion when redirecting
Comment 1 Alex Christensen 2016-03-23 12:00:27 PDT
Created attachment 274766 [details]
Patch
Comment 2 Build Bot 2016-03-23 13:06:38 PDT
Comment on attachment 274766 [details]
Patch

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

New failing tests:
imported/w3c/web-platform-tests/streams/readable-streams/general.https.html
Comment 3 Build Bot 2016-03-23 13:06:40 PDT
Created attachment 274769 [details]
Archive of layout-test-results from ews113 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews113  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 4 Alex Christensen 2016-03-23 13:07:45 PDT
This code is not even compiled on Yosemite.  failure unrelated.
Comment 5 Tim Horton 2016-03-23 13:24:44 PDT
Comment on attachment 274766 [details]
Patch

You should actually figure out what's going on here, because you seem to agree that we really shouldn't be getting here with null networkDataTask, making the assertion not irrelevant.
Comment 6 Alex Christensen 2016-05-02 13:00:14 PDT
Comment on attachment 274766 [details]
Patch

The load is being "canceled" by the WebProcess, and the NetworkLoad and NetworkDataTask are being destroyed.  With NSURLConnection, we stopped getting delegate callbacks once the delegate is destroyed, with NSURLSession we continue getting delegate callbacks because the session's delegate is not destroyed after each load.  I think this is correct.
Comment 7 Sam Weinig 2016-05-03 14:19:01 PDT
Comment on attachment 274766 [details]
Patch

You should remove the assert in didReceiveChallenge as well (and convert it to call NSURLSessionAuthChallengeCancelAuthenticationChallenge instead of NSURLSessionAuthChallengePerformDefaultHandling).
Comment 8 Alex Christensen 2016-05-03 14:50:51 PDT
http://trac.webkit.org/changeset/200388