Notify web_contents() when a media capture device stops being used.
This CL sends the chrome::NOTIFICATION_WEB_CONTENT_SETTINGS_CHANGED when a device is removed. This fixes a bug that occurs when a navigation occurs on a tab that is capturing audio or video. In this case, it is possible that the navigation will complete before the device has been completely stopped, and the new page will show an icon with the device capture permission corresponding to the previous page on the omnibar. To remove that icon, it is necessary to let the tab know that content settings might have changed. If the navigation completes after the device stops, the bug does not reproduce because completing the navigation sends the notification about the change in content settings. This bug becomes much more frequent when Site Isolation is enabled. Bug: 896211 Change-Id: I6e9d7197d549b00b458ffc84d155487cb3db2fe6 Reviewed-on: https://chromium-review.googlesource.com/c/1319595Reviewed-by:Tommi <tommi@chromium.org> Commit-Queue: Tommi <tommi@chromium.org> Cr-Commit-Position: refs/heads/master@{#605695}
Showing
Please register or sign in to comment