Title: [261514] branches/safari-609-branch/Source/WebCore
- Revision
- 261514
- Author
- [email protected]
- Date
- 2020-05-11 17:21:37 -0700 (Mon, 11 May 2020)
Log Message
Cherry-pick r260201. rdar://problem/62978925
[macOS] Update ScreenTime as playback state changes
https://bugs.webkit.org/show_bug.cgi?id=210518
<rdar://problem/61181092>
Reviewed by Eric Carlson.
Follow up to r260182; Pass a WeakPtr into our task queue in sessionWillEndPlayback rather than a bare pointer.
* platform/audio/cocoa/MediaSessionManagerCocoa.mm:
(WebCore::MediaSessionManagerCocoa::sessionWillEndPlayback):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260201 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-609-branch/Source/WebCore/ChangeLog (261513 => 261514)
--- branches/safari-609-branch/Source/WebCore/ChangeLog 2020-05-12 00:21:34 UTC (rev 261513)
+++ branches/safari-609-branch/Source/WebCore/ChangeLog 2020-05-12 00:21:37 UTC (rev 261514)
@@ -1,5 +1,35 @@
2020-05-07 Russell Epstein <[email protected]>
+ Cherry-pick r260201. rdar://problem/62978925
+
+ [macOS] Update ScreenTime as playback state changes
+ https://bugs.webkit.org/show_bug.cgi?id=210518
+ <rdar://problem/61181092>
+
+ Reviewed by Eric Carlson.
+
+ Follow up to r260182; Pass a WeakPtr into our task queue in sessionWillEndPlayback rather than a bare pointer.
+
+ * platform/audio/cocoa/MediaSessionManagerCocoa.mm:
+ (WebCore::MediaSessionManagerCocoa::sessionWillEndPlayback):
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260201 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2020-04-16 Jer Noble <[email protected]>
+
+ [macOS] Update ScreenTime as playback state changes
+ https://bugs.webkit.org/show_bug.cgi?id=210518
+ <rdar://problem/61181092>
+
+ Reviewed by Eric Carlson.
+
+ Follow up to r260182; Pass a WeakPtr into our task queue in sessionWillEndPlayback rather than a bare pointer.
+
+ * platform/audio/cocoa/MediaSessionManagerCocoa.mm:
+ (WebCore::MediaSessionManagerCocoa::sessionWillEndPlayback):
+
+2020-05-07 Russell Epstein <[email protected]>
+
Cherry-pick r259877. rdar://problem/62978910
[CSS Shadow Parts] Bad style sharing between sibling elements with different part attributes
Modified: branches/safari-609-branch/Source/WebCore/platform/audio/cocoa/MediaSessionManagerCocoa.mm (261513 => 261514)
--- branches/safari-609-branch/Source/WebCore/platform/audio/cocoa/MediaSessionManagerCocoa.mm 2020-05-12 00:21:34 UTC (rev 261513)
+++ branches/safari-609-branch/Source/WebCore/platform/audio/cocoa/MediaSessionManagerCocoa.mm 2020-05-12 00:21:37 UTC (rev 261514)
@@ -164,6 +164,12 @@
void MediaSessionManagerCocoa::sessionWillEndPlayback(PlatformMediaSession& session, DelayCallingUpdateNowPlaying delayCallingUpdateNowPlaying)
{
PlatformMediaSessionManager::sessionWillEndPlayback(session, delayCallingUpdateNowPlaying);
+
+ m_taskQueue.enqueueTask([weakSession = makeWeakPtr(session)] {
+ if (weakSession)
+ weakSession->updateMediaUsageIfChanged();
+ });
+
if (delayCallingUpdateNowPlaying == DelayCallingUpdateNowPlaying::No) {
updateNowPlayingInfo();
return;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes