Bug 182116

Summary: Make sure we have a frame as we iterate in ResourceLoadObserver::nonNullOwnerURL()
Product: WebKit Reporter: John Wilander <wilander>
Component: WebCore Misc.Assignee: John Wilander <wilander>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, bfulgham, cdumez, dbates, ews-watchlist, japhet, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch achristensen: review+

Description John Wilander 2018-01-25 11:34:20 PST
We need to check that we have a frame before using it as we traverse the frame hierarchy up to find a non-null URL in ResourceLoadObserver::nonNullOwnerURL().
Comment 1 John Wilander 2018-01-25 11:34:40 PST
rdar://problem/36210134
Comment 2 John Wilander 2018-01-25 11:39:11 PST
Created attachment 332294 [details]
Patch
Comment 3 John Wilander 2018-01-25 11:46:04 PST
In the case where we don't have a frame, the returned URL is empty which through the call to ResourceLoadStatistics::primaryDomain() becomes "nullOrigin".
Comment 4 John Wilander 2018-01-25 14:31:21 PST
Committed r227632: <https://trac.webkit.org/changeset/227632>
Comment 5 John Wilander 2018-01-25 14:31:36 PST
Thanks, Alex!