Bug 830665 - Use the latest JS version by default in XUL. r=jonas
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Fri, 08 Feb 2013 20:49:28 +0900
changeset 131943 4c82d38cb905c727a7048ec8f647521db372ff38
parent 131942 d643b3d246fa2c92a950fd80116a98eb7102e74f
child 131944 8ee3745570f7a1c2265b78c1c3c4d9b51e36ce50
push id317
push userbbajaj@mozilla.com
push dateTue, 07 May 2013 01:20:33 +0000
treeherdermozilla-release@159a10910249 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjonas
bugs830665
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 830665 - Use the latest JS version by default in XUL. r=jonas
content/xul/document/src/nsXULContentSink.cpp
--- a/content/xul/document/src/nsXULContentSink.cpp
+++ b/content/xul/document/src/nsXULContentSink.cpp
@@ -836,17 +836,17 @@ XULContentSinkImpl::OpenTag(const PRUnic
     return NS_OK;
 }
 
 nsresult
 XULContentSinkImpl::OpenScript(const PRUnichar** aAttributes,
                                const uint32_t aLineNumber)
 {
   uint32_t langID = nsIProgrammingLanguage::JAVASCRIPT;
-  uint32_t version = 0;
+  uint32_t version = JSVERSION_LATEST;
   nsresult rv;
 
   // Look for SRC attribute and look for a LANGUAGE attribute
   nsAutoString src;
   while (*aAttributes) {
       const nsDependentString key(aAttributes[0]);
       if (key.EqualsLiteral("src")) {
           src.Assign(aAttributes[1]);