Bug: [WIN11 - 24H2 upgrade] browser/components/aboutwelcome/tests/browser/browser_aboutwelcome_screen_targeting.js | Uncaught exception in test bound
Status: RESOLVED
Priority: P1
Resolution: FIXED
Created: 2024-12-10 22:27:09+00:00
Resolved: 2025-01-07 04:50:59+00:00

this test is [failing](https://treeherder.mozilla.org/jobs?repo=try&tier=1%2C2%2C3&searchStr=test-windows11%2Cbrowser-chrome&test_paths=browser%2Fcomponents%2Faboutwelcome%2Ftests%2Fbrowse&revision=f74f22af1b287677b3ff9c2917a6b70306b9b46c) when run on machines with windows 11 24H2 (oct 2024 update).  Our current CI runs windows 11 22H2 (Oct 2022).

This only fails on MSIX builds:
```
[task 2024-12-06T23:24:41.810Z] 23:24:41     INFO - TEST-PASS | browser/components/aboutwelcome/tests/browser/browser_aboutwelcome_screen_targeting.js | Should not render main.AW_EASY_SETUP_NEEDS_DEFAULT in doesn't render default and pin, only default or import easy setup - true == true - 
[task 2024-12-06T23:24:41.811Z] 23:24:41     INFO - TEST-PASS | browser/components/aboutwelcome/tests/browser/browser_aboutwelcome_screen_targeting.js | Should not render main.AW_EASY_SETUP_NEEDS_DEFAULT_AND_PIN in doesn't render default and pin, only default or import easy setup - true == true - 
[task 2024-12-06T23:24:41.811Z] 23:24:41     INFO - TEST-PASS | browser/components/aboutwelcome/tests/browser/browser_aboutwelcome_screen_targeting.js | Should not render main.AW_ONLY_IMPORT in doesn't render default and pin, only default or import easy setup - true == true - 
[task 2024-12-06T23:24:41.812Z] 23:24:41     INFO - TEST-PASS | browser/components/aboutwelcome/tests/browser/browser_aboutwelcome_screen_targeting.js | Navigated to a welcome screen - "about:welcome" == "about:welcome" - 
[task 2024-12-06T23:24:41.812Z] 23:24:41     INFO - Leaving test bound test_aboutwelcome_mr_template_easy_setup_needs_pin
[task 2024-12-06T23:24:41.813Z] 23:24:41     INFO - Entering test bound test_aboutwelcome_mr_template_easy_setup_needs_default
[task 2024-12-06T23:24:41.813Z] 23:24:41     INFO - Buffered messages finished
[task 2024-12-06T23:24:41.814Z] 23:24:41     INFO - TEST-UNEXPECTED-FAIL | browser/components/aboutwelcome/tests/browser/browser_aboutwelcome_screen_targeting.js | Uncaught exception in test bound test_aboutwelcome_mr_template_easy_setup_needs_default - Should render main.AW_EASY_SETUP_NEEDS_DEFAULT in doesn't render pin, import and set to default - timed out after 50 tries.
[task 2024-12-06T23:24:41.815Z] 23:24:41     INFO - Leaving test bound test_aboutwelcome_mr_template_easy_setup_needs_default
[task 2024-12-06T23:24:41.815Z] 23:24:41     INFO - Entering test bound test_aboutwelcome_mr_template_easy_setup_only_import
[task 2024-12-06T23:24:41.815Z] 23:24:41     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-12-06T23:24:41.818Z] 23:24:41     INFO - TEST-UNEXPECTED-FAIL | browser/components/aboutwelcome/tests/browser/browser_aboutwelcome_screen_targeting.js | Uncaught exception in test bound test_aboutwelcome_mr_template_easy_setup_only_import - at resource://testing-common/sinon-7.2.7.js:3605 - TypeError: Attempted to wrap doesAppNeedPin which is already wrapped
[task 2024-12-06T23:24:41.818Z] 23:24:41     INFO - Stack trace:
[task 2024-12-06T23:24:41.818Z] 23:24:41     INFO - checkWrappedMethod@resource://testing-common/sinon-7.2.7.js:3605:21
[task 2024-12-06T23:24:41.818Z] 23:24:41     INFO - wrapMethod@resource://testing-common/sinon-7.2.7.js:3653:31
[task 2024-12-06T23:24:41.818Z] 23:24:41     INFO - stub@resource://testing-common/sinon-7.2.7.js:3002:44
[task 2024-12-06T23:24:41.818Z] 23:24:41     INFO - stub@resource://testing-common/sinon-7.2.7.js:2099:33
[task 2024-12-06T23:24:41.819Z] 23:24:41     INFO - test_aboutwelcome_mr_template_easy_setup_only_import@chrome://mochitests/content/browser/browser/components/aboutwelcome/tests/browser/browser_aboutwelcome_screen_targeting.js:226:11
[task 2024-12-06T23:24:41.819Z] 23:24:41     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1147:26
[task 2024-12-06T23:24:41.819Z] 23:24:41     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1219:18
[task 2024-12-06T23:24:41.819Z] 23:24:41     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1360:14
[task 2024-12-06T23:24:41.819Z] 23:24:41     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1136:14
[task 2024-12-06T23:24:41.819Z] 23:24:41     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
```

I am adding a skip-if in bug 1936405.  I wanted to file a proper bug here.