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

Issue 1398823004: Switch the page-capturing machinery to use the new hooks. (Closed)

Created:
5 years, 2 months ago by dglazkov
Modified:
4 years, 10 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch the page-capturing machinery to use the new hooks. This is a timing-changing patch. Here are the details: * The page text capture machinery no longer uses archaic timers to determine the best time to grab the text from the the document. Instead, it relies on the MeaningfulLayout signals that are coming from Blink. * These signals are keyed off the compositor putting up frames, which has an interesting side effect -- at least on some platforms (CrOS and Linux), this signal will not be issued until document/frame/tab is active, which is perfectly fine for our purposes. * As a side comment, we should probably unify our position on whether compositor puts up frames for inactive tabs. * As another side comment, this would help simplify the logic in translate bubbles that watches for tab to become active. * In many cases, the timing is much shorter than before, especially for smaller pages. This is good (faster!), but also means that some tests had to be tweaked to start listening for language detection notifications a bit earlier. * Fundamentally, this is a change in timing, not behavior, so the existing test coverage seemed sufficient. * The new plumbing is still incompatible with out-of-process iframes (OOPIF) and will need to be fixed up accordingly. BUG=521166 R=jam,andrewhayden,jochen Committed: https://crrev.com/afc918de00a2f2895b4d8eaf3a043e654ba5e8fb Cr-Commit-Position: refs/heads/master@{#372891} Committed: https://crrev.com/50fcc022d021a25b746823002ad2b7e772649fb6 Cr-Commit-Position: refs/heads/master@{#373185}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebase. #

Patch Set 3 : How many explosions? #

Patch Set 4 : Cleaned up. #

Patch Set 5 : Caught one more test. #

Patch Set 6 : Rebased. #

Patch Set 7 : Removed merge oopsies. #

Patch Set 8 : Worked some more on the tests. #

Patch Set 9 : More test polishing. #

Patch Set 10 : Removed another race in tests. #

Patch Set 11 : Attempting to fix Linux/ChromeOS failures. #

Patch Set 12 : Try to fix the bubble test. #

Patch Set 13 : Maybe really all fixed now? #

Patch Set 14 : Oic, this test was lookin' for love in all the wrong places. #

Patch Set 15 : Imma dum-dum. #

Patch Set 16 : Updated comments. #

Patch Set 17 : Fixes http://crbug.com/583261. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -90 lines) Patch
M chrome/browser/translate/translate_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +37 lines, -45 lines 0 comments Download
M chrome/browser/ui/views/translate/translate_bubble_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +1 line, -7 lines 0 comments Download
M chrome/renderer/chrome_render_frame_observer.h View 1 2 3 4 5 6 2 chunks +1 line, -3 lines 0 comments Download
M chrome/renderer/chrome_render_frame_observer.cc View 1 2 3 4 5 6 7 8 7 chunks +25 lines, -35 lines 0 comments Download

Messages

