summaryrefslogtreecommitdiff
path: root/extensions/cookie
diff options
context:
space:
mode:
authorPale Moon <git-repo@palemoon.org>2014-08-25 00:03:35 +0200
committerPale Moon <git-repo@palemoon.org>2014-08-25 00:03:35 +0200
commit866d72c9032cc30753c7471ad68dc76efc6199cd (patch)
treeb8a753f51de54c6d89ddbea42663f057fd7ec18b /extensions/cookie
parent35fdc09dcbe14a602a6c91d383c68dbaf83a6801 (diff)
downloadpalemoon-gre-866d72c9032cc30753c7471ad68dc76efc6199cd.tar.gz
Resource leak fix.
Prevent accumulation of about:blank windows when cookies policy set to "Keep until: I close Firefox"
Diffstat (limited to 'extensions/cookie')
-rw-r--r--extensions/cookie/nsCookiePromptService.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/cookie/nsCookiePromptService.cpp b/extensions/cookie/nsCookiePromptService.cpp
index b2e325dee..6283c7b67 100644
--- a/extensions/cookie/nsCookiePromptService.cpp
+++ b/extensions/cookie/nsCookiePromptService.cpp
@@ -13,6 +13,7 @@
#include "nsString.h"
#include "nsIDialogParamBlock.h"
#include "nsIMutableArray.h"
+#include "mozilla/dom/ScriptSettings.h"
/****************************************************************
************************ nsCookiePromptService *****************
@@ -71,6 +72,8 @@ nsCookiePromptService::CookieDialog(nsIDOMWindow *aParent,
parent = do_QueryInterface(privateParent);
}
+ mozilla::dom::AutoNoJSAPI nojsapi;
+
// The cookie dialog will be modal for the root chrome window rather than the
// tab containing the permission-requesting page. This removes confusion
// about which monitor is displaying the dialog (see bug 470356), but also