| Summary: | Use closeReason provided in didCloseWithCode delegate for the NSURLSessionWebSocket code path | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | jmehta | ||||||
| Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | achristensen, webkit-bug-importer, youennf | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
jmehta
2020-08-14 11:50:19 PDT
Created attachment 406612 [details]
Using the closeReason in the delegate
Comment on attachment 406612 [details] Using the closeReason in the delegate View in context: https://bugs.webkit.org/attachment.cgi?id=406612&action=review > Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm:1021 > + auto closeReason = adoptNS([[NSString alloc] initWithData:reason encoding:NSUTF8StringEncoding]); ASSERT([reason isEqualToData:task.closeReason]); That'll catch these future bugs you mentioned. (In reply to Alex Christensen from comment #2) > Comment on attachment 406612 [details] > Using the closeReason in the delegate > > View in context: > https://bugs.webkit.org/attachment.cgi?id=406612&action=review > > > Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm:1021 > > + auto closeReason = adoptNS([[NSString alloc] initWithData:reason encoding:NSUTF8StringEncoding]); > > ASSERT([reason isEqualToData:task.closeReason]); > That'll catch these future bugs you mentioned. That sounds good Created attachment 406984 [details]
Updating patch to add assertions and ChangeLog
Committed r266011: <https://trac.webkit.org/changeset/266011> All reviewed patches have been landed. Closing bug and clearing flags on attachment 406984 [details]. |