Bug 1342760 - Remove remaining version parameters of script elements from dom/. r?smaug draft
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Sun, 26 Feb 2017 21:41:01 +0900
changeset 489843 96afc864c15937b3546bd820cf1daed331ac4c0b
parent 489774 750a58b1d258a7112d3def04940ad3e610b19747
child 547090 6bf64ccc5608a50dd009c798769c869590d49c55
push id46916
push userVYV03354@nifty.ne.jp
push dateSun, 26 Feb 2017 12:42:58 +0000
reviewerssmaug
bugs1342760
milestone54.0a1
Bug 1342760 - Remove remaining version parameters of script elements from dom/. r?smaug MozReview-Commit-ID: DAVs5oVe5R6
dom/browser-element/mochitest/createNewTest.py
dom/html/MediaDocument.cpp
--- a/dom/browser-element/mochitest/createNewTest.py
+++ b/dom/browser-element/mochitest/createNewTest.py
@@ -16,17 +16,17 @@ html_template = textwrap.dedent("""\
     <html>
     <head>
       <title>Test for Bug {bug}</title>
       <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
       <script type="application/javascript" src="browserElementTestHelpers.js"></script>
       <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     </head>
     <body>
-    <script type="application/javascript;version=1.7" src="browserElement_{test}.js">
+    <script type="application/javascript" src="browserElement_{test}.js">
     </script>
     </body>
     </html>""")
 
 # Note: Curly braces are escaped as "{{".
 js_template = textwrap.dedent("""\
     /* Any copyright is dedicated to the public domain.
        http://creativecommons.org/publicdomain/zero/1.0/ */
--- a/dom/html/MediaDocument.cpp
+++ b/dom/html/MediaDocument.cpp
@@ -344,17 +344,17 @@ MediaDocument::LinkScript(const nsAStrin
   nodeInfo = mNodeInfoManager->GetNodeInfo(nsGkAtoms::script, nullptr,
                                            kNameSpaceID_XHTML,
                                            nsIDOMNode::ELEMENT_NODE);
 
   RefPtr<nsGenericHTMLElement> script = NS_NewHTMLScriptElement(nodeInfo.forget());
   NS_ENSURE_TRUE(script, NS_ERROR_OUT_OF_MEMORY);
 
   script->SetAttr(kNameSpaceID_None, nsGkAtoms::type,
-                  NS_LITERAL_STRING("text/javascript;version=1.8"), true);
+                  NS_LITERAL_STRING("text/javascript"), true);
 
   script->SetAttr(kNameSpaceID_None, nsGkAtoms::src, aScript, true);
 
   Element* head = GetHeadElement();
   return head->AppendChildTo(script, false);
 }
 
 void