Chromium Code Reviews
DescriptionDon't leak old Activity when reparenting native pages.
NativePages hold references to the Activity in which they're created. In
particular, each NativePage's View is inflated using the Activity
context. To avoid leaking the old Activity when reparenting a
NativePage, Tab.attachAndFinishReparenting() now recreates the
NativePage (equivalent to pressing "reload"). This loses the scroll
position on the page, but otherwise doesn't have many downsides and is
simpler and more fool-proof than removing all Activity references from
the NativePage. (Removing Activity references also has the downside that
we wouldn't be able to use appcompat widgets in native pages.)
BUG=595889
Committed: https://crrev.com/b7670439dd84d55486d5d453ce2b164e7d3aeb61
Cr-Commit-Position: refs/heads/master@{#386141}
Patch Set 1 #
Depends on Patchset: Messages
Total messages: 8 (3 generated)
|
|||||||||||||||||||