Skip to content

[Firefox] Ability to open the logger into the browser's sidebar #2854

Closed
@gorhill

Description

@gorhill

Firefox WebExtensions API supports the sidebarAction API, which purpose is to open "a pane that is displayed at the left-hand side of the browser window, next to the web page."

I want to investigate whether using the sidebar API to host uBO's logger is practical. I can confirm it is feasible, by simply adding the following entry to uBO's manifest file:

"sidebar_action": {
   "default_icon": {
      "19":"img/browsericons/icon19.png",
      "38":"img/browsericons/icon38.png"
   },
   "default_title" : "uBlock Origin logger",
   "default_panel": "logger-ui.html"
},

Result:

a

Issues to investigate/solve:

  • The drop-down list at the top of the logger does not work, for unknown reasons.
  • There can be only one logger document opened at any given time, so these approaches must be mutually exclusive:
    • Logger in a separate tab
    • Logger as a popup window
    • Logger in the sidebar
      • Complication: there can be only one logger, so need to deal with the case of many windows with sidebar opened.
  • Verify that this also work on Opera, which also supports the sidebar API
    • Using the browser's sidebar is practical only if the maximum width allowed is sufficient

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions