Closed Bug 1983026 Opened 1 year ago Closed 1 year ago

Perma TEST-UNEXPECTED-FAIL | browser/base/content/test/alerts/browser_notification_unexpected_script.js | Should have seen an error from the evalInSandbox call when Gecko 143 merges to beta on 2025-08-18

Categories

(Toolkit :: Alerts Service, defect)

defect

Tracking

()

VERIFIED FIXED
143 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox-esr140 --- unaffected
firefox141 --- unaffected
firefox142 --- unaffected
firefox143 + verified

People

(Reporter: smolnar, Assigned: tjr)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Central as Beta simulation

How to run these simulations

Failure log

TEST-INFO | screentopng: exit 0
[task 2025-08-14T11:12:53.397+00:00] 11:12:53     INFO - Buffered messages logged at 11:12:52
[task 2025-08-14T11:12:53.398+00:00] 11:12:53     INFO - Entering setup bound 
[task 2025-08-14T11:12:53.399+00:00] 11:12:53     INFO - Leaving setup bound 
[task 2025-08-14T11:12:53.400+00:00] 11:12:53     INFO - Entering test bound test_block_workflow
[task 2025-08-14T11:12:53.400+00:00] 11:12:53     INFO - Buffered messages finished
[task 2025-08-14T11:12:53.400+00:00] 11:12:53     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/alerts/browser_notification_unexpected_script.js | Should have seen an error from the evalInSandbox call - 
[task 2025-08-14T11:12:53.400+00:00] 11:12:53     INFO - Stack trace:
[task 2025-08-14T11:12:53.400+00:00] 11:12:53     INFO - chrome://mochikit/content/browser-test.js:test_ok:1718
<...>
TEST-PASS | browser/base/content/test/alerts/browser_notification_unexpected_script.js | Should  have set the allow pref - 
[task 2025-08-14T11:12:54.265+00:00] 11:12:54     INFO - Leaving test bound test_allow_workflow
[task 2025-08-14T11:12:54.266+00:00] 11:12:54     INFO - Entering test bound test_allow_with_no_report_workflow
[task 2025-08-14T11:12:54.284+00:00] 11:12:54     INFO - Not taking screenshot here: see the one that was previously logged
[task 2025-08-14T11:12:54.284+00:00] 11:12:54     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/alerts/browser_notification_unexpected_script.js | Should have seen an error from the evalInSandbox call - 
[task 2025-08-14T11:12:54.284+00:00] 11:12:54     INFO - Stack trace:
[task 2025-08-14T11:12:54.284+00:00] 11:12:54     INFO - chrome://mochikit/content/browser-test.js:test_ok:1718
[task 2025-08-14T11:12:54.284+00:00] 11:12:54     INFO - chrome://mochitests/content/browser/browser/base/content/test/alerts/browser_notification_unexpected_script.js:runTest:176
[task 2025-08-14T11:12:54.284+00:00] 11:12:54     INFO - chrome://mochitests/content/browser/browser/base/content/test/alerts/browser_notification_unexpected_script.js:runWorkflow:364
[task 2025-08-14T11:12:54.284+00:00] 11:12:54     INFO - chrome://mochitests/content/browser/browser/base/content/test/alerts/browser_notification_unexpected_script.js:test_allow_with_no_report_workflow:476
[task 2025-08-14T11:12:54.285+00:00] 11:12:54     INFO - chrome://mochikit/content/browser-test.js:handleTask:1238
[task 2025-08-14T11:12:54.285+00:00] 11:12:54     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1327
[task 2025-08-14T11:12:54.285+00:00] 11:12:54     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1474
[task 2025-08-14T11:12:54.285+00:00] 11:12:54     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1220
[task 2025-08-14T11:12:54.285+00:00] 11:12:54     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2025-08-14T11:12:54.354+00:00] 11:12:54     INFO - TEST-PASS | browser/base/content/test/alerts/browser_notification_unexpected_script.js | Notification should be visible - 
<...>
INFO - TEST-PASS | browser/base/content/test/alerts/browser_notification_unexpected_script.js | Should not have set the allow pref - 
[task 2025-08-14T11:12:55.352+00:00] 11:12:55     INFO - GECKO(1423) | console.error: services.settings:
[task 2025-08-14T11:12:55.355+00:00] 11:12:55     INFO - GECKO(1423) |   Message: EmptyDatabaseError: "main/nimbus-desktop-experiments" has not been synced yet
[task 2025-08-14T11:12:55.356+00:00] 11:12:55     INFO - GECKO(1423) |   Stack:
[task 2025-08-14T11:12:55.357+00:00] 11:12:55     INFO - GECKO(1423) |     EmptyDatabaseError@resource://services-settings/Database.sys.mjs:19:5
[task 2025-08-14T11:12:55.359+00:00] 11:12:55     INFO - GECKO(1423) | list@resource://services-settings/Database.sys.mjs:96:13
[task 2025-08-14T11:12:55.359+00:00] 11:12:55     INFO - GECKO(1423) | async*get@resource://services-settings/RemoteSettingsClient.sys.mjs:572:28
[task 2025-08-14T11:12:55.359+00:00] 11:12:55     INFO - GECKO(1423) | async*getRecipesFromCollection@resource://nimbus/lib/RemoteSettingsExperimentLoader.sys.mjs:536:30
[task 2025-08-14T11:12:55.360+00:00] 11:12:55     INFO - GECKO(1423) | getRecipesFromAllCollections@resource://nimbus/lib/RemoteSettingsExperimentLoader.sys.mjs:475:36
[task 2025-08-14T11:12:55.361+00:00] 11:12:55     INFO - GECKO(1423) | #updateImpl@resource://nimbus/lib/RemoteSettingsExperimentLoader.sys.mjs:404:18
[task 2025-08-14T11:12:55.362+00:00] 11:12:55     INFO - GECKO(1423) | async*updateRecipes/<@resource://nimbus/lib/RemoteSettingsExperimentLoader.sys.mjs:360:53
[task 2025-08-14T11:12:55.371+00:00] 11:12:55     INFO - GECKO(1423) | LockGrantedCallback*withUpdateLock@resource://nimbus/lib/RemoteSettingsExperimentLoader.sys.mjs:317:24
[task 2025-08-14T11:12:55.372+00:00] 11:12:55     INFO - GECKO(1423) | updateRecipes@resource://nimbus/lib/RemoteSettingsExperimentLoader.sys.mjs:360:16
[task 2025-08-14T11:12:55.373+00:00] 11:12:55     INFO - GECKO(1423) | enable@resource://nimbus/lib/RemoteSettingsExperimentLoader.sys.mjs:286:16
[task 2025-08-14T11:12:55.374+00:00] 11:12:55     INFO - GECKO(1423) | onEnabledPrefChange@resource://nimbus/lib/RemoteSettingsExperimentLoader.sys.mjs:706:18
[task 2025-08-14T11:12:55.374+00:00] 11:12:55     INFO - GECKO(1423) | _onStudiesEnabledChanged@resource://nimbus/ExperimentAPI.sys.mjs:378:26
[task 2025-08-14T11:12:55.374+00:00] 11:12:55     INFO - GECKO(1423) | _setPref@resource://testing-common/SpecialPowersParent.sys.mjs:564:31
[task 2025-08-14T11:12:55.376+00:00] 11:12:55     INFO - GECKO(1423) | _applyPrefs@resource://testing-common/SpecialPowersParent.sys.mjs:450:14
[task 2025-08-14T11:12:55.376+00:00] 11:12:55     INFO - GECKO(1423) | pushPrefEnv/<@resource://testing-common/SpecialPowersParent.sys.mjs:537:34
[task 2025-08-14T11:12:55.376+00:00] 11:12:55     INFO - GECKO(1423) | doPrefEnvOp@resource://testing-common/SpecialPowersParent.sys.mjs:51:12
[task 2025-08-14T11:12:55.377+00:00] 11:12:55     INFO - GECKO(1423) | pushPrefEnv@resource://testing-common/SpecialPowersParent.sys.mjs:482:12
[task 2025-08-14T11:12:55.379+00:00] 11:12:55     INFO - GECKO(1423) | receiveMessage@resource://testing-common/SpecialPowersParent.sys.mjs:981:23
[task 2025-08-14T11:12:55.380+00:00] 11:12:55     INFO - GECKO(1423) | JSActor query*pushPrefEnv@resource://testing-common/SpecialPowersChild.sys.mjs:837:42
[task 2025-08-14T11:12:55.380+00:00] 11:12:55     INFO - GECKO(1423) | runWorkflow@chrome://mochitests/content/browser/browser/base/content/test/alerts/browser_notification_unexpected_script.js:68:23
[task 2025-08-14T11:12:55.381+00:00] 11:12:55     INFO - GECKO(1423) | test_block_with_no_report_email_workflow@chrome://mochitests/content/browser/browser/base/content/test/alerts/browser_notification_unexpected_script.js:484:9
[task 2025-08-14T11:12:55.382+00:00] 11:12:55     INFO - GECKO(1423) | handleTask@chrome://mochikit/content/browser-test.js:1238:26
[task 2025-08-14T11:12:55.383+00:00] 11:12:55     INFO - GECKO(1423) | _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1327:18
[task 2025-08-14T11:12:55.384+00:00] 11:12:55     INFO - GECKO(1423) | async*Tester_execTest@chrome://mochikit/content/browser-test.js:1474:14
[task 2025-08-14T11:12:55.385+00:00] 11:12:55     INFO - GECKO(1423) | nextTest/<@chrome://mochikit/content/browser-test.js:1220:14
[task 2025-08-14T11:12:55.385+00:00] 11:12:55     INFO - GECKO(1423) | SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2025-08-14T11:12:55.386+00:00] 11:12:55     INFO - Leaving test bound test_block_with_no_report_email_workflow
[task 2025-08-14T11:12:55.387+00:00] 11:12:55     INFO - Entering test bound test_block_workflow_no_telemetry
[task 2025-08-14T11:12:55.408+00:00] 11:12:55     INFO - Not taking screenshot here: see the one that was previously logged
[task 2025-08-14T11:12:55.410+00:00] 11:12:55     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/alerts/browser_notification_unexpected_script.js | Should have seen an error from the evalInSandbox call - 
[task 2025-08-14T11:12:55.410+00:00] 11:12:55     INFO - Stack trace:
[task 2025-08-14T11:12:55.410+00:00] 11:12:55     INFO - chrome://mochikit/content/browser-test.js:test_ok:1718
[task 2025-08-14T11:12:55.410+00:00] 11:12:55     INFO - chrome://mochitests/content/browser/browser/base/content/test/alerts/browser_notification_unexpected_script.js:runTest:176
[task 2025-08-14T11:12:55.410+00:00] 11:12:55     INFO - chrome://mochitests/content/browser/browser/base/content/test/alerts/browser_notification_unexpected_script.js:runWorkflow:364
[task 2025-08-14T11:12:55.410+00:00] 11:12:55     INFO - chrome://mochitests/content/browser/browser/base/content/test/alerts/browser_notification_unexpected_script.js:test_block_workflow_no_telemetry:493
[task 2025-08-14T11:12:55.410+00:00] 11:12:55     INFO - chrome://mochikit/content/browser-test.js:handleTask:1238
[task 2025-08-14T11:12:55.410+00:00] 11:12:55     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1327
[task 2025-08-14T11:12:55.410+00:00] 11:12:55     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1474
[task 2025-08-14T11:12:55.410+00:00] 11:12:55     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1220
[task 2025-08-14T11:12:55.410+00:00] 11:12:55     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2025-08-14T11:12:55.447+00:00] 11:12:55     INFO - TEST-PASS | browser/base/content/test/alerts/browser_notification_unexpected_script.js | Notification should be visible - 
Flags: needinfo?(tom)
Assignee: nobody → tom
Status: NEW → ASSIGNED

It's surprising that we got a new feature test in browser/base/content/test/alerts/. Please move it to somewhere else with no dependency to XUL alerts, which is intended to be removed anytime. Otherwise the test coverage may go away unexpectedly.

The patch seems to be working, tested in Today's early beta simulation.

Blocks: 1983316
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch

Verified in today's beta-sim.

Status: RESOLVED → VERIFIED
Flags: needinfo?(tom)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: