Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #8315 from alivedise/bugzilla/844168_v1.0.1/delaye…
Browse files Browse the repository at this point in the history
…d-window-open

Bug 844168 - Don't rely locationchange event to show popup, r=timdream, a=blocking-b2g:tef+
  • Loading branch information
alivedise committed Feb 26, 2013
2 parents af57b9c + 0b213c7 commit cf4b08a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/system/js/popup_manager.js
Expand Up @@ -67,6 +67,10 @@ var PopupManager = {
// this seems needed, or an override to origin in close()
this._currentOrigin = origin;

if (WindowManager.getDisplayedApp() == origin) {
this.screen.classList.add('popup');
}

this.container.appendChild(popup);

popup.addEventListener('mozbrowsererror', this);
Expand Down Expand Up @@ -146,7 +150,7 @@ var PopupManager = {
if (WindowManager.getDisplayedApp() !== evt.target.dataset.frameOrigin)
return;

this.show();
this.title.textContent = this.getTitleFromUrl(popup.dataset.url);
break;

case 'mozbrowsererror':
Expand Down

0 comments on commit cf4b08a

Please sign in to comment.