Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 43260faced156fc0872fccd2b09f39c0dc514f08
      
https://github.com/WebKit/WebKit/commit/43260faced156fc0872fccd2b09f39c0dc514f08
  Author: Sergio Villar Senin <[email protected]>
  Date:   2025-07-08 (Tue, 08 Jul 2025)

  Changed paths:
    M Source/WebKit/UIProcess/XR/openxr/PlatformXROpenXR.cpp
    M Source/WebKit/UIProcess/XR/openxr/PlatformXROpenXR.h

  Log Message:
  -----------
  [WebXR][OpenXR] Make graphics binding creation more secure
https://bugs.webkit.org/show_bug.cgi?id=295517

Reviewed by Carlos Garcia Campos.

Added null pointer checks to the initialization of the graphics binding
for OpenXR. Also prepended "try" to the method to emphasize that it can
fail.

Took the chance to do some extra cleanups like the removal of unneeded
includes or replacing the surfaceless type for the more generic PlatformDisplay.

This is a followup of main@12938589

* Source/WebKit/UIProcess/XR/openxr/PlatformXROpenXR.cpp:
(WebKit::OpenXRCoordinator::tryInitializeGraphicsBinding):
(WebKit::OpenXRCoordinator::createSessionIfNeeded):
(WebKit::OpenXRCoordinator::initializeGraphicsBinding): Deleted.
* Source/WebKit/UIProcess/XR/openxr/PlatformXROpenXR.h:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to