mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
bug 370555 don't hide "about:blank" url when opened by another window, r=mconnor
This commit is contained in:
parent
7196ff0ba3
commit
cd4093e7e5
@ -620,12 +620,13 @@
|
||||
// If location bar is hidden and the URL type supports a host,
|
||||
// add the scheme and host to the title to prevent spoofing.
|
||||
// XXX https://bugzilla.mozilla.org/show_bug.cgi?id=22183#c239
|
||||
// (only for schemes that support a host)
|
||||
try {
|
||||
if (docElement.getAttribute("chromehidden").indexOf("location") != -1) {
|
||||
var uri = this.mURIFixup.createExposableURI(
|
||||
this.mCurrentBrowser.currentURI);
|
||||
if (uri.host)
|
||||
if (uri.scheme == "about")
|
||||
newTitle = uri.spec + sep + newTitle;
|
||||
else
|
||||
newTitle = uri.prePath + sep + newTitle;
|
||||
}
|
||||
} catch (e) {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user