Remove WebFrame from WebFramesManager before destruction.

WebFrame destructor can lead to calling callbacks that will
try to access the WebFrame via GetFrameWithId.
This leads to reentrancy problem on the std::map.
Remove the WebFrame from the map before destroying it.

Bug: 935000
Change-Id: I458cef209d509dd0c61acdb3b9da01cf301d49c1
Reviewed-by: Eugene But <>
Reviewed-by: Mike Dougherty <>
Commit-Queue: Olivier Robin <>
Auto-Submit: Olivier Robin <>
Cr-Commit-Position: refs/heads/master@{#636045}
1 file changed