Bug 778851 - Disable E4X in content by default.
authorJason Orendorff <jorendorff@mozilla.com>
Sun, 26 Aug 2012 09:04:33 -0500
changeset 105514 6564c3183a04f13151ab20ad649cd57680579f64
parent 105513 7dd78bf25baae3bc8fe9df9f993f03ccbe2d9111
child 105515 2b9625825da7911aba106256c48fa6750fb9cd24
child 105518 029b553451eb52eb3a36a16d4160a9c417fd4bac
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
bugs778851
milestone17.0a1
Bug 778851 - Disable E4X in content by default.
js/xpconnect/crashtests/603858-1.html
modules/libpref/src/init/all.js
--- a/js/xpconnect/crashtests/603858-1.html
+++ b/js/xpconnect/crashtests/603858-1.html
@@ -1,7 +1,8 @@
 <!DOCTYPE html>
 <html class="reftest-wait">
 <script>
-setTimeout(XML, 0);
+if (typeof window.XML === 'function')
+    setTimeout(XML, 0);
 setTimeout(function(){document.documentElement.removeAttribute("class");}, 0);
 </script>
 </html>
--- a/modules/libpref/src/init/all.js
+++ b/modules/libpref/src/init/all.js
@@ -697,17 +697,17 @@ pref("javascript.options.strict",       
 pref("javascript.options.strict.debug",     true);
 #endif
 pref("javascript.options.relimit",          true);
 pref("javascript.options.methodjit.content", true);
 pref("javascript.options.methodjit.chrome",  true);
 pref("javascript.options.pccounts.content", false);
 pref("javascript.options.pccounts.chrome",  false);
 pref("javascript.options.methodjit_always", false);
-pref("javascript.options.xml.content", true);
+pref("javascript.options.xml.content", false);
 pref("javascript.options.xml.chrome", true);
 pref("javascript.options.jit_hardening", true);
 pref("javascript.options.typeinference", true);
 // This preference limits the memory usage of javascript.
 // If you want to change these values for your device,
 // please find Bug 417052 comment 17 and Bug 456721
 // Comment 32 and Bug 613551.
 pref("javascript.options.mem.high_water_mark", 128);