Closed
Bug 1011581
Opened 12 years ago
Closed 12 years ago
Remove parameter aFileExt from methods in PlacesBackup.jsm
Categories
(Firefox :: Bookmarks & History, defect)
Tracking
()
RESOLVED
FIXED
Firefox 32
People
(Reporter: ahameez, Assigned: ahameez)
References
Details
Attachments
(1 file, 1 obsolete file)
|
4.34 KB,
patch
|
mak
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0 (Beta/Release)
Build ID: 20140512231802
Steps to reproduce:
we should remove the aFileExt argument, it is only used in a couple places with "json", that is the default btw (http://mxr.mozilla.org/mozilla-central/search?string=getMostRecentBackup)
see bug 818587 comment 11
| Assignee | ||
Comment 1•12 years ago
|
||
I've removed the html option as well in this patch itself if it's alright.
Attachment #8423993 -
Flags: review?(mak77)
Updated•12 years ago
|
Component: Untriaged → Bookmarks & History
Updated•12 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•12 years ago
|
Assignee: nobody → althaf.mozilla
Status: NEW → ASSIGNED
Comment 2•12 years ago
|
||
I'll look at these patches asap, in the meanwhile I'm giving you canconfirm privilege on bugzilla, good job :)
Comment 3•12 years ago
|
||
Comment on attachment 8423993 [details] [diff] [review]
bug1011581_remove_aFileExt.diff
Review of attachment 8423993 [details] [diff] [review]:
-----------------------------------------------------------------
it looks good.
please attach the final patch with these comments and r=mak in the commit message, and I will take care of pushing it to Try Server for you.
You should also ask for commit level 1 if you don't have it yet, so you can push to the try server.
::: toolkit/components/places/PlacesBackups.jsm
@@ +267,2 @@
> for (let i = 0; i < this._entries.length; i++) {
> let rx = new RegExp("\." + fileExt + "$");
let's just hardcode "json" in the Regexp, doesn't make sense to have a var for just a single use.
@@ +282,2 @@
> return Task.spawn(function* () {
> + let fileExt = "json";
ditto (as-is the same as above)
Attachment #8423993 -
Flags: review?(mak77) → review+
| Assignee | ||
Comment 4•12 years ago
|
||
fixes done
Attachment #8423993 -
Attachment is obsolete: true
Attachment #8426297 -
Flags: review?(mak77)
Comment 5•12 years ago
|
||
Comment on attachment 8426297 [details] [diff] [review]
Remove aFileExt v2
Review of attachment 8426297 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks!
I pushed to tryserver just now https://tbpl.mozilla.org/?tree=Try&rev=d5913c9c8515
once green, tree sheriffs will take care of pushing the patch
Attachment #8426297 -
Flags: review?(mak77) → review+
Updated•12 years ago
|
Comment 6•12 years ago
|
||
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 32
Comment 8•11 years ago
|
||
Comment on attachment 8426297 [details] [diff] [review]
Remove aFileExt v2
>- let rx = new RegExp("\." + fileExt + "$");
>+ let rx = new RegExp("\.json$");
When you changed this from a variable to a fixed regexp you missed the chance to change it to a literal, which would have fixed the bug introduced by bug 852032.
You need to log in
before you can comment on or make changes to this bug.
Description
•