mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
Keep about:blank from showing up in the urlbar if it's the first page in session history. r=lumpy, sr=jack
This commit is contained in:
parent
03b56a8eac
commit
a62d6a2f57
@ -73,8 +73,6 @@ nsBrowserStatusHandler.prototype =
|
||||
jsDefaultStatus : "",
|
||||
overLink : "",
|
||||
|
||||
hideAboutBlank : true,
|
||||
|
||||
QueryInterface : function(aIID)
|
||||
{
|
||||
if (aIID.equals(Components.interfaces.nsIWebProgressListener) ||
|
||||
@ -301,11 +299,8 @@ nsBrowserStatusHandler.prototype =
|
||||
}
|
||||
}
|
||||
|
||||
if (this.hideAboutBlank) {
|
||||
this.hideAboutBlank = false;
|
||||
if (location == "about:blank")
|
||||
location = "";
|
||||
}
|
||||
if (!getWebNavigation().canGoBack && location == "about:blank")
|
||||
location = "";
|
||||
|
||||
// Disable menu entries for images, enable otherwise
|
||||
if (content.document && this.mimeTypeIsTextBased(content.document.contentType))
|
||||
|
Loading…
x
Reference in New Issue
Block a user