RESOLVED FIXED 189369
WebPage::close should clear UserMediaPermissionRequestManager
https://bugs.webkit.org/show_bug.cgi?id=189369
Summary WebPage::close should clear UserMediaPermissionRequestManager
Eric Carlson
Reported 2018-09-06 14:17:38 PDT
UserMediaPermissionRequestManager should not remove ActivityStateChangeObserver in destructor
Attachments
Patch (3.68 KB, patch)
2018-09-06 14:25 PDT, Eric Carlson
no flags
Updated patch (1.28 KB, patch)
2018-09-11 10:26 PDT, Eric Carlson
no flags
Radar WebKit Bug Importer
Comment 1 2018-09-06 14:18:05 PDT
Eric Carlson
Comment 2 2018-09-06 14:25:07 PDT
youenn fablet
Comment 3 2018-09-06 14:44:40 PDT
Comment on attachment 349072 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=349072&action=review > Source/WebKit/WebProcess/WebPage/WebPage.cpp:710 > +#endif I believe this cleanup call might be too late. How about doing it in WebPage::close() instead since it is the place where m_page is gone? If done there, setting m_userMediaPermissionRequestManager to nullptr in WebPage::close() might be good enough.
Eric Carlson
Comment 4 2018-09-11 10:26:26 PDT
Created attachment 349406 [details] Updated patch
WebKit Commit Bot
Comment 5 2018-09-11 16:17:30 PDT
Comment on attachment 349406 [details] Updated patch Clearing flags on attachment: 349406 Committed r235918: <https://trac.webkit.org/changeset/235918>
WebKit Commit Bot
Comment 6 2018-09-11 16:17:32 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.