Portals: Remove media session notification on activation
Currently, after portal activation, the notification persists, but clicking any buttons in the notification causes a crash. The crash happens because the media session observer was cleaned up after portal activation (the webcontents are swapped during portal activation and the previous java webcontents gets destroyed, but the native counterpart is kept alive). This CL is a band-aid fix that causes the notification to be removed after portal activation (to match the media session observer being cleaned up), and avoids the crash. It doesn't fix the underlying issue of the media playback notification not correctly handling inner web contents and so portals playing media will not display a notification. Bug: 1078400 Change-Id: I533f7ab079c0e8e21927279cf85321b7f1f400a6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2199730Reviewed-by:David Trainor <dtrainor@chromium.org> Reviewed-by:
Mounir Lamouri <mlamouri@chromium.org> Commit-Queue: Adithya Srinivasan <adithyas@chromium.org> Cr-Commit-Position: refs/heads/master@{#775768}
Showing
Please register or sign in to comment