RESOLVED FIXED 202628
WebPageProxy::updatePlayingMediaDidChange should protect from a null m_userMediaPermissionRequestManager
https://bugs.webkit.org/show_bug.cgi?id=202628
Summary WebPageProxy::updatePlayingMediaDidChange should protect from a null m_userMe...
youenn fablet
Reported 2019-10-07 03:19:26 PDT
WebPageProxy::updatePlayingMediaDidChange should protect from a null m_userMediaPermissionRequestManager
Attachments
Patch (2.36 KB, patch)
2019-10-07 03:52 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2019-10-07 03:19:37 PDT
youenn fablet
Comment 2 2019-10-07 03:52:31 PDT
Eric Carlson
Comment 3 2019-10-07 06:01:53 PDT
Comment on attachment 380312 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=380312&action=review > Source/WebKit/UIProcess/WebPageProxy.cpp:8309 > + ASSERT(m_userMediaPermissionRequestManager); If we expect m_userMediaPermissionRequestManager to be NULL some of the time, do we really want an ASSERT here?
youenn fablet
Comment 4 2019-10-07 06:28:50 PDT
(In reply to Eric Carlson from comment #3) > Comment on attachment 380312 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=380312&action=review > > > Source/WebKit/UIProcess/WebPageProxy.cpp:8309 > > + ASSERT(m_userMediaPermissionRequestManager); > > If we expect m_userMediaPermissionRequestManager to be NULL some of the > time, do we really want an ASSERT here? By design, when nulling m_userMediaPermissionRequestManager, we set back the capture state to none. For the capture state to be different from None, m_userMediaPermissionRequestManager should in theory be recreated. So we do not expect it to be null but we cannot ignore the fact that a wrong IPC message may happen.
WebKit Commit Bot
Comment 5 2019-10-07 07:14:19 PDT
Comment on attachment 380312 [details] Patch Clearing flags on attachment: 380312 Committed r250773: <https://trac.webkit.org/changeset/250773>
WebKit Commit Bot
Comment 6 2019-10-07 07:14:21 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.