[PageLoadMetrics] Use URL rather than origin to get/set website settings. [chromium/src : main]

0 views
Skip to first unread message

Christoph Schwering (Gerrit)

unread,
Nov 24, 2022, 9:09:09 AM11/24/22
to bmcquad...@chromium.org, csharris...@chromium.org, loading-rev...@chromium.org, speed-metr...@chromium.org, tommcke...@chromium.org, Christian Dullweber, Yao Xiao, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Christian Dullweber.

View Change

2 comments:

  • Patchset:

    • Patch Set #1:

      Hi Christian, thanks for your suggestion on the bug. PTAL

  • File chrome/browser/page_load_metrics/observers/formfill_page_load_metrics_observer.cc:

    • Patch Set #1, Line 90: url

      Just to double check: you suggested *not* to strip path etc, because that's done at a later point anyway, correct?

To view, visit change 4055524. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iaf5d86b7adf9f461b700d8b1806a942b1a4569ee
Gerrit-Change-Number: 4055524
Gerrit-PatchSet: 1
Gerrit-Owner: Christoph Schwering <schw...@google.com>
Gerrit-Reviewer: Christian Dullweber <dull...@chromium.org>
Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
Gerrit-CC: Yao Xiao <yao...@chromium.org>
Gerrit-Attention: Christian Dullweber <dull...@chromium.org>
Gerrit-Comment-Date: Thu, 24 Nov 2022 14:06:05 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Christian Dullweber (Gerrit)

unread,
Nov 25, 2022, 4:28:13 AM11/25/22
to Christoph Schwering, bmcquad...@chromium.org, csharris...@chromium.org, loading-rev...@chromium.org, speed-metr...@chromium.org, tommcke...@chromium.org, Yao Xiao, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Christoph Schwering.

Patch set 1:Code-Review +1

View Change

2 comments:

  • Patchset:

  • File chrome/browser/page_load_metrics/observers/formfill_page_load_metrics_observer.cc:

    • Just to double check: you suggested *not* to strip path etc, because that's done at a later point an […]

      Yes, this is correct. SetWebsiteSettingDefaultScope automatically applies the "default scope". Which is "origin" for your setting.

      GetWebsiteSetting should always get the full URL. It will then match the setting that matches the URL the closest, which will be your origin setting.

To view, visit change 4055524. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iaf5d86b7adf9f461b700d8b1806a942b1a4569ee
Gerrit-Change-Number: 4055524
Gerrit-PatchSet: 1
Gerrit-Owner: Christoph Schwering <schw...@google.com>
Gerrit-Reviewer: Christian Dullweber <dull...@chromium.org>
Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
Gerrit-CC: Yao Xiao <yao...@chromium.org>
Gerrit-Attention: Christoph Schwering <schw...@google.com>
Gerrit-Comment-Date: Fri, 25 Nov 2022 09:24:17 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Christoph Schwering <schw...@google.com>
Gerrit-MessageType: comment

Christoph Schwering (Gerrit)

unread,
Nov 25, 2022, 6:54:39 AM11/25/22
to bmcquad...@chromium.org, csharris...@chromium.org, loading-rev...@chromium.org, speed-metr...@chromium.org, tommcke...@chromium.org, Nicolás Peña, Christian Dullweber, Yao Xiao, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Nicolás Peña.

View Change

2 comments:

  • Patchset:

    • Patch Set #1:

      Nicolas, could you take a look? This is to prevent hitting a DCHECK in GetPatternsForContentSettingsType()

  • File chrome/browser/page_load_metrics/observers/formfill_page_load_metrics_observer.cc:

    • Yes, this is correct. SetWebsiteSettingDefaultScope automatically applies the "default scope". […]

      Thanks!

To view, visit change 4055524. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iaf5d86b7adf9f461b700d8b1806a942b1a4569ee
Gerrit-Change-Number: 4055524
Gerrit-PatchSet: 1
Gerrit-Owner: Christoph Schwering <schw...@google.com>
Gerrit-Reviewer: Christian Dullweber <dull...@chromium.org>
Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
Gerrit-Reviewer: Nicolás Peña <n...@chromium.org>
Gerrit-CC: Yao Xiao <yao...@chromium.org>
Gerrit-Attention: Nicolás Peña <n...@chromium.org>
Gerrit-Comment-Date: Fri, 25 Nov 2022 11:50:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Christian Dullweber <dull...@chromium.org>

Nicolás Peña (Gerrit)

unread,
Nov 25, 2022, 10:13:42 AM11/25/22
to Christoph Schwering, bmcquad...@chromium.org, csharris...@chromium.org, loading-rev...@chromium.org, speed-metr...@chromium.org, tommcke...@chromium.org, Christian Dullweber, Yao Xiao, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Christoph Schwering.

Patch set 1:Code-Review +1

