Fix use-after-free in PageSignalReceiver::NotifyObserversIfKnownCu.
The cu_id_web_contents_map_ can be mutated by observers and can make the iterator in NotifyObserversIfKnownCu invalid. See the comment of the regression test for the description of the scenario that can happen with tab discarding. Change-Id: I90a7f1710655573fa059bf3f12bf40013ebc7743 Reviewed-on: https://chromium-review.googlesource.com/1107798 Commit-Queue: Ulan Degenbaev <ulan@chromium.org> Reviewed-by:François Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#569205}
Showing
Please register or sign in to comment