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

Issue 2652123002: PlzNavigate: Attempt to fix blink layout tests which fail due to duplicate output from WebFrameClie… (Closed)

Created:
3 years, 11 months ago by ananta
Modified:
3 years, 11 months ago
Reviewers:
Nate Chapin, jam
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, nasko+codewatch_chromium.org, dglazkov+blink, einbinder+watch-test-runner_chromium.org, blink-reviews, darin-cc_chromium.org, kinuko+watch, blink-reviews-api_chromium.org, jochen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: Attempt to fix blink layout tests which fail due to duplicate output from WebFrameClient::willSendRequest. With PlzNavigate, the willSendRequest function is called in RenderFrameImpl::BeginNavigation() and again during OnCommitNavigation() when the request is loaded by blink. One option which was considered was to call willSendRequest() in OnCommitNavigation(). However the request may be blocked and hence that call may never happen. To workaround this I added a flag to track renderer initiated navigations to the RequestExtraData structure. We use this flag to determine whether the WebFrameTestClient::willSendRequest() function needs to early return or not. The assumption is that the logging would already be done when the navigation was initiated for renderer initiated navigations. No need to log when it is committed. The other changes are to add functionality to the WebTestDelegate interface for the runner to query this flag. There is one more test marked under the same bug http/tests/loading/redirect-methods.html. Does not appear to be the same issue. Will debug and log a new bug if required. BUG=625765 Review-Url: https://codereview.chromium.org/2652123002 Cr-Commit-Position: refs/heads/master@{#446462} Committed: https://chromium.googlesource.com/chromium/src/+/fce540a08089df75d18cd4d719bec9ca03e88ac5

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add a flag to track if this is a renderer initiated navigation to the RequestExtraData structure. #

Patch Set 3 : Revert changes to blink ResourceRequest #

Total comments: 2

Patch Set 4 : Address review comments #

Patch Set 5 : Fix redness #

Patch Set 6 : Fix redness #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -25 lines) Patch
M components/test_runner/web_frame_test_client.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M components/test_runner/web_test_delegate.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M content/child/request_extra_data.h View 1 2 chunks +10 lines, -0 lines 0 comments Download
M content/child/request_extra_data.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/public/test/layouttest_support.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 5 chunks +16 lines, -3 lines 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.cc View 1 4 1 chunk +5 lines, -0 lines 0 comments Download
M content/test/layouttest_support.cc View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/enable-browser-side-navigation View 1 2 3 4 5 1 chunk +0 lines, -21 lines 0 comments Download

Messages

Total messages: 40 (20 generated)
ananta
3 years, 11 months ago (2017-01-24 23:37:26 UTC) #2
Nate Chapin
I don't really like having this bit here for test harness use only. Could we ...
3 years, 11 months ago (2017-01-24 23:52:23 UTC) #5
ananta
On 2017/01/24 23:52:23, Nate Chapin wrote: > I don't really like having this bit here ...
3 years, 11 months ago (2017-01-24 23:56:27 UTC) #6
Nate Chapin
On 2017/01/24 23:56:27, ananta wrote: > On 2017/01/24 23:52:23, Nate Chapin wrote: > > I ...
3 years, 11 months ago (2017-01-25 00:05:06 UTC) #7
ananta
On 2017/01/25 00:05:06, Nate Chapin wrote: > On 2017/01/24 23:56:27, ananta wrote: > > On ...
3 years, 11 months ago (2017-01-25 00:24:29 UTC) #8
Nate Chapin
On 2017/01/25 00:24:29, ananta wrote: > On 2017/01/25 00:05:06, Nate Chapin wrote: > > On ...
3 years, 11 months ago (2017-01-25 00:32:27 UTC) #9
ananta
On 2017/01/25 00:32:27, Nate Chapin wrote: > On 2017/01/25 00:24:29, ananta wrote: > > On ...
3 years, 11 months ago (2017-01-25 00:36:21 UTC) #10
ananta
On 2017/01/25 00:36:21, ananta wrote: > On 2017/01/25 00:32:27, Nate Chapin wrote: > > On ...
3 years, 11 months ago (2017-01-25 00:53:46 UTC) #11
ananta
On 2017/01/25 00:53:46, ananta wrote: > On 2017/01/25 00:36:21, ananta wrote: > > On 2017/01/25 ...
3 years, 11 months ago (2017-01-25 05:18:50 UTC) #14
Nate Chapin
It's a shame that this is necessary, but I agree that there isn't a great ...
3 years, 11 months ago (2017-01-25 18:27:39 UTC) #15
jam
Since this is only used by content/, instead of modifying webkit/ can we store this ...
3 years, 11 months ago (2017-01-25 18:36:32 UTC) #16
ananta
On 2017/01/25 18:36:32, jam wrote: > Since this is only used by content/, instead of ...
3 years, 11 months ago (2017-01-25 23:05:08 UTC) #18
jam
lgtm https://codereview.chromium.org/2652123002/diff/40001/content/shell/renderer/layout_test/blink_test_runner.cc File content/shell/renderer/layout_test/blink_test_runner.cc (right): https://codereview.chromium.org/2652123002/diff/40001/content/shell/renderer/layout_test/blink_test_runner.cc#newcode752 content/shell/renderer/layout_test/blink_test_runner.cc:752: return content::IsNavigationInitiatedByRenderer(request); nit: no content::
3 years, 11 months ago (2017-01-25 23:59:05 UTC) #21
ananta
https://codereview.chromium.org/2652123002/diff/40001/content/shell/renderer/layout_test/blink_test_runner.cc File content/shell/renderer/layout_test/blink_test_runner.cc (right): https://codereview.chromium.org/2652123002/diff/40001/content/shell/renderer/layout_test/blink_test_runner.cc#newcode752 content/shell/renderer/layout_test/blink_test_runner.cc:752: return content::IsNavigationInitiatedByRenderer(request); On 2017/01/25 23:59:05, jam wrote: > nit: ...
3 years, 11 months ago (2017-01-26 03:23:44 UTC) #24
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/2652123002/60001
3 years, 11 months ago (2017-01-26 03:24:53 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/299994) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 11 months ago (2017-01-26 03:38:05 UTC) #29
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/2652123002/80001
3 years, 11 months ago (2017-01-26 16:35:38 UTC) #32
commit-bot: I haz the power
Failed to apply patch for content/test/layouttest_support.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-26 18:01:22 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/2652123002/100001
3 years, 11 months ago (2017-01-26 20:16:22 UTC) #37
commit-bot: I haz the power
3 years, 11 months ago (2017-01-26 21:53:46 UTC) #40
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/fce540a08089df75d18cd4d719be...

Powered by Google App Engine
This is Rietveld 408576698