Closed
Bug 341270
Opened 19 years ago
Closed 19 years ago
preferences;1 is a deprecated contract ID
Categories
(Core Graveyard :: Profile: Roaming, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: Biesinger, Assigned: sciguyryan)
References
Details
Attachments
(2 files, 2 obsolete files)
2.55 KB,
patch
|
BenB
:
review+
Biesinger
:
superreview+
|
Details | Diff | Splinter Review |
18.60 KB,
patch
|
bc
:
review+
bc
:
superreview+
|
Details | Diff | Splinter Review |
"@mozilla.org/preferences;1" refers to nsPref, the class for the deprecated nsIPref interface. callers should use preferences-service when using the newer nsIPrefService/nsIPrefBranch interfaces.
This affects:
/extensions/sroaming/resources/content/prefs/files.js, line 80 -- var prefs = Components.classes["@mozilla.org/preferences;1"]
/extensions/sroaming/resources/content/prefs/all.js, line 147 -- var pref = Components.classes["@mozilla.org/preferences;1"]
/extensions/sroaming/resources/content/prefs/top.js, line 134 -- var prefBranch = Components.classes["@mozilla.org/preferences;1"]
Comment 1•19 years ago
|
||
These classes seem to use the nsIPrefBranch as they are supposed to. It's not the
Components.classes["@mozilla.org/preferences;1"] part that matters, "@mozilla.org/preferences;1" implements both the old nsIPref and the newer versions (http://www.xulplanet.com/references/xpcomref/comps/c_preferences1.html)
I'm not completely sure (I got this off the "Good First Bugs" page), but I think that there aren't any problems here.
Comment 2•19 years ago
|
||
Sorry for the double post, I should have read the report more carefully. I did not see the note about the preferences-service contract id. Whoops.
Comment 3•19 years ago
|
||
Sorry again about my confusion.
Assignee | ||
Comment 4•19 years ago
|
||
Patch Part 1 v1
This patches the following:
* /toolkit/content/customizeCharset.js
* /extensions/sroaming/resources/content/prefs/top.js
* /extensions/sroaming/resources/content/prefs/files.js
* /extensions/sroaming/resources/content/prefs/all.js
Patch for the tests coming up.
Attachment #231340 -
Attachment is obsolete: true
Attachment #242794 -
Flags: superreview?(cbiesinger)
Attachment #242794 -
Flags: review?
Comment 5•19 years ago
|
||
Comment on attachment 242794 [details] [diff] [review]
Patch Part 1 v1
assuming this works, r=BenB
Attachment #242794 -
Flags: review? → review+
Reporter | ||
Comment 6•19 years ago
|
||
Comment on attachment 242794 [details] [diff] [review]
Patch Part 1 v1
the customizeCharset change is wrong, but sr=biesi on the rest
Attachment #242794 -
Flags: superreview?(cbiesinger) → superreview+
Assignee | ||
Comment 7•19 years ago
|
||
Removed the toolkit changes as apparently it should still use nsIPref for now. Thanks for pointing that out Christian :)
Assignee: nobody → sciguyryan+bugzilla
Attachment #242794 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #242796 -
Flags: superreview?(cbiesinger)
Attachment #242796 -
Flags: review?(ben.bucksch)
Reporter | ||
Comment 8•19 years ago
|
||
(In reply to comment #1)
> I'm not completely sure (I got this off the "Good First Bugs" page), but I
> think that there aren't any problems here.
The problem is that "@mozilla.org/preferences;1" will go away once nsIPref is killed. There is therefore a problem here.
Assignee | ||
Comment 9•19 years ago
|
||
Patch v1.
Changing instances of |@mozilla.org/preferences;1| in the js tests too |@mozilla.org/preferences-service;1|. Not sure if this is correct but here is a patch in case its needed.
Attachment #242802 -
Flags: superreview?(bclary)
Attachment #242802 -
Flags: review?(bclary)
Updated•19 years ago
|
Attachment #242796 -
Flags: review?(ben.bucksch) → review+
Reporter | ||
Updated•19 years ago
|
Attachment #242796 -
Flags: superreview?(cbiesinger) → superreview+
Assignee | ||
Updated•19 years ago
|
Whiteboard: [checkin needed]
Comment 10•19 years ago
|
||
Comment on attachment 242802 [details] [diff] [review]
Patch Part 2 v1 (checked in)
sr isn't necessary for the js tests unless you want to ask brendan or mrbkap or igor. This looks good. Thanks. Let me know if you want me to check it in for you.
Attachment #242802 -
Flags: superreview?(bclary)
Attachment #242802 -
Flags: superreview+
Attachment #242802 -
Flags: review?(bclary)
Attachment #242802 -
Flags: review+
Assignee | ||
Comment 11•19 years ago
|
||
(In reply to comment #10)
> (From update of attachment 242802 [details] [diff] [review] [edit])
> sr isn't necessary for the js tests unless you want to ask brendan or mrbkap or
> igor. This looks good. Thanks. Let me know if you want me to check it in for
> you.
>
Thanks and please do. I _don't_ think I missed any but I'll check to be sure later.
Reporter | ||
Comment 12•19 years ago
|
||
Comment on attachment 242796 [details] [diff] [review]
Part 1 for checkin. (checked in)
out of curiosity, how did you generate this patch? it doesn't end in a newline, leading to a warning from "patch".
anyway, checked in.
Checking in extensions/sroaming/resources/content/prefs/all.js;
/cvsroot/mozilla/extensions/sroaming/resources/content/prefs/all.js,v <-- all.js
new revision: 1.15; previous revision: 1.14
done
Checking in extensions/sroaming/resources/content/prefs/files.js;
/cvsroot/mozilla/extensions/sroaming/resources/content/prefs/files.js,v <-- files.js
new revision: 1.4; previous revision: 1.3
done
Checking in extensions/sroaming/resources/content/prefs/top.js;
/cvsroot/mozilla/extensions/sroaming/resources/content/prefs/top.js,v <-- top.js
new revision: 1.5; previous revision: 1.4
done
Attachment #242796 -
Attachment description: Part 1 for checkin. → Part 1 for checkin. (checked in)
Reporter | ||
Comment 13•19 years ago
|
||
Comment on attachment 242802 [details] [diff] [review]
Patch Part 2 v1 (checked in)
hm, this patch, on the other hand, is fine (and with unix linebreaks)...
checked in too
Attachment #242802 -
Attachment description: Patch Part 2 v1 → Patch Part 2 v1 (checked in)
Reporter | ||
Updated•19 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Target Milestone: --- → mozilla1.9alpha
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•