Closed
Bug 1268444
Opened 9 years ago
Closed 9 years ago
Convert network monitor to use new key shortcut API
Categories
(DevTools :: Netmonitor, defect, P1)
DevTools
Netmonitor
Tracking
(firefox52 verified)
Tracking | Status | |
---|---|---|
firefox52 | --- | verified |
People
(Reporter: ochameau, Assigned: gasolin)
References
(Blocks 1 open bug)
Details
(Whiteboard: [netmonitor])
Attachments
(1 file)
We need to stop using xul for key shortcuts and instead use the upcoming module from bug 1260493.
http://mxr.mozilla.org/mozilla-central/source/devtools/client/netmonitor/netmonitor.xul#85
Reporter | ||
Updated•9 years ago
|
Whiteboard: [devtools-html][triage]
Updated•9 years ago
|
Blocks: devtools-html-1
Flags: qe-verify?
Priority: -- → P2
Whiteboard: [devtools-html][triage] → [devtools-html]
Updated•9 years ago
|
Priority: P2 → P3
Whiteboard: [devtools-html] → [reserve-html]
Comment 1•9 years ago
|
||
Hi Alex, will this bug require QA verification?
Flags: needinfo?(poirot.alex)
Reporter | ||
Comment 2•9 years ago
|
||
Yes. We would need to verify that related key shortcuts works the same.
Flags: needinfo?(poirot.alex)
Updated•9 years ago
|
Flags: qe-verify? → qe-verify+
QA Contact: petruta.rasa
Assignee | ||
Updated•9 years ago
|
Blocks: netmonitor-html
Updated•9 years ago
|
Whiteboard: [reserve-html] → [reserve-html][devtools-html]
Updated•9 years ago
|
Whiteboard: [reserve-html][devtools-html] → [reserve-html]
Updated•9 years ago
|
Updated•9 years ago
|
QA Contact: petruta.rasa → ciprian.georgiu
Updated•9 years ago
|
Whiteboard: [netmonitor]
Updated•9 years ago
|
Priority: -- → P2
Assignee | ||
Comment 3•9 years ago
|
||
What needs to be done:
1. convert key freeTextFilterKey&command in netmonitor.xul
2. convert requestsMenuSortKeyboardEvent in reqeust-menu-view
3. convert requestsMenuFilterKeyboardEvent in reqeust-menu-view
4. remove netmonitor.dtd if its land after bug 1308440
Assignee: nobody → gasolin
Status: NEW → ASSIGNED
Updated•9 years ago
|
Priority: P2 → P1
Updated•9 years ago
|
Iteration: --- → 52.3 - Nov 7
Comment hidden (mozreview-request) |
Assignee | ||
Comment 5•9 years ago
|
||
Instead of Comment 3, at the end I found only freeTextFilterKey&command in netmonitor.xul is needed to migrate
Assignee | ||
Comment 6•9 years ago
|
||
Note: I refered `inspector.js` to put shortcut binding in panel.js
https://github.com/mozilla/gecko-dev/blob/master/devtools/client/inspector/inspector.js#L379
Comment 7•9 years ago
|
||
mozreview-review |
Comment on attachment 8802051 [details]
Bug 1268444 - Convert network monitor to use new key shortcut API;
https://reviewboard.mozilla.org/r/86604/#review85564
Thanks for working on this!
See my inline comments.
Honza
::: devtools/client/locales/en-US/netmonitor.properties:482
(Diff revision 1)
> netmonitor.footer.filterOther=Other
>
> # LOCALIZATION NOTE (netmonitor.footer.filterFreetext): This is the label displayed
> # in the network details footer for the url filtering textbox.
> netmonitor.footer.filterFreetext.label=Filter URLs
> -netmonitor.footer.filterFreetext.key=F
> +netmonitor.footer.filterFreetext.key=CmdOrCtrl+F
If you are changing a string you also need to change the string ID so, localizers are notified about the change. See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1309191
::: devtools/client/netmonitor/panel.js:34
(Diff revision 1)
> + });
> + shortcuts.on(L10N.getStr("netmonitor.footer.filterFreetext.key"), (name, event) => {
> + event.preventDefault();
> + this._view.RequestsMenu.freetextFilterBox.focus();
> + });
> }
Shouldn't you call shortcuts.destroy() to clean up the 'keydown' listener?
Attachment #8802051 -
Flags: review?(odvarko)
Comment hidden (mozreview-request) |
Assignee | ||
Comment 9•9 years ago
|
||
Issue addressed, please kindly review it
Comment hidden (mozreview-request) |
Assignee | ||
Comment 11•9 years ago
|
||
Note: `netmonitor.footer.filterFreetext.key` is renamed to `netmonitor.toolbar.filterFreetext.key` to align with renaming in Bug 1309191
Comment 12•9 years ago
|
||
mozreview-review |
Comment on attachment 8802051 [details]
Bug 1268444 - Convert network monitor to use new key shortcut API;
https://reviewboard.mozilla.org/r/86604/#review85832
LGTM!
Honza
Attachment #8802051 -
Flags: review?(odvarko) → review+
Comment 13•9 years ago
|
||
mozreview-review |
Comment on attachment 8802051 [details]
Bug 1268444 - Convert network monitor to use new key shortcut API;
https://reviewboard.mozilla.org/r/86604/#review85836
R+ assuming Try is green
Honza
Assignee | ||
Comment 14•9 years ago
|
||
The try is green (with 1 unrelated framework/registration error)
thanks!
Keywords: checkin-needed
Comment 15•9 years ago
|
||
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/1f05cfb4a8dc
Convert network monitor to use new key shortcut API;r=Honza
Keywords: checkin-needed
Comment 16•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
Comment 17•9 years ago
|
||
This issue is verified fixed on latest Nightly build 52.0a1 from 2016-10-20 under the following OSes:
- Windows 10 x64
- Ubuntu 16.04 x64
- macOS 10.12.1 Beta
The related network monitor shortcut key (Ctrl/Cmd+F) is still working the same on all platforms. Marking here accordingly.
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•