foxyproxy / firefox-extension

FoxyProxy for Firefox extension beginning with Firefox 57 (Quantum)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proxy per window

ericjung opened this issue · comments

From support email:

It would be great if you could change the foxyproxy mode for each firefox window - not globally. So the setting will work for any tab within the window. but when you open a new window you can set another mode.

Generally speaking, when users open a new window or choose the option to open a link or tab in a new window, or drag tab out to make a new window; the expectation is to continue with the same settings. Otherwise the new tab in new window will be without proxy. Having to set it, besides the inconvenience, it will not work since by the time user gets to the toolbar icon to change something, requests have been sent & page has started to load.

For me a great feature can be to use firefox container to have one proxy setting by container or with the temp container extension by tab. For web dev it can permit to get a look and time loading for a website from different places.

Proxy per window is not feasible with currently available API.

It is not possible in Chrome as its proxy.settings has no access to window.
Firefox proxy.onRequest does not provide window details. While it provides tabId, getting the windowId through a separate asynchronous API is not practical for every request.

Also: Support for Proxy-Per-Container #132

I think you can ignore windowId and just use tabId.

Do you mean proxy per Tab?

Besides the fact that is not possible in Chrome, and considerably costly in Firefox, in practical terms, how would FoxyProxy know which tab to apply it to?

User needs to specify which container to use in the proxy settings window (from a list of containers previously created)

It would be better to keep the container discussion in the other thread and keep this topic for per-window discussion.

Added Tab Proxy feature (Firefox only) in FoxyProxy v8.0.