Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Add in management addon WIP #485

Merged
merged 1 commit into from Aug 21, 2019
Merged

Add in management addon WIP #485

merged 1 commit into from Aug 21, 2019

Conversation

jonathanKingston
Copy link
Contributor

@bakulf the management addon is just a shell at the moment. Let me know if you are happy with how I'm changing config and if there is any config we should be adding.

This doesn't resolve changing these prefs after the fact so the user might need to restart secure proxy but that doesn't seem a huge issue right now with the added increase in complexity it would add.

"manifest_version": 2,
"name": "__MSG_extensionName__",
"default_locale": "en_US",
"version": "0.1",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be "0.6" to be in sync w/ src/manifest.json?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather not get into that maintenance battle or require a build script if we can help it. This isn't planned to be published on AMO.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

src/tests/background/tester.js Outdated Show resolved Hide resolved
management-src/manifest.json Outdated Show resolved Hide resolved
src/commons/utils.js Outdated Show resolved Hide resolved
},

async getStorageKey(key) {
let data = await browser.storage.local.get([key]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use StorageUtils

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't without it being a pain. StorageUtils is a module rather than a global like utils is.

src/background/main.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@bakulf bakulf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apply the comments first!

"manifest_version": 2,
"name": "__MSG_extensionName__",
"default_locale": "en_US",
"version": "0.1",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

src/background/external.js Show resolved Hide resolved
src/background/main.js Outdated Show resolved Hide resolved
src/background/main.js Outdated Show resolved Hide resolved
@jonathanKingston jonathanKingston merged commit 2046c16 into master Aug 21, 2019
@pdehaan pdehaan deleted the management-addon branch August 21, 2019 16:19
@pdehaan
Copy link
Collaborator

pdehaan commented Aug 21, 2019

How do I use this add-on?
I have the latest commit from Git master branch and type:

cd management-src
npx web-ext build
# Building web extension from /Users/pdehaan/dev/github/mozilla/secure-proxy/management-src
# Your web extension is ready: /Users/pdehaan/dev/github/mozilla/secure-proxy/management-src/web-ext-artifacts/firefox_private_network_-_management_interface-0.1.zip

Next, I go back into the main add-on directory and type the following to spawn secure-proxy add-on in Nightly w/ a fresh profile.

npx web-ext run

Now I go to about:debugging and load the ./management-src/web-ext-artifacts/firefox_private_network_-_management_interface.0.1.zip as a temporary add-on, but I still seem to get errors after logging in to FxA.

Menubar_and_Debugging_-Runtime___this-firefox_and_Browser_Console_and_Add_in_management_addon_WIP_by_jonathanKingston·Pull_Request__485·_mozilla_secure-proxy

Browser_Console

@bakulf
Copy link
Collaborator

bakulf commented Aug 22, 2019

Yeah, we need to write a bit of documentation.
At the moment, I use it in this way:

  1. I run secure-proxy (web-ext run)
  2. from that browser instance, I open about:debugging and I load the management addon as a temporary extension. Just select its manifest.
  3. Still from about:debugging, reload the secure-proxy extension (the new settings are not immediately applied).

I'll write the correct steps on a README.md.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants