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

Issue 1922653003: Send TestFinished as Process/Control-msg (not View-msg). (Closed)

Created:
4 years, 7 months ago by Łukasz Anforowicz
Modified:
4 years, 7 months ago
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@only-one-top-loading-frame-in-all-renderers
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle layout tests that finish in OOPIFs. When a layout test finishes, it calls BlinkTestRunner's TestFinished method. If the main test frame resides in another renderer process, then BlinkTestRunner sends a message to the browser process to let it know that the test has finished (and to let it forward this notification to the main test frame). Before this CL, when a layout test would finish in an OOPIF, then RenderView associated with BlinkTestRunner would be swapped-out, and this meant that the notification message would be dropped and the test would time out. After this CL, the notification message is sent as a process/control message - this means that it reaches the browser regardless of the swapped-out state of RenderViews. This fixes 25+ timeouts in --site-per-process mode. This CL depends on many earlier CLs that had to ensure that tests finish at the right moment - this requires proper tracking of top loading frame across all renderers (https://crrev.com/1908233002), as well as properly identifying the main test window (https://crrev.com/1896623002). This CL also highlights that the main frame receives notification that the test has finished in another renderer, *not* that another renderer called testRunner.notifyDone (i.e. BlinkTestRunner::TestFinished can also be called when test finishes due to the top loading frame finishing loading). This means that the main frame doesn't execute testRunner.notifyDone itself, but directly calls BlinkTestRunner::TestFinished (calling notifyDone would not have worked due to earlier resetting of wait_until_done LayoutTestRuntimeFlag). Finally this CL, tweaks redirect-methods.html test to ensure that it consistently allows WebFrameClient callbacks to be called (without --site-per-process the delay would have occured because top-loading-frame would still be tracked and would have prevented synchronous finishing of the test when testRunner.notifyDone is called). BUG=595895 Committed: https://crrev.com/042327073131b53a3a3f7d06c7e56d8eadaed9d2 Cr-Commit-Position: refs/heads/master@{#390398}

Patch Set 1 #

Patch Set 2 : Rebasing... #

Patch Set 3 : Rebasing... #

Messages

Total messages: 18 (10 generated)
Łukasz Anforowicz
jochen@, could you please take a look?
4 years, 7 months ago (2016-04-26 16:40:22 UTC) #3
jochen (gone - plz use gerrit)
lgtm
4 years, 7 months ago (2016-04-27 12:05:24 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/1922653003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1922653003/40001
4 years, 7 months ago (2016-04-28 14:41:21 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-28 15:42:16 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1922653003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1922653003/40001
4 years, 7 months ago (2016-04-28 15:57:00 UTC) #11
commit-bot: I haz the power
Failed to apply the patch.
4 years, 7 months ago (2016-04-28 16:02:20 UTC) #13
Łukasz Anforowicz
On 2016/04/28 16:02:20, commit-bot: I haz the power wrote: > Failed to apply the patch. ...
4 years, 7 months ago (2016-04-28 16:19:53 UTC) #15
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:19:01 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/042327073131b53a3a3f7d06c7e56d8eadaed9d2
Cr-Commit-Position: refs/heads/master@{#390398}

Powered by Google App Engine
This is Rietveld 408576698