Bug 950930 - Don't run scripts without mBoundElement. r=bz
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Tue, 17 Dec 2013 11:46:33 -0500
changeset 160798 d58545aaeab96447dd27382cad6ee80a9369e0a3
parent 160797 77e658ad2c2630b3f180e9a13e28000285155a87
child 160861 f678b20219e5dec371d1efc1de6eef45b04863a9
push id25853
push userryanvm@gmail.com
push dateTue, 17 Dec 2013 16:46:40 +0000
treeherdermozilla-central@d58545aaeab9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs950930
milestone29.0a1
first release with
nightly linux32
d58545aaeab9 / 29.0a1 / 20131217084757 / files
nightly linux64
d58545aaeab9 / 29.0a1 / 20131217084757 / files
nightly mac
d58545aaeab9 / 29.0a1 / 20131217084757 / files
nightly win32
d58545aaeab9 / 29.0a1 / 20131217084757 / files
nightly win64
d58545aaeab9 / 29.0a1 / 20131217084757 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 950930 - Don't run scripts without mBoundElement. r=bz
content/xbl/src/nsXBLBinding.cpp
--- a/content/xbl/src/nsXBLBinding.cpp
+++ b/content/xbl/src/nsXBLBinding.cpp
@@ -1077,17 +1077,17 @@ nsXBLBinding::DoInitJSClass(JSContext *c
   }
 
   return NS_OK;
 }
 
 bool
 nsXBLBinding::AllowScripts()
 {
-  return mPrototypeBinding->GetAllowScripts();
+  return mBoundElement && mPrototypeBinding->GetAllowScripts();
 }
 
 nsXBLBinding*
 nsXBLBinding::RootBinding()
 {
   if (mNextBinding)
     return mNextBinding->RootBinding();