Bug 1372750 - allow generated embedded extensions to work in xpcshell tests r?kmag draft
authorRobert Helmer <rhelmer@mozilla.com>
Wed, 21 Jun 2017 12:46:57 -0700
changeset 646100 228bcdb751d5fe64d7189a50972aacc3bbab9527
parent 646099 7d98f3adcd0fc5788a7be221ef6c41165a266a1d
child 726137 a573d4e565c1af5e906ba33c7d69c0f51754d1ac
push id74005
push userrhelmer@mozilla.com
push dateMon, 14 Aug 2017 21:30:46 +0000
reviewerskmag
bugs1372750
milestone57.0a1
Bug 1372750 - allow generated embedded extensions to work in xpcshell tests r?kmag MozReview-Commit-ID: AkCnoUTldhI
toolkit/components/extensions/ExtensionTestCommon.jsm
--- a/toolkit/components/extensions/ExtensionTestCommon.jsm
+++ b/toolkit/components/extensions/ExtensionTestCommon.jsm
@@ -215,26 +215,34 @@ this.ExtensionTestCommon = class Extensi
           <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                xmlns:em="http://www.mozilla.org/2004/em-rdf#">
               <Description about="urn:mozilla:install-manifest"
                   em:id="${manifest.applications.gecko.id}"
                   em:name="${manifest.name}"
                   em:type="2"
                   em:version="${manifest.version}"
                   em:description=""
+                  em:multiprocessCompatible="true"
                   em:hasEmbeddedWebExtension="true"
                   em:bootstrap="true">
 
                   <!-- Firefox -->
                   <em:targetApplication>
                       <Description
                           em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
                           em:minVersion="51.0a1"
                           em:maxVersion="*"/>
                   </em:targetApplication>
+                  <em:targetApplication>
+                    <Description>
+                      <em:id>toolkit@mozilla.org</em:id>
+                      <em:minVersion>0</em:minVersion>
+                      <em:maxVersion>*</em:maxVersion>
+                    </Description>
+                  </em:targetApplication>
               </Description>
           </RDF>
         `,
 
         "bootstrap.js": `
           function install() {}
           function uninstall() {}
           function shutdown() {}