Changeset 239305 in webkit
- Timestamp:
- Dec 17, 2018 5:32:34 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r239294 r239305 1 2018-12-17 Alex Christensen <achristensen@webkit.org> 2 3 Fix occasional null-dereference crash in WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame 4 https://bugs.webkit.org/show_bug.cgi?id=192744 5 <rdar://problem/45842668> 6 7 Reviewed by Chris Dumez. 8 9 * UIProcess/WebPageProxy.cpp: 10 (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame): 11 Things happen. Navigations can be null. If they are, we shouldn't dereference pointers to them. 12 1 13 2018-12-17 Chris Dumez <cdumez@apple.com> 2 14 -
trunk/Source/WebKit/UIProcess/WebPageProxy.cpp
r239266 r239305 3774 3774 3775 3775 // FIXME: We should message check that navigationID is not zero here, but it's currently zero for some navigations through the page cache. 3776 RefPtr<API::Navigation> navigation; 3777 if (navigationID) { 3778 navigation = navigationState().navigation(navigationID); 3776 RefPtr<API::Navigation> navigation = navigationID ? navigationState().navigation(navigationID) : nullptr; 3777 if (navigation) 3779 3778 navigation->appendRedirectionURL(request.url()); 3780 }3781 3779 3782 3780 auto transaction = m_pageLoadState.transaction();
Note: See TracChangeset
for help on using the changeset viewer.