Intermittent test_click.py TestClickCloseContext.test_click_close_tab | NoSuchWindowException: Current window does not have a content browser

RESOLVED FIXED in Firefox 61

Status

defect
P5
normal
RESOLVED FIXED
2 years ago
Last year

People

(Reporter: intermittent-bug-filer, Assigned: whimboo)

Tracking

({intermittent-failure})

Version 3
mozilla62
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox61 fixed, firefox62 fixed)

Details

This happens during ´tearDown´ when ´close_all_tabs´ from the WindowManager class is called. The ´close´ method itself checks that there is a contentBrowser available and fails the assert:

[task 2017-08-24T01:55:07.533496Z] 01:55:07     INFO -  1503539707522	Marionette	TRACE	262 -> [0,32,"switchToWindow",{"focus":true,"name":"2147483684"}]
[task 2017-08-24T01:55:07.533920Z] 01:55:07     INFO -  1503539707530	Marionette	TRACE	262 <- [1,32,null,{}]
[task 2017-08-24T01:55:07.731759Z] 01:55:07     INFO -  1503539707723	Marionette	TRACE	262 -> [0,33,"close",{}]
[task 2017-08-24T01:55:07.732434Z] 01:55:07     INFO -  1503539707729	Marionette	TRACE	262 <- [1,33,{"error":"no such window","message":"Current window does not have a content browser", ...]

Something which is strange in that test when we open this new tab:

[task 2017-08-24T01:55:05.225613Z] 01:55:05     INFO -  1503539705221	Marionette	DEBUG	Register listener.js for window 2147483684
[task 2017-08-24T01:55:05.322496Z] 01:55:05     INFO -  1503539705314	Marionette	TRACE	262 -> [0,24,"getWindowHandles",{}]
[task 2017-08-24T01:55:05.324030Z] 01:55:05     INFO -  1503539705320	Marionette	TRACE	262 <- [1,24,null,["2147483649"]]
[task 2017-08-24T01:55:05.501815Z] 01:55:05     INFO -  1503539705495	Marionette	DEBUG	Register listener.js for window 2147483687
[task 2017-08-24T01:55:05.523738Z] 01:55:05     INFO -  1503539705520	Marionette	TRACE	262 -> [0,25,"getWindowHandles",{}]
[task 2017-08-24T01:55:05.532102Z] 01:55:05     INFO -  1503539705527	Marionette	TRACE	262 <- [1,25,null,["2147483649","2147483684"]]
[task 2017-08-24T01:55:05.556633Z] 01:55:05     INFO -  1503539705553	Marionette	TRACE	262 -> [0,26,"getWindowHandles",{}]
[task 2017-08-24T01:55:05.564404Z] 01:55:05     INFO -  1503539705560	Marionette	TRACE	262 <- [1,26,null,["2147483649","2147483684"]]
[task 2017-08-24T01:55:05.580809Z] 01:55:05     INFO -  1503539705576	Marionette	TRACE	262 -> [0,27,"switchToWindow",{"focus":true,"name":"2147483684"}]
[task 2017-08-24T01:55:05.596916Z] 01:55:05     INFO -  1503539705587	Marionette	TRACE	262 <- [1,27,null,{}]

There is another listener with id 2147483687 registered, but it never appears as window handle. 

Anyway, we switch to handle 2147483684, clicking on close window, and return immediately because no page load activity has been detected. A further call to get window handles still returns our two tabs:

[task 2017-08-24T01:55:07.496839Z] 01:55:07     INFO -  1503539707493	Marionette	TRACE	262 <- [1,30,null,{}]
[task 2017-08-24T01:55:07.512690Z] 01:55:07     INFO -  1503539707508	Marionette	TRACE	262 -> [0,31,"getWindowHandles",{}]
[task 2017-08-24T01:55:07.516315Z] 01:55:07     INFO -  1503539707514	Marionette	TRACE	262 <- [1,31,null,["2147483649","2147483684"]]
[task 2017-08-24T01:55:07.533496Z] 01:55:07     INFO -  1503539707522	Marionette	TRACE	262 -> [0,32,"switchToWindow",{"focus":true,"name":"2147483684"}]

So it would mean that click() returned too early.
Comment hidden (Intermittent Failures Robot)
A fix will be worked on bug 1394351.
Depends on: 1394351
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)
We're still waiting for a fix on bug 1394351.
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)
https://wiki.mozilla.org/Bug_Triage#Intermittent_Test_Failure_Cleanup
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
Fixed by bug 1452653.
Assignee: nobody → hskupin
Depends on: 1452653
Resolution: INCOMPLETE → FIXED
Target Milestone: --- → mozilla62
You need to log in before you can comment on or make changes to this bug.