Bug 570981 - Remove URLBarSetURI's aValid parameter. r=gavin

This commit is contained in:
Dão Gottwald 2010-06-11 15:26:01 +02:00
parent 525360c40e
commit 37e7c0ffa8

View File

@ -2187,7 +2187,7 @@ function traceVerbose(verbose)
} }
#endif #endif
function URLBarSetURI(aURI, aValid) { function URLBarSetURI(aURI) {
var value = gBrowser.userTypedValue; var value = gBrowser.userTypedValue;
var valid = false; var valid = false;
@ -2201,8 +2201,7 @@ function URLBarSetURI(aURI, aValid) {
else else
value = losslessDecodeURI(uri); value = losslessDecodeURI(uri);
let isBlank = (uri.spec == "about:blank"); valid = (uri.spec != "about:blank");
valid = !isBlank && (!aURI || aValid);
} }
gURLBar.value = value; gURLBar.value = value;
@ -4127,7 +4126,7 @@ var XULBrowserWindow = {
try { try {
uri = this._uriFixup.createExposableURI(uri); uri = this._uriFixup.createExposableURI(uri);
} catch (e) {} } catch (e) {}
URLBarSetURI(uri, true); URLBarSetURI(uri);
// Update starring UI // Update starring UI
PlacesStarButton.updateState(); PlacesStarButton.updateState();