Closed Bug 2041635 Opened 6 months ago Closed 6 months ago

[wpt-sync] Sync PR 60087 - vt: Ensure that we don't use an invalid context for callback execution

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox153 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

Vladimir Levin <vmpstr@chromium.org> wrote:

vt: Ensure that we don't use an invalid context for callback execution

When the context is destroyed we might still get an invalid script
state from the callback, which is non-null but invalid (internally
there's some null state).

Attempting to run the callback with this state will DCHECK. However
it's reasonable not to run the callback since it's from an execution
context that has been destroyed. Instead, just reject promises and
let the vt object know that the callback has been run.

R=kevers@chromium.org

Bug: 515283925
Change-Id: I40512cf9a5e4fc789a9995b06701335edf69971b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7868491
Reviewed-by: Kevin Ellis \<kevers@chromium.org>
Commit-Queue: Vladimir Levin \<vmpstr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1634491}

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Attached file Notable wpt changes —

CI Results

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

Total 484 tests

Status Summary

Firefox

OK : 102[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 104[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 19[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 1215[Gecko-windows11-32-25h2-debug] 1443[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 1447[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 1451[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL : 55[Gecko-windows11-32-25h2-debug] 113[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 116[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 117[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
TIMEOUT: 2[GitHub] 10[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 16[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
ERROR : 6[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 7[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]

Chrome

OK : 1
PASS : 1

Safari

OK : 1
FAIL : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

(See attachment for full changes)

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

Attachment

General

Created:
Updated:
Size: