Bug: Intermittent browser/components/firefoxview/tests/browser/browser_feature_callout_position.js | single tracking bug
Status: RESOLVED
Priority: P1
Resolution: FIXED
Created: 2022-08-11 19:13:38+00:00
Resolved: 2024-08-19 07:04:53+00:00

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

---
```
[task 2022-08-11T18:01:27.245Z] 18:01:27     INFO - TEST-START | browser/components/firefoxview/tests/browser/browser_feature_callout.js
[task 2022-08-11T18:01:27.975Z] 18:01:27     INFO - TEST-INFO | started process screentopng
[task 2022-08-11T18:01:28.384Z] 18:01:28     INFO - TEST-INFO | screentopng: exit 0
[task 2022-08-11T18:01:28.386Z] 18:01:28     INFO - Buffered messages logged at 18:01:27
[task 2022-08-11T18:01:28.387Z] 18:01:28     INFO - Entering test bound feature_callout_renders_in_firefox_view
[task 2022-08-11T18:01:28.388Z] 18:01:28     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_feature_callout.js | Feature Callout element exists - 
[task 2022-08-11T18:01:28.389Z] 18:01:28     INFO - Leaving test bound feature_callout_renders_in_firefox_view
[task 2022-08-11T18:01:28.390Z] 18:01:28     INFO - Entering test bound feature_callout_moves_on_screen_change
[task 2022-08-11T18:01:28.394Z] 18:01:28     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_feature_callout.js | Feature Callout moves to a new element when a user clicks the primary button - 
[task 2022-08-11T18:01:28.394Z] 18:01:28     INFO - Buffered messages finished
[task 2022-08-11T18:01:28.397Z] 18:01:28     INFO - TEST-UNEXPECTED-FAIL | browser/components/firefoxview/tests/browser/browser_feature_callout.js | A promise chain failed to handle a rejection: can't access property "content", screens[(screens.length - 1)] is undefined - stack: _getRelevantScreens@chrome://browser/content/featureCallout.mjs:392:5
[task 2022-08-11T18:01:28.397Z] 18:01:28     INFO - _loadConfig@chrome://browser/content/featureCallout.mjs:404:21
[task 2022-08-11T18:01:28.397Z] 18:01:28     INFO - handlePrefChange@chrome://browser/content/featureCallout.mjs:28:16
[task 2022-08-11T18:01:28.397Z] 18:01:28     INFO - observe@resource://gre/modules/XPCOMUtils.sys.mjs:324:22
[task 2022-08-11T18:01:28.397Z] 18:01:28     INFO - setPref@resource://messaging-system/lib/SpecialMessageActions.jsm:202:24
[task 2022-08-11T18:01:28.397Z] 18:01:28     INFO - handleAction@resource://messaging-system/lib/SpecialMessageActions.jsm:380:14
[task 2022-08-11T18:01:28.397Z] 18:01:28     INFO - onContentMessage@resource:///actors/AboutWelcomeParent.jsm:252:36
[task 2022-08-11T18:01:28.397Z] 18:01:28     INFO - receive/<@chrome://browser/content/featureCallout.mjs:325:14
[task 2022-08-11T18:01:28.397Z] 18:01:28     INFO - _setupWindowFunctions/window.AWSendToParent@chrome://browser/content/featureCallout.mjs:339:56
[task 2022-08-11T18:01:28.397Z] 18:01:28     INFO - handleUserAction@resource://activity-stream/aboutwelcome/aboutwelcome.bundle.js:40:12
[task 2022-08-11T18:01:28.397Z] 18:01:28     INFO - handleAction@resource://activity-stream/aboutwelcome/aboutwelcome.bundle.js:448:78
[task 2022-08-11T18:01:28.397Z] 18:01:28     INFO - ki@resource://activity-stream/vendor/react-dom.js:176:167
<...>
[task 2022-08-11T18:01:28.398Z] 18:01:28     INFO - sc@resource://activity-stream/vendor/react-dom.js:41:277
[task 2022-08-11T18:01:28.398Z] 18:01:28     INFO - unstable_runWithPriority@resource://activity-stream/vendor/react.js:25:260
[task 2022-08-11T18:01:28.398Z] 18:01:28     INFO - Da@resource://activity-stream/vendor/react-dom.js:60:280
[task 2022-08-11T18:01:28.399Z] 18:01:28     INFO - @resource://activity-stream/vendor/react-dom.js:236:12
[task 2022-08-11T18:01:28.399Z] 18:01:28     INFO - Ei@resource://activity-stream/vendor/react-dom.js:41:90
[task 2022-08-11T18:01:28.399Z] 18:01:28     INFO - feature_callout_moves_on_screen_change/<@chrome://mochitests/content/browser/browser/components/firefoxview/tests/browser/browser_feature_callout.js:103:46
[task 2022-08-11T18:01:28.405Z] 18:01:28     INFO - Rejection date: Thu Aug 11 2022 18:01:27 GMT+0000 (Coordinated Universal Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 270
[task 2022-08-11T18:01:28.406Z] 18:01:28     INFO - Stack trace:
[task 2022-08-11T18:01:28.410Z] 18:01:28     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:270
[task 2022-08-11T18:01:28.411Z] 18:01:28     INFO - chrome://mochikit/content/browser-test.js:handleTask:1056
[task 2022-08-11T18:01:28.412Z] 18:01:28     INFO - Leaving test bound feature_callout_moves_on_screen_change
[task 2022-08-11T18:01:28.413Z] 18:01:28     INFO - Entering test bound feature_callout_is_not_shown_twice
[task 2022-08-11T18:01:28.413Z] 18:01:28     INFO - GECKO(10474) | JavaScript error: chrome://browser/content/featureCallout.mjs, line 392: TypeError: can't access property "content", screens[(screens.length - 1)] is undefined
[task 2022-08-11T18:01:28.414Z] 18:01:28     INFO - Console message: [JavaScript Warning: "Loading failed for the <script> with source “resource://activity-stream/vendor/react.js”." {file: "about:firefoxview" line: 1}]
[task 2022-08-11T18:01:28.418Z] 18:01:28     INFO - Console message: [JavaScript Error: "TypeError: can't access property "content", screens[(screens.length - 1)] is undefined" {file: "chrome://browser/content/featureCallout.mjs" line: 392}]
[task 2022-08-11T18:01:28.419Z] 18:01:28     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_feature_callout.js | Feature Callout tour does not render if the user finished it previously - 
```