Bug 196156

Summary: Include the CFNetworking task UUID to the NSError when a resource-load fails
Product: WebKit Reporter: Keith Rollin <krollin>
Component: New BugsAssignee: Keith Rollin <krollin>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, commit-queue, ews-watchlist, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews124 for ios-simulator-wk2
none
Patch none

Description Keith Rollin 2019-03-22 11:57:17 PDT
In order to help track the connection between a failed resource-load and a user-visible error message, include the CFNetworking task UUID in the associated error as an element of the userInfo property. This can then be pulled out and reported in the logging at the point the error is reported to the user.

<rdar://problem/49128864>
Comment 1 Keith Rollin 2019-03-22 12:02:50 PDT
Created attachment 365753 [details]
Patch
Comment 2 Alex Christensen 2019-03-22 14:02:50 PDT
Comment on attachment 365753 [details]
Patch

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

> Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm:611
> +        newUserInfo[@"networkTaskID"] = [task description];

Maybe we should have "Description" in the key instead of "ID"
Comment 3 EWS Watchlist 2019-03-22 14:25:51 PDT
Comment on attachment 365753 [details]
Patch

Attachment 365753 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: https://webkit-queues.webkit.org/results/11616331

New failing tests:
fast/visual-viewport/ios/min-scale-greater-than-one.html
Comment 4 EWS Watchlist 2019-03-22 14:25:52 PDT
Created attachment 365758 [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.6
Comment 5 Keith Rollin 2019-03-27 14:20:57 PDT
Created attachment 366106 [details]
Patch
Comment 6 Keith Rollin 2019-03-27 14:22:15 PDT
Changed ID to Description.

Those test failures aren't mine.
Comment 7 WebKit Commit Bot 2019-03-27 14:48:10 PDT
Comment on attachment 366106 [details]
Patch

Clearing flags on attachment: 366106

Committed r243565: <https://trac.webkit.org/changeset/243565>
Comment 8 WebKit Commit Bot 2019-03-27 14:48:27 PDT
All reviewed patches have been landed.  Closing bug.