Bug: Intermittent TEST-UNEXPECTED-TIMEOUT | browser/components/search/test/browser/browser_contextmenu.js | application timed out after 370 seconds with no output
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-04-08 17:51:01+00:00
Resolved: 2021-05-04 17:03:31+00:00

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

---
```
[task 2021-04-08T17:04:43.665Z] 17:04:43     INFO - TEST-OK | browser/components/search/test/browser/browser_contextSearchTabPosition.js | took 787ms
[task 2021-04-08T17:04:43.721Z] 17:04:43     INFO - GECKO(1568) | JavaScript error: chrome://browser/content/contentSearchHandoffUI.js, line 81: TypeError: DOMLocalization.setAttributes: Argument 1 is not an object.
[task 2021-04-08T17:04:43.757Z] 17:04:43     INFO - checking window state
[task 2021-04-08T17:04:43.777Z] 17:04:43     INFO - GECKO(1568) | JavaScript error: chrome://browser/content/contentSearchHandoffUI.js, line 81: TypeError: DOMLocalization.setAttributes: Argument 1 is not an object.
[task 2021-04-08T17:04:43.886Z] 17:04:43     INFO - TEST-START | browser/components/search/test/browser/browser_contextmenu.js
[task 2021-04-08T17:04:44.418Z] 17:04:44     INFO - GECKO(1568) | JavaScript error: chrome://browser/content/contentSearchHandoffUI.js, line 68: TypeError: DOMLocalization.setAttributes: Argument 1 is not an object.
[task 2021-04-08T17:11:00.443Z] 17:11:00     INFO - Buffered messages logged at 17:04:43
[task 2021-04-08T17:11:00.445Z] 17:11:00     INFO - Entering test bound setup
[task 2021-04-08T17:11:00.446Z] 17:11:00     INFO - Console message: [JavaScript Error: "TypeError: DOMLocalization.setAttributes: Argument 1 is not an object." {file: "chrome://browser/content/contentSearchHandoffUI.js" line: 81}]
[task 2021-04-08T17:11:00.446Z] 17:11:00     INFO - _updateEngine@chrome://browser/content/contentSearchHandoffUI.js:81:21
[task 2021-04-08T17:11:00.446Z] 17:11:00     INFO - _onMsgCurrentEngine@chrome://browser/content/contentSearchHandoffUI.js:34:12
[task 2021-04-08T17:11:00.446Z] 17:11:00     INFO - handleEvent@chrome://browser/content/contentSearchHandoffUI.js:19:23
[task 2021-04-08T17:11:00.446Z] 17:11:00     INFO - _fireEvent@resource:///actors/ContentSearchChild.jsm:34:24
[task 2021-04-08T17:11:00.446Z] 17:11:00     INFO - receiveMessage@resource:///actors/ContentSearchChild.jsm:21:10
[task 2021-04-08T17:11:00.446Z] 17:11:00     INFO - 
[task 2021-04-08T17:11:00.446Z] 17:11:00     INFO - Console message: [JavaScript Error: "TypeError: DOMLocalization.setAttributes: Argument 1 is not an object." {file: "chrome://browser/content/contentSearchHandoffUI.js" line: 81}]
[task 2021-04-08T17:11:00.447Z] 17:11:00     INFO - _updateEngine@chrome://browser/content/contentSearchHandoffUI.js:81:21
[task 2021-04-08T17:11:00.447Z] 17:11:00     INFO - _onMsgCurrentEngine@chrome://browser/content/contentSearchHandoffUI.js:34:12
[task 2021-04-08T17:11:00.447Z] 17:11:00     INFO - handleEvent@chrome://browser/content/contentSearchHandoffUI.js:19:23
[task 2021-04-08T17:11:00.447Z] 17:11:00     INFO - _fireEvent@resource:///actors/ContentSearchChild.jsm:34:24
[task 2021-04-08T17:11:00.447Z] 17:11:00     INFO - receiveMessage@resource:///actors/ContentSearchChild.jsm:21:10
[task 2021-04-08T17:11:00.447Z] 17:11:00     INFO - 
[task 2021-04-08T17:11:00.447Z] 17:11:00     INFO - Extension loaded
[task 2021-04-08T17:11:00.447Z] 17:11:00     INFO - Buffered messages logged at 17:04:44
[task 2021-04-08T17:11:00.447Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Search provider extension should be running - "running" == "running" - 
[task 2021-04-08T17:11:00.447Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Extension ID of search provider should be set - "{088113a3-704a-4bf8-af25-a981bc688dda}" == true - 
[task 2021-04-08T17:11:00.447Z] 17:11:00     INFO - Extension loaded
[task 2021-04-08T17:11:00.447Z] 17:11:00     INFO - Console message: [JavaScript Error: "can't access property "installDate", addon is null" {file: "resource://gre/modules/ExtensionSettingsStore.jsm" line: 415}]
[task 2021-04-08T17:11:00.447Z] 17:11:00     INFO - addSetting@resource://gre/modules/ExtensionSettingsStore.jsm:415:9
[task 2021-04-08T17:11:00.447Z] 17:11:00     INFO - 
[task 2021-04-08T17:11:00.447Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Search provider extension should be running - "running" == "running" - 
[task 2021-04-08T17:11:00.447Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Extension ID of search provider should be set - "{52e8be26-ebc8-49d3-b556-01c0f7deb820}" == true - 
[task 2021-04-08T17:11:00.448Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Got a search engine - {"QueryInterface":"function QueryInterface() {\n    [native code]\n}","name":"mozSearch","getSubmission":"function getSubmission() {\n    [native code]\n}","searchUrlQueryParamName":"test","searchUrlPublicSuffix":"com","supportsResponseType":"function supportsResponseType() {\n    [native code]\n}","getIconURLBySize":"function getIconURLBySize() {\n    [native code]\n}","getIcons":"function getIcons() {\n    [native code]\n}","speculativeConnect":"function speculativeConnect() {\n    [native code]\n}","alias":"","aliases":[],"description":null,"hidden":false,"iconURI":null,"searchForm":"https://example.com","sendAttributionRequest":false,"telemetryId":"other-mozSearch","identifier":null,"isAppProvided":false,"isGeneralPurposeEngine":false,"getResultDomain":"function getResultDomain() {\n    [native code]\n}"} == true - 
[task 2021-04-08T17:11:00.450Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Got a search engine - {"QueryInterface":"function QueryInterface() {\n    [native code]\n}","name":"mozPrivateSearch","getSubmission":"function getSubmission() {\n    [native code]\n}","searchUrlQueryParamName":"test","searchUrlPublicSuffix":"com","supportsResponseType":"function supportsResponseType() {\n    [native code]\n}","getIconURLBySize":"function getIconURLBySize() {\n    [native code]\n}","getIcons":"function getIcons() {\n    [native code]\n}","speculativeConnect":"function speculativeConnect() {\n    [native code]\n}","alias":"","aliases":[],"description":null,"hidden":false,"iconURI":null,"searchForm":"https://example.com","sendAttributionRequest":false,"telemetryId":"other-mozPrivateSearch","identifier":null,"isAppProvided":false,"isGeneralPurposeEngine":false,"getResultDomain":"function getResultDomain() {\n    [native code]\n}"} == true - 
[task 2021-04-08T17:11:00.455Z] 17:11:00     INFO - Leaving test bound setup
[task 2021-04-08T17:11:00.455Z] 17:11:00     INFO - Entering test bound test_normalWindow
[task 2021-04-08T17:11:00.455Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Got context menu XUL - [object XULPopupElement] == true - 
[task 2021-04-08T17:11:00.455Z] 17:11:00     INFO - Console message: [JavaScript Error: "can't access property "installDate", addon is null" {file: "resource://gre/modules/ExtensionSettingsStore.jsm" line: 415}]
[task 2021-04-08T17:11:00.456Z] 17:11:00     INFO - addSetting@resource://gre/modules/ExtensionSettingsStore.jsm:415:9
[task 2021-04-08T17:11:00.456Z] 17:11:00     INFO - 
[task 2021-04-08T17:11:00.456Z] 17:11:00     INFO - Console message: [JavaScript Error: "TypeError: DOMLocalization.setAttributes: Argument 1 is not an object." {file: "chrome://browser/content/contentSearchHandoffUI.js" line: 68}]
[task 2021-04-08T17:11:00.456Z] 17:11:00     INFO - _updateEngine@chrome://browser/content/contentSearchHandoffUI.js:68:21
[task 2021-04-08T17:11:00.456Z] 17:11:00     INFO - _onMsgCurrentEngine@chrome://browser/content/contentSearchHandoffUI.js:34:12
[task 2021-04-08T17:11:00.456Z] 17:11:00     INFO - handleEvent@chrome://browser/content/contentSearchHandoffUI.js:19:23
[task 2021-04-08T17:11:00.456Z] 17:11:00     INFO - _fireEvent@resource:///actors/ContentSearchChild.jsm:34:24
[task 2021-04-08T17:11:00.456Z] 17:11:00     INFO - receiveMessage@resource:///actors/ContentSearchChild.jsm:21:10
[task 2021-04-08T17:11:00.456Z] 17:11:00     INFO - 
[task 2021-04-08T17:11:00.456Z] 17:11:00     INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "https://example.com/browser/browser/components/search/test/browser/test_search.html" line: 0}]
[task 2021-04-08T17:11:00.457Z] 17:11:00     INFO - Buffered messages logged at 17:04:45
[task 2021-04-08T17:11:00.457Z] 17:11:00     INFO - checkContextMenu
[task 2021-04-08T17:11:00.457Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Got search context menu item - {"renderedOnce":true,"_accelTextIsDerived":true,"_ignoreAccelTextChange":true,"_inheritedElements":{".menu-iconic-text":null,".menu-text":{"_lastFormattedAccessKey":null},".menu-iconic-highlightable-text":null},"initializedAttributeInheritance":true,"searchTerms":"test%20search","principal":{},"csp":"{\"csp-policies\":[]}","usePrivate":false} == true - 
[task 2021-04-08T17:11:00.457Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Check context menu label - "Search mozSearch for “test%20search”" == "Search mozSearch for “test%20search”" - 
[task 2021-04-08T17:11:00.457Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Check that search context menu item is enabled - false == false - 
[task 2021-04-08T17:11:00.457Z] 17:11:00     INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "https://example.com/browser/browser/components/search/test/browser/mozsearch.sjs?test=test%2520search" line: 0}]
[task 2021-04-08T17:11:00.457Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Ensure there were no errors loading the search page - true == true - 
[task 2021-04-08T17:11:00.457Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Got search in private window context menu item - {"renderedOnce":true,"_accelTextIsDerived":true,"_ignoreAccelTextChange":true,"_inheritedElements":{".menu-iconic-text":null,".menu-text":{"_lastFormattedAccessKey":null},".menu-iconic-highlightable-text":null},"initializedAttributeInheritance":true,"searchTerms":"test%20search","principal":{},"csp":"{\"csp-policies\":[]}"} == true - 
[task 2021-04-08T17:11:00.457Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Check context menu label - "Search with mozPrivateSearch in a Private Window" == "Search with mozPrivateSearch in a Private Window" - 
[task 2021-04-08T17:11:00.458Z] 17:11:00     INFO - Buffered messages logged at 17:04:46
[task 2021-04-08T17:11:00.458Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Check that search context menu item is enabled - false == false - 
[task 2021-04-08T17:11:00.458Z] 17:11:00     INFO - Leaving test bound test_normalWindow
[task 2021-04-08T17:11:00.458Z] 17:11:00     INFO - Entering test bound test_privateWindow
[task 2021-04-08T17:11:00.458Z] 17:11:00     INFO - Buffered messages logged at 17:04:48
[task 2021-04-08T17:11:00.458Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Got context menu XUL - {"AUTOSCROLL_INTERVAL":25,"NOT_DRAGGING":0,"DRAG_OVER_BUTTON":-1,"DRAG_OVER_POPUP":1,"_draggingState":0,"_scrollTimer":0,"isRunningDelayedConnectedCallback":false,"hasConnected":true} == true - 
[task 2021-04-08T17:11:00.460Z] 17:11:00     INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "https://example.com/browser/browser/components/search/test/browser/test_search.html" line: 0}]
[task 2021-04-08T17:11:00.460Z] 17:11:00     INFO - Buffered messages logged at 17:04:49
[task 2021-04-08T17:11:00.460Z] 17:11:00     INFO - checkContextMenu
[task 2021-04-08T17:11:00.462Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Got search context menu item - {"renderedOnce":true,"_accelTextIsDerived":true,"_ignoreAccelTextChange":true,"_inheritedElements":{".menu-iconic-text":null,".menu-text":{"_lastFormattedAccessKey":null},".menu-iconic-highlightable-text":null},"initializedAttributeInheritance":true,"searchTerms":"test%20search","principal":{},"csp":"{\"csp-policies\":[]}","usePrivate":true} == true - 
[task 2021-04-08T17:11:00.462Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Check context menu label - "Search mozPrivateSearch for “test%20search”" == "Search mozPrivateSearch for “test%20search”" - 
[task 2021-04-08T17:11:00.464Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Check that search context menu item is enabled - false == false - 
[task 2021-04-08T17:11:00.464Z] 17:11:00     INFO - Buffered messages logged at 17:04:50
[task 2021-04-08T17:11:00.464Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Ensure there were no errors loading the search page - true == true - 
[task 2021-04-08T17:11:00.464Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Got search in private window context menu item - {"renderedOnce":true,"_accelTextIsDerived":true,"_ignoreAccelTextChange":true,"_inheritedElements":null,"initializedAttributeInheritance":true,"searchTerms":"test%20search","principal":{},"csp":"{\"csp-policies\":[]}"} == true - 
[task 2021-04-08T17:11:00.465Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Search in private window should be hidden - true == true - 
[task 2021-04-08T17:11:00.465Z] 17:11:00     INFO - Leaving test bound test_privateWindow
[task 2021-04-08T17:11:00.466Z] 17:11:00     INFO - Entering test bound test_normalWindow_sameDefaults
[task 2021-04-08T17:11:00.466Z] 17:11:00     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Got context menu XUL - [object XULPopupElement] == true - 
[task 2021-04-08T17:11:00.466Z] 17:11:00     INFO - Buffered messages finished
[task 2021-04-08T17:11:00.467Z] 17:11:00    ERROR - TEST-UNEXPECTED-TIMEOUT | browser/components/search/test/browser/browser_contextmenu.js | application timed out after 370 seconds with no output
[task 2021-04-08T17:11:00.467Z] 17:11:00    ERROR - Force-terminating active process(es).
[task 2021-04-08T17:11:00.467Z] 17:11:00     INFO - Determining child pids from psutil...
[task 2021-04-08T17:11:00.470Z] 17:11:00     INFO - [1635, 1659, 1715, 1756, 1797, 1824, 1866]
[task 2021-04-08T17:11:00.472Z] 17:11:00     INFO - ==> process 1568 launched child process 1583
[task 2021-04-08T17:11:00.472Z] 17:11:00     INFO - ==> process 1568 launched child process 1635
[task 2021-04-08T17:11:00.472Z] 17:11:00     INFO - ==> process 1568 launched child process 1659
[task 2021-04-08T17:11:00.472Z] 17:11:00     INFO - ==> process 1568 launched child process 1715
[task 2021-04-08T17:11:00.473Z] 17:11:00     INFO - ==> process 1568 launched child process 1756
[task 2021-04-08T17:11:00.475Z] 17:11:00     INFO - ==> process 1568 launched child process 1797
[task 2021-04-08T17:11:00.475Z] 17:11:00     INFO - ==> process 1568 launched child process 1824
[task 2021-04-08T17:11:00.475Z] 17:11:00     INFO - Found child pids: set([1824, 1635, 1797, 1866, 1583, 1715, 1659, 1756])
[task 2021-04-08T17:11:00.475Z] 17:11:00     INFO - Failed to get child procs
[task 2021-04-08T17:11:00.475Z] 17:11:00     INFO - Killing process: 1824
[task 2021-04-08T17:11:00.475Z] 17:11:00     INFO - TEST-INFO | started process screentopng
[task 2021-04-08T17:11:00.700Z] 17:11:00     INFO - TEST-INFO | screentopng: exit 0```