Open Bug 2010549 Opened 2 months ago Updated 1 month ago

window not passed to ExtensionSidebarPane.onShown listener

Categories

(Firefox :: Sidebar, defect)

Firefox 147
defect

Tracking

()

UNCONFIRMED

People

(Reporter: silbermann.sebastian, Unassigned, NeedInfo)

Details

Steps to reproduce:

  1. create an sidebar pane in the elements panel
  2. call pane.setPage
  3. Add onShown listener

Full repro in https://github.com/eps1lon/repro-firefox-onshown-no-window

Actual results:

Listener is called with no arguments

Expected results:

Listener is called with the window (https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/devtools/panels/ExtensionSidebarPane/onShown#listener)

Summary: window to passed to ExtensionSidebarPane.onShown listener → window not passed to ExtensionSidebarPane.onShown listener

The Bugbug bot thinks this bug should belong to the 'Firefox::Sidebar' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Sidebar

The severity field is not set for this bug.
:sclements, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(sclements)

I tried to reproduce this in Nightly 149.0a1 on macOS 15 by loading the extension and checking the Browser Toolbox. I didn't see the error occur, but I might be missing something. Could you share a bit more detail on the steps or a short video showing what happens?

Flags: needinfo?(silbermann.sebastian)
You need to log in before you can comment on or make changes to this bug.