Closed
Bug 37370
Opened 25 years ago
Closed 20 years ago
Switch command-line-handler to use category manager instead of a ProgID naming scheme.
Categories
(Core Graveyard :: Cmd-line Features, defect, P3)
Core Graveyard
Cmd-line Features
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.7beta
People
(Reporter: mj, Assigned: benjamin)
Details
(Keywords: arch)
Currently a command-line-argument-handler component needs to have a specific
ProgID for the command-line handler to be able to find it.
The jsconsole command-line-argument-handler for example _has_ to be named
'component://netscape/commandlinehandler/general-startup-jsconsole'. See bug
#37275 for more info on why this is now regarded as wrong.
Instead, a command-line-argument0handler needs to register itself with the
category manager. JS example:
var catman = Components.classes['mozilla.categorymanager.1']
.getService(Components.interfaces.nsICategoryManager);
catman.addCategoryEntry('command-line-argument-handlers', 'jsconsole',
JSCONSOLESERVICE_PROGID, true, true);
Where JSCONSOLESERVICE_PROGID can be any string, but preferably conforming to
the new naming scheme. I choose 'org.mozilla.general-startup.jsconsole.1' for
now.
I realize that the category manager is being used now as well, just not in the
way the IDL states it should be used.
Comment 2•25 years ago
|
||
moving to browser product and adding arch keyword
Component: Misc → xpidl
Keywords: arch
Product: Architecture → Browser
QA Contact: nobody → leger
Version: 5.0 → other
Comment 5•25 years ago
|
||
accepting all "future" bugs to get them off my "new" bug radar.
Status: NEW → ASSIGNED
| Assignee | ||
Comment 6•22 years ago
|
||
Does this really belong in the "XPIDL" component?
Assignee: sspitzer → nobody
Status: ASSIGNED → NEW
Component: xpidl → XP Apps: Cmd-line Features
QA Contact: mike+mozilla → bugzilla
| Assignee | ||
Updated•21 years ago
|
Assignee: nobody → bsmedberg
Target Milestone: Future → mozilla1.7beta
| Assignee | ||
Comment 7•20 years ago
|
||
This got fixed with bug 276588.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•