mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 968804 - Part g: Add outer window assertions to AreDialogsEnabled; r=peterv
This commit is contained in:
parent
cabf378984
commit
50eed20628
@ -3071,6 +3071,8 @@ nsGlobalWindow::ShouldPromptToBlockDialogs()
|
||||
bool
|
||||
nsGlobalWindow::AreDialogsEnabled()
|
||||
{
|
||||
MOZ_ASSERT(IsOuterWindow());
|
||||
|
||||
nsGlobalWindow *topWindow = GetScriptableTop();
|
||||
if (!topWindow) {
|
||||
NS_ERROR("AreDialogsEnabled() called without a top window?");
|
||||
|
@ -563,6 +563,7 @@ public:
|
||||
// (alert, prompt, confirm) are currently allowed in this window.
|
||||
void EnableDialogs();
|
||||
void DisableDialogs();
|
||||
// Outer windows only.
|
||||
bool AreDialogsEnabled();
|
||||
|
||||
nsIScriptContext *GetContextInternal()
|
||||
|
Loading…
Reference in New Issue
Block a user