Skip to content
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

Add-on needs manual permissions #2131

Open
aryangupta701 opened this issue Aug 22, 2023 · 12 comments
Open

Add-on needs manual permissions #2131

aryangupta701 opened this issue Aug 22, 2023 · 12 comments

Comments

@aryangupta701
Copy link

Hello everyone, I was launching firefox using selenium (Java) with addon installed and the addon does not work till the user manually clicks on the addon button as shown in the screenshot below. For my use case I want the extension to be enabled by default is there any way to do this it will be really helpful.

Screenshot from 2023-08-23 00-53-06

@thc202
Copy link
Contributor

thc202 commented Aug 22, 2023

fyi, there's already https://bugzilla.mozilla.org/show_bug.cgi?id=1836309

@aryangupta701
Copy link
Author

Thank you

@whimboo
Copy link
Collaborator

whimboo commented Aug 23, 2023

@aryangupta701 which extension is it that you are using here? Is it publicly available?

@aryangupta701
Copy link
Author

ZAP browser extension. https://addons.mozilla.org/en-US/firefox/addon/zap-browser-extension/

Yes it is publicly available.

@thc202
Copy link
Contributor

thc202 commented Aug 23, 2023

It's the same extension as in the referenced issue (now renamed and newer version though).

@aryangupta701
Copy link
Author

@whimboo Do you know of any solution for this? Would be really helpful.

@whimboo
Copy link
Collaborator

whimboo commented Aug 28, 2023

I would need a small testcase for reproduction. If one of you could provide one as best in Python I would appreciate. Otherwise I'll try to have a look into that by next week given that this week will be kinda busy.

@aryangupta701
Copy link
Author

I will try to create a python script for this and share with you asap. Thank you for your help.

@aryangupta701 aryangupta701 reopened this Aug 28, 2023
@thc202
Copy link
Contributor

thc202 commented Aug 28, 2023

@whimboo to reproduce you just need to install the extension and see that you have to manually give permissions to all sites. Did you already check https://bugzilla.mozilla.org/show_bug.cgi?id=1836309 ? afaik it's Firefox that needs (or would have to) change not geckodriver.

@aryangupta701
Copy link
Author

I agree with you this is a Firefox problem. But I think while using geckodriver we have more control over firefox (like to configure how will it behave). Maybe instead of changing the firefox policies we can do some hacks using geckodriver.

@thc202
Copy link
Contributor

thc202 commented Aug 28, 2023

We already went through that path and geckodriver does not have a feature for what we are asking, that's why we raised the issue for Firefox. If you are asking for help on how to use the profile with the custom settings, there's https://firefox-source-docs.mozilla.org/testing/geckodriver/Profiles.html

@aryangupta701
Copy link
Author

Oh okay. Thank you.

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

No branches or pull requests

3 participants