зеркало из https://github.com/mozilla/pjs.git
bug 231393, missed a spot
This commit is contained in:
Родитель
181d0e6bb9
Коммит
2eac1a0e87
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче