Bug 259706

Summary: WebKit shouldn't be modifying the value of UIApplication.idleTimerDisabled
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebCore Misc.Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Chris Dumez 2023-08-01 14:16:11 PDT
WebKit shouldn't be modifying the value of UIApplication.idleTimerDisabled because we're a framework. The hosting application can rely on this flag to prevent screen sleep and it is not good for WebKit to be potentially overriding a value set by the application.

To address the issue, the UIKit code indicates that frameworks are expected to call the `_setIdleTimerDisabled:forReason:` SPI instead.
Comment 1 Chris Dumez 2023-08-01 14:19:02 PDT
Pull request: https://github.com/WebKit/WebKit/pull/16291
Comment 2 EWS 2023-08-01 16:54:30 PDT
Committed 266499@main (9ed33f8f5890): <https://commits.webkit.org/266499@main>

Reviewed commits have been landed. Closing PR #16291 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-08-01 16:55:18 PDT
<rdar://problem/113236414>