[SessionRestore] Ignore WebContents that are not managed by TabLoader.
PageSignalReceiver dispatches page signals to every PageSignalObserver with WebContents, thus, TabLoader will be notified with WebContents that is not managed by TabLoader, causing crash when TabLoader tries to remove it from notification registrar. This patch adds check inside OnPageAlmostIdle to ignore WebContents that is not managed by TabLoader, as well as a unit test. BUG=788744 Change-Id: If19d3b3ee9d73b932644c0574dc3b381eba3f232 Reviewed-on: https://chromium-review.googlesource.com/801655 Commit-Queue: lpy <lpy@chromium.org> Reviewed-by:Scott Violet <sky@chromium.org> Reviewed-by:
Zhen Wang <zhenw@chromium.org> Cr-Commit-Position: refs/heads/master@{#520706}
Showing
Please register or sign in to comment