Closed
Bug 1340776
Opened 8 years ago
Closed 7 years ago
Intermittent test_switch_window_chrome.py TestSwitchWindowChrome.test_switch_tabs_for_new_foreground_window_with_focus_change | AssertionError: 1 == 1
Categories
(Testing :: Marionette Client and Harness, defect, P5)
Tracking
(firefox61 wontfix, firefox64 wontfix, firefox65 fixed)
RESOLVED
FIXED
mozilla65
People
(Reporter: intermittent-bug-filer, Assigned: Gijs)
References
Details
(Keywords: bulk-close-intermittents, intermittent-failure)
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Keywords: bulk-close-intermittents
Resolution: --- → INCOMPLETE
Updated•7 years ago
|
Status: RESOLVED → VERIFIED
Comment hidden (Intermittent Failures Robot) |
Comment 19•7 years ago
|
||
Status: VERIFIED → REOPENED
Resolution: INCOMPLETE → ---
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Updated•7 years ago
|
Comment 22•7 years ago
|
||
Here the code which fails:
https://dxr.mozilla.org/mozilla-central/rev/b906009d875d1f5d29b0d1252cdb43a9b1a5889c/testing/marionette/harness/marionette_harness/tests/unit/test_switch_window_chrome.py#80-84
> self.assertNotEqual(self.get_selected_tab_index(), second_tab_index)
> AssertionError: 1 == 1
The screenshot as part of the report.html file is misleading because it captures the first window, but not the newly created one because the context hasn't been switched yet.
Given that we check the tab index, I can only assume that `get_selected_tab_index()` is racy and actually still uses the previously open window and not the newly opened one as most recent window:
https://dxr.mozilla.org/mozilla-central/rev/b906009d875d1f5d29b0d1252cdb43a9b1a5889c/testing/marionette/harness/marionette_harness/tests/unit/test_switch_window_content.py#36-70
Maybe it is somewhat related to the same underlying problem as bug 1446293.
See Also: → 1446293
Updated•7 years ago
|
Priority: -- → P5
Comment hidden (Intermittent Failures Robot) |
Comment 24•7 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 7 years ago → 7 years ago
Resolution: --- → INCOMPLETE
Comment hidden (Intermittent Failures Robot) |
Comment 26•6 years ago
|
||
(In reply to Henrik Skupin (:whimboo) from comment #22)
Given that we check the tab index, I can only assume that
get_selected_tab_index()
is racy and actually still uses the previously
open window and not the newly opened one as most recent window:
We indeed had a race here, which got fixed by Gijs on bug 1506796. So this failure should indeed not happen anymore.
Assignee: nobody → gijskruitbosch+bugs
status-firefox65:
--- → fixed
Depends on: 1506796
Resolution: INCOMPLETE → FIXED
Target Milestone: --- → mozilla65
Updated•6 years ago
|
status-firefox64:
--- → wontfix
Updated•2 years ago
|
Product: Testing → Remote Protocol
Comment 27•2 years ago
|
||
Moving bug to Testing::Marionette Client and Harness component per bug 1815831.
Component: Marionette → Marionette Client and Harness
Product: Remote Protocol → Testing
You need to log in
before you can comment on or make changes to this bug.
Description
•