// PrefBar reloadPAC button // Copyright (C) Manuel Reimer (Manuel _dot_ Reimer _at_ gmx _dot_ de) // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // version 2 as published by the Free Software Foundation var pps = Components.classes["@mozilla.org/network/protocol-proxy-service;1"] if ("nsPIProtocolProxyService" in Components.interfaces) { var url = navigator.preference("network.proxy.autoconfig_url"); pps = pps.getService(Components.interfaces.nsPIProtocolProxyService); pps.configureFromPAC(url); } else { pps = pps.getService(); pps.reloadPAC(); }