Bug: Intermittent browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js | This test exceeded the timeout threshold. It should be rewritten or split up. If that's not possible, use requestLongerTimeout(N), but only as a last resort. -
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-01-13 19:14:31+00:00
Resolved: 2021-02-09 17:03:32+00:00

**Filed by:** apavel [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=326610922&repo=mozilla-beta
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/T7W2Q4zvS0O-iYAibj_t7Q/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2021-01-13T18:12:54.926Z] 18:12:54     INFO - TEST-START | browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js
[task 2021-01-13T18:12:58.591Z] 18:12:58     INFO - GECKO(1542) | JavaScript error: resource:///actors/ContentSearchParent.jsm, line 622: TypeError: browser is null
[task 2021-01-13T18:12:58.594Z] 18:12:58     INFO - GECKO(1542) | JavaScript error: resource:///actors/ContentSearchParent.jsm, line 622: TypeError: browser is null
[task 2021-01-13T18:16:22.800Z] 18:16:22     INFO - GECKO(1542) | JavaScript error: resource:///actors/ContentSearchParent.jsm, line 622: TypeError: browser is null
[task 2021-01-13T18:16:22.803Z] 18:16:22     INFO - GECKO(1542) | JavaScript error: resource:///actors/ContentSearchParent.jsm, line 622: TypeError: browser is null
[task 2021-01-13T18:16:22.889Z] 18:16:22     INFO - GECKO(1542) | IPDL protocol error: Handler returned error code!
[task 2021-01-13T18:16:22.889Z] 18:16:22     INFO - GECKO(1542) | ###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
[task 2021-01-13T18:16:22.889Z] 18:16:22     INFO - GECKO(1542) | IPDL protocol error: Handler returned error code!
[task 2021-01-13T18:16:22.889Z] 18:16:22     INFO - GECKO(1542) | ###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
[task 2021-01-13T18:16:30.584Z] 18:16:30     INFO - TEST-INFO | started process screentopng
[task 2021-01-13T18:16:31.111Z] 18:16:31     INFO - TEST-INFO | screentopng: exit 0
[task 2021-01-13T18:16:31.112Z] 18:16:31     INFO - <snipped 74 output lines - if you need more context, please use SimpleTest.requestCompleteLog() in your test>
[task 2021-01-13T18:16:31.120Z] 18:16:31     INFO - Buffered messages logged at 18:16:09
[task 2021-01-13T18:16:31.120Z] 18:16:31     INFO - Open a new tab with the same search
[task 2021-01-13T18:16:31.120Z] 18:16:31     INFO - Awaiting for the urlbar panel to open
[task 2021-01-13T18:16:31.120Z] 18:16:31     INFO - Buffered messages logged at 18:16:10
[task 2021-01-13T18:16:31.120Z] 18:16:31     INFO - Switch across tabs
[task 2021-01-13T18:16:31.120Z] 18:16:31     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js | 2 == 2 - 
[task 2021-01-13T18:16:31.120Z] 18:16:31     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js | 12 == 12 - 
[task 2021-01-13T18:16:31.120Z] 18:16:31     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js | 2 == 2 - 
[task 2021-01-13T18:16:31.120Z] 18:16:31     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js | 12 == 12 - 
[task 2021-01-13T18:16:31.120Z] 18:16:31     INFO - Close tab and check the view is open.
[task 2021-01-13T18:16:31.120Z] 18:16:31     INFO - Buffered messages logged at 18:16:11
[task 2021-01-13T18:16:31.120Z] 18:16:31     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js | 2 == 2 - 
[task 2021-01-13T18:16:31.120Z] 18:16:31     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js | 12 == 12 - 
[task 2021-01-13T18:16:31.120Z] 18:16:31     INFO - Open a new tab with a different search
[task 2021-01-13T18:16:31.120Z] 18:16:31     INFO - Buffered messages logged at 18:16:12
[task 2021-01-13T18:16:31.120Z] 18:16:31     INFO - Awaiting for the urlbar panel to open
[task 2021-01-13T18:16:31.120Z] 18:16:31     INFO - Switch to the first tab and check the panel remains open

[task 2021-01-13T18:16:31.153Z] 18:16:31     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js | Should not autofill - "e" == "e" - 
[task 2021-01-13T18:16:31.153Z] 18:16:31     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js | Check initial allowAutofill - false == false - 
[task 2021-01-13T18:16:31.154Z] 18:16:31     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js | Should not autofill - "e" == "e" - 
[task 2021-01-13T18:16:31.154Z] 18:16:31     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js | Check reopened allowAutofill - false == false - 
[task 2021-01-13T18:16:31.154Z] 18:16:31     INFO - Leaving test bound test_allowAutofill
[task 2021-01-13T18:16:31.154Z] 18:16:31     INFO - Entering test bound test_clicks_after_autofill
[task 2021-01-13T18:16:31.155Z] 18:16:31     INFO - Check that clickin on an autofilled input field doesn't requery, causing loss of the caret position
[task 2021-01-13T18:16:31.156Z] 18:16:31     INFO - Buffered messages logged at 18:16:29
[task 2021-01-13T18:16:31.156Z] 18:16:31     INFO - autofill in tab2, switch to tab1, then back to tab2 with the mouse
[task 2021-01-13T18:16:31.156Z] 18:16:31     INFO - Awaiting for the urlbar panel to open
[task 2021-01-13T18:16:31.156Z] 18:16:31     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js | Should have autofilled - "example.com/" == "example.com/" - 
[task 2021-01-13T18:16:31.156Z] 18:16:31     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js | true == true - 
[task 2021-01-13T18:16:31.157Z] 18:16:31     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js | 3 == 3 - 
[task 2021-01-13T18:16:31.157Z] 18:16:31     INFO - Buffered messages logged at 18:16:30
[task 2021-01-13T18:16:31.158Z] 18:16:31     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js | true == true - 
[task 2021-01-13T18:16:31.158Z] 18:16:31     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js | true == true - 
[task 2021-01-13T18:16:31.158Z] 18:16:31     INFO - Leaving test bound test_clicks_after_autofill
[task 2021-01-13T18:16:31.158Z] 18:16:31     INFO - Buffered messages finished
[task 2021-01-13T18:16:31.158Z] 18:16:31     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js | This test exceeded the timeout threshold. It should be rewritten or split up. If that's not possible, use requestLongerTimeout(N), but only as a last resort. - 
[task 2021-01-13T18:16:31.158Z] 18:16:31     INFO - GECKO(1542) | MEMORY STAT | vsize 130552200MB | residentFast 3342MB
[task 2021-01-13T18:16:31.159Z] 18:16:31     INFO - TEST-OK | browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js | took 215660ms
[task 2021-01-13T18:16:31.159Z] 18:16:31     INFO - checking window state```