Closed
Bug 475930
Opened 16 years ago
Closed 16 years ago
Improvements to protocol registration
Categories
(Mozilla Labs :: Prism, defect)
Mozilla Labs
Prism
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: matthew.gertner, Assigned: matthew.gertner)
Details
Attachments
(2 files)
5.21 KB,
patch
|
Details | Diff | Splinter Review | |
5.21 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
Currently an application that handles a protocol scheme needs to call nsIPlatformGlue.registerProtocolHandler every time it runs. This is because the factory has to be registered with Mozilla and the callback (if any) needs to be set. There are a number of problems with this. For one thing, the application doesn't necessarily know whether it should be registering or not (e.g. if the registration is triggered by some user action). Also, on Vista this causes an alert to come up since the registry has to be changed every time.
I think the correct solution is to have Prism go ahead and register the protocol factory with Mozilla automatically. The callback should be set using a separate API that can be safely called on each run. The app doesn't need to check whether to register the callback since doing so when the protocol handler isn't registered is a noop anyway.
Assignee | ||
Comment 1•16 years ago
|
||
Attachment #359499 -
Flags: review?(mark.finkle)
Assignee | ||
Updated•16 years ago
|
Attachment #359499 -
Attachment is patch: true
Attachment #359499 -
Attachment mime type: application/octet-stream → text/plain
Assignee | ||
Comment 2•16 years ago
|
||
Attachment #359500 -
Flags: review?(mark.finkle)
Updated•16 years ago
|
Attachment #359499 -
Flags: review?(mark.finkle)
Comment 3•16 years ago
|
||
Comment on attachment 359500 [details] [diff] [review]
Sorry for bug spam, small typo in previous patch (aesthetic effect only but still)
Needs documentation
Attachment #359500 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 4•16 years ago
|
||
Sending runtime/components/public/nsIPlatformGlue.idl
Sending runtime/components/src/nsPlatformGlue.js
Transmitting file data ..
Committed revision 21920.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•