mozilla-mobile / reference-browser

A full-featured browser reference implementation using Mozilla Android Components.
Mozilla Public License 2.0
592 stars 168 forks source link

How I can change about:config (specially network.proxy.http) in Firefox preview or gecko-view? #1241

Open fpichlou opened 4 years ago

fpichlou commented 4 years ago

How I can change about:config (specially network.proxy.http) in Firefox preview or gecko-view in code?

pocmo commented 4 years ago

There's no generic way to flip Gecko preferences from the app side. However some of those config options are exposed via the GeckoView API. I'm not sure if the proxy setting is part of that. @snorp @fluffyemily Do you know? Is there a bug about this?

If such an API exists then I'm sure we haven't exposed it in our Android Components yet - which may be necessary so that the app can access it.

pocmo commented 4 years ago

Ah, found the GV bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1525486

fpichlou commented 4 years ago

@pocmo Thank you so much for the response. Is there any way to set a simple socks or http proxy on firefox preview (such as fenix browser) programmatically?

pocmo commented 4 years ago

Not from code to my knowledge.