Closed
Bug 1451715
Opened 7 years ago
Closed 7 years ago
Rename {get,set,delete}{Window,Global}Value to match {get,set,delete}CustomTabValue
Categories
(Firefox :: Session Restore, enhancement, P3)
Firefox
Session Restore
Tracking
()
RESOLVED
FIXED
Firefox 64
| Tracking | Status | |
|---|---|---|
| firefox64 | --- | fixed |
People
(Reporter: dao, Assigned: jason, Mentored)
References
Details
Attachments
(1 file, 2 obsolete files)
|
16.12 KB,
patch
|
dao
:
review+
|
Details | Diff | Splinter Review |
In bug 1446719 we renamed getTabValue, setTabValue and deleteTabValue. For consistency and clarity we should do the same for: getWindowValue, setWindowValue, deleteWindowValue, getGlobalValue, setGlobalValue, deleteGlobalValue.
Updated•7 years ago
|
Assignee: nobody → 1991manish.kumar
Comment 1•7 years ago
|
||
getWindowValue: https://searchfox.org/mozilla-central/search?q=getWindowValue&case=true®exp=false&path=browser%2F
setWindowValue: https://searchfox.org/mozilla-central/search?q=setWindowValue&case=true®exp=false&path=browser%2F
deleteWindowValue: https://searchfox.org/mozilla-central/search?q=deleteWindowValue&case=true®exp=false&path=browser%2F
getGlobalValue: https://searchfox.org/mozilla-central/search?q=getGlobalValue&case=true®exp=false&path=browser%2F
setGlobalValue: https://searchfox.org/mozilla-central/search?q=setGlobalValue&case=true®exp=false&path=browser%2F
deleteGlobalValue: https://searchfox.org/mozilla-central/search?q=deleteGlobalValue&case=true®exp=false&path=browser%2F
I need to changes in these above files.
but not in these below files.
* browser/components/extensions/schemas/sessions.json
* https://searchfox.org/mozilla-central/rev/003262ae12ce937950ffb8d3b0fa520d1cc38bff/browser/components/extensions/ext-sessions.js#158,165
* browser/components/extensions/test/browser/browser_ext_sessions_window_tab_value.js
Correct?
Flags: needinfo?(dao+bmo)
| Reporter | ||
Comment 4•7 years ago
|
||
(In reply to Manish Kumar [:manishkk] from comment #3)
> How can I test this after changes on my system?
By running tests:
./mach mochitest browser/components/sessionstore/test/
./mach mochitest browser/components/extensions/test/browser/browser_ext_sessions_window_tab_value.js
Flags: needinfo?(dao+bmo)
Updated•7 years ago
|
Assignee: 1991manish.kumar → nobody
| Assignee | ||
Comment 7•7 years ago
|
||
Requested changes made, tests ran without fail. Hope it looks good for you.
Thanks,
Jason
Flags: needinfo?(dao+bmo)
Attachment #9011032 -
Flags: review+
| Reporter | ||
Updated•7 years ago
|
Flags: needinfo?(dao+bmo)
Attachment #9011032 -
Flags: review+ → review?(dao+bmo)
| Reporter | ||
Comment 8•7 years ago
|
||
Comment on attachment 9011032 [details] [diff] [review]
bug-1451715.patch
This looks good, except that we only want to change the internal SessionStore API. The extension API shouldn't change for the time being.
Attachment #9011032 -
Flags: review?(dao+bmo)
| Assignee | ||
Comment 9•7 years ago
|
||
Undid changes to session extension. Please review thanks!
Attachment #9011032 -
Attachment is obsolete: true
Flags: needinfo?(dao+bmo)
Attachment #9011898 -
Flags: review+
| Reporter | ||
Comment 10•7 years ago
|
||
Comment on attachment 9011898 [details] [diff] [review]
bug-1451715.patch
>--- a/browser/components/sessionstore/SessionStore.jsm
>+++ b/browser/components/sessionstore/SessionStore.jsm
>+setCustomGlobalValue(aKey, aStringValue) {
>+ SessionStoreInternal.setCustomGlobalValue(aKey, aStringValue);
>+ },
>+
>+deleteCustomGlobalValue(aKey) {
>+ SessionStoreInternal.deleteCustomGlobalValue(aKey);
> },
nit: indentation is off at the method headers
Flags: needinfo?(dao+bmo)
Attachment #9011898 -
Flags: review+
| Assignee | ||
Comment 11•7 years ago
|
||
That nit is legit. Patch updated and re–submitted. Thanks!
Attachment #9011898 -
Attachment is obsolete: true
Flags: needinfo?(dao+bmo)
Attachment #9012156 -
Flags: review+
| Reporter | ||
Updated•7 years ago
|
status-firefox61:
affected → ---
Flags: needinfo?(dao+bmo)
| Reporter | ||
Comment 12•7 years ago
|
||
Comment on attachment 9012156 [details] [diff] [review]
bug-1451715.patch
Try run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=af1d913388366a4e801e56a848f12798b58fa083
Attachment #9012156 -
Flags: review+ → review?(dao+bmo)
| Reporter | ||
Comment 13•7 years ago
|
||
Comment on attachment 9012156 [details] [diff] [review]
bug-1451715.patch
Looks good, thanks!
Attachment #9012156 -
Flags: review?(dao+bmo) → review+
| Reporter | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment 14•7 years ago
|
||
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/51cd5f6c6fa3
Rename {get,set,delete}{Window,Global}Value to match {get,set,delete}CustomTabValue. r=dao
Keywords: checkin-needed
Comment 15•7 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
You need to log in
before you can comment on or make changes to this bug.
Description
•