Chromium 100 enables kGlobalMediaControlsCastStartStop by default and it makes my libstdc++ build crash with a double free of some sort. The crash is reproducible by clicking on global media controls while a video is playing and then dismissing
the dialog. I tried building with libstdc++ and ASan but it reports a violation while starting Chromium so that wasn't much help. A libc++ and ASan build did not report any issues while opening and closing the global media controls dialog.
I tested adding "cast_controller_->RemoveObserver(this)" to MediaItemUIDeviceSelectorView's destructor and it seemed to work, but I have no idea if it's the correct thing to do.
Perhaps someone more familiar with Chromium's code can spot the cause of this? I have attached a backtrace, though I'm not sure where the double free is originating.