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

Issue 2754033002: Fix the position of AutofillClient for PasswordAutofillManager when the focused form element is ins… (Closed)

Created:
3 years, 9 months ago by EhsanK
Modified:
3 years, 9 months ago
CC:
chromium-reviews, jam, gcasto+watchlist_chromium.org, darin-cc_chromium.org, vabr+watchlistpasswordmanager_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the position of AutofillClient for PasswordAutofillManager when the focused form element is inside OOPIF When a form element is inside an OOPIF, the coordinates which are sent from renderer are with respect to the WebFrameWidget's coordinates and need to be transformed to root coordinate on the browser side. Without this change the position of the autofill pop-up is incorrect. This CL transforms the element bound to root view's coordinate before showing the autofill pop-up. BUG=686129 Review-Url: https://codereview.chromium.org/2754033002 Cr-Commit-Position: refs/heads/master@{#458593} Committed: https://chromium.googlesource.com/chromium/src/+/6f15a2dc3a3b9bd111352a58c40cf1a1ea0e9652

Patch Set 1 #

Total comments: 9

Patch Set 2 : Addressing comments and adding a test #

Total comments: 11

Patch Set 3 : Addressing creis@'s comments #

Total comments: 2

Patch Set 4 : Fixing a compile error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -2 lines) Patch
M chrome/browser/chrome_site_per_process_browsertest.cc View 1 2 3 3 chunks +213 lines, -0 lines 0 comments Download
M components/password_manager/content/browser/content_password_manager_driver.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/password_manager/content/browser/content_password_manager_driver.cc View 1 3 chunks +15 lines, -2 lines 0 comments Download

Messages

Total messages: 39 (21 generated)
EhsanK
Hello all, Please take a look at this change. Thanks. estark@: who first landed the ...
3 years, 9 months ago (2017-03-16 06:47:33 UTC) #2
EhsanK
https://codereview.chromium.org/2754033002/diff/1/components/password_manager/content/browser/content_password_manager_driver.cc File components/password_manager/content/browser/content_password_manager_driver.cc (right): https://codereview.chromium.org/2754033002/diff/1/components/password_manager/content/browser/content_password_manager_driver.cc#newcode294 components/password_manager/content/browser/content_password_manager_driver.cc:294: content::RenderWidgetHostView* rwhv = render_frame_host_->GetView(); Not sure yet if |rwhv| ...
3 years, 9 months ago (2017-03-16 07:06:58 UTC) #5
vabr (Chromium)
Thanks for the fix! I have two comments in addition to the code-bound ones: (1) ...
3 years, 9 months ago (2017-03-16 08:25:49 UTC) #6
Charlie Reis
Thanks for the quick response! https://codereview.chromium.org/2754033002/diff/1/components/password_manager/content/browser/content_password_manager_driver.cc File components/password_manager/content/browser/content_password_manager_driver.cc (right): https://codereview.chromium.org/2754033002/diff/1/components/password_manager/content/browser/content_password_manager_driver.cc#newcode288 components/password_manager/content/browser/content_password_manager_driver.cc:288: key, text_direction, typed_username, options, ...
3 years, 9 months ago (2017-03-16 16:51:50 UTC) #9
estark
Thanks! lgtm modulo creis's and vabr's comments https://codereview.chromium.org/2754033002/diff/1/components/password_manager/content/browser/content_password_manager_driver.cc File components/password_manager/content/browser/content_password_manager_driver.cc (right): https://codereview.chromium.org/2754033002/diff/1/components/password_manager/content/browser/content_password_manager_driver.cc#newcode288 components/password_manager/content/browser/content_password_manager_driver.cc:288: key, text_direction, ...
3 years, 9 months ago (2017-03-16 17:14:38 UTC) #11
vabr (Chromium)
On 2017/03/16 17:14:38, estark wrote: ... > > I wonder if this is a problem ...
3 years, 9 months ago (2017-03-16 18:54:28 UTC) #12
EhsanK
Thank you all for the reviews! PTAL. https://codereview.chromium.org/2754033002/diff/1/components/password_manager/content/browser/content_password_manager_driver.cc File components/password_manager/content/browser/content_password_manager_driver.cc (right): https://codereview.chromium.org/2754033002/diff/1/components/password_manager/content/browser/content_password_manager_driver.cc#newcode288 components/password_manager/content/browser/content_password_manager_driver.cc:288: key, text_direction, ...
3 years, 9 months ago (2017-03-16 20:39:00 UTC) #13
Charlie Reis
Thanks! LGTM with nits. https://codereview.chromium.org/2754033002/diff/20001/chrome/browser/chrome_site_per_process_browsertest.cc File chrome/browser/chrome_site_per_process_browsertest.cc (right): https://codereview.chromium.org/2754033002/diff/20001/chrome/browser/chrome_site_per_process_browsertest.cc#newcode509 chrome/browser/chrome_site_per_process_browsertest.cc:509: namespace autofill { On 2017/03/16 ...
3 years, 9 months ago (2017-03-17 18:43:08 UTC) #14
sebsg
On 2017/03/16 18:54:28, vabr (Chromium) wrote: > On 2017/03/16 17:14:38, estark wrote: > ... > ...
3 years, 9 months ago (2017-03-20 15:33:19 UTC) #16
Roger McFarlane (Chromium)
On 2017/03/16 18:54:28, vabr (Chromium) wrote: > On 2017/03/16 17:14:38, estark wrote: > ... > ...
3 years, 9 months ago (2017-03-20 16:02:03 UTC) #17
Roger McFarlane (Chromium)
lgtm
3 years, 9 months ago (2017-03-20 16:02:14 UTC) #19
EhsanK
Thank you all for reviews. Charlie, I made some changes to the test to use ...
3 years, 9 months ago (2017-03-20 16:45:28 UTC) #21
Charlie Reis
Thanks! Still LGTM. https://codereview.chromium.org/2754033002/diff/40001/chrome/browser/chrome_site_per_process_browsertest.cc File chrome/browser/chrome_site_per_process_browsertest.cc (right): https://codereview.chromium.org/2754033002/diff/40001/chrome/browser/chrome_site_per_process_browsertest.cc#newcode714 chrome/browser/chrome_site_per_process_browsertest.cc:714: EXPECT_LT(error.Length(), 1.4143f); On 2017/03/20 16:45:28, EhsanK ...
3 years, 9 months ago (2017-03-21 16:36:17 UTC) #22
EhsanK
Thanks for the reviews! I will try to CQ now.
3 years, 9 months ago (2017-03-21 16:39:36 UTC) #23
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/2754033002/60001
3 years, 9 months ago (2017-03-21 22:14:21 UTC) #34
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/6f15a2dc3a3b9bd111352a58c40cf1a1ea0e9652
3 years, 9 months ago (2017-03-21 22:56:00 UTC) #37
stgao
The new test by this CL is flaky. Do you mind investigating and fixing it? ...
3 years, 9 months ago (2017-03-22 04:37:54 UTC) #38
EhsanK
3 years, 9 months ago (2017-03-23 14:57:01 UTC) #39
Message was sent while issue was closed.
On 2017/03/22 04:37:54, stgao(ping after 24h) wrote:
> The new test by this CL is flaky. Do you mind investigating and fixing it?
> 
>
https://findit-for-me.appspot.com/waterfall/flake?key=ag9zfmZpbmRpdC1mb3ItbWV...

Thanks! Commenting here since there is no associated bugs for now. I cannot
repro this locally. Still, if the flakiness persists, I could try moving this to
interactive tests. I will keep monitoring the flakiness dashboard to see if this
is still occurring.

Powered by Google App Engine
This is Rietveld 408576698