[webkit-changes] [WebKit/WebKit] 1c8de4: [iOS] Idle timer should be enabled/disabled on the...

Eric Carlson noreply at github.com
Thu Feb 9 18:14:05 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1c8de44efc1a1e49d895a2499f4f4ab0d6e7f526
      https://github.com/WebKit/WebKit/commit/1c8de44efc1a1e49d895a2499f4f4ab0d6e7f526
  Author: Eric Carlson <eric.carlson at apple.com>
  Date:   2023-02-09 (Thu, 09 Feb 2023)

  Changed paths:
    M Source/WebCore/PAL/pal/system/ios/SleepDisablerIOS.mm

  Log Message:
  -----------
  [iOS] Idle timer should be enabled/disabled on the main thread
https://bugs.webkit.org/show_bug.cgi?id=252015
rdar://104266428

Reviewed by Chris Dumez.

Use `ensureOnMainRunLoop` so we always change `UIApplication.sharedApplication.idleTimerDisabled`
on the main thread. This is necessary in WebKit where WebKit's "main thread" is not the
UI thread.

* Source/WebCore/PAL/pal/system/ios/SleepDisablerIOS.mm:
(PAL::ScreenSleepDisabler::updateState):

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




More information about the webkit-changes mailing list