Changeset 274027 in webkit
- Timestamp:
- Mar 5, 2021, 6:56:21 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/WebNavigationState.h (modified) (1 diff)
-
UIProcess/WebPageProxy.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r274026 r274027 1 2021-03-05 Chris Dumez <cdumez@apple.com> 2 3 [IPC Hardening] Protect against bad navigationID in WebPageProxy::didDestroyNavigation() 4 https://bugs.webkit.org/show_bug.cgi?id=222842 5 <rdar://problem/75119560> 6 7 Reviewed by Darin Adler. 8 9 * UIProcess/WebNavigationState.h: 10 * UIProcess/WebPageProxy.cpp: 11 (WebKit::WebPageProxy::didDestroyNavigation): 12 1 13 2021-03-05 Chris Dumez <cdumez@apple.com> 2 14 -
trunk/Source/WebKit/UIProcess/WebNavigationState.h
r273023 r274027 68 68 } 69 69 70 using NavigationMap = HashMap<uint64_t, RefPtr<API::Navigation>>; 71 70 72 private: 71 HashMap<uint64_t, RefPtr<API::Navigation>>m_navigations;73 NavigationMap m_navigations; 72 74 uint64_t m_navigationID { 0 }; 73 75 }; -
trunk/Source/WebKit/UIProcess/WebPageProxy.cpp
r273997 r274027 4376 4376 void WebPageProxy::didDestroyNavigation(uint64_t navigationID) 4377 4377 { 4378 MESSAGE_CHECK(m_process, WebNavigationState::NavigationMap::isValidKey(navigationID)); 4379 4378 4380 PageClientProtector protector(pageClient()); 4379 4381 … … 4382 4384 return; 4383 4385 4384 // FIXME: Message check the navigationID.4385 4386 m_navigationState->didDestroyNavigation(navigationID); 4386 4387 }
Note:
See TracChangeset
for help on using the changeset viewer.