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
|
bool
|
||||||
nsGlobalWindow::AreDialogsEnabled()
|
nsGlobalWindow::AreDialogsEnabled()
|
||||||
{
|
{
|
||||||
|
MOZ_ASSERT(IsOuterWindow());
|
||||||
|
|
||||||
nsGlobalWindow *topWindow = GetScriptableTop();
|
nsGlobalWindow *topWindow = GetScriptableTop();
|
||||||
if (!topWindow) {
|
if (!topWindow) {
|
||||||
NS_ERROR("AreDialogsEnabled() called without a top window?");
|
NS_ERROR("AreDialogsEnabled() called without a top window?");
|
||||||
|
@ -563,6 +563,7 @@ public:
|
|||||||
// (alert, prompt, confirm) are currently allowed in this window.
|
// (alert, prompt, confirm) are currently allowed in this window.
|
||||||
void EnableDialogs();
|
void EnableDialogs();
|
||||||
void DisableDialogs();
|
void DisableDialogs();
|
||||||
|
// Outer windows only.
|
||||||
bool AreDialogsEnabled();
|
bool AreDialogsEnabled();
|
||||||
|
|
||||||
nsIScriptContext *GetContextInternal()
|
nsIScriptContext *GetContextInternal()
|
||||||
|
Loading…
Reference in New Issue
Block a user