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

User preferences or config settings #2

Open
kitTiwari opened this issue Nov 18, 2022 · 3 comments
Open

User preferences or config settings #2

kitTiwari opened this issue Nov 18, 2022 · 3 comments

Comments

@kitTiwari
Copy link

kitTiwari commented Nov 18, 2022

I am trying to disable the background network calls which geckoview Mozilla makes in the background but having issues while setting up the preferences,

I found this article https://winaero.com/disable-firefox-captive-portal-and-connection-to-detectportal-firefox-com/#To_Disable_Firefox_Captive_Portal_and_Connection_to_detectportalfirefoxcom where you can set user preference setup like how you modify about:config for Mozilla browser, but I couldn't find the right implementation of it in geckoview documentation

user_pref("network.captive-portal-service.enabled", false);

@ammarahm-ed
Copy link
Owner

@kitTiwari I haven't tried setting such stuff before and have no idea where it is.
Where are you trying to set this: user_pref("network.captive-portal-service.enabled", false);? the current implementation does not expose such an api

@kitTiwari
Copy link
Author

I was trying to use references from here https://www.javatips.net/api/org.mozilla.gecko.prefshelper but they seems to be deprecated

@ammarahm-ed
Copy link
Owner

I will see if there is an api for it on GeckoView. There's an option to enable about:config. Maybe we can set properties too programmatically.

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

2 participants