Bug: Intermittent TV browser/components/preferences/tests/browser_open_download_preferences.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-06-25 18:20:33+00:00
Resolved: 2022-11-15 17:00:25+00:00

**Filed by:** mlaza [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=343879468&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/e5yMXGCpS9KcY2vwmCNIQA/runs/0/artifacts/public/logs/live_backing.log
**Reftest URL:** https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/e5yMXGCpS9KcY2vwmCNIQA/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2021-06-25T17:39:33.769Z] 17:39:33     INFO - TEST-START | browser/components/preferences/tests/browser_open_download_preferences.js
[task 2021-06-25T17:39:40.573Z] 17:39:40     INFO - GECKO(5217) | 2021-06-25 17:39:40.572 firefox[5217:73845] Persistent UI failed to open file file:///Users/cltbld/Library/Saved%20Application%20State/org.mozilla.nightly.savedState/window_1.data: No such file or directory (2)
[task 2021-06-25T17:39:49.159Z] 17:39:49     INFO - GECKO(5217) | JavaScript error: resource://pdf.js/PdfStreamConverter.jsm, line 1132: NS_ERROR_FAILURE: Can't use PDF.js
[task 2021-06-25T17:40:05.745Z] 17:40:05     INFO - GECKO(5217) | JavaScript error: , line 0: uncaught exception: Object
[task 2021-06-25T17:40:15.491Z] 17:40:15     INFO - GECKO(5217) | JavaScript error: resource://pdf.js/PdfStreamConverter.jsm, line 1132: NS_ERROR_FAILURE: Can't use PDF.js
[task 2021-06-25T17:40:26.954Z] 17:40:26     INFO - GECKO(5217) | JavaScript error: resource://pdf.js/PdfStreamConverter.jsm, line 1132: NS_ERROR_FAILURE: Can't use PDF.js
[task 2021-06-25T17:40:28.205Z] 17:40:28     INFO - TEST-INFO | started process screencapture
[task 2021-06-25T17:40:28.319Z] 17:40:28     INFO - TEST-INFO | screencapture: exit 0
[task 2021-06-25T17:40:28.320Z] 17:40:28     INFO - Buffered messages logged at 17:39:33
[task 2021-06-25T17:40:28.320Z] 17:40:28     INFO - Entering test bound alwaysAskPreferenceWorks
[task 2021-06-25T17:40:28.321Z] 17:40:28     INFO - Buffered messages logged at 17:39:39
[task 2021-06-25T17:40:28.322Z] 17:40:28     INFO - Console message: [JavaScript Error: "[Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsIXPCComponents_Utils.readUTF8URI]"  nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)"  location: "JS frame :: resource://gre/modules/L10nRegistry.jsm :: L10nRegistry.loadSync :: line 692"  data: no]"]
[task 2021-06-25T17:40:28.322Z] 17:40:28     INFO - L10nRegistry.loadSync@resource://gre/modules/L10nRegistry.jsm:692:19
[task 2021-06-25T17:40:28.322Z] 17:40:28     INFO - fetchFile@resource://gre/modules/L10nRegistry.jsm:607:31
[task 2021-06-25T17:40:28.322Z] 17:40:28     INFO - generateResourceSetSync/<@resource://gre/modules/L10nRegistry.jsm:512:19
[task 2021-06-25T17:40:28.322Z] 17:40:28     INFO - generateResourceSetSync@resource://gre/modules/L10nRegistry.jsm:507:22
[task 2021-06-25T17:40:28.322Z] 17:40:28     INFO - generateResourceSetsForLocaleSync@resource://gre/modules/L10nRegistry.jsm:449:44
[task 2021-06-25T17:40:28.322Z] 17:40:28     INFO - generateBundlesSync@resource://gre/modules/L10nRegistry.jsm:186:7
[task 2021-06-25T17:40:28.322Z] 17:40:28     INFO - touchNext@resource://gre/modules/Localization.jsm:167:37
[task 2021-06-25T17:40:28.323Z] 17:40:28     INFO - generateBundles@resource://gre/modules/Localization.jsm:473:15
[task 2021-06-25T17:40:28.323Z] 17:40:28     INFO - getLanguageDisplayNames@resource://gre/modules/mozIntl.jsm:788:19
[task 2021-06-25T17:40:28.323Z] 17:40:28     INFO - getLocaleDisplayNames/<@resource://gre/modules/mozIntl.jsm:866:14
[task 2021-06-25T17:40:28.323Z] 17:40:28     INFO - getLocaleDisplayNames@resource://gre/modules/mozIntl.jsm:845:24
[task 2021-06-25T17:40:28.323Z] 17:40:28     INFO - displayUseSystemLocale@chrome://browser/content/preferences/main.js:1402:43
[task 2021-06-25T17:40:28.323Z] 17:40:28     INFO - init@chrome://browser/content/preferences/main.js:370:10
[task 2021-06-25T17:40:28.323Z] 17:40:28     INFO - init@chrome://browser/content/preferences/preferences.js:105:22
[task 2021-06-25T17:40:28.323Z] 17:40:28     INFO - 
[task 2021-06-25T17:40:28.323Z] 17:40:28     INFO - Buffered messages logged at 17:39:47
[task 2021-06-25T17:40:28.324Z] 17:40:28     INFO - Preferences page opened on the general pane.
[task 2021-06-25T17:40:28.324Z] 17:40:28     INFO - Apps list loaded.
[task 2021-06-25T17:40:28.325Z] 17:40:28     INFO - TEST-PASS | browser/components/preferences/tests/browser_open_download_preferences.js | Should be able to select our item. - true == true - 
[task 2021-06-25T17:40:28.325Z] 17:40:28     INFO - Buffered messages logged at 17:39:48
[task 2021-06-25T17:40:28.326Z] 17:40:28     INFO - Console message: [JavaScript Warning: "Element.releaseCapture() is deprecated. Use Element.releasePointerCapture() instead. For more help https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture" {file: "chrome://global/content/elements/menupopup.js" line: 163}]
[task 2021-06-25T17:40:28.327Z] 17:40:28     INFO - TEST-PASS | browser/components/preferences/tests/browser_open_download_preferences.js | Should have selected 'always ask' for pdf - {"renderedOnce":true,"_accelTextIsDerived":true,"_ignoreAccelTextChange":true,"_inheritedElements":{".menu-iconic-text":{"_lastFormattedAccessKey":null},".menu-text":null,".menu-iconic-highlightable-text":{"_lastFormattedAccessKey":null},".menu-iconic-left":{}},"initializedAttributeInheritance":true} == {"renderedOnce":true,"_accelTextIsDerived":true,"_ignoreAccelTextChange":true,"_inheritedElements":{".menu-iconic-text":{"_lastFormattedAccessKey":null},".menu-text":null,".menu-iconic-highlightable-text":{"_lastFormattedAccessKey":null},".menu-iconic-left":{}},"initializedAttributeInheritance":true} - 
[task 2021-06-25T17:40:28.327Z] 17:40:28     INFO - TEST-PASS | browser/components/preferences/tests/browser_open_download_preferences.js | Should have turned on 'always asking before handling' - true == true - 
[task 2021-06-25T17:40:28.328Z] 17:40:28     INFO - Buffered messages logged at 17:39:49
[task 2021-06-25T17:40:28.328Z] 17:40:28     INFO - Console message: [JavaScript Error: "NS_ERROR_FAILURE: Can't use PDF.js" {file: "resource://pdf.js/PdfStreamConverter.jsm" line: 1132}]
[task 2021-06-25T17:40:28.328Z] 17:40:28     INFO - getConvertedType@resource://pdf.js/PdfStreamConverter.jsm:1132:11
[task 2021-06-25T17:40:28.328Z] 17:40:28     INFO - 
[task 2021-06-25T17:40:28.329Z] 17:40:28     INFO - Buffered messages logged at 17:39:52
[task 2021-06-25T17:40:28.329Z] 17:40:28     INFO - TEST-PASS | browser/components/preferences/tests/browser_open_download_preferences.js | Dialog should be shown - [object XULElement] == true - 
[task 2021-06-25T17:40:28.330Z] 17:40:28     INFO - Leaving test bound alwaysAskPreferenceWorks
[task 2021-06-25T17:40:28.330Z] 17:40:28     INFO - Entering test bound handleInternallyPreferenceWorks
[task 2021-06-25T17:40:28.330Z] 17:40:28     INFO - Buffered messages logged at 17:40:03
[task 2021-06-25T17:40:28.331Z] 17:40:28     INFO - Preferences page opened on the general pane.
[task 2021-06-25T17:40:28.331Z] 17:40:28     INFO - Apps list loaded.
[task 2021-06-25T17:40:28.332Z] 17:40:28     INFO - TEST-PASS | browser/components/preferences/tests/browser_open_download_preferences.js | Should be able to select our item. - true == true - 
[task 2021-06-25T17:40:28.332Z] 17:40:28     INFO - Buffered messages logged at 17:40:04
[task 2021-06-25T17:40:28.333Z] 17:40:28     INFO - Console message: [JavaScript Warning: "Element.releaseCapture() is deprecated. Use Element.releasePointerCapture() instead. For more help https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture" {file: "chrome://global/content/elements/menupopup.js" line: 163}]
[task 2021-06-25T17:40:28.334Z] 17:40:28     INFO - TEST-PASS | browser/components/preferences/tests/browser_open_download_preferences.js | Should have selected 'handle internally' for pdf - {"renderedOnce":true,"_accelTextIsDerived":true,"_ignoreAccelTextChange":true,"_inheritedElements":{".menu-iconic-text":{"_lastFormattedAccessKey":null},".menu-text":null,".menu-iconic-highlightable-text":{"_lastFormattedAccessKey":null},".menu-iconic-left":{}},"initializedAttributeInheritance":true} == {"renderedOnce":true,"_accelTextIsDerived":true,"_ignoreAccelTextChange":true,"_inheritedElements":{".menu-iconic-text":{"_lastFormattedAccessKey":null},".menu-text":null,".menu-iconic-highlightable-text":{"_lastFormattedAccessKey":null},".menu-iconic-left":{}},"initializedAttributeInheritance":true} - 
[task 2021-06-25T17:40:28.334Z] 17:40:28     INFO - Buffered messages logged at 17:40:05
[task 2021-06-25T17:40:28.335Z] 17:40:28     INFO - Console message: [JavaScript Error: "uncaught exception: Object"]
[task 2021-06-25T17:40:28.335Z] 17:40:28     INFO - TEST-PASS | browser/components/preferences/tests/browser_open_download_preferences.js | document content has viewer UI - {} == true - 
[task 2021-06-25T17:40:28.335Z] 17:40:28     INFO - Buffered messages logged at 17:40:06
[task 2021-06-25T17:40:28.336Z] 17:40:28     INFO - Leaving test bound handleInternallyPreferenceWorks
[task 2021-06-25T17:40:28.336Z] 17:40:28     INFO - Entering test bound saveToDiskPreferenceWorks
[task 2021-06-25T17:40:28.336Z] 17:40:28     INFO - Buffered messages logged at 17:40:13
[task 2021-06-25T17:40:28.337Z] 17:40:28     INFO - Preferences page opened on the general pane.
[task 2021-06-25T17:40:28.337Z] 17:40:28     INFO - Apps list loaded.
[task 2021-06-25T17:40:28.337Z] 17:40:28     INFO - TEST-PASS | browser/components/preferences/tests/browser_open_download_preferences.js | Should be able to select our item. - true == true - 
[task 2021-06-25T17:40:28.338Z] 17:40:28     INFO - Buffered messages logged at 17:40:14
[task 2021-06-25T17:40:28.338Z] 17:40:28     INFO - Console message: [JavaScript Warning: "Element.releaseCapture() is deprecated. Use Element.releasePointerCapture() instead. For more help https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture" {file: "chrome://global/content/elements/menupopup.js" line: 163}]
[task 2021-06-25T17:40:28.339Z] 17:40:28     INFO - TEST-PASS | browser/components/preferences/tests/browser_open_download_preferences.js | Should have selected 'save to disk' for pdf - {"renderedOnce":true,"_accelTextIsDerived":true,"_ignoreAccelTextChange":true,"_inheritedElements":{".menu-iconic-text":{"_lastFormattedAccessKey":null},".menu-text":null,".menu-iconic-highlightable-text":{"_lastFormattedAccessKey":null},".menu-iconic-left":{}},"initializedAttributeInheritance":true} == {"renderedOnce":true,"_accelTextIsDerived":true,"_ignoreAccelTextChange":true,"_inheritedElements":{".menu-iconic-text":{"_lastFormattedAccessKey":null},".menu-text":null,".menu-iconic-highlightable-text":{"_lastFormattedAccessKey":null},".menu-iconic-left":{}},"initializedAttributeInheritance":true} - 
[task 2021-06-25T17:40:28.340Z] 17:40:28     INFO - Buffered messages logged at 17:40:15
[task 2021-06-25T17:40:28.340Z] 17:40:28     INFO - Console message: [JavaScript Error: "NS_ERROR_FAILURE: Can't use PDF.js" {file: "resource://pdf.js/PdfStreamConverter.jsm" line: 1132}]
[task 2021-06-25T17:40:28.340Z] 17:40:28     INFO - getConvertedType@resource://pdf.js/PdfStreamConverter.jsm:1132:11
[task 2021-06-25T17:40:28.340Z] 17:40:28     INFO - 
[task 2021-06-25T17:40:28.341Z] 17:40:28     INFO - Buffered messages logged at 17:40:16
[task 2021-06-25T17:40:28.341Z] 17:40:28     INFO - TEST-PASS | browser/components/preferences/tests/browser_open_download_preferences.js | The file should have been downloaded. - true == true - 
[task 2021-06-25T17:40:28.342Z] 17:40:28     INFO - removing /Users/cltbld/Downloads/empty_pdf_file(1).pdf
[task 2021-06-25T17:40:28.342Z] 17:40:28     INFO - Buffered messages logged at 17:40:17
[task 2021-06-25T17:40:28.342Z] 17:40:28     INFO - Leaving test bound saveToDiskPreferenceWorks
[task 2021-06-25T17:40:28.343Z] 17:40:28     INFO - Entering test bound useSystemDefaultPreferenceWorks
[task 2021-06-25T17:40:28.343Z] 17:40:28     INFO - Buffered messages logged at 17:40:24
[task 2021-06-25T17:40:28.343Z] 17:40:28     INFO - Preferences page opened on the general pane.
[task 2021-06-25T17:40:28.344Z] 17:40:28     INFO - Apps list loaded.
[task 2021-06-25T17:40:28.344Z] 17:40:28     INFO - TEST-PASS | browser/components/preferences/tests/browser_open_download_preferences.js | Should be able to select our item. - true == true - 
[task 2021-06-25T17:40:28.345Z] 17:40:28     INFO - Buffered messages logged at 17:40:25
[task 2021-06-25T17:40:28.345Z] 17:40:28     INFO - Console message: [JavaScript Warning: "Element.releaseCapture() is deprecated. Use Element.releasePointerCapture() instead. For more help https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture" {file: "chrome://global/content/elements/menupopup.js" line: 163}]
[task 2021-06-25T17:40:28.346Z] 17:40:28     INFO - TEST-PASS | browser/components/preferences/tests/browser_open_download_preferences.js | Should have selected 'use system default' for pdf - {"renderedOnce":true,"_accelTextIsDerived":true,"_ignoreAccelTextChange":true,"_inheritedElements":{".menu-iconic-icon":{},".menu-iconic-text":{"_lastFormattedAccessKey":null},".menu-text":null,".menu-iconic-highlightable-text":{"_lastFormattedAccessKey":null},".menu-iconic-left":{}},"initializedAttributeInheritance":true} == {"renderedOnce":true,"_accelTextIsDerived":true,"_ignoreAccelTextChange":true,"_inheritedElements":{".menu-iconic-icon":{},".menu-iconic-text":{"_lastFormattedAccessKey":null},".menu-text":null,".menu-iconic-highlightable-text":{"_lastFormattedAccessKey":null},".menu-iconic-left":{}},"initializedAttributeInheritance":true} - 
[task 2021-06-25T17:40:28.347Z] 17:40:28     INFO - Buffered messages logged at 17:40:27
[task 2021-06-25T17:40:28.347Z] 17:40:28     INFO - Console message: [JavaScript Error: "NS_ERROR_FAILURE: Can't use PDF.js" {file: "resource://pdf.js/PdfStreamConverter.jsm" line: 1132}]
[task 2021-06-25T17:40:28.347Z] 17:40:28     INFO - getConvertedType@resource://pdf.js/PdfStreamConverter.jsm:1132:11
[task 2021-06-25T17:40:28.347Z] 17:40:28     INFO - 
[task 2021-06-25T17:40:28.348Z] 17:40:28     INFO - Downloading had finished
[task 2021-06-25T17:40:28.348Z] 17:40:28     INFO - Waiting until DownloadIntegration.launchFile is called
[task 2021-06-25T17:40:28.349Z] 17:40:28     INFO - TEST-PASS | browser/components/preferences/tests/browser_open_download_preferences.js | The file should be launched with an external application - 
[task 2021-06-25T17:40:28.349Z] 17:40:28     INFO - TEST-PASS | browser/components/preferences/tests/browser_open_download_preferences.js | The file should have been downloaded. - true == true - 
[task 2021-06-25T17:40:28.349Z] 17:40:28     INFO - removing /Users/cltbld/Downloads/empty_pdf_file-1.pdf
[task 2021-06-25T17:40:28.350Z] 17:40:28     INFO - Leaving test bound useSystemDefaultPreferenceWorks
[task 2021-06-25T17:40:28.350Z] 17:40:28     INFO - Buffered messages finished
[task 2021-06-25T17:40:28.351Z] 17:40:28     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_open_download_preferences.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-06-25T17:40:28.351Z] 17:40:28     INFO - GECKO(5217) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2021-06-25T17:40:28.351Z] 17:40:28     INFO - GECKO(5217) | MEMORY STAT | vsize 7897MB | residentFast 320MB | heapAllocated 143MB
[task 2021-06-25T17:40:28.352Z] 17:40:28     INFO - TEST-OK | browser/components/preferences/tests/browser_open_download_preferences.js | took 54437ms
```