From 866d72c9032cc30753c7471ad68dc76efc6199cd Mon Sep 17 00:00:00 2001 From: Pale Moon Date: Mon, 25 Aug 2014 00:03:35 +0200 Subject: Resource leak fix. Prevent accumulation of about:blank windows when cookies policy set to "Keep until: I close Firefox" --- extensions/cookie/nsCookiePromptService.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'extensions/cookie') 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 -- cgit v1.2.3