This commit is contained in:
mconnor%myrealbox.com 2004-07-24 00:32:47 +00:00
Родитель 181d0e6bb9
Коммит 2eac1a0e87
1 изменённых файлов: 10 добавлений и 3 удалений

Просмотреть файл

@ -2587,9 +2587,12 @@ nsBrowserStatusHandler.prototype =
startDocumentLoad : function(aRequest)
{
// Reset so we can see if the user typed between the document load
// starting and the location changing.
getBrowser().userTypedValue = null;
// It's okay to clear what the user typed when we start
// loading a document. If the user types, this flag gets
// set to false, if the document load ends without an
// onLocationChange, this flag also gets set to false
// (so we keep it while switching tabs after failed load
getBrowser().userTypedClear = true;
const nsIChannel = Components.interfaces.nsIChannel;
var urlStr = aRequest.QueryInterface(nsIChannel).URI.spec;
@ -2603,6 +2606,10 @@ nsBrowserStatusHandler.prototype =
endDocumentLoad : function(aRequest, aStatus)
{
// The document is done loading, it's okay to clear
// the value again.
getBrowser().userTypedClear = false;
const nsIChannel = Components.interfaces.nsIChannel;
var urlStr = aRequest.QueryInterface(nsIChannel).originalURI.spec;