Bug: Intermittent browser/base/content/test/backforward/browser_history_menu.js | '1' item historyindex - Got "-2", expected "-1"
Status: RESOLVED
Priority: P5
Resolution: WORKSFORME
Created: 2021-03-03 07:53:05+00:00
Resolved: 2021-06-23 11:52:41+00:00

**Filed by:** dluca [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=331849895&repo=mozilla-central
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/O2r-uLJjR2ysN3dmX7szHw/runs/0/artifacts/public/logs/live_backing.log

---
```
INFO - TEST-START | browser/base/content/test/backforward/browser_history_menu.js
[task 2021-03-03T05:58:30.724Z] 05:58:30     INFO - TEST-INFO | started process screentopng
[task 2021-03-03T05:58:31.083Z] 05:58:31     INFO - TEST-INFO | screentopng: exit 0
[task 2021-03-03T05:58:31.092Z] 05:58:31     INFO - Buffered messages logged at 05:58:28
[task 2021-03-03T05:58:31.092Z] 05:58:31     INFO - Entering test bound mousedown_back
[task 2021-03-03T05:58:31.092Z] 05:58:31     INFO - waiting for the history menu to open
[task 2021-03-03T05:58:31.093Z] 05:58:31     INFO - Buffered messages logged at 05:58:29
[task 2021-03-03T05:58:31.093Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | history menu opened - 
[task 2021-03-03T05:58:31.093Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | Correct number of history items - 
[task 2021-03-03T05:58:31.093Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '1' item uri - 
[task 2021-03-03T05:58:31.094Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '1' item index - 
[task 2021-03-03T05:58:31.097Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '1' item historyindex - 
[task 2021-03-03T05:58:31.097Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '2' item uri - 
[task 2021-03-03T05:58:31.098Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '2' item index - 
[task 2021-03-03T05:58:31.098Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '2' item historyindex - 
[task 2021-03-03T05:58:31.098Z] 05:58:31     INFO - waiting for the history menu to open
[task 2021-03-03T05:58:31.099Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | history menu opened - 
[task 2021-03-03T05:58:31.109Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | Correct number of history items - 
[task 2021-03-03T05:58:31.109Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '1' item uri - 
[task 2021-03-03T05:58:31.109Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '1' item index - 
[task 2021-03-03T05:58:31.109Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '1' item historyindex - 
[task 2021-03-03T05:58:31.110Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '2' item uri - 
[task 2021-03-03T05:58:31.110Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '2' item index - 
[task 2021-03-03T05:58:31.111Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '2' item historyindex - 
[task 2021-03-03T05:58:31.111Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '3' item uri - 
[task 2021-03-03T05:58:31.111Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '3' item index - 
[task 2021-03-03T05:58:31.112Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '3' item historyindex - 
[task 2021-03-03T05:58:31.112Z] 05:58:31     INFO - waiting for the history menu to open
[task 2021-03-03T05:58:31.112Z] 05:58:31     INFO - Buffered messages logged at 05:58:30
[task 2021-03-03T05:58:31.112Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | history menu opened - 
[task 2021-03-03T05:58:31.112Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | Correct number of history items - 
[task 2021-03-03T05:58:31.112Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '1' item uri - 
[task 2021-03-03T05:58:31.113Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '1' item index - 
[task 2021-03-03T05:58:31.116Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '1' item historyindex - 
[task 2021-03-03T05:58:31.117Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '2' item uri - 
[task 2021-03-03T05:58:31.117Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '2' item index - 
[task 2021-03-03T05:58:31.118Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '2' item historyindex - 
[task 2021-03-03T05:58:31.121Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '3' item uri - 
[task 2021-03-03T05:58:31.121Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '3' item index - 
[task 2021-03-03T05:58:31.122Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '3' item historyindex - 
[task 2021-03-03T05:58:31.123Z] 05:58:31     INFO - Leaving test bound mousedown_back
[task 2021-03-03T05:58:31.123Z] 05:58:31     INFO - Entering test bound contextmenu_back
[task 2021-03-03T05:58:31.124Z] 05:58:31     INFO - waiting for the history menu to open
[task 2021-03-03T05:58:31.124Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | history menu opened - 
[task 2021-03-03T05:58:31.124Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | Correct number of history items - 
[task 2021-03-03T05:58:31.125Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '1' item uri - 
[task 2021-03-03T05:58:31.125Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '1' item index - 
[task 2021-03-03T05:58:31.125Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '1' item historyindex - 
[task 2021-03-03T05:58:31.131Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '2' item uri - 
[task 2021-03-03T05:58:31.131Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '2' item index - 
[task 2021-03-03T05:58:31.131Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '2' item historyindex - 
[task 2021-03-03T05:58:31.132Z] 05:58:31     INFO - waiting for the history menu to open
[task 2021-03-03T05:58:31.132Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | history menu opened - 
[task 2021-03-03T05:58:31.132Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | Correct number of history items - 
[task 2021-03-03T05:58:31.132Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '1' item uri - 
[task 2021-03-03T05:58:31.132Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '1' item index - 
[task 2021-03-03T05:58:31.132Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '1' item historyindex - 
[task 2021-03-03T05:58:31.133Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '2' item uri - 
[task 2021-03-03T05:58:31.133Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '2' item index - 
[task 2021-03-03T05:58:31.133Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '2' item historyindex - 
[task 2021-03-03T05:58:31.133Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '3' item uri - 
[task 2021-03-03T05:58:31.134Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '3' item index - 
[task 2021-03-03T05:58:31.134Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '3' item historyindex - 
[task 2021-03-03T05:58:31.134Z] 05:58:31     INFO - waiting for the history menu to open
[task 2021-03-03T05:58:31.134Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | history menu opened - 
[task 2021-03-03T05:58:31.135Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | Correct number of history items - 
[task 2021-03-03T05:58:31.135Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '1' item uri - 
[task 2021-03-03T05:58:31.135Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '1' item index - 
[task 2021-03-03T05:58:31.136Z] 05:58:31     INFO - Buffered messages finished
[task 2021-03-03T05:58:31.136Z] 05:58:31     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/backforward/browser_history_menu.js | '1' item historyindex - Got "-2", expected "-1"
[task 2021-03-03T05:58:31.136Z] 05:58:31     INFO - Stack trace:
[task 2021-03-03T05:58:31.136Z] 05:58:31     INFO - chrome://mochikit/content/browser-test.js:test_is:1359
[task 2021-03-03T05:58:31.136Z] 05:58:31     INFO - chrome://mochitests/content/browser/browser/base/content/test/backforward/browser_history_menu.js:testBackForwardMenu:78
[task 2021-03-03T05:58:31.136Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '2' item uri - 
[task 2021-03-03T05:58:31.137Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '2' item index - 
[task 2021-03-03T05:58:31.137Z] 05:58:31     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-03-03T05:58:31.137Z] 05:58:31     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/backforward/browser_history_menu.js | '2' item historyindex - Got "-1", expected "0"
[task 2021-03-03T05:58:31.137Z] 05:58:31     INFO - Stack trace:
[task 2021-03-03T05:58:31.137Z] 05:58:31     INFO - chrome://mochikit/content/browser-test.js:test_is:1359
[task 2021-03-03T05:58:31.137Z] 05:58:31     INFO - chrome://mochitests/content/browser/browser/base/content/test/backforward/browser_history_menu.js:testBackForwardMenu:87
[task 2021-03-03T05:58:31.138Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '3' item uri - 
[task 2021-03-03T05:58:31.138Z] 05:58:31     INFO - TEST-PASS | browser/base/content/test/backforward/browser_history_menu.js | '3' item index - 
[task 2021-03-03T05:58:31.138Z] 05:58:31     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-03-03T05:58:31.138Z] 05:58:31     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/backforward/browser_history_menu.js | '3' item historyindex - Got "0", expected "1"
[task 2021-03-03T05:58:31.138Z] 05:58:31     INFO - Stack trace:
[task 2021-03-03T05:58:31.138Z] 05:58:31     INFO - chrome://mochikit/content/browser-test.js:test_is:1359
[task 2021-03-03T05:58:31.139Z] 05:58:31     INFO - chrome://mochitests/content/browser/browser/base/content/test/backforward/browser_history_menu.js:testBackForwardMenu:97
[task 2021-03-03T05:58:31.140Z] 05:58:31     INFO - Leaving test bound contextmenu_back
[task 2021-03-03T05:58:31.142Z] 05:58:31     INFO - GECKO(5464) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2021-03-03T05:58:31.142Z] 05:58:31     INFO - GECKO(5464) | MEMORY STAT | vsize 3126MB | residentFast 292MB | heapAllocated 113MB
[task 2021-03-03T05:58:31.143Z] 05:58:31     INFO - TEST-OK | browser/base/content/test/backforward/browser_history_menu.js | took 2765ms
[task 2021-03-03T05:58:31.144Z] 05:58:31     INFO - checking window state
[task 2021-03-03T05:58:31.145Z] 05:58:31     INFO - GECKO(5464) | Completed ShutdownLeaks collections in process 5464
[task 2021-03-03T05:58:31.145Z] 05:58:31     INFO - TEST-START | Shutdown```