mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
bug 306056: prevent crash calling window.stop() after window.close(). Thanks to Julien Plissonneau Duqu�ne for the original patch, r=dveditz, sr=jst, a=asa
This commit is contained in:
parent
be944cbae7
commit
d402ca281c
@ -3416,6 +3416,9 @@ nsGlobalWindow::Stop()
|
||||
FORWARD_TO_OUTER(Stop, (), NS_ERROR_NOT_INITIALIZED);
|
||||
|
||||
nsCOMPtr<nsIWebNavigation> webNav(do_QueryInterface(mDocShell));
|
||||
if (!webNav)
|
||||
return NS_OK;
|
||||
|
||||
return webNav->Stop(nsIWebNavigation::STOP_ALL);
|
||||
}
|
||||
|
||||
@ -3430,7 +3433,7 @@ nsGlobalWindow::Print()
|
||||
|
||||
nsCOMPtr<nsIPrintSettingsService> printSettingsService =
|
||||
do_GetService("@mozilla.org/gfx/printsettings-service;1");
|
||||
|
||||
|
||||
nsCOMPtr<nsIPrintSettings> printSettings;
|
||||
if (printSettingsService) {
|
||||
PRBool printSettingsAreGlobal =
|
||||
|
Loading…
Reference in New Issue
Block a user