Make `allow_universal_access_from_file_urls` verification Android only. [chromium/src : main]

0 views
Skip to first unread message

Illia Klimov (Gerrit)

unread,
Jun 23, 2022, 11:03:21 AM6/23/22
to Richard Coles, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Richard Coles.

View Change

1 comment:

  • Patchset:

    • Patch Set #3:

      Hi Richard,

      Permissions team is verifying if `allow_universal_access_from_file_urls` is enabled before fetching an origin. But I believe there is no reason to check it for all platforms, hence I've added the verification only for Android.

      Please check if it make sense?

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ibd59f59e2d12500f717af3a32fc1c089bd01094a
Gerrit-Change-Number: 3720955
Gerrit-PatchSet: 3
Gerrit-Owner: Illia Klimov <el...@google.com>
Gerrit-Reviewer: Richard Coles <to...@chromium.org>
Gerrit-Attention: Richard Coles <to...@chromium.org>
Gerrit-Comment-Date: Thu, 23 Jun 2022 15:03:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Richard Coles (Gerrit)

unread,
Jun 23, 2022, 2:37:08 PM6/23/22
to Illia Klimov, Richard Coles, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Illia Klimov.

Patch set 4:Code-Review +1

View Change

1 comment:

  • Patchset:

    • Patch Set #3:

      Hi Richard, […]

      Yes - only Android WebView is allowed to enable this, and I believe there are already other places that check this which are also only enabled for OS_ANDROID.

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ibd59f59e2d12500f717af3a32fc1c089bd01094a
Gerrit-Change-Number: 3720955
Gerrit-PatchSet: 4
Gerrit-Owner: Illia Klimov <el...@google.com>
Gerrit-Reviewer: Richard Coles <to...@chromium.org>
Gerrit-Attention: Illia Klimov <el...@google.com>
Gerrit-Comment-Date: Thu, 23 Jun 2022 18:36:59 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Illia Klimov <el...@google.com>
Gerrit-MessageType: comment

Illia Klimov (Gerrit)

unread,
Jun 23, 2022, 3:18:40 PM6/23/22
to Andy Paicu, Richard Coles, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Andy Paicu.

View Change

1 comment:

  • Patchset:

    • Patch Set #4:

      Hi Andy,

      It makes sense to check `allow_universal_access_from_file_urls` flag only if it is Android, hence I'm adding it under IS_ANDROID. PTAL.

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ibd59f59e2d12500f717af3a32fc1c089bd01094a
Gerrit-Change-Number: 3720955
Gerrit-PatchSet: 4
Gerrit-Owner: Illia Klimov <el...@google.com>
Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
Gerrit-Reviewer: Richard Coles <to...@chromium.org>
Gerrit-Attention: Andy Paicu <andy...@chromium.org>
Gerrit-Comment-Date: Thu, 23 Jun 2022 19:18:27 +0000

Andy Paicu (Gerrit)

unread,
Jun 23, 2022, 4:39:07 PM6/23/22
to Illia Klimov, Richard Coles, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Illia Klimov.

View Change

1 comment:

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ibd59f59e2d12500f717af3a32fc1c089bd01094a
Gerrit-Change-Number: 3720955
Gerrit-PatchSet: 4
Gerrit-Owner: Illia Klimov <el...@google.com>
Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
Gerrit-Reviewer: Richard Coles <to...@chromium.org>
Gerrit-Attention: Illia Klimov <el...@google.com>
Gerrit-Comment-Date: Thu, 23 Jun 2022 20:38:57 +0000

Illia Klimov (Gerrit)

unread,
Jul 2, 2022, 2:34:50 AM7/2/22
to Arthur Sonzogni, Andy Paicu, Richard Coles, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Andy Paicu, Arthur Sonzogni.

View Change

2 comments:

  • Patchset:

    • Patch Set #6:

      Hi Andy,

      thank you for the comment, PTAL.

      @arthursonzogni:
      content/web_test/browser/web_test_permission_manager.cc

  • File content/browser/permissions/permission_util.cc:

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ibd59f59e2d12500f717af3a32fc1c089bd01094a
Gerrit-Change-Number: 3720955
Gerrit-PatchSet: 6
Gerrit-Owner: Illia Klimov <el...@google.com>
Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Reviewer: Illia Klimov <el...@google.com>
Gerrit-Reviewer: Richard Coles <to...@chromium.org>
Gerrit-Attention: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Attention: Andy Paicu <andy...@chromium.org>
Gerrit-Comment-Date: Sat, 02 Jul 2022 06:34:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Andy Paicu <andy...@chromium.org>
Gerrit-MessageType: comment

Andy Paicu (Gerrit)

unread,
Jul 4, 2022, 6:01:23 AM7/4/22
to Illia Klimov, Arthur Sonzogni, Richard Coles, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Arthur Sonzogni, Illia Klimov.

Patch set 6:Code-Review +1

View Change

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

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ibd59f59e2d12500f717af3a32fc1c089bd01094a
    Gerrit-Change-Number: 3720955
    Gerrit-PatchSet: 6
    Gerrit-Owner: Illia Klimov <el...@google.com>
    Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
    Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Reviewer: Illia Klimov <el...@google.com>
    Gerrit-Reviewer: Richard Coles <to...@chromium.org>
    Gerrit-Attention: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Attention: Illia Klimov <el...@google.com>
    Gerrit-Comment-Date: Mon, 04 Jul 2022 10:01:07 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment

    Arthur Sonzogni (Gerrit)

    unread,
    Jul 4, 2022, 6:06:34 AM7/4/22
    to Illia Klimov, Andy Paicu, Arthur Sonzogni, Richard Coles, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Arthur Sonzogni, Illia Klimov.

    View Change

    1 comment:

    • File content/web_test/browser/web_test_permission_manager.cc:

      • Patch Set #6, Line 24: GURL GetLastCommittedOriginAsURL(content::RenderFrameHost* render_frame_host) {

        This is duplicated from two other location. Should you try to deduplicate? Or at least add a comment explaining this function must be kept in sync, similar to the comment in the previous file?

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

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ibd59f59e2d12500f717af3a32fc1c089bd01094a
    Gerrit-Change-Number: 3720955
    Gerrit-PatchSet: 6
    Gerrit-Owner: Illia Klimov <el...@google.com>
    Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
    Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Reviewer: Illia Klimov <el...@google.com>
    Gerrit-Reviewer: Richard Coles <to...@chromium.org>
    Gerrit-CC: Arthur Sonzogni <arthurs...@google.com>
    Gerrit-Attention: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Attention: Illia Klimov <el...@google.com>
    Gerrit-Comment-Date: Mon, 04 Jul 2022 10:06:23 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Arthur Sonzogni (Gerrit)

    unread,
    Jul 4, 2022, 6:35:54 AM7/4/22
    to Illia Klimov, Arthur Sonzogni, Andy Paicu, Richard Coles, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Illia Klimov.

    View Change

    1 comment:

    • File chrome/browser/permissions/permissions_security_model_interactive_uitest.cc:

      • Patch Set #6, Line 913: /*expect_granted*/ false

        nit: The clang-format recognized format for this is:
        ```
        /*expect_granted=*/false
        ```

        clang-format will remove spaces in between the comment and the value. We might also have some kind of checks the comment is matching the argument it is referring too.

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

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ibd59f59e2d12500f717af3a32fc1c089bd01094a
    Gerrit-Change-Number: 3720955
    Gerrit-PatchSet: 6
    Gerrit-Owner: Illia Klimov <el...@google.com>
    Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
    Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Reviewer: Illia Klimov <el...@google.com>
    Gerrit-Reviewer: Richard Coles <to...@chromium.org>
    Gerrit-CC: Arthur Sonzogni <arthurs...@google.com>
    Gerrit-Attention: Illia Klimov <el...@google.com>
    Gerrit-Comment-Date: Mon, 04 Jul 2022 10:35:45 +0000

    Illia Klimov (Gerrit)

    unread,
    Jul 7, 2022, 9:06:24 AM7/7/22
    to Arthur Sonzogni, Andy Paicu, Arthur Sonzogni, Richard Coles, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Arthur Sonzogni.

    View Change

    3 comments:

    • Patchset:

    • File chrome/browser/permissions/permissions_security_model_interactive_uitest.cc:

      • nit: The clang-format recognized format for this is: […]

        Thank you!

    • File content/web_test/browser/web_test_permission_manager.cc:

      • This is duplicated from two other location. […]

        I would really like to deduplicate and I've tried it in the previous patchset [1]. But due to dependencies issue, using //content/browser/* inside //content/web_test/* I wasn't able to do it.

        Maybe you know how can I add such dependency?

        [1] https://chromium-review.googlesource.com/c/chromium/src/+/3720955/5

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

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ibd59f59e2d12500f717af3a32fc1c089bd01094a
    Gerrit-Change-Number: 3720955
    Gerrit-PatchSet: 7
    Gerrit-Owner: Illia Klimov <el...@google.com>
    Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
    Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Reviewer: Illia Klimov <el...@google.com>
    Gerrit-Reviewer: Richard Coles <to...@chromium.org>
    Gerrit-CC: Arthur Sonzogni <arthurs...@google.com>
    Gerrit-Attention: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Comment-Date: Thu, 07 Jul 2022 13:06:10 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Arthur Sonzogni <arthurs...@google.com>
    Comment-In-Reply-To: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-MessageType: comment

    Arthur Sonzogni (Gerrit)

    unread,
    Jul 7, 2022, 11:16:24 AM7/7/22
    to Illia Klimov, danakj, Arthur Sonzogni, Andy Paicu, Richard Coles, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Arthur Sonzogni, Illia Klimov.

    View Change

    3 comments:

    • Patchset:

      • Patch Set #7:

        +Dana for the question about `web_test_browser` depending on `content/browser:browser`

    • File content/web_test/browser/web_test_permission_manager.cc:

      • I would really like to deduplicate and I've tried it in the previous patchset [1]. […]

        So, you would like to make the target `web_test_browser` to depend on `content/browser`
        I see the file:
        `content/web_test/browser/web_test_permission_manager.cc`
        is for the target:
        `web_test_browser`

        Then, it seems Chrome is doing something very special about this target depending on content/browser depending on

        In the `content/web_test/BUILD.gn`, I see 
        ```
        # This is to support our dependency on //content/browser.
        # See comment at the top of //content/BUILD.gn for why this is disabled in
        # component builds.
        if (is_component_build) {
        check_includes = false
        }
        ```
        and the
        ```
        deps = [
        "//content/browser:for_content_tests", # For non-component builds.
        "//content/public/browser", # For component builds.
        ]
        ```

        I am not sure to understand everything. @danakj probably knows. I guess you can't because this is not defined from content/public/browser and not visible for the web_test_browser target.

    • File content/web_test/browser/web_test_permission_manager.cc:

      • Patch Set #7, Line 24: GetLastCommittedOriginAsURL

        At least, could you add:
        ```
        // Due to dependency issues, this method is duplicated in
        // content/browser/permissions/permission_util.cc.
        ```
        similar to what is done in:
        components/permissions/permission_util.cc

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

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ibd59f59e2d12500f717af3a32fc1c089bd01094a
    Gerrit-Change-Number: 3720955
    Gerrit-PatchSet: 7
    Gerrit-Owner: Illia Klimov <el...@google.com>
    Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
    Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Reviewer: Illia Klimov <el...@google.com>
    Gerrit-Reviewer: Richard Coles <to...@chromium.org>
    Gerrit-CC: Arthur Sonzogni <arthurs...@google.com>
    Gerrit-CC: danakj <dan...@chromium.org>
    Gerrit-Attention: Arthur Sonzogni <arthurs...@google.com>
    Gerrit-Attention: Illia Klimov <el...@google.com>
    Gerrit-Comment-Date: Thu, 07 Jul 2022 15:16:07 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Arthur Sonzogni <arthurs...@google.com>

    danakj (Gerrit)

    unread,
    Jul 7, 2022, 12:03:02 PM7/7/22
    to Illia Klimov, Arthur Sonzogni, Andy Paicu, Arthur Sonzogni, Richard Coles, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Arthur Sonzogni, Arthur Sonzogni, Illia Klimov.

    View Change

    1 comment:

    • File content/web_test/browser/web_test_permission_manager.cc:

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

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ibd59f59e2d12500f717af3a32fc1c089bd01094a
    Gerrit-Change-Number: 3720955
    Gerrit-PatchSet: 7
    Gerrit-Owner: Illia Klimov <el...@google.com>
    Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
    Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Reviewer: Illia Klimov <el...@google.com>
    Gerrit-Reviewer: Richard Coles <to...@chromium.org>
    Gerrit-CC: Arthur Sonzogni <arthurs...@google.com>
    Gerrit-CC: danakj <dan...@chromium.org>
    Gerrit-Attention: Arthur Sonzogni <arthurs...@google.com>
    Gerrit-Attention: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Attention: Illia Klimov <el...@google.com>
    Gerrit-Comment-Date: Thu, 07 Jul 2022 16:02:42 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Arthur Sonzogni <arthurs...@google.com>
    Comment-In-Reply-To: Arthur Sonzogni <arthurs...@chromium.org>

    Arthur Sonzogni (Gerrit)

    unread,
    Jul 8, 2022, 5:20:59 AM7/8/22
    to Illia Klimov, danakj, Arthur Sonzogni, Andy Paicu, Richard Coles, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Arthur Sonzogni, Illia Klimov.

    View Change

    1 comment:

    • File content/web_test/browser/web_test_permission_manager.cc:

      • Web test code can depend on content/browser/ internals, since it's not production. […]

        Thanks Dana!
        So let's do this and remove this duplicated function.

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

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ibd59f59e2d12500f717af3a32fc1c089bd01094a
    Gerrit-Change-Number: 3720955
    Gerrit-PatchSet: 7
    Gerrit-Owner: Illia Klimov <el...@google.com>
    Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
    Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Reviewer: Illia Klimov <el...@google.com>
    Gerrit-Reviewer: Richard Coles <to...@chromium.org>
    Gerrit-CC: Arthur Sonzogni <arthurs...@google.com>
    Gerrit-CC: danakj <dan...@chromium.org>
    Gerrit-Attention: Arthur Sonzogni <arthurs...@google.com>
    Gerrit-Attention: Illia Klimov <el...@google.com>
    Gerrit-Comment-Date: Fri, 08 Jul 2022 09:20:47 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Arthur Sonzogni <arthurs...@google.com>
    Comment-In-Reply-To: danakj <dan...@chromium.org>

    Illia Klimov (Gerrit)

    unread,
    Jul 19, 2022, 7:20:43 AM7/19/22
    to danakj, Arthur Sonzogni, Andy Paicu, Arthur Sonzogni, Richard Coles, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Arthur Sonzogni, danakj.

    View Change

    3 comments:

    • Patchset:

      • Patch Set #9:

        Hi Dana,

        thank you for the suggestion, exporting API fixed the linking issue. Arthur is OOO, could you please stamp `content/web_test/browser/web_test_permission_manager.cc`?

    • File content/web_test/browser/web_test_permission_manager.cc:

      • Thanks Dana! […]

        Thank you!

    • File content/web_test/browser/web_test_permission_manager.cc:

      • At least, could you add: […]

        Removed duplication.

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

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ibd59f59e2d12500f717af3a32fc1c089bd01094a
    Gerrit-Change-Number: 3720955
    Gerrit-PatchSet: 9
    Gerrit-Owner: Illia Klimov <el...@google.com>
    Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
    Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Reviewer: Illia Klimov <el...@google.com>
    Gerrit-Reviewer: Richard Coles <to...@chromium.org>
    Gerrit-Reviewer: danakj <dan...@chromium.org>
    Gerrit-CC: Arthur Sonzogni <arthurs...@google.com>
    Gerrit-Attention: Arthur Sonzogni <arthurs...@google.com>
    Gerrit-Attention: danakj <dan...@chromium.org>
    Gerrit-Comment-Date: Tue, 19 Jul 2022 11:20:31 +0000

    danakj (Gerrit)

    unread,
    Jul 19, 2022, 9:23:15 AM7/19/22
    to Illia Klimov, Arthur Sonzogni, Andy Paicu, Arthur Sonzogni, Richard Coles, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Arthur Sonzogni, Illia Klimov.

    Patch set 9:Code-Review +1

    View Change

    1 comment:

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

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ibd59f59e2d12500f717af3a32fc1c089bd01094a
    Gerrit-Change-Number: 3720955
    Gerrit-PatchSet: 9
    Gerrit-Owner: Illia Klimov <el...@google.com>
    Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
    Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Reviewer: Illia Klimov <el...@google.com>
    Gerrit-Reviewer: Richard Coles <to...@chromium.org>
    Gerrit-Reviewer: danakj <dan...@chromium.org>
    Gerrit-CC: Arthur Sonzogni <arthurs...@google.com>
    Gerrit-Attention: Arthur Sonzogni <arthurs...@google.com>
    Gerrit-Attention: Illia Klimov <el...@google.com>
    Gerrit-Comment-Date: Tue, 19 Jul 2022 13:23:07 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment

    Illia Klimov (Gerrit)

    unread,
    Jul 19, 2022, 9:32:22 AM7/19/22
    to danakj, Arthur Sonzogni, Andy Paicu, Arthur Sonzogni, Richard Coles, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Arthur Sonzogni, Illia Klimov.

    Patch set 9:Commit-Queue +2

    View Change

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

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ibd59f59e2d12500f717af3a32fc1c089bd01094a
      Gerrit-Change-Number: 3720955
      Gerrit-PatchSet: 9
      Gerrit-Owner: Illia Klimov <el...@google.com>
      Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
      Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
      Gerrit-Reviewer: Illia Klimov <el...@google.com>
      Gerrit-Reviewer: Richard Coles <to...@chromium.org>
      Gerrit-Reviewer: danakj <dan...@chromium.org>
      Gerrit-CC: Arthur Sonzogni <arthurs...@google.com>
      Gerrit-Attention: Arthur Sonzogni <arthurs...@google.com>
      Gerrit-Attention: Illia Klimov <el...@google.com>
      Gerrit-Comment-Date: Tue, 19 Jul 2022 13:32:10 +0000

      Chromium LUCI CQ (Gerrit)

      unread,
      Jul 19, 2022, 10:30:39 AM7/19/22
      to Illia Klimov, danakj, Arthur Sonzogni, Andy Paicu, Arthur Sonzogni, Richard Coles, chromium...@chromium.org

      Chromium LUCI CQ submitted this change.

      View Change


      Approvals: Illia Klimov: Commit Andy Paicu: Looks good to me danakj: Looks good to me Richard Coles: Looks good to me
      Make `allow_universal_access_from_file_urls` verification Android only.

      An origin for permissions request and verification is calculated as RFH::GetLastCommittedOrigin(). On Android it is possible to change visible URL if `allow_universal_access_from_file_urls` flag is enabled. To meet users' expectation, we use RFH::GetLastCommittedURL().

      This CL restricts `allow_universal_access_from_file_urls` flag verification only for Android.

      Bug: 1327384
      Change-Id: Ibd59f59e2d12500f717af3a32fc1c089bd01094a
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3720955
      Commit-Queue: Illia Klimov <el...@google.com>
      Reviewed-by: Richard Coles <to...@chromium.org>
      Reviewed-by: Andy Paicu <andy...@chromium.org>
      Reviewed-by: danakj <dan...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1025707}
      ---
      M chrome/browser/permissions/permissions_security_model_interactive_uitest.cc
      M components/permissions/permission_util.cc
      M content/browser/permissions/permission_util.cc
      M content/browser/permissions/permission_util.h
      M content/web_test/browser/web_test_permission_manager.cc
      5 files changed, 63 insertions(+), 48 deletions(-)


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

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ibd59f59e2d12500f717af3a32fc1c089bd01094a
      Gerrit-Change-Number: 3720955
      Gerrit-PatchSet: 10
      Gerrit-Owner: Illia Klimov <el...@google.com>
      Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
      Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Illia Klimov <el...@google.com>
      Gerrit-Reviewer: Richard Coles <to...@chromium.org>
      Gerrit-Reviewer: danakj <dan...@chromium.org>
      Gerrit-CC: Arthur Sonzogni <arthurs...@google.com>
      Gerrit-MessageType: merged
      Reply all
      Reply to author
      Forward
      0 new messages