aviary bit for bug 157354 (hide user:pass in location bar) r/a=ben

This commit is contained in:
dveditz%cruzio.com 2004-09-10 02:09:33 +00:00
Родитель 8a950010bb
Коммит b6462eeb77
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -2690,8 +2690,14 @@ nsBrowserStatusHandler.prototype =
// If the url has "wyciwyg://" as the protocol, strip it off.
// Nobody wants to see it on the urlbar for dynamically generated
// pages.
if (/^\s*wyciwyg:\/\/\d+\//.test(location))
location = RegExp.rightContext;
if (!gURIFixup)
gURIFixup = Components.classes["@mozilla.org/docshell/urifixup;1"]
.getService(Components.interfaces.nsIURIFixup);
if (location && gURIFixup)
try {
var locationURI = gURIFixup.createExposableURI(aLocation);
location = locationURI.spec;
} catch (exception) {}
setTimeout(function(loc, aloc) { gURLBar.value = loc; SetPageProxyState("valid", aloc);}, 0, location, aLocation);