Simplify the Web Developer menu
Categories
(Firefox :: Menus, defect, P1)
Tracking
()
People
(Reporter: mconley, Assigned: gl)
References
(Blocks 3 open bugs)
Details
(Whiteboard: [proton-hamburger-menu])
Attachments
(5 files, 1 obsolete file)
I believe this is something that can ship pre-Proton. The DevTools menu is a bit special - it constructs itself dynamically, inserting <xul:menuitem> elements at runtime into the menuWebDeveloperPopup popup defined here: https://searchfox.org/mozilla-central/rev/b2433a832c250c55255e0ee37d05192d04f20427/browser/base/content/browser-menubar.inc#410-414
Interestingly, the "Page Source" item is baked into that popup to begin with, and our DevTools code knows how to put it in the expected position: https://searchfox.org/mozilla-central/rev/b2433a832c250c55255e0ee37d05192d04f20427/devtools/client/framework/browser-menus.js#269-274
What we need to do is dramatically pare down the Web Developer menu. Specifically, we're going to be removing all of the menuitems for the various individualpanels of the DevTools toolbox.
I can imagine, however, that we'll want to keep the keyboard shortcuts for those panels around. That might involve putting <key> elements for those menuitems we're removing into the mainKeySet instead: https://searchfox.org/mozilla-central/rev/b2433a832c250c55255e0ee37d05192d04f20427/browser/base/content/browser-sets.inc#124
The new contents of the menu should be:
Web Developer Tools
Remote Debugging
Browser Toolbox (if enabled)
Browser Content Toolbox (if enabled)
Browser Console
Responsive Design Mode
Eyedropper
Page Source
Extensions for Developers
So, things to do here:
- Port the necessary DevTools strings to Fluent, forking them so that we have a set for the menubar, and a set for panels.
- Change the "Toggle Tools" strings to "Web Developer Tools".
- Remove the Inspector, Web Console, Debugger, Network, Style Editor, Performance, Storage Inspector, Accessibility, Application and DOM menuitems from the list. Also remove the separators. This will likely involve changing how they're dynamically inserted (see above). We should try to keep the keyboard shortcuts around, however, by adding key commands to the mainKeySet.
- Update the "Get More Tools" strings to be "Extensions for Developers"
Remember when updating strings to ensure that they're not re-used elsewhere - if so, double-check that the propagated change is acceptable with UX, or create a new string just for the menu.
Also remember that if you're updating a string, you still have to update the ID of it so that our localizers know to re-translate.
Naturally, any tests that rely on the old structure or old behaviours will need to be modified as well.
| Reporter | ||
Comment 1•5 years ago
|
||
Setting docs-needed since we're removing the following items from the Web Developer menu:
- Inspector
- Web Console
- Debugger
- Network
- Style Editor
- Performance
- Storage Inspector
- Accessibility
- Application
- DOM
We will be keeping the keyboard shortcuts for those items, however. All of those panels will still be reachable by choosing "Web Developer Tools" and choosing the associated DevTools panel.
Release Note Request (optional, but appreciated)
[Why is this notable]:
We're changing the contents of the Web Developer menu. This might be even more notable for the Developer Edition.
[Affects Firefox for Android]:
No.
[Suggested wording]:
We've greatly simplified the Web Developer menu.
[Links (documentation, blog post, etc)]:
None.
| Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
| Reporter | ||
Comment 2•5 years ago
|
||
Hey gl! I noticed you assigned yourself to this one! Thanks for volunteering. :) We're hoping to have the structural update work for the menus mostly wrapped this week. Do you think you'll have this sorted by then?
| Assignee | ||
Comment 3•5 years ago
|
||
(In reply to Mike Conley (:mconley) (:⚙️) (Catching up on needinfos) from comment #2)
Hey gl! I noticed you assigned yourself to this one! Thanks for volunteering. :) We're hoping to have the structural update work for the menus mostly wrapped this week. Do you think you'll have this sorted by then?
Looking into it! Will try to have this sorted it out soon.
| Assignee | ||
Comment 4•5 years ago
|
||
| Assignee | ||
Comment 5•5 years ago
|
||
For now, we hide all the individual panel tools from the developertools menu.
We will want to evaluate whether or not to remove all the logic for adding all
the tools to the menu in the future if we see a permanent need for no longer
having it.
Depends on D104867
| Assignee | ||
Comment 6•5 years ago
|
||
- Renames "Toggle Tools" to "Web Developer Tools"
- Renames "Get More Tools" to "Extensions for Developers"
- Removes some of the menu separators to confirm to the proton design
Depends on D104868
| Assignee | ||
Comment 7•5 years ago
|
||
Depends on D104869
| Assignee | ||
Comment 8•5 years ago
|
||
Depends on D104870
| Assignee | ||
Comment 9•5 years ago
|
||
Updated•5 years ago
|
| Assignee | ||
Comment 10•5 years ago
|
||
This removes the menu separators frmo the developer tools menu to conform to
the proton design.
We can safely remove the "devToolsEndSeparator" separator since it is no longer
used to append the "Work Offline" that is removed in Part 5.
We change the anchor element to be the "menu_devtools_remotedebugging" menu item
with the removal oof the "menu_devtools_separator" separator.
Depends on D104871
| Assignee | ||
Comment 11•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/f81b94287dd8
https://hg.mozilla.org/mozilla-central/rev/c86dc4f007dc
https://hg.mozilla.org/mozilla-central/rev/a4522233c94f
https://hg.mozilla.org/mozilla-central/rev/92bc4e8bc287
https://hg.mozilla.org/mozilla-central/rev/2260fd69931c
Comment 14•5 years ago
|
||
Verified - Fixed in Beta 87.0b4 and latest Nightly 88.0a1 (2021-03-01) using Win10, MacOS 10.15 and Ubuntu 18.04.
Description
•