Total messages: 83 (34 generated)
dglazkov
https://codereview.chromium.org/1398823004/diff/1/chrome/browser/translate/translate_manager_browsertest.cc File chrome/browser/translate/translate_manager_browsertest.cc (right): https://codereview.chromium.org/1398823004/diff/1/chrome/browser/translate/translate_manager_browsertest.cc#newcode76 chrome/browser/translate/translate_manager_browsertest.cc:76: Would love your insight here. After this change, the ...
5 years, 2 months ago (2015-10-09 23:22:22 UTC) #2
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1398823004/diff/1/chrome/browser/translate/translate_manager_browsertest.cc File chrome/browser/translate/translate_manager_browsertest.cc (right): https://codereview.chromium.org/1398823004/diff/1/chrome/browser/translate/translate_manager_browsertest.cc#newcode76 chrome/browser/translate/translate_manager_browsertest.cc:76: On 2015/10/09 at 23:22:22, dglazkov wrote: > Would love ...
5 years, 2 months ago (2015-10-12 11:23:50 UTC) #3
dglazkov
Rebase.
5 years, 2 months ago (2015-10-16 23:09:12 UTC) #4
dglazkov
https://codereview.chromium.org/1398823004/diff/1/chrome/browser/translate/translate_manager_browsertest.cc File chrome/browser/translate/translate_manager_browsertest.cc (right): https://codereview.chromium.org/1398823004/diff/1/chrome/browser/translate/translate_manager_browsertest.cc#newcode76 chrome/browser/translate/translate_manager_browsertest.cc:76: On 2015/10/12 at 11:23:50, jochen wrote: > I think ...
5 years, 2 months ago (2015-10-17 00:29:24 UTC) #5
jochen (gone - plz use gerrit)
use content::NotificationService::AllSources() as source?
5 years, 2 months ago (2015-10-20 09:51:32 UTC) #6
dglazkov
On 2015/10/20 at 09:51:32, jochen wrote: > use content::NotificationService::AllSources() as source? ZOMG, you just blew ...
5 years, 2 months ago (2015-10-20 14:31:47 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/1398823004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398823004/40001
4 years, 11 months ago (2016-01-08 19:17:37 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1398823004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398823004/60001
4 years, 11 months ago (2016-01-08 19:35:06 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/149937) mac_chromium_rel_ng on ...
4 years, 11 months ago (2016-01-08 20:11:14 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1398823004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398823004/80001
4 years, 11 months ago (2016-01-08 22:13:53 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/99620)
4 years, 11 months ago (2016-01-09 00:43:21 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1398823004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398823004/100001
4 years, 11 months ago (2016-01-22 19:30:18 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/105813)
4 years, 11 months ago (2016-01-22 20:22:48 UTC) #21
dglazkov
Removed merge oopsies.
4 years, 11 months ago (2016-01-22 20:37:58 UTC) #22
dglazkov
Worked some more on the tests.
4 years, 11 months ago (2016-01-23 00:21:40 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/1398823004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398823004/140001
4 years, 11 months ago (2016-01-23 00:22:52 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/156397) linux_chromium_rel_ng on ...
4 years, 11 months ago (2016-01-23 00:57:11 UTC) #27
dglazkov
More test polishing.
4 years, 10 months ago (2016-01-29 20:55:49 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1398823004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398823004/160001
4 years, 10 months ago (2016-01-29 20:58:11 UTC) #30
dglazkov
Removed another race in tests.
4 years, 10 months ago (2016-01-29 21:55:11 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/1398823004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398823004/180001
4 years, 10 months ago (2016-01-29 21:56:08 UTC) #33
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/109090)
4 years, 10 months ago (2016-01-29 23:07:53 UTC) #35
dglazkov
Attempting to fix Linux/ChromeOS failures.
4 years, 10 months ago (2016-01-31 05:12:46 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/1398823004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398823004/200001
4 years, 10 months ago (2016-01-31 05:13:01 UTC) #38
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/109372)
4 years, 10 months ago (2016-01-31 06:47:49 UTC) #40
dglazkov
Try to fix the bubble test.
4 years, 10 months ago (2016-01-31 16:23:02 UTC) #41
dglazkov
Maybe really all fixed now?
4 years, 10 months ago (2016-01-31 20:50:33 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1398823004/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398823004/240001
4 years, 10 months ago (2016-01-31 20:50:40 UTC) #44
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/174044)
4 years, 10 months ago (2016-01-31 21:38:23 UTC) #46
dglazkov
Oic, this test was lookin' for love in all the wrong places.
4 years, 10 months ago (2016-02-01 03:22:39 UTC) #48
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1398823004/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398823004/260001
4 years, 10 months ago (2016-02-01 03:22:46 UTC) #49
dglazkov
Imma dum-dum.
4 years, 10 months ago (2016-02-01 03:34:07 UTC) #51
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1398823004/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398823004/280001
4 years, 10 months ago (2016-02-01 03:34:51 UTC) #52
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-01 04:18:04 UTC) #54
dglazkov
PTAL.
4 years, 10 months ago (2016-02-01 04:20:29 UTC) #58
jochen (gone - plz use gerrit)
lgtm
4 years, 10 months ago (2016-02-01 12:08:24 UTC) #60
dglazkov
Updated comments.
4 years, 10 months ago (2016-02-01 17:24:19 UTC) #62
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1398823004/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398823004/300001
4 years, 10 months ago (2016-02-01 17:24:28 UTC) #63
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-01 18:24:10 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1398823004/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398823004/300001
4 years, 10 months ago (2016-02-02 04:38:37 UTC) #68
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years, 10 months ago (2016-02-02 04:46:40 UTC) #69
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/afc918de00a2f2895b4d8eaf3a043e654ba5e8fb Cr-Commit-Position: refs/heads/master@{#372891}
4 years, 10 months ago (2016-02-02 04:55:02 UTC) #71
dglazkov
A revert of this CL (patchset #16 id:300001) has been created in https://codereview.chromium.org/1659393003/ by dglazkov@chromium.org. ...
4 years, 10 months ago (2016-02-03 04:46:37 UTC) #72
dglazkov
Fixes http://crbug.com/583261.
4 years, 10 months ago (2016-02-03 05:01:21 UTC) #74
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1398823004/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398823004/320001
4 years, 10 months ago (2016-02-03 05:03:12 UTC) #75
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-03 05:49:26 UTC) #77
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1398823004/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398823004/320001
4 years, 10 months ago (2016-02-03 05:50:47 UTC) #80
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 10 months ago (2016-02-03 05:55:26 UTC) #81
commit-bot: I haz the power
4 years, 10 months ago (2016-02-03 05:56:29 UTC) #83
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/50fcc022d021a25b746823002ad2b7e772649fb6
Cr-Commit-Position: refs/heads/master@{#373185}

Powered by Google App Engine
This is Rietveld 408576698