Bug 557567 - urlbar changes when pages load within frames [r=mark.finkle r=stechz]

This commit is contained in:
Matt Brubeck 2010-04-07 12:57:12 -04:00
Родитель 13afd7860b
Коммит 8aaaa56dbd
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -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;