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
|
#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();
|
||||||
|
Loading…
Reference in New Issue
Block a user