Proxy.settings - Syncing with add-on & observing defaults

  1. I noticed the proxy.settings.onChange event is not fired when the user changes the Network Settings in the Options menu. It does, however, fire when the add-on changes the settings via proxy.settings.set.

  2. How does the layering of BrowserSettings work? From reading the .set and .clear pages, it seems that the browser has a base setting, on which add-ons are layered, precedence favoring more recently installed add-ons. So, why is it that the following occurs:
    A. Disable my add-on, which modifies proxy.settings, in order to edit them manually.
    B. Change the settings, for example, from “Manual” to “System”.
    C. Re-enable add-on.
    D. Add-on modifies proxy setting.
    E. Disable add-on to see base setting, or call proxy.settings.clear
    F. The proxy setting is now “Manual” despite the base modification at step B.

Thanks,
Ben