Closed Bug 1338727 Opened 8 years ago Closed 8 years ago

support key commands for sidebars

Categories

(WebExtensions :: Frontend, defect, P2)

49 Branch
defect

Tracking

(firefox54 fixed)

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: mixedpuppy, Assigned: mixedpuppy)

References

Details

(Keywords: dev-doc-complete, Whiteboard: triaged)

Attachments

(1 file)

ext-commands.js should support _execute_sidebar_action to support key bindings for a sidebar.
Priority: -- → P2
Whiteboard: triaged
Keywords: dev-doc-needed
Comment on attachment 8836842 [details] Bug 1338727 add command support for sidebar-action, https://reviewboard.mozilla.org/r/112154/#review113902 ::: browser/components/extensions/ext-commands.js:136 (Diff revision 1) > } else if (name == "_execute_browser_action") { > let win = event.target.ownerGlobal; > browserActionFor(this.extension).triggerAction(win); > + } else if (name == "_execute_sidebar_action") { > + let win = event.target.ownerGlobal; > + sidebarActionFor(this.extension).triggerAction(win); Check that you actually get back a value here so this doesn't throw if this gets invoked in an extension that doesn't have a sidebar. I guess we don't do the same for page action and browser action, that could get fixed too :-) ::: browser/components/extensions/test/browser/browser_ext_commands_execute_sidebar_action.js:45 (Diff revision 1) > + }, > + }); > + > + yield extension.startup(); > + yield SimpleTest.promiseFocus(window); > + // Since we didn't set useAddonManager, the sidebar will not be automatically I don't get this, what does useAddonManager have to do with this?
Attachment #8836842 - Flags: review?(aswan) → review+
Comment on attachment 8836842 [details] Bug 1338727 add command support for sidebar-action, https://reviewboard.mozilla.org/r/112154/#review113902 > Check that you actually get back a value here so this doesn't throw if this gets invoked in an extension that doesn't have a sidebar. > I guess we don't do the same for page action and browser action, that could get fixed too :-) This is also a problem with page and browser action. I'll fix for all. > I don't get this, what does useAddonManager have to do with this? The sidebar is only automatically opened during install of the addon. If you dont have useAddonManager set in the test, you don't get the ADDON_INSTALL reason.
Pushed by mixedpuppy@gmail.com: https://hg.mozilla.org/integration/autoland/rev/673306dc657e add command support for sidebar-action, r=aswan
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Yep, Thanks!
Flags: needinfo?(mixedpuppy)
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: