зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1670214 - [Fission] Crash in [@ mozilla::dom::CanonicalBrowsingContext::NotifyOnHistoryReload], r=jesup
Trying to keep the old behavior where reload succeeds without shistory https://hg.mozilla.org/mozilla-central/file/a42aa95147941ca7983eaf4846b644e207de24f8/docshell/base/nsDocShell.cpp#l4091 Differential Revision: https://phabricator.services.mozilla.com/D93331
This commit is contained in:
Родитель
e7e1ce40d9
Коммит
847147b50c
|
@ -527,7 +527,10 @@ void CanonicalBrowsingContext::NotifyOnHistoryReload(
|
||||||
Maybe<bool>& aReloadActiveEntry) {
|
Maybe<bool>& aReloadActiveEntry) {
|
||||||
MOZ_DIAGNOSTIC_ASSERT(!aLoadState);
|
MOZ_DIAGNOSTIC_ASSERT(!aLoadState);
|
||||||
|
|
||||||
|
aCanReload = true;
|
||||||
nsISHistory* shistory = GetSessionHistory();
|
nsISHistory* shistory = GetSessionHistory();
|
||||||
|
NS_ENSURE_TRUE_VOID(shistory);
|
||||||
|
|
||||||
shistory->NotifyOnHistoryReload(&aCanReload);
|
shistory->NotifyOnHistoryReload(&aCanReload);
|
||||||
if (!aCanReload) {
|
if (!aCanReload) {
|
||||||
return;
|
return;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче