DescriptionCall -browserWillBeDestroyed before releasing ToolbarController in unit tests.
This addresses a use after free issue in LocationBarViewMac, caused
because the browser object is freed and released before the
ToolbarController in unit tests. This occurs despite an explicit
release of the ToolbarController in the unit test TearDown as the
NSViewController retains an additional reference that persists
the ToolbarController (and hence LocationBarViewMac) beyond the
browser object's lifetime.
BUG=535321
Committed: https://crrev.com/7f6f0f9765d4f05a8d714077f9a3c3eef31f2d55
Cr-Commit-Position: refs/heads/master@{#357641}
Patch Set 1 #
Depends on Patchset: Messages
Total messages: 12 (7 generated)
|