aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyPromptService.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/EphyPromptService.cpp')
-rw-r--r--embed/mozilla/EphyPromptService.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/embed/mozilla/EphyPromptService.cpp b/embed/mozilla/EphyPromptService.cpp
index 6b6abf382..1d251d051 100644
--- a/embed/mozilla/EphyPromptService.cpp
+++ b/embed/mozilla/EphyPromptService.cpp
@@ -22,6 +22,7 @@
#include "config.h"
#include "EphyPromptService.h"
+#include "AutoJSContextStack.h"
#include <nsCOMPtr.h>
#include <nsIDOMWindow.h>
@@ -483,6 +484,11 @@ Prompter::Run (PRBool *aSuccess)
}
#endif
+ nsresult rv;
+ AutoJSContextStack stack;
+ rv = stack.Init ();
+ if (NS_FAILED (rv)) return rv;
+
if (mDelay)
{
guint timeout = g_timeout_add (TIMEOUT,