-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Crash under WebKit::WebBackForwardCache::removeEntry()
https://bugs.webkit.org/show_bug.cgi?id=258698 rdar://111524465 Reviewed by Ryosuke Niwa. In WebBackForwardCache::removeEntry(), the call to `item.setBackForwardCacheEntry(nullptr)` may cause the `item` to get destroyed. However, we were using `item` on the next line for logging purpose. To fix the bug, I am moving the logging before the setBackForwardCacheEntry() call. for hardening purposes, I am also updating m_itemsWithCachedPage to contain WeakPtrs instead of raw pointers. * Source/WebKit/Shared/WebBackForwardListItem.h: * Source/WebKit/UIProcess/WebBackForwardCache.cpp: (WebKit::WebBackForwardCache::removeEntry): (WebKit::WebBackForwardCache::removeEntriesMatching): (WebKit::WebBackForwardCache::clear): * Source/WebKit/UIProcess/WebBackForwardCache.h: Originally-landed-as: 259548.865@safari-7615-branch (cb256ae). rdar://111524465 Canonical link: https://commits.webkit.org/266453@main
- Loading branch information
1 parent
51d7c77
commit 31b24d6
Showing
3 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters