Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1c8de44efc1a1e49d895a2499f4f4ab0d6e7f526
      
https://github.com/WebKit/WebKit/commit/1c8de44efc1a1e49d895a2499f4f4ab0d6e7f526
  Author: Eric Carlson <[email protected]>
  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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to