Bug: Intermittent browser/components/sessionstore/test/marionette/test_restore_loading_tab.py TestRestoreLoadingPage.test_target_blank | AssertionError: 1 != 2 : The tab opened should be restored
Status: RESOLVED
Priority: P5
Resolution: INVALID
Created: 2023-04-14 07:01:28+00:00
Resolved: 2024-11-30 13:04:25+00:00

**Filed by:** csabou [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=412404644&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/HzTtk9SeS6-YfMKKTd1uoA/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2023-04-14T06:33:51.601Z] 06:33:51     INFO -  1681454031598	Marionette	DEBUG	1 -> [0,2,"Marionette:SetContext",{"value":"content"}]
[task 2023-04-14T06:33:51.606Z] 06:33:51     INFO -  1681454031600	Marionette	DEBUG	1 <- [1,2,null,{"value":null}]
[task 2023-04-14T06:33:51.610Z] 06:33:51     INFO -  1681454031603	Marionette	DEBUG	1 -> [0,3,"Marionette:GetContext",{}]
[task 2023-04-14T06:33:51.615Z] 06:33:51     INFO -  1681454031604	Marionette	DEBUG	1 <- [1,3,null,{"value":"content"}]
[task 2023-04-14T06:33:51.617Z] 06:33:51     INFO -  1681454031607	Marionette	DEBUG	1 -> [0,4,"Marionette:SetContext",{"value":"chrome"}]
[task 2023-04-14T06:33:51.617Z] 06:33:51     INFO -  1681454031609	Marionette	DEBUG	1 <- [1,4,null,{"value":null}]
[task 2023-04-14T06:33:51.618Z] 06:33:51     INFO -  1681454031614	Marionette	DEBUG	1 -> [0,5,"WebDriver:ExecuteScript",{"script":"return gBrowser.tabs.map(t => t.linkedBrowser.currentURI.spec);","args":[],"newSandbox":true,"sandbox":"default","line":28,"filename":"tests/browser/components/sessionstore/test/marionette/test_restore_loading_tab.py"}]
[task 2023-04-14T06:33:51.631Z] 06:33:51     INFO -  1681454031630	RemoteAgent	TRACE	WebDriverProcessData actor created for PID 1882
[task 2023-04-14T06:33:51.636Z] 06:33:51     INFO -  1681454031631	Marionette	TRACE	[1] MarionetteCommands actor created for window id 2
[task 2023-04-14T06:33:51.646Z] 06:33:51     INFO -  1681454031645	Marionette	DEBUG	1 <- [1,5,null,{"value":["data:text/html;charset=utf-8,%3Ca%20id%3D%27link%27%20href%3D%27http%3A//127.0.0.1%3A42427/slow%27%20target%3D%27_blank%27%3Eclick%3C/a%3E"]}]
[task 2023-04-14T06:33:51.651Z] 06:33:51     INFO -  1681454031650	Marionette	DEBUG	1 -> [0,6,"Marionette:SetContext",{"value":"content"}]
[task 2023-04-14T06:33:51.655Z] 06:33:51     INFO -  1681454031651	Marionette	DEBUG	1 <- [1,6,null,{"value":null}]
[task 2023-04-14T06:33:51.660Z] 06:33:51     INFO -  1681454031655	Marionette	DEBUG	1 -> [0,7,"Marionette:GetContext",{}]
[task 2023-04-14T06:33:51.664Z] 06:33:51     INFO -  1681454031656	Marionette	DEBUG	1 <- [1,7,null,{"value":"content"}]
[task 2023-04-14T06:33:51.670Z] 06:33:51     INFO -  1681454031670	Marionette	DEBUG	1 -> [0,8,"Marionette:SetContext",{"value":"chrome"}]
[task 2023-04-14T06:33:51.675Z] 06:33:51     INFO -  1681454031670	Marionette	DEBUG	1 <- [1,8,null,{"value":null}]
[task 2023-04-14T06:33:51.679Z] 06:33:51     INFO -  1681454031675	Marionette	DEBUG	1 -> [0,9,"WebDriver:TakeScreenshot",{"id":null,"full":true,"hash":false,"scroll":true}]
[task 2023-04-14T06:33:51.723Z] 06:33:51     INFO -  1681454031722	Marionette	DEBUG	1 <- [1,9,null,{"value":"iVBORw0KGgoAAAANSUhEUgAABQAAAAQQCAYAAAC9RfbYAAAgAElEQVR4XuzdD7QlV10n+n1v//+T7kAwCSEYyWAgIcnMsIbokMBToyCSxSxR40BQJ/hAiY5rAP8AM ... gDRAgQIAAAQIECBAgQIAAAQIECBAYCwiA4+c6jQABAgQIECBAgAABAgQIECBAgIAAaAMECBAgQIAAAQIECBAgQIAAAQIExgIBCC9B55hIuWgAAAAASUVORK5CYII="}]
[task 2023-04-14T06:33:51.730Z] 06:33:51     INFO -  1681454031729	Marionette	DEBUG	1 -> [0,10,"Marionette:SetContext",{"value":"content"}]
[task 2023-04-14T06:33:51.734Z] 06:33:51     INFO -  1681454031734	Marionette	DEBUG	1 <- [1,10,null,{"value":null}]
[task 2023-04-14T06:33:51.740Z] 06:33:51     INFO -  1681454031739	Marionette	DEBUG	1 -> [0,11,"Marionette:GetContext",{}]
[task 2023-04-14T06:33:51.744Z] 06:33:51     INFO -  1681454031744	Marionette	DEBUG	1 <- [1,11,null,{"value":"content"}]
[task 2023-04-14T06:33:51.750Z] 06:33:51     INFO -  1681454031749	Marionette	DEBUG	1 -> [0,12,"Marionette:SetContext",{"value":"content"}]
[task 2023-04-14T06:33:51.754Z] 06:33:51     INFO -  1681454031754	Marionette	DEBUG	1 <- [1,12,null,{"value":null}]
[task 2023-04-14T06:33:51.759Z] 06:33:51     INFO -  1681454031759	Marionette	DEBUG	1 -> [0,13,"WebDriver:GetPageSource",{}]
[task 2023-04-14T06:33:51.772Z] 06:33:51     INFO -  1681454031772	RemoteAgent	TRACE	WebDriverProcessData actor created for PID 1967
[task 2023-04-14T06:33:51.780Z] 06:33:51     INFO -  1681454031779	Marionette	TRACE	[3] MarionetteCommands actor created for window id 4294967297
[task 2023-04-14T06:33:51.782Z] 06:33:51     INFO -  1681454031781	Marionette	DEBUG	1 <- [1,13,null,{"value":"<html><head></head><body><a id=\"link\" href=\"http://127.0.0.1:42427/slow\" target=\"_blank\">click</a></body></html>"}]
[task 2023-04-14T06:33:51.783Z] 06:33:51     INFO -  1681454031782	Marionette	DEBUG	1 -> [0,14,"Marionette:SetContext",{"value":"content"}]
[task 2023-04-14T06:33:51.785Z] 06:33:51     INFO -  1681454031783	Marionette	DEBUG	1 <- [1,14,null,{"value":null}]
[task 2023-04-14T06:33:51.829Z] 06:33:51     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/marionette/test_restore_loading_tab.py TestRestoreLoadingPage.test_target_blank | AssertionError: 1 != 2 : The tab opened should be restored
[task 2023-04-14T06:33:51.829Z] 06:33:51     INFO - Traceback (most recent call last):
[task 2023-04-14T06:33:51.829Z] 06:33:51     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_harness/marionette_test/testcases.py", line 198, in run
[task 2023-04-14T06:33:51.830Z] 06:33:51     INFO -     testMethod()
[task 2023-04-14T06:33:51.830Z] 06:33:51     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/browser/components/sessionstore/test/marionette/test_restore_loading_tab.py", line 52, in test_target_blank
[task 2023-04-14T06:33:51.830Z] 06:33:51     INFO -     self.do_test("<a id='link' href='{}' target='_blank'>click</a>", True)
[task 2023-04-14T06:33:51.830Z] 06:33:51     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/browser/components/sessionstore/test/marionette/test_restore_loading_tab.py", line 35, in do_test
[task 2023-04-14T06:33:51.831Z] 06:33:51     INFO -     msg="The tab opened should be restored",
[task 2023-04-14T06:33:51.831Z] 06:33:51     INFO - TEST-INFO took 3245ms
[task 2023-04-14T06:33:51.831Z] 06:33:51     INFO -  1681454031785	Marionette	DEBUG	1 -> [0,15,"Marionette:GetContext",{}]
[task 2023-04-14T06:33:51.832Z] 06:33:51     INFO -  1681454031785	Marionette	DEBUG	1 <- [1,15,null,{"value":"content"}]
[task 2023-04-14T06:33:51.833Z] 06:33:51     INFO -  1681454031788	Marionette	DEBUG	1 -> [0,16,"Marionette:SetContext",{"value":"chrome"}]
[task 2023-04-14T06:33:51.833Z] 06:33:51     INFO -  1681454031788	Marionette	DEBUG	1 <- [1,16,null,{"value":null}]
[task 2023-04-14T06:33:51.834Z] 06:33:51     INFO -  1681454031789	Marionette	DEBUG	1 -> [0,17,"WebDriver:GetWindowHandles",{}]
[task 2023-04-14T06:33:51.835Z] 06:33:51     INFO -  1681454031789	Marionette	DEBUG	1 <- [1,17,null,["efa8a8e5-d20f-4ea5-abef-82bc0364f4d7"]]
[task 2023-04-14T06:33:51.835Z] 06:33:51     INFO -  1681454031790	Marionette	DEBUG	1 -> [0,18,"Marionette:SetContext",{"value":"content"}]
[task 2023-04-14T06:33:51.836Z] 06:33:51     INFO -  1681454031790	Marionette	DEBUG	1 <- [1,18,null,{"value":null}]
[task 2023-04-14T06:33:51.836Z] 06:33:51     INFO -  1681454031791	Marionette	DEBUG	1 -> [0,19,"Marionette:GetContext",{}]
[task 2023-04-14T06:33:51.837Z] 06:33:51     INFO -  1681454031791	Marionette	DEBUG	1 <- [1,19,null,{"value":"content"}]
[task 2023-04-14T06:33:51.837Z] 06:33:51     INFO -  1681454031791	Marionette	DEBUG	1 -> [0,20,"Marionette:SetContext",{"value":"content"}]
[task 2023-04-14T06:33:51.838Z] 06:33:51     INFO -  1681454031792	Marionette	DEBUG	1 <- [1,20,null,{"value":null}]
[task 2023-04-14T06:33:51.839Z] 06:33:51     INFO -  1681454031792	Marionette	DEBUG	1 -> [0,21,"WebDriver:GetWindowHandles",{}]
[task 2023-04-14T06:33:51.839Z] 06:33:51     INFO -  1681454031793	Marionette	DEBUG	1 <- [1,21,null,["84b2684b-c3c2-48d2-90ff-92af7a9a91b4"]]
[task 2023-04-14T06:33:51.840Z] 06:33:51     INFO -  1681454031793	Marionette	DEBUG	1 -> [0,22,"Marionette:SetContext",{"value":"content"}]
[task 2023-04-14T06:33:51.840Z] 06:33:51     INFO -  1681454031793	Marionette	DEBUG	1 <- [1,22,null,{"value":null}]
[task 2023-04-14T06:33:51.841Z] 06:33:51     INFO -  1681454031794	Marionette	DEBUG	1 -> [0,23,"WebDriver:DeleteSession",{}]
[task 2023-04-14T06:33:51.841Z] 06:33:51     INFO -  1681454031795	Marionette	TRACE	[3] MarionetteCommands actor destroyed for window id 4294967297
[task 2023-04-14T06:33:51.842Z] 06:33:51     INFO -  1681454031795	Marionette	TRACE	[1] MarionetteCommands actor destroyed for window id 2
[task 2023-04-14T06:33:51.843Z] 06:33:51     INFO -  1681454031799	Marionette	DEBUG	1 <- [1,23,null,{"value":null}]
[task 2023-04-14T06:33:51.843Z] 06:33:51     INFO - TEST-START | browser/components/sessionstore/test/marionette/test_restore_loading_tab.py TestRestoreLoadingPage.test_target_other
```