-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install/run a web extension using custom preferences #88
Comments
I think this should be a pretty easy change actually, so I'm putting back the good first bug label. It only needs:
I am happy to mentor this. |
Here is a good use case: Let's say you want to test your extension in 30 different locales. Instead of making 30 profiles, you could just run it like |
Please refer to https://wiki.mozilla.org/Add-ons/Contribute/AMO/Code if this is your first contribution. If you want to work on this issue and need more information on how or where to fix it, please comment here and we will be happy to provide more details. Mentor: @kumar303 |
Hello, I would like to try my hand at this fix. Although I will certainly require direction, I am very eager to participate. |
Hi @davidamidon ! I'm here to help, let me know if you have any questions about how to get started. |
@kumar303 Thank you! Should I ask in here or is there a better place? I've got everything installed I think. For this fix the code would go in /src/firefox/index.js? |
Yes, this is a good place to ask questions. The locations are as follows:
|
Ok, I've been looking this over but I'm not sure how to start it. From what I understand;
You stated
So some form of a loop to take in 1 or more custom preferences. Hopefully I am on the correct path so far. |
Hi. I wouldn't worry about making a repeating option yet, that can be added later. An easy first step is to accept this new option:
You can use After that, take a look at configureProfile(). This feature would set a new preference in the profile probably within this function. However, there is no need to modify The |
@kumar303 if there is not work currently done on that issue, I'd like to try a hand |
@saintsebastian I haven't seen a pull request for this yet (unless I missed it?) so, yeah, feel free to work on a patch for this. Thanks! |
@saintsebastian this is a great feature, thanks for all your work on it! We just released it in 1.7.0 so the next step is to add it to the run command documentation. Could you try to add it? I can help if you have questions and can also review the docs after you add them. |
@kumar303 thank you, it was fun working on it.
|
That looks good to me! Just a few small nits:
Please sign into the MDN page via Github and make the edit. Let me know if you run into issues. |
@kumar303 I have a question - how to add numbered lines in a code block in editor? |
Thanks for the edit! It requires you to edit the source and add a new css class to the pre tag (which is annoying). I updated it for you. What you wrote was great but while I was in there I just made the tense and tone more consistent with how the other options are documented. I also mentioned the environment variable for the option which we do in all option docs. However, I was unsure how it works since this is the first option we have that can be specified multiple times. Could you look at this issue when you get a chance? #725 |
Sure, thank you for the edits! |
A run/install command was added in #6 but it only launches Firefox with default preferences. Allow the caller to specify custom preferences. This would be a more lightweight way of customizing Firefox as opposed to creating a custom profile (#69).
The text was updated successfully, but these errors were encountered: