Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0dba82be37720810c1136086f614ce8bfa59df1f
https://github.com/WebKit/WebKit/commit/0dba82be37720810c1136086f614ce8bfa59df1f
Author: Cole Carley <[email protected]>
Date: 2026-01-29 (Thu, 29 Jan 2026)
Changed paths:
M Tools/TestWebKitAPI/SourcesCocoa.txt
M Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
A Tools/TestWebKitAPI/Tests/WebKitCocoa/ScreenWakeLock.h
A Tools/TestWebKitAPI/Tests/WebKitCocoa/ScreenWakeLock.mm
M Tools/TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm
Log Message:
-----------
Add Screen Wake Lock API Tests in Site Isolation
https://bugs.webkit.org/show_bug.cgi?id=305988
rdar://163809691
Reviewed by Sihui Liu.
I have added new site isolation API tests for the Screen Wake Lock
API. I have also added new screen wake lock tests for the UIDelegate.
* Tools/TestWebKitAPI/SourcesCocoa.txt:
* Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/ScreenWakeLock.h: Added.
* Tools/TestWebKitAPI/Tests/WebKitCocoa/ScreenWakeLock.mm: Added.
(-[SetShouldKeepScreenAwakeDelegate _webView:setShouldKeepScreenAwake:]):
(TEST_P):
(ScreenWakeLockTests::SetUp):
(ScreenWakeLockTests::requestLock):
(ScreenWakeLockTests::releaseLock):
(ScreenWakeLockTests::killWebPage):
(ScreenWakeLockTests::closeWebPage):
(ScreenWakeLockTests::closeTab):
(ScreenWakeLockTests::lockShouldBeReleased):
(ScreenWakeLockTests::lockShouldNotBeReleased):
(ScreenWakeLockTests::setUpCrossSite):
(ScreenWakeLockTests::setUpSameSite):
(ScreenWakeLockTests::frameOfConcern):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm:
(-[SetShouldKeepScreenAwakeDelegate _webView:setShouldKeepScreenAwake:]):
Deleted.
((WebKit, SetShouldKeepScreenAwake)): Deleted.
((WebKit, SetShouldKeepScreenAwakeLastPageIsClosed)): Deleted.
((WebKit, SetShouldKeepScreenAwakeWebProcessCrash)): Deleted.
Canonical link: https://commits.webkit.org/306455@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications