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)

defect

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.
moving to m18.
Target Milestone: --- → M18
moving to browser product and adding arch keyword
Component: Misc → xpidl
Keywords: arch
Product: Architecture → Browser
QA Contact: nobody → leger
Version: 5.0 → other
This doesn't seem critical to the release.
Target Milestone: M18 → Future
Updating QA Contact
QA Contact: leger → mccabe
accepting all "future" bugs to get them off my "new" bug radar.
Status: NEW → ASSIGNED
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: nobody → bsmedberg
Target Milestone: Future → mozilla1.7beta
This got fixed with bug 276588.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
QA Contact: bugzilla → cmd-line
You need to log in before you can comment on or make changes to this bug.