зеркало из https://github.com/mozilla/pjs.git
Bug 635888 - Meta refresh breaks slow script warning; f=dolske r=jst
This commit is contained in:
Родитель
ab4c567f5b
Коммит
b654b5bc1c
|
@ -5119,9 +5119,9 @@ nsGlobalWindow::Print()
|
|||
printSettingsService->GetNewPrintSettings(getter_AddRefs(printSettings));
|
||||
}
|
||||
|
||||
EnterModalState();
|
||||
nsCOMPtr<nsIDOMWindow> callerWin = EnterModalState();
|
||||
webBrowserPrint->Print(printSettings, nsnull);
|
||||
LeaveModalState(nsnull);
|
||||
LeaveModalState(callerWin);
|
||||
|
||||
PRBool savePrintSettings =
|
||||
nsContentUtils::GetBoolPref("print.save_print_settings", PR_FALSE);
|
||||
|
@ -6480,8 +6480,6 @@ nsGlobalWindow::LeaveModalState(nsIDOMWindow *aCallerWin)
|
|||
}
|
||||
}
|
||||
|
||||
JSContext *cx = nsContentUtils::GetCurrentJSContext();
|
||||
|
||||
if (aCallerWin) {
|
||||
nsCOMPtr<nsIScriptGlobalObject> sgo(do_QueryInterface(aCallerWin));
|
||||
nsIScriptContext *scx = sgo->GetContext();
|
||||
|
@ -6833,7 +6831,7 @@ nsGlobalWindow::ShowModalDialog(const nsAString& aURI, nsIVariant *aArgs,
|
|||
|
||||
options.AppendLiteral(",scrollbars=1,centerscreen=1,resizable=0");
|
||||
|
||||
EnterModalState();
|
||||
nsCOMPtr<nsIDOMWindow> callerWin = EnterModalState();
|
||||
nsresult rv = OpenInternal(aURI, EmptyString(), options,
|
||||
PR_FALSE, // aDialog
|
||||
PR_TRUE, // aContentModal
|
||||
|
@ -6843,7 +6841,7 @@ nsGlobalWindow::ShowModalDialog(const nsAString& aURI, nsIVariant *aArgs,
|
|||
GetPrincipal(), // aCalleePrincipal
|
||||
nsnull, // aJSCallerContext
|
||||
getter_AddRefs(dlgWin));
|
||||
LeaveModalState(nsnull);
|
||||
LeaveModalState(callerWin);
|
||||
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ nsAutoWindowStateHelper::nsAutoWindowStateHelper(nsIDOMWindow *aWindow)
|
|||
nsCOMPtr<nsPIDOMWindow> window(do_QueryInterface(aWindow));
|
||||
|
||||
if (window) {
|
||||
window->EnterModalState();
|
||||
mCallerWindow = window->EnterModalState();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,7 @@ nsAutoWindowStateHelper::~nsAutoWindowStateHelper()
|
|||
nsCOMPtr<nsPIDOMWindow> window(do_QueryInterface(mWindow));
|
||||
|
||||
if (window) {
|
||||
window->LeaveModalState(nsnull);
|
||||
window->LeaveModalState(mCallerWindow);
|
||||
}
|
||||
|
||||
if (mDefaultEnabled) {
|
||||
|
|
|
@ -62,6 +62,7 @@ protected:
|
|||
PRBool DispatchCustomEvent(const char *aEventName);
|
||||
|
||||
nsIDOMWindow *mWindow;
|
||||
nsCOMPtr<nsIDOMWindow> mCallerWindow;
|
||||
PRBool mDefaultEnabled;
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче