Bug 1342144 - Revert version parameters in test_ext_jsversion.html. r=kmag
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Fri, 24 Feb 2017 20:53:05 +0900
changeset 373978 afe09cddd8d30b7c40d6a7fd3c2f199646a952f0
parent 373977 5b22d7dc3adfcccf850ae8145f60abe67c42cb10
child 373979 bf792b35653d5193f396c55abe386f9a57c53749
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskmag
bugs1342144
milestone54.0a1
Bug 1342144 - Revert version parameters in test_ext_jsversion.html. r=kmag This file ensures that versioned JavaScript does NOT work in WebExtensions. So the version parameter is actually required. MozReview-Commit-ID: Ge5lndjxGdK
toolkit/components/extensions/test/mochitest/test_ext_jsversion.html
--- a/toolkit/components/extensions/test/mochitest/test_ext_jsversion.html
+++ b/toolkit/components/extensions/test/mochitest/test_ext_jsversion.html
@@ -24,17 +24,17 @@ add_task(function* test_versioned_js() {
     manifest: {
       "background": {"page": "background.html"},
     },
 
     files: {
       "background.html": `
         <meta charset="utf-8">
         ${script('src="background.js" type="application/javascript"')}
-        ${script('src="background-1.js" type="application/javascript"')}
+        ${script('src="background-1.js" type="application/javascript;version=1.8"')}
         ${script('src="background-2.js" type="application/javascript;version=latest"')}
         ${script('src="background-3.js" type="application/javascript"')}
       `,
 
       "background.js": function() {
         window.reportResult = msg => {
           browser.test.assertEq(
             msg, "background-script-3",