зеркало из https://github.com/mozilla/pjs.git
Bug 253476 PAC: fixup uris entered in prefs
r=neil sr=jag patch by Chris Thomas <cst@andrew.cmu.edu>
This commit is contained in:
Родитель
5db61a33cb
Коммит
33aed5e96e
|
@ -95,3 +95,14 @@ function DoProxyCopy()
|
|||
}
|
||||
}
|
||||
|
||||
function FixProxyURL()
|
||||
{
|
||||
const nsIURIFixup = Components.interfaces.nsIURIFixup;
|
||||
var proxyURL = document.getElementById("networkProxyAutoconfigURL");
|
||||
try {
|
||||
var URIFixup = Components.classes["@mozilla.org/docshell/urifixup;1"]
|
||||
.getService(nsIURIFixup);
|
||||
proxyURL.value = URIFixup.createFixupURI(proxyURL.value,
|
||||
nsIURIFixup.FIXUP_FLAG_NONE).spec;
|
||||
} catch (e) {}
|
||||
}
|
||||
|
|
|
@ -162,8 +162,8 @@
|
|||
</grid>
|
||||
<radio value="2" label="&autoTypeRadio.label;" accesskey="&autoTypeRadio.accesskey;" oncommand="DoEnabling();"/>
|
||||
<hbox class="indent" flex="1" align="center">
|
||||
<textbox id="networkProxyAutoconfigURL" flex="1"
|
||||
preftype="string" prefstring="network.proxy.autoconfig_url" class="uri-element"/>
|
||||
<textbox id="networkProxyAutoconfigURL" flex="1" preftype="string" class="uri-element"
|
||||
prefstring="network.proxy.autoconfig_url" onchange="FixProxyURL();"/>
|
||||
<button id="autoReload" label="&reload.label;" accesskey="&reload.accesskey;"
|
||||
oncommand="ReloadPAC();"
|
||||
prefstring="pref.advanced.proxies.disable_button.reload"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче