WebPage::close should clear UserMediaPermissionRequestManager
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Sep 2018 23:17:22 +0000 (23:17 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Sep 2018 23:17:22 +0000 (23:17 +0000)
https://bugs.webkit.org/show_bug.cgi?id=189369
<rdar://problem/44196724>

Reviewed by Youenn Fablet.

* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::close): Clear m_userMediaPermissionRequestManager.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235918 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/WebProcess/WebPage/WebPage.cpp

index e4b2e5a..bda82cd 100644 (file)
@@ -1,3 +1,14 @@
+2018-09-11  Eric Carlson  <eric.carlson@apple.com>
+
+        WebPage::close should clear UserMediaPermissionRequestManager
+        https://bugs.webkit.org/show_bug.cgi?id=189369
+        <rdar://problem/44196724>
+
+        Reviewed by Youenn Fablet.
+
+        * WebProcess/WebPage/WebPage.cpp:
+        (WebKit::WebPage::close): Clear m_userMediaPermissionRequestManager.
+
 2018-09-11  Wenson Hsieh  <wenson_hsieh@apple.com>
 
         [macOS] [WK2] Support changing foreground colors via color panel
index e5a3df6..dfcb7d9 100644 (file)
@@ -1165,6 +1165,10 @@ void WebPage::close()
 
     m_page->inspectorController().disconnectAllFrontends();
 
+#if ENABLE(MEDIA_STREAM)
+    m_userMediaPermissionRequestManager = nullptr;
+#endif
+
 #if ENABLE(FULLSCREEN_API)
     m_fullScreenManager = nullptr;
 #endif