From e0992b7ecd35cab381acd4a9266829f21b9b3054 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Thu, 14 Aug 2014 16:23:15 -0700 Subject: [PATCH] Bug 971673: Ensure mozilla::dom::ScriptSettingsStackEntry is only used as a base class: make its constructor protected. r=bholley --- dom/base/ScriptSettings.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom/base/ScriptSettings.h b/dom/base/ScriptSettings.h index 5585ce170d0..dc2ad441c81 100644 --- a/dom/base/ScriptSettings.h +++ b/dom/base/ScriptSettings.h @@ -71,12 +71,13 @@ class ScriptSettingsStackEntry { friend class ScriptSettingsStack; public: - ScriptSettingsStackEntry(nsIGlobalObject *aGlobal, bool aCandidate); ~ScriptSettingsStackEntry(); bool NoJSAPI() { return !mGlobalObject; } protected: + ScriptSettingsStackEntry(nsIGlobalObject *aGlobal, bool aCandidate); + nsCOMPtr mGlobalObject; bool mIsCandidateEntryPoint;