Closed
Bug 1393377
Opened 7 years ago
Closed 7 years ago
Intermittent test_click.py TestClickCloseContext.test_click_close_tab | NoSuchWindowException: Current window does not have a content browser
Categories
(Testing :: Marionette Client and Harness, defect, P5)
Tracking
(firefox61 fixed, firefox62 fixed)
RESOLVED
FIXED
mozilla62
People
(Reporter: intermittent-bug-filer, Assigned: whimboo)
References
Details
(Keywords: intermittent-failure)
Assignee | ||
Comment 1•7 years ago
|
||
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) |
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 10•7 years ago
|
||
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) |
Comment 17•7 years ago
|
||
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
Assignee | ||
Comment 18•6 years ago
|
||
Fixed by bug 1452653.
Assignee: nobody → hskupin
status-firefox61:
--- → fixed
status-firefox62:
--- → fixed
Depends on: 1452653
Resolution: INCOMPLETE → FIXED
Target Milestone: --- → mozilla62
Updated•2 years ago
|
Product: Testing → Remote Protocol
Comment 19•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
•