View Change

    To view, visit change 4055524. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Iaf5d86b7adf9f461b700d8b1806a942b1a4569ee
    Gerrit-Change-Number: 4055524
    Gerrit-PatchSet: 1
    Gerrit-Owner: Christoph Schwering <schw...@google.com>
    Gerrit-Reviewer: Christian Dullweber <dull...@chromium.org>
    Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
    Gerrit-Reviewer: Nicolás Peña <n...@chromium.org>
    Gerrit-CC: Yao Xiao <yao...@chromium.org>
    Gerrit-Attention: Christoph Schwering <schw...@google.com>
    Gerrit-Comment-Date: Fri, 25 Nov 2022 15:10:25 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment

    Christoph Schwering (Gerrit)

    unread,
    Nov 26, 2022, 10:57:35 AM11/26/22
    to bmcquad...@chromium.org, csharris...@chromium.org, loading-rev...@chromium.org, speed-metr...@chromium.org, tommcke...@chromium.org, Nicolás Peña, Christian Dullweber, Yao Xiao, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Nicolás Peña.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #2:

        Nicalas, I lost your +1 after enabling the test that was disabled due to this bug.

    To view, visit change 4055524. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Iaf5d86b7adf9f461b700d8b1806a942b1a4569ee
    Gerrit-Change-Number: 4055524
    Gerrit-PatchSet: 2
    Gerrit-Owner: Christoph Schwering <schw...@google.com>
    Gerrit-Reviewer: Christian Dullweber <dull...@chromium.org>
    Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
    Gerrit-Reviewer: Nicolás Peña <n...@chromium.org>
    Gerrit-CC: Yao Xiao <yao...@chromium.org>
    Gerrit-Attention: Nicolás Peña <n...@chromium.org>
    Gerrit-Comment-Date: Sat, 26 Nov 2022 15:53:29 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Nicolás Peña (Gerrit)

    unread,
    Nov 28, 2022, 10:41:13 AM11/28/22
    to Christoph Schwering, bmcquad...@chromium.org, csharris...@chromium.org, loading-rev...@chromium.org, speed-metr...@chromium.org, tommcke...@chromium.org, Christian Dullweber, Yao Xiao, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Christoph Schwering.

    Patch set 2:Code-Review +1

    View Change

      To view, visit change 4055524. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Iaf5d86b7adf9f461b700d8b1806a942b1a4569ee
      Gerrit-Change-Number: 4055524
      Gerrit-PatchSet: 2
      Gerrit-Owner: Christoph Schwering <schw...@google.com>
      Gerrit-Reviewer: Christian Dullweber <dull...@chromium.org>
      Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
      Gerrit-Reviewer: Nicolás Peña <n...@chromium.org>
      Gerrit-CC: Yao Xiao <yao...@chromium.org>
      Gerrit-Attention: Christoph Schwering <schw...@google.com>
      Gerrit-Comment-Date: Mon, 28 Nov 2022 15:37:29 +0000

      Christoph Schwering (Gerrit)

      unread,
      Nov 28, 2022, 10:54:21 AM11/28/22
      to bmcquad...@chromium.org, csharris...@chromium.org, loading-rev...@chromium.org, speed-metr...@chromium.org, tommcke...@chromium.org, Nicolás Peña, Christian Dullweber, Yao Xiao, Chromium LUCI CQ, chromium...@chromium.org

      Patch set 2:Commit-Queue +2

      View Change

      1 comment:

      To view, visit change 4055524. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Iaf5d86b7adf9f461b700d8b1806a942b1a4569ee
      Gerrit-Change-Number: 4055524
      Gerrit-PatchSet: 2
      Gerrit-Owner: Christoph Schwering <schw...@google.com>
      Gerrit-Reviewer: Christian Dullweber <dull...@chromium.org>
      Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
      Gerrit-Reviewer: Nicolás Peña <n...@chromium.org>
      Gerrit-CC: Yao Xiao <yao...@chromium.org>
      Gerrit-Comment-Date: Mon, 28 Nov 2022 15:51:10 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Gerrit-MessageType: comment

      Chromium LUCI CQ (Gerrit)

      unread,
      Nov 28, 2022, 11:52:21 AM11/28/22
      to Christoph Schwering, bmcquad...@chromium.org, csharris...@chromium.org, loading-rev...@chromium.org, speed-metr...@chromium.org, tommcke...@chromium.org, Nicolás Peña, Christian Dullweber, Yao Xiao, chromium...@chromium.org

      Chromium LUCI CQ submitted this change.

      View Change

      Approvals: Nicolás Peña: Looks good to me Christoph Schwering: Commit
      [PageLoadMetrics] Use URL rather than origin to get/set website settings.

      Rather than passing the origin, which may be null due to opaque origins,
      this CL passes the last-committed URL to GetWebsiteSetting() and
      SetWebsiteSettingDefaultScope().

      Bug: 1392914
      Change-Id: Iaf5d86b7adf9f461b700d8b1806a942b1a4569ee
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4055524
      Reviewed-by: Nicolás Peña <n...@chromium.org>
      Commit-Queue: Christoph Schwering <schw...@google.com>
      Cr-Commit-Position: refs/heads/main@{#1076246}
      ---
      M chrome/browser/autofill/autofill_across_iframes_browsertest.cc
      M chrome/browser/page_load_metrics/observers/formfill_page_load_metrics_observer.cc
      2 files changed, 26 insertions(+), 12 deletions(-)


      To view, visit change 4055524. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Iaf5d86b7adf9f461b700d8b1806a942b1a4569ee
      Gerrit-Change-Number: 4055524
      Gerrit-PatchSet: 3
      Gerrit-Owner: Christoph Schwering <schw...@google.com>
      Gerrit-Reviewer: Christian Dullweber <dull...@chromium.org>
      Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Nicolás Peña <n...@chromium.org>
      Gerrit-CC: Yao Xiao <yao...@chromium.org>
      Gerrit-MessageType: merged
      Reply all
      Reply to author
      Forward
      0 new messages