Skip to content
Browse files
Safari crashes anytime any web links on a webpage are clicked on

Reviewed by Tim Horton.

In some VM scenarios, IOSurfaceAccelerator is not available, which
causes a crash when navigating (creating the back-forward images).
The solution is to check for null after attempting to create the

* Source/WebCore/platform/graphics/cocoa/
(WebCore::IOSurface::convertToFormat): Add a null check and bail.

Canonical link:
git-svn-id: 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
grorg committed Jun 10, 2022
1 parent b0668c9 commit 06b02857bd52d8fd9f1157cc899ef6a160596fcc
Showing 1 changed file with 5 additions and 0 deletions.
@@ -462,6 +462,11 @@ static IntSize computeMaximumSurfaceSize()
if (!accelerator) {
IOSurfaceAcceleratorCreate(nullptr, nullptr, &accelerator);

if (!accelerator) {

auto runLoopSource = IOSurfaceAcceleratorGetRunLoopSource(accelerator);
CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, kCFRunLoopDefaultMode);

0 comments on commit 06b0285

Please sign in to comment.