зеркало из https://github.com/mozilla/gecko-dev.git
Bug 557567 - urlbar changes when pages load within frames [r=mark.finkle r=stechz]
This commit is contained in:
Родитель
13afd7860b
Коммит
8aaaa56dbd
|
@ -2571,6 +2571,10 @@ ProgressController.prototype = {
|
|||
|
||||
/** This method is called to indicate a change to the current location. */
|
||||
onLocationChange: function onLocationChange(aWebProgress, aRequest, aLocationURI) {
|
||||
// ignore notification that aren't about the main document (iframes, etc)
|
||||
if (aWebProgress.DOMWindow != this._tab.browser.contentWindow)
|
||||
return;
|
||||
|
||||
let location = aLocationURI ? aLocationURI.spec : "";
|
||||
|
||||
this._hostChanged = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче