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

Issue 2055693002: Add delay to didAssociateFormControlsTimer so it doesn't fire too frequently (Closed)

Created:
4 years, 6 months ago by keishi
Modified:
4 years, 5 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add delay to didAssociateFormControlsTimer so it doesn't fire too frequently When JS iteratively constructs a DOM tree containing form controls, didAssociateFormControlsTimer was fireing for every iteration, causing a massive slow down. BUG=614856 Committed: https://crrev.com/6e1c00f9b9656319829c290a280b5ffb07bc4d1a Cr-Commit-Position: refs/heads/master@{#404083}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : fix #

Patch Set 4 : fix #

Patch Set 5 : fixed tests #

Total comments: 2

Patch Set 6 : changed to protected #

Total comments: 4

Patch Set 7 : fix #

Patch Set 8 : fix #

Patch Set 9 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -6 lines) Patch
M chrome/renderer/autofill/autofill_renderer_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/autofill/password_generation_agent_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/chrome_render_view_test.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/chrome_render_view_test.cc View 1 2 3 4 5 6 7 8 2 chunks +21 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/autofill_agent.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 43 (17 generated)
keishi
PTAL
4 years, 6 months ago (2016-06-09 05:28:00 UTC) #2
tkent
lgtm. We should have a comment explaining a reason of the delay.
4 years, 6 months ago (2016-06-09 05:33:08 UTC) #3
keishi
On 2016/06/09 05:33:08, tkent wrote: > lgtm. > We should have a comment explaining a ...
4 years, 6 months ago (2016-06-09 06:29:22 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2055693002/20001
4 years, 6 months ago (2016-06-09 06:29:47 UTC) #7
commit-bot: I haz the power
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/225918)
4 years, 6 months ago (2016-06-09 07:03:12 UTC) #9
keishi
+vabr Looks like the tests need to wait for the timer to fire. How should ...
4 years, 6 months ago (2016-06-09 09:03:55 UTC) #11
vabr (Chromium)
On 2016/06/09 09:03:55, keishi wrote: > +vabr Looks like the tests need to wait for ...
4 years, 6 months ago (2016-06-09 14:59:46 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2055693002/40001
4 years, 6 months ago (2016-06-21 07:54:04 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2055693002/60001
4 years, 6 months ago (2016-06-21 08:42:04 UTC) #16
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/231499)
4 years, 6 months ago (2016-06-21 09:20:23 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2055693002/80001
4 years, 6 months ago (2016-06-21 12:48:48 UTC) #20
keishi
vabr@ could you take a look at the autofill tests. The blink code and test ...
4 years, 6 months ago (2016-06-21 12:51:14 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-21 14:04:14 UTC) #23
vabr (Chromium)
Thank you for the solution! LGTM with a comment. Cheers, Vaclav https://codereview.chromium.org/2055693002/diff/80001/components/autofill/content/renderer/autofill_agent.h File components/autofill/content/renderer/autofill_agent.h (right): ...
4 years, 6 months ago (2016-06-22 05:50:35 UTC) #24
keishi
+phajdan.jr could you review the changes to chrome/test/base/chrome_render_view_test.{h,cc} ? Thanks. https://codereview.chromium.org/2055693002/diff/80001/components/autofill/content/renderer/autofill_agent.h File components/autofill/content/renderer/autofill_agent.h (right): https://codereview.chromium.org/2055693002/diff/80001/components/autofill/content/renderer/autofill_agent.h#newcode67 ...
4 years, 6 months ago (2016-06-22 08:27:35 UTC) #26
Paweł Hajdan Jr.
https://codereview.chromium.org/2055693002/diff/100001/chrome/renderer/autofill/autofill_renderer_browsertest.cc File chrome/renderer/autofill/autofill_renderer_browsertest.cc (right): https://codereview.chromium.org/2055693002/diff/100001/chrome/renderer/autofill/autofill_renderer_browsertest.cc#newcode139 chrome/renderer/autofill/autofill_renderer_browsertest.cc:139: WaitForAutofillDidAssociateFormControl(); Isn't this very similar to RunUntilIdle? I'm wondering ...
4 years, 6 months ago (2016-06-24 09:13:55 UTC) #27
keishi
https://codereview.chromium.org/2055693002/diff/100001/chrome/renderer/autofill/autofill_renderer_browsertest.cc File chrome/renderer/autofill/autofill_renderer_browsertest.cc (right): https://codereview.chromium.org/2055693002/diff/100001/chrome/renderer/autofill/autofill_renderer_browsertest.cc#newcode139 chrome/renderer/autofill/autofill_renderer_browsertest.cc:139: WaitForAutofillDidAssociateFormControl(); On 2016/06/24 09:13:55, Paweł Hajdan Jr. wrote: > ...
4 years, 6 months ago (2016-06-24 11:35:46 UTC) #28
Paweł Hajdan Jr.
https://codereview.chromium.org/2055693002/diff/100001/chrome/renderer/autofill/autofill_renderer_browsertest.cc File chrome/renderer/autofill/autofill_renderer_browsertest.cc (right): https://codereview.chromium.org/2055693002/diff/100001/chrome/renderer/autofill/autofill_renderer_browsertest.cc#newcode139 chrome/renderer/autofill/autofill_renderer_browsertest.cc:139: WaitForAutofillDidAssociateFormControl(); On 2016/06/24 at 11:35:46, keishi wrote: > On ...
4 years, 5 months ago (2016-06-27 18:01:34 UTC) #29
keishi
https://codereview.chromium.org/2055693002/diff/100001/chrome/renderer/autofill/autofill_renderer_browsertest.cc File chrome/renderer/autofill/autofill_renderer_browsertest.cc (right): https://codereview.chromium.org/2055693002/diff/100001/chrome/renderer/autofill/autofill_renderer_browsertest.cc#newcode139 chrome/renderer/autofill/autofill_renderer_browsertest.cc:139: WaitForAutofillDidAssociateFormControl(); On 2016/06/27 18:01:34, Paweł Hajdan Jr. wrote: > ...
4 years, 5 months ago (2016-06-28 02:09:18 UTC) #30
Paweł Hajdan Jr.
LGTM
4 years, 5 months ago (2016-06-28 13:53:15 UTC) #31
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/2055693002/140001
4 years, 5 months ago (2016-06-29 07:05:11 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/226677) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 5 months ago (2016-06-29 07:08:09 UTC) #36
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/2055693002/160001
4 years, 5 months ago (2016-07-07 04:05:58 UTC) #39
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 5 months ago (2016-07-07 05:21:03 UTC) #40
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-07 05:21:12 UTC) #41
commit-bot: I haz the power
4 years, 5 months ago (2016-07-07 05:23:10 UTC) #43
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/6e1c00f9b9656319829c290a280b5ffb07bc4d1a
Cr-Commit-Position: refs/heads/master@{#404083}

Powered by Google App Engine
This is Rietveld 408576698