Closed
Bug 1387632
Opened 8 years ago
Closed 7 years ago
Rename ProfileStorage.jsm to FormAutofillStorage.jsm to make it more clear
Categories
(Toolkit :: Form Autofill, enhancement, P3)
Toolkit
Form Autofill
Tracking
()
RESOLVED
FIXED
mozilla60
| Tracking | Status | |
|---|---|---|
| firefox60 | --- | fixed |
People
(Reporter: MattN, Assigned: ninjaprawn, Mentored)
References
()
Details
(Whiteboard: [form autofill:tech-debt])
Attachments
(1 file, 4 obsolete files)
|
22.15 KB,
patch
|
MattN
:
review+
|
Details | Diff | Splinter Review |
The "ProfileStorage" name is too generic. It would be much more clear as FormAutofillStorage.jsm to align with the other related JSM files.
Comment 1•8 years ago
|
||
I am submitting a Patch by renaming the files and the occurrences soon :)
Assignee: nobody → hossainalikram
Status: NEW → ASSIGNED
Comment 2•8 years ago
|
||
Please review and let me know if I should modify something more :)
Attachment #8894105 -
Flags: review?(MattN+bmo)
| Reporter | ||
Comment 3•8 years ago
|
||
Comment on attachment 8894105 [details] [diff] [review]
Renamed-Files.patch
Review of attachment 8894105 [details] [diff] [review]:
-----------------------------------------------------------------
Hello,
This is on the right track but the patch is missing the actual move of the JSM file. You can run the following to do the move:
> hg mv browser/extensions/formautofill/ProfileStorage.jsm browser/extensions/formautofill/FormAutofillStorage.jsm
We should also rename the exported symbol from the module to be `formAutofillStorage` instead of `profileStorage` and rename the "ProfileStorage" object too.
Thanks
Attachment #8894105 -
Flags: review?(MattN+bmo) → feedback+
Comment 4•8 years ago
|
||
Patch Updated. Let me know, if this is okay or anything should be modified :)
Attachment #8894105 -
Attachment is obsolete: true
Attachment #8895267 -
Flags: review?(MattN+bmo)
| Reporter | ||
Comment 5•8 years ago
|
||
Comment on attachment 8895267 [details] [diff] [review]
Updatedpatch.patch
Review of attachment 8895267 [details] [diff] [review]:
-----------------------------------------------------------------
Hello,
The patch still seems to be missing the JSM that you're renaming: ProfileStorage.jsm/FormAutofillStorage.jsm
Attachment #8895267 -
Flags: review?(MattN+bmo) → feedback+
Comment 6•8 years ago
|
||
Not sure, why this is happening, Sorry for the troubles. Please check this one and let me know about this one.
Attachment #8895267 -
Attachment is obsolete: true
Flags: needinfo?(MattN+bmo)
Attachment #8896026 -
Flags: review?(MattN+bmo)
| Reporter | ||
Comment 7•8 years ago
|
||
Comment on attachment 8896026 [details] [diff] [review]
new-patch.patch
Review of attachment 8896026 [details] [diff] [review]:
-----------------------------------------------------------------
> diff --git a/browser/extensions/formautofill/ProfileStorage.jsm b/browser/extensions/formautofill/FormAutofillStorage.jsm
I do see the rename this time but you didn't change the EXPORTED_SYMBOLS it seems. Are you using Git or Mercurial?
Attachment #8896026 -
Flags: review?(MattN+bmo) → feedback+
| Reporter | ||
Updated•8 years ago
|
Flags: needinfo?(MattN+bmo)
Comment 8•8 years ago
|
||
Hey Matthew,
I am using mercurial but I am not sure how do I change the EXPORTED_SYMBOLS?
Flags: needinfo?(MattN+bmo)
| Reporter | ||
Comment 9•8 years ago
|
||
It's just a variable inside ProfileStorage.jsm
Flags: needinfo?(MattN+bmo)
Comment 10•8 years ago
|
||
Please, let me know, if this change is correct or not :)
Attachment #8896026 -
Attachment is obsolete: true
Flags: needinfo?(MattN+bmo)
Attachment #8904703 -
Flags: review?(MattN+bmo)
| Reporter | ||
Comment 11•8 years ago
|
||
Comment on attachment 8904703 [details] [diff] [review]
latest.patch
Review of attachment 8904703 [details] [diff] [review]:
-----------------------------------------------------------------
Hello,
You don't need to needinfo and set a review flag since the review flag is sufficient to request review.
::: browser/extensions/formautofill/FormAutofillStorage.jsm
@@ +103,4 @@
>
> // We expose a singleton from this module. Some tests may import the
> // constructor via a backstage pass.
> +this.EXPORTED_SYMBOLS = ["FormAutofillStorage"];
Hello, I guess you didn't run the tests[1] since this name needs to match the global to be exported from the file but you didn't rename the variable below.
[1] `mach test browser/extensions/formautofill/`
Attachment #8904703 -
Flags: review?(MattN+bmo) → feedback+
| Reporter | ||
Updated•8 years ago
|
Flags: needinfo?(MattN+bmo)
Updated•8 years ago
|
status-firefox57:
affected → ---
Updated•8 years ago
|
Component: Form Manager → Form Autofill
| Assignee | ||
Comment 12•7 years ago
|
||
Attachment #8944583 -
Flags: review?(MattN+bmo)
| Reporter | ||
Updated•7 years ago
|
Attachment #8904703 -
Attachment is obsolete: true
| Reporter | ||
Updated•7 years ago
|
Assignee: hossainalikram → ninjaprawn
| Reporter | ||
Comment 13•7 years ago
|
||
Comment on attachment 8944583 [details] [diff] [review]
1387632.patch
Review of attachment 8944583 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks, I was originally thinking we would rename the exported symbol tool but I'll file a new bug for that.
Attachment #8944583 -
Flags: review?(MattN+bmo) → review+
Comment 14•7 years ago
|
||
Pushed by mozilla@noorenberghe.ca:
https://hg.mozilla.org/integration/mozilla-inbound/rev/26403995065c
Rename ProfileStorage module to FormAutofillStorage. r=MattN
Comment 15•7 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in
before you can comment on or make changes to this bug.
Description
•