Bug 888145 - Use browser content windows when deciding whether to ignore location changes. r=mfinkle

This commit is contained in:
Wes Johnston 2013-06-28 11:23:13 -07:00
Родитель 527f5a8b3c
Коммит 2efea53f15
1 изменённых файлов: 6 добавлений и 2 удалений

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

@ -3517,8 +3517,12 @@ Tab.prototype = {
onLocationChange: function(aWebProgress, aRequest, aLocationURI, aFlags) {
let contentWin = aWebProgress.DOMWindow;
if (contentWin != contentWin.top)
return;
// Browser webapps may load content inside iframes that can not reach across the app/frame boundary
// i.e. even though the page is loaded in an iframe window.top != webapp
// Make cure this window is a top level tab before moving on.
if (BrowserApp.getBrowserForWindow(contentWin) == null)
return;
this._hostChanged = true;