Closed Bug 1258987 Opened 10 years ago Closed 10 years ago

Drop broadcaster/command for tools entries

Categories

(DevTools :: General, defect, P3)

defect

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)

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.
Attached patch patch v1 (obsolete) — Splinter Review
Assignee: nobody → poirot.alex
Priority: -- → P3
Whiteboard: [btpp-backlog]
Attached patch patch v2Splinter Review
I'm wondering if that patch fixes the error you reported on irc?
Attachment #8737783 - Flags: review?(jryans)
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+
(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.
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
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 48
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: