Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 586f410cbf177efeb332c6ed12b38eba1efdfd39
      
https://github.com/WebKit/WebKit/commit/586f410cbf177efeb332c6ed12b38eba1efdfd39
  Author: Fujii Hironori <[email protected]>
  Date:   2025-11-25 (Tue, 25 Nov 2025)

  Changed paths:
    M Source/WebCore/Modules/webxr/WebXROpaqueFramebuffer.cpp

  Log Message:
  -----------
  [WebXR] 
imported/w3c/web-platform-tests/webxr/xrWebGLLayer_constructor.https.html is 
randomly crashing recently
https://bugs.webkit.org/show_bug.cgi?id=302904

Reviewed by Sergio Villar Senin.

An assertion failed in JSC::JSCell::classInfo() while
Inspector::createScriptCallStack was trying to get the callstack.
> ASSERTION FAILED: vm().heap.mutatorState() != MutatorState::Sweeping || 
> !vm().currentThreadIsHoldingAPILock()

WebCore shouldn't call into JSC while sweeping. ~WebXRWebGLLayer called
~WebXROpaqueFramebuffer that called
WebGLRenderingContextBase::deleteFramebuffer() that reported "An opaque
framebuffer can't be deleted" error with a callstack, and the assertion failed.

deleteFramebuffer() is a DOM binding which reports the error for deleting an
opaque framebuffer. ~WebXROpaqueFramebuffer shouldn't call it. Instead,
~WebGLFramebuffer automatically destroys the object properly.

* Source/WebCore/Modules/webxr/WebXROpaqueFramebuffer.cpp:
(WebCore::WebXROpaqueFramebuffer::~WebXROpaqueFramebuffer):

Canonical link: https://commits.webkit.org/303535@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to