[webkit-changes] [WebKit/WebKit] 829dab: Fix crash in theme painting on macOS if GPU is not...

Per Arne Vollan noreply at github.com
Thu Nov 10 10:27:42 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 829dab614cc143c1b8c69f6b2535f44f254ad932
      https://github.com/WebKit/WebKit/commit/829dab614cc143c1b8c69f6b2535f44f254ad932
  Author: Per Arne Vollan <pvollan at apple.com>
  Date:   2022-11-10 (Thu, 10 Nov 2022)

  Changed paths:
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/WebProcess/com.apple.WebProcess.sb.in

  Log Message:
  -----------
  Fix crash in theme painting on macOS if GPU is not available
https://bugs.webkit.org/show_bug.cgi?id=247327
rdar://100386989

Reviewed by Geoffrey Garen.

This is a fix for a theme painting crash when Metal is unavailable and we're falling back to OpenGL. The fallback is using CVMS, which is
performing JIT'ing, but only JSC is allowed access to the JIT region in the WebContent process. This change blocks access to CVMS in the
sandbox. I have been able to disable Metal and force software GL in the debugger, and have confirmed that we do not crash with this change.

* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::gpuMachServices):
* Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:

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




More information about the webkit-changes mailing list