[Webkit-unassigned] [Bug 147802] Media Session: notify the UI process when media controls are enabled/disabled
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Aug 10 18:29:16 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=147802
--- Comment #5 from Simon Fraser (smfr) <simon.fraser at apple.com> ---
Comment on attachment 258643
--> https://bugs.webkit.org/attachment.cgi?id=258643
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=258643&action=review
> Source/WebCore/Modules/mediasession/MediaRemoteControls.cpp:50
> + if (m_session)
> + m_session->controlIsEnabledDidChange();
But maybe m_previousTrackEnabled didn't change?
> Source/WebKit2/UIProcess/WebPageProxy.cpp:5947
> + focusManager->playbackAttributeDidChange(this, sourceElementID, IsPlaying, state & MediaProducer::IsSourceElementPlaying);
> + focusManager->playbackAttributeDidChange(this, sourceElementID, IsPreviousTrackControlEnabled, state & MediaProducer::IsPreviousTrackControlEnabled);
> + focusManager->playbackAttributeDidChange(this, sourceElementID, IsNextTrackControlEnabled, state & MediaProducer::IsNextTrackControlEnabled);
Seems a bit weird to do it like this. Why not just pass state and let focusManger figure things out?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150811/c4189ba9/attachment-0001.html>
More information about the webkit-unassigned
mailing list