问题
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:
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
来源:https://stackoverflow.com/questions/24042354/how-to-set-different-proxies-for-each-geckofx-instance