RESOLVED FIXED 193985
Make sure we have a frame before trying to access its loader
https://bugs.webkit.org/show_bug.cgi?id=193985
Summary Make sure we have a frame before trying to access its loader
Brent Fulgham
Reported 2019-01-29 14:58:01 PST
Early seeding of iOS 12.2 showed some nullptr dereferences in 'ResourceLoadObserver::logUserInteractionWithReducedTimeResolution'. Code inspection and review of the backtraces reveal that the code attempts to access the frame's loader, even if the frame is a nullptr. We check for null frames in other uses of the document frame member, so should do so here as well.
Attachments
Patch (2.09 KB, patch)
2019-01-29 15:16 PST, Brent Fulgham
no flags
Brent Fulgham
Comment 1 2019-01-29 14:58:17 PST
Brent Fulgham
Comment 2 2019-01-29 15:16:59 PST
John Wilander
Comment 3 2019-01-29 15:20:10 PST
Comment on attachment 360506 [details] Patch LGTM.
WebKit Commit Bot
Comment 4 2019-01-29 17:42:55 PST
Comment on attachment 360506 [details] Patch Clearing flags on attachment: 360506 Committed r240697: <https://trac.webkit.org/changeset/240697>
WebKit Commit Bot
Comment 5 2019-01-29 17:42:56 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.