Closed Bug 1335457 Opened 4 years ago Closed 2 years ago
_switch _tabs _for _new _background _window _without _focus _change (test _switch _window _chrome .py) on Linux / OS X
With my patch on bug 1124604 I will add a new test which strangely doesn't work on Linux. The newly opened window is not getting pushed to the background and as such the test is failing. We should investigate why Marionette is not able to open a background window. When I tested it via Scratchpad all is working as expected.
FWIW, I tried to get this test working on headless as well and it seems z-ordering of windows is pretty inconsistent across the various platforms. I imagine this test is broken on windows do to broken z ordering on linux. On the Windows platform with headless, I see the same behavior as linux where the background windows is always foreground. There also is some platform specific code for handling focus on Windows  that complicates things as well.  http://searchfox.org/mozilla-central/rev/12afa8cc9cea4a141494f767541b411845eef7a0/browser/modules/RecentWindow.jsm#39  http://searchfox.org/mozilla-central/rev/12afa8cc9cea4a141494f767541b411845eef7a0/dom/base/nsFocusManager.cpp#2277
> I imagine this test is broken on windows do to broken z ordering on linux Should be "I imagine this test is broken on linux do to broken z ordering"
The z-order issue on Linux is actually covered by bug 156333. So that's what we would depend on I assume for non-headless tests. Why it's failing for Windows headless I cannot say.
Depends on: 156333
Please note that this is also a problem with MacOS when Firefox runs in background. So I will also disable the test for that platform.
Summary: Enable test_switch_tabs_for_new_background_window_without_focus_change (test_switch_window_chrome.py) on Linux → Enable test_switch_tabs_for_new_background_window_without_focus_change (test_switch_window_chrome.py) on Linux / OS X
This is fixed by bug 1506796. Thanks Gijs!
You need to log in before you can comment on or make changes to this bug.