mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 570981 - Remove URLBarSetURI's aValid parameter. r=gavin
This commit is contained in:
parent
525360c40e
commit
37e7c0ffa8
@ -2187,7 +2187,7 @@ function traceVerbose(verbose)
|
||||
}
|
||||
#endif
|
||||
|
||||
function URLBarSetURI(aURI, aValid) {
|
||||
function URLBarSetURI(aURI) {
|
||||
var value = gBrowser.userTypedValue;
|
||||
var valid = false;
|
||||
|
||||
@ -2201,8 +2201,7 @@ function URLBarSetURI(aURI, aValid) {
|
||||
else
|
||||
value = losslessDecodeURI(uri);
|
||||
|
||||
let isBlank = (uri.spec == "about:blank");
|
||||
valid = !isBlank && (!aURI || aValid);
|
||||
valid = (uri.spec != "about:blank");
|
||||
}
|
||||
|
||||
gURLBar.value = value;
|
||||
@ -4127,7 +4126,7 @@ var XULBrowserWindow = {
|
||||
try {
|
||||
uri = this._uriFixup.createExposableURI(uri);
|
||||
} catch (e) {}
|
||||
URLBarSetURI(uri, true);
|
||||
URLBarSetURI(uri);
|
||||
|
||||
// Update starring UI
|
||||
PlacesStarButton.updateState();
|
||||
|
Loading…
Reference in New Issue
Block a user