commit | 54d95ca9ed4e3c88ecb2969be56f5829f9fef824 | [log] [tgz] |
---|---|---|
author | Rakina Zata Amni <rakina@chromium.org> | Tue Jul 17 06:15:45 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jul 17 06:15:45 2018 |
tree | 893b9d6b0bcda9cd3e527e9d1bb450995e27bdea | |
parent | 9f2582c35918a0e55f1fa841e09d61be488cc8d9 [diff] |
Make FindInPage be a ContextLifecycleObserver frame_ in FindInPage might be null when GetWebPluginForFind is called, causing a crash in crbug.com/848032. This happens when the frame had detached but the pre-finalizer for FindInPage is not called yet, making it possible for FindInPage to still receive mojo calls even though the frame is null. This CL makes FindInPage observe when its document/ execution context is destroyed so that it will close its mojo binding when that happens. Bug: 848032 Change-Id: Ifac00128e4efeb98f73fdcb98a944164d9ca1bf1 Reviewed-on: https://chromium-review.googlesource.com/1107032 Commit-Queue: Rakina Zata Amni <rakina@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#575560}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .