Closed
Bug 857429
Opened 12 years ago
Closed 12 years ago
Remove and deprecate methods in PlacesUtils.backups, depending on add-on usage
Categories
(Toolkit :: Places, defect)
Toolkit
Places
Tracking
()
RESOLVED
FIXED
mozilla23
People
(Reporter: raymondlee, Assigned: raymondlee)
References
Details
Attachments
(1 file, 3 obsolete files)
10.73 KB,
patch
|
Details | Diff | Splinter Review |
Bug 855638 would handle calls within mozilla-central. This bug is to remove PlacesUtils.backups and deprecate methods which depends on add-on usage.
Assignee | ||
Comment 1•12 years ago
|
||
Here are the addons using PlacesUtils.backups.
https://addons.mozilla.org/en-US/firefox/addon/stumbleupon/?src=search
/138/content/stumbleuponOverlay.js
line 3298 -- if(PlacesUtils && PlacesUtils.backups)
line 3301 -- name = PlacesUtils.backups.getFilenameForDate();
https://addons.mozilla.org/en-US/thunderbird/addon/wat-webapplicationtab/?src=search
/55713/chrome/content/places/places.js
line 409 -- let backupFiles = PlacesUtils.backups.entries;
line 415 -- let backupDate = PlacesUtils.backups.getDateForFile(backupFiles[i]);
line 439 -- let backupFiles = PlacesUtils.backups.entries;
line 521 -- fp.defaultString = PlacesUtils.backups.getFilenameForDate();
line 524 -- PlacesUtils.backups.saveBookmarksToJSONFile(fp.file);
https://addons.mozilla.org/en-US/firefox/addon/bookmark-favicon-changer/?src=search
/300259/chrome/content/module.jsm
line 136 -- // Hook function PlacesUtils.backups.saveBookmarksToJSONFile in PlacesUtils.jsm for embeding favicon data into JSON file
line 139 -- this.saveBookmarksToJSONFile = PlacesUtils.backups.saveBookmarksToJSONFile;
line 140 -- PlacesUtils.backups.saveBookmarksToJSONFile = function()
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → raymond
Assignee | ||
Comment 2•12 years ago
|
||
This patch depends on the patch for bug 855638.
Attachment #737846 -
Flags: review?(mak77)
Comment 3•12 years ago
|
||
I think there's a simpler solution, that is to make PlacesUtils.backups a getter (with a Deprecated.warning stating PlacesUtils.backups is deprecated) returning PlacesBackups
Updated•12 years ago
|
Attachment #737846 -
Flags: review?(mak77)
Assignee | ||
Comment 4•12 years ago
|
||
Attachment #737846 -
Attachment is obsolete: true
Attachment #738554 -
Flags: review?(mak77)
Comment 5•12 years ago
|
||
Comment on attachment 738554 [details] [diff] [review]
v2
Review of attachment 738554 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks
::: toolkit/components/places/PlacesUtils.jsm
@@ +1749,5 @@
> * Helper to create and manage backups.
> */
> + get backups() {
> + Deprecated.warning(
> + "backups is deprecated and will be removed in a future version",
I'd say "PlacesUtils.backups", otherwise just "backups" is too generic
Attachment #738554 -
Flags: review?(mak77) → review+
Assignee | ||
Comment 6•12 years ago
|
||
(In reply to Marco Bonardo [:mak] from comment #5)
> Comment on attachment 738554 [details] [diff] [review]
> v2
>
> Review of attachment 738554 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Thanks
>
> ::: toolkit/components/places/PlacesUtils.jsm
> @@ +1749,5 @@
> > * Helper to create and manage backups.
> > */
> > + get backups() {
> > + Deprecated.warning(
> > + "backups is deprecated and will be removed in a future version",
>
> I'd say "PlacesUtils.backups", otherwise just "backups" is too generic
Updated
Passed try
https://tbpl.mozilla.org/?tree=Try&rev=d561a0a922c7
Attachment #738554 -
Attachment is obsolete: true
Assignee | ||
Comment 7•12 years ago
|
||
Attachment #739381 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 8•12 years ago
|
||
Keywords: checkin-needed
Comment 9•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in
before you can comment on or make changes to this bug.
Description
•