Closed Bug 763006 Opened 12 years ago Closed 12 years ago

XPIs don't install properly on SDK 1.9dev

Categories

(Add-on SDK Graveyard :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wbamberg, Assigned: ochameau)

References

Details

Attachments

(1 file)

Attached file fix
Create a simple add-on, build an XPI using the 1.9dev version of the SDK, and try to install it to Firefox 13 or 14(beta)

In the error console, you'll see a message like:

Timestamp: 12-06-08 11:56:33 AM
Warning: WARN addons.xpi: Exception running bootstrap method startup on jid1-whatsupboko@jetpack: [Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]"  nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)"  location: "JS frame :: resource://jid1-whatsupboko-at-jetpack/api-utils/lib/loader.js -> resource://jid1-whatsupboko-at-jetpack/api-utils/lib/system.js :: openFile :: line 28"  data: no]
Source File: resource://jid1-whatsupboko-at-jetpack/api-utils/lib/loader.js -> resource://jid1-whatsupboko-at-jetpack/api-utils/lib/system.js
Line: 28

The add-on will appear installed in the Add-on Manager, but won't work at all.

This is a regression in the new loader.

I've attached a link to Alex's pull request, which fixes the problem.
Landed:
https://github.com/mozilla/addon-sdk/commit/490f59c8a568d765eb55022eb391a405d7a8c40c

Cherry pick doesn't seem to be needed as bug 743359 doesn't appear on stab branch.
Blocks: 743359
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: