summaryrefslogtreecommitdiffstats
path: root/components/visitedlink
diff options
context:
space:
mode:
authordavidben@chromium.org <davidben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-16 20:19:49 +0000
committerdavidben@chromium.org <davidben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-16 20:19:49 +0000
commitc7c0d823a81dc5f0951388d3c93498e3c8c770c8 (patch)
tree1fe905ecf30c3d37017a85fb86a6d213b4c9dce5 /components/visitedlink
parent02c04c948d2c317873a8f82b47eb2e44b4e64b33 (diff)
downloadchromium_src-c7c0d823a81dc5f0951388d3c93498e3c8c770c8.zip
chromium_src-c7c0d823a81dc5f0951388d3c93498e3c8c770c8.tar.gz
chromium_src-c7c0d823a81dc5f0951388d3c93498e3c8c770c8.tar.bz2
Preserve Page::openedByDOM state across process swaps.
Every Page in Blink has an openedByDOM bit which partially determines whether window.close() may be called. This bit is equivalent to whether the WebContents was created with an opener. Move this bit up to WebContents and forward it to new renderers to be preserved across process swaps. Add a suite of tests to ensure it's preserved correctly. This also fixes a bug where the bit was not preserved for blocked-then-opened popups. Add a test for this case. BUG=357579 Review URL: https://codereview.chromium.org/212703005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264291 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/visitedlink')
-rw-r--r--components/visitedlink/test/visitedlink_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/visitedlink/test/visitedlink_unittest.cc b/components/visitedlink/test/visitedlink_unittest.cc
index 3a029b9..a631785 100644
--- a/components/visitedlink/test/visitedlink_unittest.cc
+++ b/components/visitedlink/test/visitedlink_unittest.cc
@@ -686,7 +686,7 @@ TEST_F(VisitedLinkEventsTest, Coalescense) {
TEST_F(VisitedLinkEventsTest, Basics) {
RenderViewHostTester::For(rvh())->CreateRenderView(base::string16(),
MSG_ROUTING_NONE,
- -1);
+ -1, false);
// Add a few URLs.
master()->AddURL(GURL("http://acidtests.org/"));
@@ -711,7 +711,7 @@ TEST_F(VisitedLinkEventsTest, Basics) {
TEST_F(VisitedLinkEventsTest, TabVisibility) {
RenderViewHostTester::For(rvh())->CreateRenderView(base::string16(),
MSG_ROUTING_NONE,
- -1);
+ -1, false);
// Simulate tab becoming inactive.
RenderViewHostTester::For(rvh())->SimulateWasHidden();