From 5e64c1ea01fb19c5dee5503fd2ae686a745011eb Mon Sep 17 00:00:00 2001 From: "timeless@mozdev.org" Date: Mon, 13 Dec 2010 17:28:38 +0100 Subject: [PATCH] Bug 618118 - Crash when uninstalling an add-on with bad bootstrap.js [@ JSCompartment::wrap ]. r=jst a=b --- js/src/xpconnect/loader/mozJSSubScriptLoader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/js/src/xpconnect/loader/mozJSSubScriptLoader.cpp b/js/src/xpconnect/loader/mozJSSubScriptLoader.cpp index d5d42c6ebb20..03d86272c605 100644 --- a/js/src/xpconnect/loader/mozJSSubScriptLoader.cpp +++ b/js/src/xpconnect/loader/mozJSSubScriptLoader.cpp @@ -401,6 +401,7 @@ mozJSSubScriptLoader::LoadSubScript (const PRUnichar * aURL } } + if (ok) { JSAutoEnterCompartment rac;