mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Bug 1687267 - remove pending history navigations when swithing to another process, r=peterv
The patch is based on code inspection. Crashes seem to happen when mHistory has been cleared, and yet PendingAsyncHistoryNavigation::Run calls Go(). Differential Revision: https://phabricator.services.mozilla.com/D102874
This commit is contained in:
parent
979ff1ff5d
commit
28d6ee58c1
@ -30,7 +30,11 @@ void ChildSHistory::SetBrowsingContext(BrowsingContext* aBrowsingContext) {
|
||||
|
||||
void ChildSHistory::SetIsInProcess(bool aIsInProcess) {
|
||||
if (!aIsInProcess) {
|
||||
mHistory = nullptr;
|
||||
MOZ_ASSERT_IF(mozilla::SessionHistoryInParent(), !mHistory);
|
||||
if (!mozilla::SessionHistoryInParent()) {
|
||||
RemovePendingHistoryNavigations();
|
||||
mHistory = nullptr;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user