Closed
Bug 1258987
Opened 10 years ago
Closed 10 years ago
Drop broadcaster/command for tools entries
Categories
(DevTools :: General, defect, P3)
DevTools
General
Tracking
(firefox48 fixed)
RESOLVED
FIXED
Firefox 48
| Tracking | Status | |
|---|---|---|
| firefox48 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
Details
(Keywords: addon-compat, Whiteboard: [btpp-backlog])
Attachments
(1 file, 1 obsolete file)
|
16.37 KB,
patch
|
jryans
:
review+
|
Details | Diff | Splinter Review |
Bug 1248603 stopped generating useless broadcaster/command xul elements for top level menuitems. We can also simply per-tool entries, while ensuring we no longer use "oncommand" strings:
http://hg.mozilla.org/mozilla-central/annotate/3b8417be6c87/devtools/client/framework/devtools-browser.js#l647
cmd.setAttribute("oncommand",
gDevToolsBrowser.selectToolCommand(gBrowser, "' + id + '");')
So that we no longer depends on any global from browser.xul.
| Assignee | ||
Comment 1•10 years ago
|
||
| Assignee | ||
Comment 2•10 years ago
|
||
| Assignee | ||
Comment 3•10 years ago
|
||
| Assignee | ||
Comment 4•10 years ago
|
||
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → poirot.alex
Priority: -- → P3
Whiteboard: [btpp-backlog]
| Assignee | ||
Comment 5•10 years ago
|
||
| Assignee | ||
Comment 6•10 years ago
|
||
I'm wondering if that patch fixes the error you reported on irc?
Attachment #8737783 -
Flags: review?(jryans)
| Assignee | ||
Updated•10 years ago
|
Attachment #8734555 -
Attachment is obsolete: true
Comment on attachment 8737783 [details] [diff] [review]
patch v2
Review of attachment 8737783 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me. Doesn't fix my error, but we now have bug 1261920 for that.
::: devtools/client/framework/browser-menus.js
@@ +298,5 @@
> + let key = createKey({
> + doc,
> + id: item.key.id,
> + shortcut: shortcut,
> + keytext: shortcut.startsWith("VK_") ? l10n(l10nKey + ".keytext") : null,
Do you need to check here `shortcut.startsWith("VK_")`? You check it again in `createKey`.
Attachment #8737783 -
Flags: review?(jryans) → review+
| Assignee | ||
Comment 8•10 years ago
|
||
(In reply to J. Ryan Stinnett [:jryans] (use ni?) from comment #7)
> Doesn't fix my error, but we now have bug 1261920 for that.
Yes, it is a very different issue related to customizable widgets.
> ::: devtools/client/framework/browser-menus.js
> @@ +298,5 @@
> > + let key = createKey({
> > + doc,
> > + id: item.key.id,
> > + shortcut: shortcut,
> > + keytext: shortcut.startsWith("VK_") ? l10n(l10nKey + ".keytext") : null,
>
> Do you need to check here `shortcut.startsWith("VK_")`? You check it again
> in `createKey`.
Unfortunately, yes. The ".keytext" localization only exists for VK_ keys.
It would throw if we try to access it for non-vk_ keys.
| Assignee | ||
Comment 9•10 years ago
|
||
addon-compat:
Removing xul:command and xul:broadcaster for per-tool entries in the Web Developer menu.
Bug 1248603 already did that for global entries. So all entries are now going to miss these useless xul elements.
Keywords: addon-compat
| Assignee | ||
Comment 10•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/4b00370192a495bf15b4110a2dd6c8fd8084e0c9
Bug 1258987 - Stop generating useless xul:command and xul:broadcaster. r=jryans
Comment 11•10 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox48:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 48
Updated•8 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•