Closed Bug 413954 Opened 17 years ago Closed 17 years ago

nsHandlerService.store fails to remove applications

Categories

(Core Graveyard :: File Handling, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 file)

Attached patch patch v1Splinter Review
In _storePossibleHandlers, the method _removeTarget is called with 3 arguments, but it expects only 2. The patch adds a _removeResourceAssertion method that removes a specific target. It also renames _addResourceTarget to _addResourceAssertion, per Myk's suggestion. Thanks for the help on this Myk!
Attachment #299122 - Flags: superreview?(bzbarsky)
Attachment #299122 - Flags: review?(myk)
Assignee: nobody → florian
Comment on attachment 299122 [details] [diff] [review] patch v1 Looks great, r=myk
Attachment #299122 - Flags: review?(myk) → review+
Comment on attachment 299122 [details] [diff] [review] patch v1 >Index: uriloader/exthandler/nsHandlerService.js > /** >+ * Remove a property of an RDF source to a resource target. >+ * >+ * @param sourceURI {string} the URI of the source >+ * @param propertyURI {string} the URI of the property >+ * @param targetURI {string} the URI of the target >+ */ >+ _removeResourceAssertion: function HS__removeResourceAssertion(sourceURI, >+ propertyURI, >+ targetURI) { Erm, just one thing: the description of this method should be: Remove an assertion with a resource target.
I'm sorry, I can't review this. I neither understand what the original code is doing, nor what this patch is doing. dmose would make a far better sr for this stuff, no?
Comment on attachment 299122 [details] [diff] [review] patch v1 sr=dmose
Attachment #299122 - Flags: superreview?(bzbarsky) → superreview+
Attachment #299122 - Flags: approval1.9?
Blocks: 402153
Status: NEW → ASSIGNED
Comment on attachment 299122 [details] [diff] [review] patch v1 a=beltzner for 1.9
Attachment #299122 - Flags: approval1.9? → approval1.9+
Checking in uriloader/exthandler/nsHandlerService.js; /cvsroot/mozilla/uriloader/exthandler/nsHandlerService.js,v <-- nsHandlerService.js new revision: 1.18; previous revision: 1.17 done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: