Closed Rob--W closed 11 years ago
It turns out that the data directory is empty.. Hmmm.
$ cfx --version
Add-on SDK 1.14 (39467a307f58b63c1907c8d383e48475c98b0624)
$ 7z l ffadd.xpi |grep data
1979-12-31 23:00:00 D.... 0 0 resources/addon-sdk/data
2013-04-15 18:28:06 ..... 2608 1044 resources/addon-sdk/lib/sdk/io/data.js
1979-12-31 23:00:00 D.... 0 0 resources/browser-action/data
2013-07-12 15:02:40 ..... 545 338 resources/browser-action/lib/self-data.js
1979-12-31 23:00:00 D.... 0 0 resources/ffadd/data
Before implementing the solution, I chatted with an engineer from the Add-on SDK at #jetpack. Here's a transcript, for future reference: http://pastebin.com/raw.php?i=J1mnhYUw
Noteworthy: Comment 2 at https://bugzilla.mozilla.org/show_bug.cgi?id=892977 says:
In bug 915376 we will drop our traditional third-party packages support in favor of npm style 3rd party packages, so even if this bug is real I don't think that we should bother fixing it at this point.
The same add-on (for code, see README.md), functions correctly when run using
cfx run
orcfx test
, but after packaging it usingcfx xpi
, the icons (and probably other button resources) are missing.Expected appearance (
cfx run
)Actual appearance (installed addon created using
cfx xpi
):Steps to reproduce
First, create an add-on:
Then, create a temporary Firefox profile and launch it:
Enable logging by visiting
about:config
and settingextensions.logging.enabled
totrue
.Observe the following log in stdout (the last errors are also found in the JSconsole):