Bug: Intermittent browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js | There should be search engines available to add -
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-06-15 15:21:37+00:00
Resolved: 2021-07-20 17:03:53+00:00

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

---
```
[task 2021-06-15T14:35:12.202Z] 14:35:12     INFO - TEST-START | browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js
[task 2021-06-15T14:35:12.301Z] 14:35:12     INFO - GECKO(6876) | console.log: "_cleanup from onBeforeAddons"
[task 2021-06-15T14:35:12.341Z] 14:35:12     INFO - GECKO(6876) | console.log: "_cleanup from onProfileAfterChange"
[task 2021-06-15T14:35:12.341Z] 14:35:12     INFO - GECKO(6876) | console.log: "_cleanup from onBeforeUIStartup"
[task 2021-06-15T14:35:12.342Z] 14:35:12     INFO - GECKO(6876) | console.log: "_cleanup from onAllWindowsRestored"
[task 2021-06-15T14:35:12.422Z] 14:35:12     INFO - GECKO(6876) | console.log: "_cleanup from onBeforeAddons"
[task 2021-06-15T14:35:12.424Z] 14:35:12     INFO - GECKO(6876) | console.log: "_cleanup from onProfileAfterChange"
[task 2021-06-15T14:35:12.424Z] 14:35:12     INFO - GECKO(6876) | console.log: "_cleanup from onBeforeUIStartup"
[task 2021-06-15T14:35:12.426Z] 14:35:12     INFO - GECKO(6876) | console.log: "_cleanup from onAllWindowsRestored"
[task 2021-06-15T14:35:12.470Z] 14:35:12     INFO - GECKO(6876) | console.log: "_cleanup from onBeforeAddons"
[task 2021-06-15T14:35:12.470Z] 14:35:12     INFO - GECKO(6876) | console.log: "_cleanup from onProfileAfterChange"
[task 2021-06-15T14:35:12.471Z] 14:35:12     INFO - GECKO(6876) | console.log: "_cleanup from onBeforeUIStartup"
[task 2021-06-15T14:35:12.471Z] 14:35:12     INFO - GECKO(6876) | console.log: "_cleanup from onAllWindowsRestored"
[task 2021-06-15T14:35:12.885Z] 14:35:12     INFO - TEST-INFO | started process screenshot
[task 2021-06-15T14:35:12.955Z] 14:35:12     INFO - TEST-INFO | screenshot: exit 0
[task 2021-06-15T14:35:12.955Z] 14:35:12     INFO - Buffered messages logged at 14:35:12
[task 2021-06-15T14:35:12.956Z] 14:35:12     INFO - Entering test bound policies_headjs_startWithCleanSlate
[task 2021-06-15T14:35:12.956Z] 14:35:12     INFO - TEST-PASS | browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js | Engine is inactive at the start of the test - 
[task 2021-06-15T14:35:12.956Z] 14:35:12     INFO - Leaving test bound policies_headjs_startWithCleanSlate
[task 2021-06-15T14:35:12.957Z] 14:35:12     INFO - Entering test bound test_setup
[task 2021-06-15T14:35:12.957Z] 14:35:12     INFO - Leaving test bound test_setup
[task 2021-06-15T14:35:12.957Z] 14:35:12     INFO - Entering test bound test_install_and_set_default
[task 2021-06-15T14:35:12.958Z] 14:35:12     INFO - TEST-PASS | browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js | Default search engine should not be MozSearch when test starts - 
[task 2021-06-15T14:35:12.958Z] 14:35:12     INFO - TEST-PASS | browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js | Engine "Foo" should not be present when test starts - 
[task 2021-06-15T14:35:12.959Z] 14:35:12     INFO - TEST-PASS | browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js | Sanity check the temporary file doesn't exist. - true == true - 
[task 2021-06-15T14:35:12.959Z] 14:35:12     INFO - TEST-PASS | browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js | Specified search engine should be the default - 
[task 2021-06-15T14:35:12.960Z] 14:35:12     INFO - Leaving test bound test_install_and_set_default
[task 2021-06-15T14:35:12.960Z] 14:35:12     INFO - Entering test bound test_install_and_set_default_private
[task 2021-06-15T14:35:12.960Z] 14:35:12     INFO - TEST-PASS | browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js | Default search engine should not be MozSearch when test starts - 
[task 2021-06-15T14:35:12.961Z] 14:35:12     INFO - TEST-PASS | browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js | Engine "Foo" should not be present when test starts - 
[task 2021-06-15T14:35:12.961Z] 14:35:12     INFO - TEST-PASS | browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js | Sanity check the temporary file doesn't exist. - true == true - 
[task 2021-06-15T14:35:12.962Z] 14:35:12     INFO - TEST-PASS | browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js | Specified search engine should be the default private engine - 
[task 2021-06-15T14:35:12.962Z] 14:35:12     INFO - Leaving test bound test_install_and_set_default_private
[task 2021-06-15T14:35:12.963Z] 14:35:12     INFO - Entering test bound test_install_and_set_default_prevent_installs
[task 2021-06-15T14:35:12.963Z] 14:35:12     INFO - TEST-PASS | browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js | Default search engine should not be MozSearch when test starts - 
[task 2021-06-15T14:35:12.963Z] 14:35:12     INFO - TEST-PASS | browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js | Engine "Foo" should not be present when test starts - 
[task 2021-06-15T14:35:12.964Z] 14:35:12     INFO - TEST-PASS | browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js | Sanity check the temporary file doesn't exist. - true == true - 
[task 2021-06-15T14:35:12.964Z] 14:35:12     INFO - TEST-PASS | browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js | Specified search engine should be the default - 
[task 2021-06-15T14:35:12.964Z] 14:35:12     INFO - Leaving test bound test_install_and_set_default_prevent_installs
[task 2021-06-15T14:35:12.965Z] 14:35:12     INFO - Entering test bound test_opensearch_works
[task 2021-06-15T14:35:12.965Z] 14:35:12     INFO - TEST-PASS | browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js | Sanity check the temporary file doesn't exist. - true == true - 
[task 2021-06-15T14:35:12.966Z] 14:35:12     INFO - Console message: [JavaScript Error: "updateButtonLabel, no currentNotification" {file: "resource://gre/modules/LoginManagerPrompter.jsm" line: 271}]
[task 2021-06-15T14:35:12.966Z] 14:35:12     INFO - updateButtonLabel@resource://gre/modules/LoginManagerPrompter.jsm:271:12
[task 2021-06-15T14:35:12.966Z] 14:35:12     INFO - writeDataToUI@resource://gre/modules/LoginManagerPrompter.jsm:325:7
[task 2021-06-15T14:35:12.966Z] 14:35:12     INFO - eventCallback@resource://gre/modules/LoginManagerPrompter.jsm:733:15
[task 2021-06-15T14:35:12.966Z] 14:35:12     INFO - PopupNotifications_fireCallback@resource://gre/modules/PopupNotifications.jsm:1699:40
[task 2021-06-15T14:35:12.966Z] 14:35:12     INFO - PopupNotifications_showPanel/</this._popupshownListener/<@resource://gre/modules/PopupNotifications.jsm:1335:16
[task 2021-06-15T14:35:12.966Z] 14:35:12     INFO - PopupNotifications_showPanel/</this._popupshownListener@resource://gre/modules/PopupNotifications.jsm:1334:29
[task 2021-06-15T14:35:12.966Z] 14:35:12     INFO - 
[task 2021-06-15T14:35:12.967Z] 14:35:12     INFO - Console message: [JavaScript Error: "can't access property "mainAction", currentNotification is null" {file: "resource://gre/modules/LoginManagerPrompter.jsm" line: 292}]
[task 2021-06-15T14:35:12.967Z] 14:35:12     INFO - updateButtonLabel@resource://gre/modules/LoginManagerPrompter.jsm:292:7
[task 2021-06-15T14:35:12.967Z] 14:35:12     INFO - writeDataToUI@resource://gre/modules/LoginManagerPrompter.jsm:325:7
[task 2021-06-15T14:35:12.967Z] 14:35:12     INFO - eventCallback@resource://gre/modules/LoginManagerPrompter.jsm:733:15
[task 2021-06-15T14:35:12.967Z] 14:35:12     INFO - PopupNotifications_fireCallback@resource://gre/modules/PopupNotifications.jsm:1699:40
[task 2021-06-15T14:35:12.967Z] 14:35:12     INFO - PopupNotifications_showPanel/</this._popupshownListener/<@resource://gre/modules/PopupNotifications.jsm:1335:16
[task 2021-06-15T14:35:12.968Z] 14:35:12     INFO - PopupNotifications_showPanel/</this._popupshownListener@resource://gre/modules/PopupNotifications.jsm:1334:29
[task 2021-06-15T14:35:12.968Z] 14:35:12     INFO - 
[task 2021-06-15T14:35:12.968Z] 14:35:12     INFO - Buffered messages finished
[task 2021-06-15T14:35:12.968Z] 14:35:12     INFO - TEST-UNEXPECTED-FAIL | browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js | There should be search engines available to add - 
[task 2021-06-15T14:35:12.969Z] 14:35:12     INFO - Stack trace:
[task 2021-06-15T14:35:12.969Z] 14:35:12     INFO - chrome://mochikit/content/browser-test.js:test_ok:1334
[task 2021-06-15T14:35:12.969Z] 14:35:12     INFO - chrome://mochitests/content/browser/browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js:test_opensearch:53
[task 2021-06-15T14:35:12.969Z] 14:35:12     INFO - TEST-PASS | browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js | Search bar should have addengines attribute - 
[task 2021-06-15T14:35:12.969Z] 14:35:12     INFO - Leaving test bound test_opensearch_works
<...>
[task 2021-06-15T14:35:14.658Z] 14:35:14     INFO - TEST-PASS | browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js | Engine is inactive at the end of the test - 
[task 2021-06-15T14:35:14.709Z] 14:35:14     INFO - GECKO(6876) | MEMORY STAT | vsize 2104496MB | vsizeMaxContiguous 65497926MB | residentFast 496MB | heapAllocated 251MB
[task 2021-06-15T14:35:14.709Z] 14:35:14     INFO - TEST-OK | browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js | took 2507ms
[task 2021-06-15T14:35:14.719Z] 14:35:14     INFO - checking window state
[task 2021-06-15T14:35:14.735Z] 14:35:14     INFO - TEST-START | browser/components/enterprisepolicies/tests/browser/browser_policy_searchbar.js
```