зеркало из https://github.com/mozilla/gecko-dev.git
Bug 888145 - Use browser content windows when deciding whether to ignore location changes. r=mfinkle
This commit is contained in:
Родитель
527f5a8b3c
Коммит
2efea53f15
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче