Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't suppress RenderFrameHostStateChanged for subframes
The early return in WebContentsImpl::RenderFrameHostStateChanged for subframes only appears relevant for resetting the color chooser, but it also caused RenderFrameHostStateChanged to be skipped for subframes. We also add tests for lifecycle state transitions of subframes in bfcache, which includes testing that RenderFrameHostStateChanged is called. Bug: 1073144 Change-Id: Ibaf6cc8e7e118833c558588d7352e722be5d9160 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2854955 Reviewed-by: Alex Moshchuk <alexmos@chromium.org> Reviewed-by: Alexander Timin <altimin@chromium.org> Commit-Queue: Kevin McNee <mcnee@chromium.org> Cr-Commit-Position: refs/heads/master@{#877924}
- Loading branch information
Showing
6 changed files
with
544 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright 2021 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "content/public/test/mock_web_contents_observer.h" | ||
|
||
namespace content { | ||
|
||
MockWebContentsObserver::MockWebContentsObserver(WebContents* web_contents) | ||
: WebContentsObserver(web_contents) {} | ||
MockWebContentsObserver::~MockWebContentsObserver() = default; | ||
|
||
} // namespace content |
Oops, something went wrong.