|
|
Chromium Code Reviews|
Created:
5 years ago by dvadym Modified:
5 years ago Reviewers:
vabr (Chromium) CC:
chromium-reviews, mlamouri+watch-content_chromium.org, vabr+watchlistpasswordmanager_chromium.org, rouslan+autofill_chromium.org, jam, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org, bondd+autofillwatch_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, vabr+watchlistautofill_chromium.org, mkwst+watchlist-passwords_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionFix saving password in Password Manager on nytimes.com.
In refactoring on https://codereview.chromium.org/1381003004 it was implemented that PasswordAutofiilAgent considers that target frame is loaded only if all its subframes are loaded. But this could never happen, e.g. on nytimes.com there are a lot of frames and we never see that all of them are loaded.
This patch is returning to our previous logic, namely to check that only target frame is loaded, but not to check its subframes.
BUG=569577
Committed: https://crrev.com/3d0810ccce9f38b9f2acb0441743f44b67af28a9
Cr-Commit-Position: refs/heads/master@{#365827}
Patch Set 1 #
Total comments: 3
Patch Set 2 : Small renaming #Messages
Total messages: 16 (8 generated)
Description was changed from ========== Fixed a condition for checking finish of page loading in PasswordManager. BUG=569874 ========== to ========== Fix saving password in Password Manager on nytimes.com. In refactoring on https://codereview.chromium.org/1381003004 it was implemented that PasswordAutofiilAgent considers that target frame is loaded only if all subframes is loaded. But this could never happen, e.g. on nytimes.com there are a lot of frames and we never see that all of them are loaded. This patch is returning to our previous logic, namely to check that only target frame is loaded, but not to check its subframes. BUG=569874 ==========
Description was changed from ========== Fix saving password in Password Manager on nytimes.com. In refactoring on https://codereview.chromium.org/1381003004 it was implemented that PasswordAutofiilAgent considers that target frame is loaded only if all subframes is loaded. But this could never happen, e.g. on nytimes.com there are a lot of frames and we never see that all of them are loaded. This patch is returning to our previous logic, namely to check that only target frame is loaded, but not to check its subframes. BUG=569874 ========== to ========== Fix saving password in Password Manager on nytimes.com. In refactoring on https://codereview.chromium.org/1381003004 it was implemented that PasswordAutofiilAgent considers that target frame is loaded only if all its subframes are loaded. But this could never happen, e.g. on nytimes.com there are a lot of frames and we never see that all of them are loaded. This patch is returning to our previous logic, namely to check that only target frame is loaded, but not to check its subframes. BUG=569874 ==========
dvadym@chromium.org changed reviewers: + vabr@chromium.org
Hi Vaclav, Could you please have a look at this CL? Regards, Vadym
This LGTM, but we should definitely add tests both to document this behaviour, and to make sure someone does not "fix" it back later. Cheers, Vaclav https://codereview.chromium.org/1536653002/diff/1/components/autofill/content... File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/1536653002/diff/1/components/autofill/content... components/autofill/content/renderer/password_autofill_agent.cc:1056: blink::WebFrame* frame = render_frame()->GetWebFrame()->top(); nit: frame -> main_frame (to make clearer below, which frame this is about)
Thanks for comments Vaclav! We definitely should make sure that nobody in future will not fix it. But I have no idea how we can test it. https://codereview.chromium.org/1536653002/diff/1/components/autofill/content... File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/1536653002/diff/1/components/autofill/content... components/autofill/content/renderer/password_autofill_agent.cc:1056: blink::WebFrame* frame = render_frame()->GetWebFrame()->top(); On 2015/12/17 13:51:48, vabr (Chromium) wrote: > nit: frame -> main_frame > (to make clearer below, which frame this is about) It's not necessary the main frame, it might be a target frame of this form for example.
Thanks Vaclav for review! https://codereview.chromium.org/1536653002/diff/1/components/autofill/content... File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/1536653002/diff/1/components/autofill/content... components/autofill/content/renderer/password_autofill_agent.cc:1056: blink::WebFrame* frame = render_frame()->GetWebFrame()->top(); On 2015/12/17 14:00:27, dvadym wrote: > On 2015/12/17 13:51:48, vabr (Chromium) wrote: > > nit: frame -> main_frame > > (to make clearer below, which frame this is about) > > It's not necessary the main frame, it might be a target frame of this form for > example. Thanks, it's really top frame and it makes sense to check loading of the main frame.
After an offline discussion we realized that it's almost impossible to test this change.
The CQ bit was checked by dvadym@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from vabr@chromium.org Link to the patchset: https://codereview.chromium.org/1536653002/#ps20001 (title: "Small renaming")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1536653002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1536653002/20001
Description was changed from ========== Fix saving password in Password Manager on nytimes.com. In refactoring on https://codereview.chromium.org/1381003004 it was implemented that PasswordAutofiilAgent considers that target frame is loaded only if all its subframes are loaded. But this could never happen, e.g. on nytimes.com there are a lot of frames and we never see that all of them are loaded. This patch is returning to our previous logic, namely to check that only target frame is loaded, but not to check its subframes. BUG=569874 ========== to ========== Fix saving password in Password Manager on nytimes.com. In refactoring on https://codereview.chromium.org/1381003004 it was implemented that PasswordAutofiilAgent considers that target frame is loaded only if all its subframes are loaded. But this could never happen, e.g. on nytimes.com there are a lot of frames and we never see that all of them are loaded. This patch is returning to our previous logic, namely to check that only target frame is loaded, but not to check its subframes. BUG=569577 ==========
Message was sent while issue was closed.
Description was changed from ========== Fix saving password in Password Manager on nytimes.com. In refactoring on https://codereview.chromium.org/1381003004 it was implemented that PasswordAutofiilAgent considers that target frame is loaded only if all its subframes are loaded. But this could never happen, e.g. on nytimes.com there are a lot of frames and we never see that all of them are loaded. This patch is returning to our previous logic, namely to check that only target frame is loaded, but not to check its subframes. BUG=569577 ========== to ========== Fix saving password in Password Manager on nytimes.com. In refactoring on https://codereview.chromium.org/1381003004 it was implemented that PasswordAutofiilAgent considers that target frame is loaded only if all its subframes are loaded. But this could never happen, e.g. on nytimes.com there are a lot of frames and we never see that all of them are loaded. This patch is returning to our previous logic, namely to check that only target frame is loaded, but not to check its subframes. BUG=569577 ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Fix saving password in Password Manager on nytimes.com. In refactoring on https://codereview.chromium.org/1381003004 it was implemented that PasswordAutofiilAgent considers that target frame is loaded only if all its subframes are loaded. But this could never happen, e.g. on nytimes.com there are a lot of frames and we never see that all of them are loaded. This patch is returning to our previous logic, namely to check that only target frame is loaded, but not to check its subframes. BUG=569577 ========== to ========== Fix saving password in Password Manager on nytimes.com. In refactoring on https://codereview.chromium.org/1381003004 it was implemented that PasswordAutofiilAgent considers that target frame is loaded only if all its subframes are loaded. But this could never happen, e.g. on nytimes.com there are a lot of frames and we never see that all of them are loaded. This patch is returning to our previous logic, namely to check that only target frame is loaded, but not to check its subframes. BUG=569577 Committed: https://crrev.com/3d0810ccce9f38b9f2acb0441743f44b67af28a9 Cr-Commit-Position: refs/heads/master@{#365827} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/3d0810ccce9f38b9f2acb0441743f44b67af28a9 Cr-Commit-Position: refs/heads/master@{#365827} |
