mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 820067 - Check that mTiming is still around in case the beforeunload handler killed it. r=smaug,bz
This commit is contained in:
parent
489fed5530
commit
0b24745372
@ -8982,8 +8982,8 @@ nsDocShell::InternalLoad(nsIURI * aURI,
|
||||
if (!bIsJavascript) {
|
||||
MaybeInitTiming();
|
||||
}
|
||||
bool timeBeforeUnload = mTiming && aFileName.IsVoid();
|
||||
if (timeBeforeUnload) {
|
||||
bool timeBeforeUnload = aFileName.IsVoid();
|
||||
if (mTiming && timeBeforeUnload) {
|
||||
mTiming->NotifyBeforeUnload();
|
||||
}
|
||||
// Check if the page doesn't want to be unloaded. The javascript:
|
||||
@ -8999,7 +8999,7 @@ nsDocShell::InternalLoad(nsIURI * aURI,
|
||||
}
|
||||
}
|
||||
|
||||
if (timeBeforeUnload) {
|
||||
if (mTiming && timeBeforeUnload) {
|
||||
mTiming->NotifyUnloadAccepted(mCurrentURI);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user