Closed Bug 569141 Opened 14 years ago Closed 14 years ago

New Add-ons Manager doesn't obey target platform restrictions

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
major

Tracking

()

VERIFIED DUPLICATE of bug 558834

People

(Reporter: whimboo, Unassigned)

Details

(Keywords: regression, Whiteboard: [AddonsRewrite])

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a5pre) Gecko/20100530 Minefield/3.7a5pre (.NET CLR 3.5.30729)

If an add-on is only targeted for a specific platform it should not be installed on other platforms. Right now the Add-ons Manager always installs those extensions on every platform.

Take this example:

<?xml version="1.0" encoding="UTF-8"?>
<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>test@example.org</em:id>
    <em:name>Test Extension</em:name>
    <em:version>0.1</em:version>
    <em:creator>Henrik Skupin</em:creator>
    <em:description>Just a test</em:description>
    <em:homepageURL>http://www.mozilla.org</em:homepageURL>
    <em:targetPlatform>Darwin_x86-gcc3</em:targetPlatform>
    <em:targetPlatform>Darwin_ppc-gcc3</em:targetPlatform>
    <em:targetApplication>
      <Description>
        <em:id>{657ba0a0-6c18-11df-be2b-0800200c9a66}</em:id> <!-- firefox -->
        <em:minVersion>1.0</em:minVersion>
        <em:maxVersion>4.*</em:maxVersion>
      </Description>
    </em:targetApplication>
  </Description>
</RDF>

The Add-ons manager has to check the platform the user tries to install the extension. If it doesn't match the limitations no installation should happen.
Flags: in-testsuite?
Flags: in-litmus?
Whiteboard: [AddonsRewrite]
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
blocking2.0: ? → ---
Status: RESOLVED → VERIFIED
Flags: in-testsuite?
Flags: in-litmus?
You need to log in before you can comment on or make changes to this bug.