Open Bug 941073 Opened 11 years ago Updated 2 years ago

Find out why sometimes popupshown events are not fired when opening popups from tests

Categories

(Core :: Widget: Gtk, defect, P5)

x86
Linux
defect

Tracking

()

People

(Reporter: mconley, Unassigned)

Details

I've experienced this a few times - we programmatically try to open a XUL popup, and the popup never appears / fires the popupshown event.

It happens intermittently too, which is super frustrating.

I think we were experiencing this in bug 939965. I've definitely experienced it in TB bugs like bug 726966.

So filing this bug to see if we can eventually get this resolved one way or another.
In bug 726966, an attempt was made to open the popup without focus.  It would be rude to grab the pointer while another application is active.

This is still happening, apparently only on Linux in my case. See Bug 1625044.

Steps to reproduce:

  • Use Linux.
  • At the start of the test, add an event listener for "popupshown", and "popuphidden" events that logs that they are firing.
  • Run: mochi devtools/client/performance-new/test/browser/browser_popup-private-browsing.js --verify and it will intermittently fail. Notice that I am also opening a private browsing window, which may be contributing to the failure.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.