Keep alive OffscreenCanvas's wrapper object until webglcontextlost event is dispatched#64921
Merged
webkit-commit-queue merged 1 commit intoMay 18, 2026
Conversation
Collaborator
|
EWS run on previous version of this PR (hash 24f261d) Details |
cdumez
approved these changes
May 18, 2026
24f261d to
3865b8b
Compare
Collaborator
|
EWS run on current version of this PR (hash 3865b8b) Details |
Collaborator
iOS Safer C++ Build #25927 (3865b8b)❌ Found 1 failing file with 1 issue. Please address these issues before landing. See WebKit Guidelines for Safer C++ Programming. |
…ent is dispatched https://bugs.webkit.org/show_bug.cgi?id=314269 Reviewed by Chris Dumez. webgl/lose-context-after-context-lost.html randomly caused an assertion failure for GTK and WPE. > ASSERTION FAILED: m_wrapper > Source/WebCore/bindings/js/JSEventListener.h(171) : > JSC::JSObject* WebCore::JSEventListener::ensureJSFunction(WebCore::ScriptExecutionContext&) const OffscreenCanvas's wrapper object was reclaimed when the webglcontextlost event was dispatched. 222794@main fixed the same issue for HTMLCanvasElement by adding HTMLCanvasElement::virtualHasPendingActivity(). Do the same for OffscreenCanvas. Tests: webgl/lose-context-after-context-lost.html * LayoutTests/platform/glib/TestExpectations: * Source/WebCore/html/OffscreenCanvas.cpp: (WebCore::OffscreenCanvas::virtualHasPendingActivity const): (WebCore::OffscreenCanvas::eventListenersDidChange): * Source/WebCore/html/OffscreenCanvas.h: Canonical link: https://commits.webkit.org/313384@main
3865b8b to
2be1403
Compare
Collaborator
|
Committed 313384@main (2be1403): https://commits.webkit.org/313384@main Reviewed commits have been landed. Closing PR #64921 and removing active labels. |
Contributor
|
Backported into |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
2be1403
3865b8b
🛠 ios-sim🧪 ios-wk2🧪 ios-wk2-wpt🧪 api-ios🧪 mac-AS-debug-wk2🧪 vision-wk2