Closed Bug 590315 Opened 14 years ago Closed 14 years ago

Firefox window not having focus prevents testing webapps due to missing events

Categories

(Core :: XUL, defect)

All
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 497839

People

(Reporter: cmtalbert, Unassigned)

Details

When the Firefox window does not have focus, some events are not being fired - element.focus(), for example. In addition, native input events (mouse clicks, keyboard actions) are not processed.

This prevents Selenium from running reliably on Linux machine when more than one Firefox window is open or when an application under test opens multiple windows.

The ideal solution would be an about:config option that will instruct Firefox to process input events regardless of the focus state of the window.

This would enable us to use native events more easily for mochitest and mozmill so that we would get around the focus issues we currently have on those test frameworks.  Because we'd be using native generated events, we'd be able to be certain that we are testing exactly what the user sees when they are working with the browser.

We don't need this on windows, but we do on Linux and Mac.

In case it's not abundantly clear, this is a *test only* change.  Ideally, we'd like to place a shim in a low enough layer that we can do this without affecting the rest of the focus code.

Eran, a guy from the selenium 2 team, is willing to help write this shim, and I'll help him, but we need some direction on how to get started.  And what code we should look at for a starting point.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.