Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c17b54571809190c1c4607e91afca5a5d3807e72
https://github.com/WebKit/WebKit/commit/c17b54571809190c1c4607e91afca5a5d3807e72
Author: Abrar Rahman Protyasha <[email protected]>
Date: 2026-08-03 (Mon, 03 Aug 2026)
Changed paths:
M Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h
M Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.mm
M Source/WebKit/UIProcess/PDF/WKAlternatePDFHUDView.swift
M Source/WebKit/UIProcess/PDF/WKDefaultPDFHUDView.swift
M Source/WebKit/UIProcess/mac/WebViewImpl.mm
M Source/WebKit/WebProcess/Model/WebModelPlayerProvider.cpp
M Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.mm
Log Message:
-----------
Consolidate os_variant_is_basesystem() callers to a common WTF wrapper
https://bugs.webkit.org/show_bug.cgi?id=320072
rdar://182995822
Reviewed by Richard Robinson, Mike Wyrzykowski, Tim Horton, and Aditya Keerthi.
`os_variant_is_basesystem("WebKit")` is found 5 times in the codebase.
Each caller needed to remember the `"WebKit"` magic string; the method
name is not necessarily the most intuitive, either.
This patch introduces a WTF::isInBaseSystem() wrapper, that lives in
wtf/cooca/RuntimeApplicationChecksCococa.h, providing callers an easy
and intuitive way to query if the application is running in macOS
BaseSystem.
* Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h:
* Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.mm:
(WTF::isInBaseSystem):
* Source/WebKit/UIProcess/PDF/WKPDFHUDView.swift:
(isInRecoveryOS): Deleted.
* Source/WebKit/UIProcess/mac/WebViewImpl.mm:
(WebKit::m_flagsChangedEventMonitorTrackingArea):
* Source/WebKit/WebProcess/Model/WebModelPlayerProvider.cpp:
(WebKit::WebModelPlayerProvider::isAvailable const):
(WebKit::isRunningInRecoveryOS): Deleted.
* Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.mm:
(WebKit::UnifiedPDFPlugin::createContextMenu const):
(WebKit::isInRecoveryOS): Deleted.
Canonical link: https://commits.webkit.org/318471@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications