Closed Bug 731855 Opened 8 years ago Closed 8 years ago

ContactService.jsm not found at chrome/content/shell.js:19 when running desktop b2g client

Categories

(Firefox OS Graveyard :: General, defect)

x86
macOS
defect
Not set

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: djf, Assigned: gwagner)

References

Details

Attachments

(1 file)

When I run the desktop b2g client, I get no homescreen and the --jsconsole shows this error:

Error: uncaught exception: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIXPCComponents_Utils.import]"  nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)"  location: "JS frame :: chrome://browser/content/shell.js :: <TOP_LEVEL> :: line 19"  data: no]

Line 19 of shell.js is:

  Cu.import('resource://gre/modules/ContactService.jsm');

Fabrice says he thinks it is a packaging issue.
According to http://mxr.mozilla.org/mozilla-central/source/dom/contacts/Makefile.in#27 we only package the jsm when building for gonk.

Gregor, what's the best way to fix this? I understand we don't want to ship this with Firefox desktop, but we should enable it whenever we compile with --application=b2g
Assignee: nobody → anygregor
Blocks: 674720
Attachment #602025 - Flags: review?(fabrice)
Attachment #602025 - Flags: review?(fabrice) → review+
the attachment fixes the problem for me.
https://hg.mozilla.org/mozilla-central/rev/7834b28ea422
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.