Open
Bug 585423
Opened 15 years ago
Updated 3 years ago
XPCOM should show a warning in the error console if a component file does not exist
Categories
(Core :: XPCOM, enhancement)
Tracking
()
NEW
People
(Reporter: Gijs, Unassigned)
Details
STR:
1. Add something like:
component {18269616-1dd2-11b2-afa8-b612439bda37} components/iamnothere.js
contract @mozilla.org/iamprettycool;1 {18269616-1dd2-11b2-afa8-b612439bda37}
category profile-after-change m-reallyiamprettycool @mozilla.org/iamprettycool;1
to chrome.manifest
Actual results:
Error in your error console saying:
"While creating services from category 'profile-after-change', could not create service for entry 'm-reallyiamprettycool', contract ID '@mozilla.org/iamprettycool;1'"
Expected results:
Errors in your error console saying:
"When trying to load component with CID '{18269616-1dd2-11b2-afa8-b612439bda37}', Firefox could not find the file 'components/iamnothere.js'. Check that the path is correct"
"While creating services from category 'profile-after-change', could not create service for entry 'm-reallyiamprettycool', contract ID '@mozilla.org/iamprettycool;1'. Are you sure the component was loaded successfully? Earlier errors might indicate what went wrong."
(note that if your component has JS errors, they will also be displayed earlier)
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•