Closed Bug 2095235 Opened 11 days ago Closed 8 days ago

[wpt-sync] Sync PR 65066 - permissions: await the declared change promise in worker.https.html

Categories

(Core :: DOM: Security, task, P4)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 65066 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/65066
Details from upstream follow.

Brian Cardarella <bcardarella@gmail.com> wrote:

permissions: await the declared change promise in worker.https.html

The test stores the worker's change message as changePromise but awaits messagePromise, which is never declared:

const changePromise = messageFrom(worker, "change");
const [{state:changedState}] = await Promise.all([messagePromise, setPermissionPromise]);

The second line throws a ReferenceError in every browser, so the test cannot pass anywhere. This awaits the declared promise instead; nothing else changes.

Component: web-platform-tests → DOM: Security
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
PASS: 1

Chrome

OK : 1
PASS: 1

Safari

OK : 1
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Status: NEW → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.