Closed
Bug 974295
Opened 11 years ago
Closed 11 years ago
No getPrefsByName replacement in nsIContentPrefService2
Categories
(Toolkit :: General, defect)
Toolkit
General
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: darktrojan, Assigned: darktrojan)
References
Details
(Keywords: addon-compat, dev-doc-needed)
Attachments
(1 file)
5.43 KB,
patch
|
adw
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•11 years ago
|
||
I shall fix this bug a second time!
Comment 2•11 years ago
|
||
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 3•11 years ago
|
||
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.
Assignee | ||
Comment 4•11 years ago
|
||
Flags: in-testsuite+
Assignee | ||
Updated•11 years ago
|
Keywords: dev-doc-needed
Comment 5•11 years ago
|
||
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.
Description
•