Extension Blocklisting:Code Design: Difference between revisions

Jump to navigation Jump to search
m
Line 9: Line 9:
== Blacklist syntax ==
== Blacklist syntax ==


* Blacklist file has simple xml syntax:
* Blacklist file has a flexible xml syntax:


  <entryType> <extension ID> [<minVersion> <maxVersion>]
  <entryType> <extension ID> [<minVersion> <maxVersion>]
Line 22: Line 22:
<pre><blacklist xmlns="http://www.mozilla.org/2006/blacklist">
<pre><blacklist xmlns="http://www.mozilla.org/2006/blacklist">
   <emItems>
   <emItems>
     <emItem id="extension_1@domain">
     <emItem id="item_1@domain">
       <versionRange minVersion="1.0" maxVersion="2.0.*">
       <versionRange minVersion="1.0" maxVersion="2.0.*">
         <targetApplication id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}">
         <targetApplication id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}">
Line 41: Line 41:
         </targetApplication>
         </targetApplication>
     </emItem>
     </emItem>
     <emItem id="extension_2@domain">
     <emItem id="item_2@domain">
       <versionRange minVersion="3.1" maxVersion="4.*"/>
       <versionRange minVersion="3.1" maxVersion="4.*"/>
     </emItem>
     </emItem>
     <emItem id="extension_3@domain"/>
     <emItem id="item_3@domain">
      <versionRange>
        <targetApplication id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}">
          <versionRange minVersion="1.5" maxVersion="1.5.*"/>
        </targetApplication>
      </versionRange>
    </emItem>
    <emItem id="item_4@domain"/>
   </emItems>
   </emItems>
</blacklist></pre>
</blacklist></pre>
Confirmed users
1,041

edits

Navigation menu