DescriptionUpdate FileSelectHelper to use RenderFrameHost notifications.
The FileSelectHelper class is using RenderViewHost notifications to
ensure it cleans up itself. However, as I moved it to use
RenderFrameHost for file selection (but not directory enumeration yet),
it opened it up to use-after-free conditions as it was not monitoring
for those objects going away.
This CL fixes that and adds a test to ensure it gets properly cleaned up
when an iframe that requested the file chooser is removed.
BUG=621076
Committed: https://crrev.com/f6a80acd01b832cbaa4ec5d77d213dcb73ba70e1
Cr-Commit-Position: refs/heads/master@{#402683}
Patch Set 1 #Patch Set 2 : Fix class comment and a small fix. #
Total comments: 2
Patch Set 3 : Ensure main frame and subframe are same SiteInstance. #Patch Set 4 : Remove unneeded cleanup calls and disable test while investigating. #
Total comments: 1
Patch Set 5 : Comment on why test is disabled. #
Messages
Total messages: 22 (8 generated)
|