Closed Bug 608762 Opened 14 years ago Closed 13 years ago

Editor pages use broken InstallTrigger.install call to install add-ons

Categories

(addons.mozilla.org Graveyard :: Admin/Editor Tools, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 647309
4.x (triaged)

People

(Reporter: mossop, Unassigned)

References

()

Details

Clicking the ALL link on the editor tools for an add-on attempts to run the following:

InstallTrigger.install('https://addons.mozilla.org/en-US/firefox/downloads/file/102295/outwit_pack-1.0.0.1-fx.xpi', 'OutWit Hub 1.0.0.1', '', 'sha256:c750017b572ebc6417324196f216a13216e5f65de6abd8b1a5a1ce07618ccfdc');

This is broken. You actually want:

InstallTrigger.install({
  'OutWit Hub 1.0.0.1': {
    URL: 'https://addons.mozilla.org/en-US/firefox/downloads/file/102295/outwit_pack-1.0.0.1-fx.xpi'
    Hash: 'sha256:c750017b572ebc6417324196f216a13216e5f65de6abd8b1a5a1ce07618ccfdc'
  }
});

On Firefox 3.6 we're falling back to using the href of the link so installation succeeds though it uses no hash for verification. On 4.0 we have a bug where the InstallTrigger implementation is attempting to do some very strange things breaking installation from here right now (bug 608680).
Your changes are backwards compatible with current browsers, right?
The InstallTrigger.install call you have on the site at the moment doesn't work in any browsers anywhere ever. The version I have suggested as a replacement should work in all Firefoxes ever made. So I guess yes.
perfect! :)
Target Milestone: --- → 5.12.4
Target Milestone: 5.12.4 → 4.x (triaged)
forward duping because that one is already assigned
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.