diff --git a/suite/browser/nsBrowserStatusHandler.js b/suite/browser/nsBrowserStatusHandler.js index 1de18e931a6..82b8f814355 100644 --- a/suite/browser/nsBrowserStatusHandler.js +++ b/suite/browser/nsBrowserStatusHandler.js @@ -232,6 +232,7 @@ nsBrowserStatusHandler.prototype = onLocationChange : function(aWebProgress, aRequest, aLocation) { var location = aLocation.spec; + domWindow = aWebProgress.DOMWindow; if (this.hideAboutBlank) { this.hideAboutBlank = false; @@ -241,9 +242,12 @@ nsBrowserStatusHandler.prototype = // We should probably not do this if the value has changed since the user // searched - this.urlBar.value = location; - SetPageProxyState("valid"); - + // Update urlbar only if a new page was loaded on the primary content area + // Do not update urlbar if there was a subframe navigation + if (domWindow == domWindow.top) { + this.urlBar.value = location; + SetPageProxyState("valid"); + } UpdateBackForwardButtons(); },