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

Issue 2781903002: Modify a test to wait for compositor frame of OOPIF synced with CSS modifications in parent process (Closed)

Created:
3 years, 8 months ago by EhsanK
Modified:
3 years, 8 months ago
Reviewers:
alexmos
CC:
chromium-reviews, site_isolation_reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Modify a test to wait for compositor frame of OOPIF synced with CSS modifications in parent process A recent test which compares bounds reported from a focused node inside OOPIF against those reported for the same element throught AutofillAgent falkes 15% of the time. The reason seems to be that transforming the node bounds from child frame coordinates to root frame coordinates is failing for the focused node (which comes first and before autofill's update). The root cause is most probably a delayed updated in compositor frame's metadata for the OOPIF. This CL will modify the test so that we will wait for a known transform to happen, that is, for a fixed position frame and no border, transforming (0, 0) to root view should (almost) return the left and top properties of the frame (which we set). BUG=704943 Review-Url: https://codereview.chromium.org/2781903002 Cr-Commit-Position: refs/heads/master@{#460219} Committed: https://chromium.googlesource.com/chromium/src/+/0d112490bb36604ec3f89951188d41fa111ea248

Patch Set 1 #

Total comments: 7

Patch Set 2 : Addressing comments #

Total comments: 2

Patch Set 3 : Rebase to ToT and Activate the Test #

Patch Set 4 : Remove a stale comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -4 lines) Patch
M chrome/browser/site_per_process_interactive_browsertest.cc View 1 2 3 5 chunks +32 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
EhsanK
Hello Alex, Unfortunately the test still flakes and seems like moving to interactive tests is ...
3 years, 8 months ago (2017-03-28 16:56:43 UTC) #2
alexmos
https://codereview.chromium.org/2781903002/diff/1/chrome/browser/site_per_process_interactive_browsertest.cc File chrome/browser/site_per_process_interactive_browsertest.cc (right): https://codereview.chromium.org/2781903002/diff/1/chrome/browser/site_per_process_interactive_browsertest.cc#newcode1089 chrome/browser/site_per_process_interactive_browsertest.cc:1089: scoped_refptr<content::MessageLoopRunner> loop_runner_ = content::MessageLoopRunner is marked as deprecated. Could ...
3 years, 8 months ago (2017-03-28 18:54:25 UTC) #3
EhsanK
Thanks Alex! Please, take another look. https://codereview.chromium.org/2781903002/diff/1/chrome/browser/site_per_process_interactive_browsertest.cc File chrome/browser/site_per_process_interactive_browsertest.cc (right): https://codereview.chromium.org/2781903002/diff/1/chrome/browser/site_per_process_interactive_browsertest.cc#newcode1089 chrome/browser/site_per_process_interactive_browsertest.cc:1089: scoped_refptr<content::MessageLoopRunner> loop_runner_ = ...
3 years, 8 months ago (2017-03-28 19:37:46 UTC) #6
alexmos
LGTM (one more thing below) https://codereview.chromium.org/2781903002/diff/1/chrome/browser/site_per_process_interactive_browsertest.cc File chrome/browser/site_per_process_interactive_browsertest.cc (right): https://codereview.chromium.org/2781903002/diff/1/chrome/browser/site_per_process_interactive_browsertest.cc#newcode1118 chrome/browser/site_per_process_interactive_browsertest.cc:1118: "iframe.style.left = '%dpx';", On ...
3 years, 8 months ago (2017-03-28 19:48:13 UTC) #7
EhsanK
Thanks Alex! I rebased and will try to CQ soon. https://codereview.chromium.org/2781903002/diff/20001/chrome/browser/site_per_process_interactive_browsertest.cc File chrome/browser/site_per_process_interactive_browsertest.cc (right): https://codereview.chromium.org/2781903002/diff/20001/chrome/browser/site_per_process_interactive_browsertest.cc#newcode1098 ...
3 years, 8 months ago (2017-03-28 20:11:09 UTC) #10
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/2781903002/60001
3 years, 8 months ago (2017-03-28 21:50:32 UTC) #17
commit-bot: I haz the power
3 years, 8 months ago (2017-03-28 22:10:18 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/0d112490bb36604ec3f89951188d...

Powered by Google App Engine
This is Rietveld 408576698