Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(500)

Issue 2557223002: Fix subframe loads with RenderViewTest when PlzNavigate is enabled. (Closed)

Created:
4 years ago by jam
Modified:
4 years ago
Reviewers:
ananta
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, mlamouri+watch-content_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix subframe loads with RenderViewTest when PlzNavigate is enabled. While main frame loads already disabled the load being handled by the browser (in RenderViewTest::LoadHTML), requests from subframes are created inside Blink and so were missing that flag. Fix this by adding it in TestRenderFrame. Note this only modifies WebURLRequest::setCheckForBrowserSideNavigation, so that the other codepaths that check IsBrowserSideNavigationEnabled don't see any behavior change. This fixes ThreatDOMDetailsTest.Everything with PlzNavigate. BUG=504347 Committed: https://crrev.com/4a5ed276b2e0cfa9a1d76fa1ca2ea296601837ef Cr-Commit-Position: refs/heads/master@{#437654}

Patch Set 1 #

Patch Set 2 : fix clang #

Patch Set 3 : more #

Patch Set 4 : fix tests #

Total comments: 1

Patch Set 5 : nit #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -0 lines) Patch
M content/test/test_render_frame.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/test/test_render_frame.cc View 1 2 3 4 2 chunks +15 lines, -0 lines 2 comments Download

Messages

Total messages: 43 (35 generated)
jam
4 years ago (2016-12-08 04:54:50 UTC) #19
jam39
https://codereview.chromium.org/2557223002/diff/80001/content/test/test_render_frame.cc File content/test/test_render_frame.cc (right): https://codereview.chromium.org/2557223002/diff/80001/content/test/test_render_frame.cc#newcode82 content/test/test_render_frame.cc:82: // will be created inside Blink and it wono't ...
4 years ago (2016-12-08 16:19:01 UTC) #24
ananta
https://codereview.chromium.org/2557223002/diff/100001/content/test/test_render_frame.cc File content/test/test_render_frame.cc (right): https://codereview.chromium.org/2557223002/diff/100001/content/test/test_render_frame.cc#newcode77 content/test/test_render_frame.cc:77: info.urlRequest.checkForBrowserSideNavigation() && is this check correct? Should it be ...
4 years ago (2016-12-08 22:57:05 UTC) #29
jam
https://codereview.chromium.org/2557223002/diff/100001/content/test/test_render_frame.cc File content/test/test_render_frame.cc (right): https://codereview.chromium.org/2557223002/diff/100001/content/test/test_render_frame.cc#newcode77 content/test/test_render_frame.cc:77: info.urlRequest.checkForBrowserSideNavigation() && On 2016/12/08 22:57:05, ananta wrote: > is ...
4 years ago (2016-12-08 23:01:28 UTC) #30
ananta
lgtm
4 years ago (2016-12-09 19:47:17 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2557223002/100001
4 years ago (2016-12-09 20:18:58 UTC) #38
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years ago (2016-12-09 21:10:25 UTC) #41
commit-bot: I haz the power
4 years ago (2016-12-12 14:40:54 UTC) #43
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4a5ed276b2e0cfa9a1d76fa1ca2ea296601837ef
Cr-Commit-Position: refs/heads/master@{#437654}

Powered by Google App Engine
This is Rietveld 408576698