Title: [250291] trunk/Source/WebKit
Revision
250291
Author
[email protected]
Date
2019-09-24 06:36:17 -0700 (Tue, 24 Sep 2019)

Log Message

Delay capture sandbox extension revocation to after the page close message is sent
https://bugs.webkit.org/show_bug.cgi?id=202133

Reviewed by Eric Carlson.

This ensures that the sandbox extension is removed once no longer useful
and makes our WebProcess assertions fine.

* UIProcess/UserMediaPermissionRequestManagerProxy.cpp:
(WebKit::UserMediaPermissionRequestManagerProxy::~UserMediaPermissionRequestManagerProxy):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (250290 => 250291)


--- trunk/Source/WebKit/ChangeLog	2019-09-24 08:42:03 UTC (rev 250290)
+++ trunk/Source/WebKit/ChangeLog	2019-09-24 13:36:17 UTC (rev 250291)
@@ -1,3 +1,16 @@
+2019-09-24  Youenn Fablet  <[email protected]>
+
+        Delay capture sandbox extension revocation to after the page close message is sent
+        https://bugs.webkit.org/show_bug.cgi?id=202133
+
+        Reviewed by Eric Carlson.
+
+        This ensures that the sandbox extension is removed once no longer useful
+        and makes our WebProcess assertions fine.
+
+        * UIProcess/UserMediaPermissionRequestManagerProxy.cpp:
+        (WebKit::UserMediaPermissionRequestManagerProxy::~UserMediaPermissionRequestManagerProxy):
+
 2019-09-23  Chris Dumez  <[email protected]>
 
         Drop unnecessary SessionID.h header includes

Modified: trunk/Source/WebKit/UIProcess/UserMediaPermissionRequestManagerProxy.cpp (250290 => 250291)


--- trunk/Source/WebKit/UIProcess/UserMediaPermissionRequestManagerProxy.cpp	2019-09-24 08:42:03 UTC (rev 250290)
+++ trunk/Source/WebKit/UIProcess/UserMediaPermissionRequestManagerProxy.cpp	2019-09-24 13:36:17 UTC (rev 250291)
@@ -84,7 +84,9 @@
 UserMediaPermissionRequestManagerProxy::~UserMediaPermissionRequestManagerProxy()
 {
 #if ENABLE(MEDIA_STREAM)
-    UserMediaProcessManager::singleton().revokeSandboxExtensionsIfNeeded(page().process());
+    callOnMainRunLoop([process = makeRef(page().process())] {
+        UserMediaProcessManager::singleton().revokeSandboxExtensionsIfNeeded(process);
+    });
     proxies().remove(this);
 #endif
     invalidatePendingRequests();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to