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

Issue 2660643002: Use an OOPIF-compatible call chain when finding the top-level frame (Closed)

Created:
3 years, 10 months ago by elawrence
Modified:
3 years, 10 months ago
Reviewers:
dvadym, engedy, nasko
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, vabr+watchlistpasswordmanager_chromium.org, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, darin-cc_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Kolos@ suggested engedy was more familiar with Password Manager+OOPIF. Engedy@ can you please take a look? --- Use an OOPIF-compatible call chain when finding the top-level frame The ShowSuggestions autofill method must walk up the DOM hierarchy to determine the security origin of the top-level markup. Because the form may live in a different process than the top-level markup (due to out-of-process iframes), we must use a method call chain that works correctly across processes. BUG=685982

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -6 lines) Patch
M components/autofill/content/renderer/password_autofill_agent.cc View 1 chunk +4 lines, -6 lines 1 comment Download

Messages

Total messages: 24 (13 generated)
elawrence
Please have a look?
3 years, 10 months ago (2017-01-27 18:19:03 UTC) #4
Mathieu
+dvadym is a more proper owner for password code here.
3 years, 10 months ago (2017-01-27 18:56:19 UTC) #10
nasko
https://codereview.chromium.org/2660643002/diff/1/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/2660643002/diff/1/components/autofill/content/renderer/password_autofill_agent.cc#newcode858 components/autofill/content/renderer/password_autofill_agent.cc:858: render_frame()->GetWebFrame()->top()->getSecurityOrigin()) Can't we use getSecurityOrigin().isPotentiallyTrustworthy() here? The multiple conversions ...
3 years, 10 months ago (2017-01-27 21:43:35 UTC) #11
elawrence
https://codereview.chromium.org/2660643002/diff/1/components/autofill/content/renderer/password_autofill_agent.cc#newcode858 > components/autofill/content/renderer/password_autofill_agent.cc:858: > render_frame()->GetWebFrame()->top()->getSecurityOrigin()) > Can't we use getSecurityOrigin().isPotentiallyTrustworthy() here? The multiple > conversions ...
3 years, 10 months ago (2017-01-30 15:23:45 UTC) #12
elawrence
dvadym is out until the 6th. kolos@, could you PTAL?
3 years, 10 months ago (2017-01-30 15:50:28 UTC) #14
nasko
On 2017/01/30 15:23:45, elawrence wrote: > https://codereview.chromium.org/2660643002/diff/1/components/autofill/content/renderer/password_autofill_agent.cc#newcode858 > > components/autofill/content/renderer/password_autofill_agent.cc:858: > > render_frame()->GetWebFrame()->top()->getSecurityOrigin()) > > ...
3 years, 10 months ago (2017-01-30 20:32:54 UTC) #15
elawrence
Thanks, Nasko! > Also, can you file a bug for providing IsSecure() method on url::Origin ...
3 years, 10 months ago (2017-01-30 21:58:17 UTC) #16
engedy
Thanks for filing the bug, and +1 on cleaning this up in the long-term. But ...
3 years, 10 months ago (2017-01-31 18:15:29 UTC) #19
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/2660643002/1
3 years, 10 months ago (2017-01-31 18:22:05 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/354007)
3 years, 10 months ago (2017-01-31 18:31:59 UTC) #23
elawrence
3 years, 10 months ago (2017-01-31 20:46:18 UTC) #24
Message was sent while issue was closed.
This change landed with a TBR via a different CL:
https://codereview.chromium.org/2665993004/

Powered by Google App Engine
This is Rietveld 408576698