Skip to content

Firefox support#69

Open
tbodt wants to merge 1 commit intoEltaurus-Lt:mainfrom
tbodt:firefox
Open

Firefox support#69
tbodt wants to merge 1 commit intoEltaurus-Lt:mainfrom
tbodt:firefox

Conversation

@tbodt
Copy link
Copy Markdown

@tbodt tbodt commented Nov 25, 2024

  • firefox needs the script in background.scripts instead of background.service_worker
  • onMessage listener doesn't seem to work with an async function on firefox
  • setting variables with "var" at the bottom of a script actually overrides the variable for the whole script shadowing the version in the window object (this is known as "hoisting")
  • firefox extension downloads API doesn't accept data urls (https://bugzilla.mozilla.org/show_bug.cgi?id=1933304) so use blobs instead

- firefox needs the script in background.scripts instead of
  background.service_worker
- onMessage listener doesn't seem to work with an async function on
  firefox
- setting variables with "var" at the bottom of a script actually
  overrides the variable for the whole script shadowing the version in
  the window object (this is known as "hoisting")
- firefox extension downloads API doesn't accept data urls
  (https://bugzilla.mozilla.org/show_bug.cgi?id=1933304) so use blobs
  instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant