Closed Bug 974295 Opened 11 years ago Closed 11 years ago

No getPrefsByName replacement in nsIContentPrefService2

Categories

(Toolkit :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla30

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

(Keywords: addon-compat, dev-doc-needed)

Attachments

(1 file)

From bug 699859 comment 14: > Nobody uses getPrefsByName False. This is a useful function for preference UI, maybe not in m-c, but certainly in add-ons.
Attached patch 974295-1.diffSplinter Review
I shall fix this bug a second time!
Assignee: nobody → geoff
Status: NEW → ASSIGNED
Attachment #8379477 - Flags: review?(adw)
Comment on attachment 8379477 [details] [diff] [review] 974295-1.diff Review of attachment 8379477 [details] [diff] [review]: ----------------------------------------------------------------- Thanks, and sorry for the omission. Ideally this would not duplicate code in _get and _commonGetStmt, but I think it's probably not worth refactoring them for it, and ContentPrefStore would have to be changed, too. ::: dom/interfaces/base/nsIContentPrefService2.idl @@ +69,5 @@ > > [scriptable, uuid(86279644-6b86-4875-a228-2d2ff2f3e33b)] > interface nsIContentPrefService2 : nsISupports > { > + Nit: Please remove this blank line. @@ +76,5 @@ > + * > + * @param name The preferences' name. > + * @param context The private-browsing context, if any. > + * @param callback handleResult is called once for each preference unless > + * no such preference exists, in which case handleResult no such preference exists -> no such preferences exist
Attachment #8379477 - Flags: review?(adw) → review+
Comment on attachment 8379477 [details] [diff] [review] 974295-1.diff Review of attachment 8379477 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/interfaces/base/nsIContentPrefService2.idl @@ +66,5 @@ > * > * See nsIContentPrefCallback2 below for more information about callbacks. > */ > > [scriptable, uuid(86279644-6b86-4875-a228-2d2ff2f3e33b)] Oh, this UUID needs to be updated, too. r+ with that.
Keywords: dev-doc-needed
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: