Skip to content

Add Firefox support#2

Open
KarimPwnz wants to merge 11 commits into
fransr:masterfrom
KarimPwnz:firefox-support
Open

Add Firefox support#2
KarimPwnz wants to merge 11 commits into
fransr:masterfrom
KarimPwnz:firefox-support

Conversation

@KarimPwnz

@KarimPwnz KarimPwnz commented May 2, 2020

Copy link
Copy Markdown

I've added Firefox support with the following changes:

  • Added a /s flag equivalent in the wrapper detection of content_script.js (reason: https://bugzilla.mozilla.org/show_bug.cgi?id=1361856)
  • Changed the way popup.js gets data from background.js; it now uses runtime.getBackgroundPage, which is less buggy in Firefox and more conventional in general
  • Renamed chrome/ to src/
  • Added a signature to manifest.json—this causes a "warning" in Chrome, but it is insignificant
  • Defined the HTML encoding of the HTML documents (this removes an annoying warning)
  • Added a signed XPI (postmessage_tracker-1.0.1-fx.xpi) from https://addons.mozilla.org/
  • Updated the version to 1.0.1

This porting works because Firefox supports the chrome namespace.

@KarimPwnz

KarimPwnz commented May 2, 2020

Copy link
Copy Markdown
Author

If you'd like to maintain the XPI yourself, go to https://addons.mozilla.org/, upload the extension, and change the information in manifest.json.

@KarimPwnz

Copy link
Copy Markdown
Author

Do note that the signing is necessary to install the extension. There is no "developer mode" in standard Firefox.

@vzamanillo

Copy link
Copy Markdown

I can confirm that this works on FF 76.0 (64-bit) Linux, good job, waiting for the merge.

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.

2 participants