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

Issue 1480043002: [WIP] Call WebTestProxyBase::CheckDone() in didStopLoading()

Created:
5 years ago by hiroshige
Modified:
4 years, 10 months ago
CC:
chromium-reviews, jochen+watch_chromium.org, mlamouri+watch-test-runner_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Call WebTestProxyBase::CheckDone() in didStopLoading() This CL is preparation for [1]. test_runner::WebTestProxyBase::CheckDone() is called from: test_runner::WebTestProxyBase::DidFinishLoad() test_runner::WebFrameTestProxy<>::didFinishLoad() blink::FrameLoaderClientImpl::dispatchDidFinishLoad() blink::FrameLoader::checkCompleted() when shouldSendCompleteNotification() is true. However, [1] calls FrameLoader::checkCompleted() asynchronously and thus makes it slightly later. In such cases, shouldSendCompleteNotification() can be false when checkCompleted() is called because e.g. the corresponding Document is already notified, CheckDone() is not called and thus layout tests are not terminated. This CL calls CheckDone() also from: test_runner::WebTestProxyBase::DidStopLoading() test_runner::WebFrameTestProxy<>::didStopLoading() blink::ProgressTracker::progressCompleted() blink::FrameLoader::checkCompleted() when shouldSendCompleteNotification() is true. To do this, |WebLocalFrame*| parameter is added to WebFrameClient::didStopLoading() and its overrides. [1] https://codereview.chromium.org/1475863005/ TEST=fast/frames/frame-set-same-src.html BUG=569511

Patch Set 1 #

Patch Set 2 : Dummy #

Patch Set 3 : Use !frame->parent() #

Patch Set 4 : Another ad-hoc fix. #

Patch Set 5 : Fix UaF of PS4. #

Patch Set 6 : Call CheckDone also in DidStopLoading. #

Patch Set 7 : Build break fix. #

Patch Set 8 : Clean up #

Patch Set 9 : Build break fix. #

Patch Set 10 : Build fix. #

Patch Set 11 : Rebase. #

Patch Set 12 : Rebase. #

Patch Set 13 : #

Patch Set 14 : Rebase. #

Patch Set 15 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -22 lines) Patch
M components/printing/renderer/print_web_view_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M components/test_runner/web_frame_test_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M components/test_runner/web_test_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M components/test_runner/web_test_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 54 (30 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480043002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480043002/1
5 years ago (2015-11-27 14:26:01 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-11-27 14:56:26 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480043002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480043002/20001
5 years ago (2015-11-27 14:59:19 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480043002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480043002/40001
5 years ago (2015-11-27 16:08:52 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480043002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480043002/60001
5 years ago (2015-11-27 16:33:23 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/141113)
5 years ago (2015-11-27 17:44:38 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480043002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480043002/80001
5 years ago (2015-11-27 17:59:16 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/146943)
5 years ago (2015-11-27 18:46:35 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480043002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480043002/100001
5 years ago (2015-11-30 07:43:29 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/123042)
5 years ago (2015-11-30 07:50:43 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480043002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480043002/120001
5 years ago (2015-11-30 08:52:31 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480043002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480043002/140001
5 years ago (2015-11-30 08:58:23 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480043002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480043002/180001
5 years ago (2015-11-30 09:13:06 UTC) #30
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-11-30 10:16:36 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480043002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480043002/200001
5 years ago (2015-12-11 07:32:39 UTC) #35
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-11 08:52:55 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480043002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480043002/220001
5 years ago (2015-12-14 04:46:32 UTC) #39
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-14 05:51:03 UTC) #41
hiroshige
mkwst@, could you take a look as a components/test_runner OWNER?
5 years ago (2015-12-14 12:23:38 UTC) #46
Mike West
On 2015/12/14 at 12:23:38, hiroshige wrote: > mkwst@, could you take a look as a ...
5 years ago (2015-12-14 20:25:10 UTC) #47
hiroshige
jochen@, could you take a look at as a //components and //content OWNER?
5 years ago (2015-12-15 05:22:39 UTC) #49
jochen (gone - plz use gerrit)
hum, so I support making the onload event asynchronous, that's great stuff. However, I'm worried ...
5 years ago (2015-12-16 08:52:03 UTC) #50
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480043002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480043002/280001
4 years, 10 months ago (2016-02-17 02:34:23 UTC) #52
commit-bot: I haz the power
4 years, 10 months ago (2016-02-17 04:02:04 UTC) #54
Dry run: This issue passed the CQ dry run.

Powered by Google App Engine
This is Rietveld 408576698