How to set different proxies for each GeckoFX inst

2019-02-26 11:57发布

To set a proxy we need to change the GeckoPreferences.User[""] and this is the same for all instances, for exemple:

GeckoPreferences.User["network.proxy.http"] = "x.com";

Is it possible to set a different proxy for each geckoFX instance?

If this is not possible, are there any kinds of workarounds?

1条回答
淡お忘
2楼-- · 2019-02-26 12:31

All GeckoFX browser controls running in the same application shares preferences (and cache, cookies etc). To run two GeckoFX web browser controls with separate preferences, the only options is to have them running in two different applications with two different profile directories.

Read here how to set profile directory: https://stackoverflow.com/a/20614986/2440

查看更多
登录 后发表回答