Add [SecureContext] to all WebGPU interfaces [chromium/src : main]

0 views
Skip to first unread message

Kai Ninomiya (Gerrit)

unread,
Oct 27, 2021, 10:02:06 PM10/27/21
to Brandon Jones, blink-...@chromium.org, cwalle...@chromium.org, jmedle...@chromium.org, kainin...@chromium.org

Attention is currently required from: Brandon Jones.

Kai Ninomiya would like Brandon Jones to review this change.

View Change

Add [SecureContext] to all WebGPU interfaces

This also makes a few changes to match the upstream IDL more closely:
- Change [Exposed=Worker] to [Exposed=DedicatedWorker]. This probably
didn't work anyway, but no one should be relying on it because it's
out-of-spec.
- Removed [RuntimeEnabled] from `interface mixin`s where they have no
effect as no non-RuntimeEnabled interfaces include them; see docs:
https://chromium.googlesource.com/chromium/src/+/HEAD/third_party/blink/renderer/bindings/IDLExtendedAttributes.md#interface-mixins

Adding [SecureContext] is a non-breaking change (with no deprecation
period) because WebGPU is currently only generally available behind an
Origin Trial that is is only available on secure contexts anyway.

Spec change: https://github.com/gpuweb/gpuweb/pull/1363

Fixed: 1243994
Change-Id: I5e1d22dc8cb57ec0076654738e7307ca54784488
---
M third_party/blink/renderer/modules/webgpu/gpu_queue.idl
M third_party/blink/renderer/modules/webgpu/gpu_texture_usage.idl
M third_party/blink/renderer/modules/webgpu/gpu_map_mode.idl
M third_party/blink/renderer/modules/webgpu/gpu_validation_error.idl
M third_party/blink/renderer/modules/webgpu/gpu_adapter.idl
M third_party/blink/renderer/modules/webgpu/gpu_render_encoder_base.idl
M third_party/blink/renderer/modules/webgpu/gpu_render_pipeline.idl
M third_party/blink/renderer/modules/webgpu/gpu_command_buffer.idl
M third_party/blink/renderer/modules/webgpu/gpu_sampler.idl
M third_party/blink/renderer/modules/webgpu/gpu_compute_pipeline.idl
M third_party/blink/renderer/modules/webgpu/gpu_buffer_usage.idl
M third_party/blink/renderer/modules/webgpu/gpu_compute_pass_encoder.idl
M third_party/blink/renderer/modules/webgpu/gpu_texture.idl
M third_party/blink/renderer/modules/webgpu/gpu_supported_limits.idl
M third_party/blink/renderer/modules/webgpu/gpu_compilation_info.idl
M third_party/blink/renderer/modules/webgpu/gpu_uncaptured_error_event.idl
M third_party/blink/renderer/modules/webgpu/gpu_bind_group.idl
M third_party/blink/renderer/modules/webgpu/gpu_render_bundle.idl
M third_party/blink/renderer/modules/webgpu/gpu_buffer.idl
M third_party/blink/renderer/modules/webgpu/gpu_canvas_context.idl
M third_party/blink/renderer/modules/webgpu/gpu_pipeline_layout.idl
M third_party/blink/renderer/modules/webgpu/gpu_shader_stage.idl
M third_party/blink/renderer/modules/webgpu/gpu_out_of_memory_error.idl
M third_party/blink/renderer/modules/webgpu/navigator_gpu.idl
M third_party/blink/renderer/modules/webgpu/gpu_device_lost_info.idl
M third_party/blink/renderer/modules/webgpu/gpu_query_set.idl
M third_party/blink/renderer/modules/webgpu/gpu_supported_features.idl
M third_party/blink/renderer/modules/webgpu/gpu_texture_view.idl
M third_party/blink/renderer/modules/webgpu/gpu_color_write.idl
M third_party/blink/renderer/modules/webgpu/gpu_render_pass_encoder.idl
M third_party/blink/renderer/modules/webgpu/gpu_shader_module.idl
M third_party/blink/renderer/modules/webgpu/worker_navigator_gpu.idl
M third_party/blink/renderer/modules/webgpu/gpu_device.idl
M third_party/blink/renderer/modules/webgpu/gpu_external_texture.idl
M third_party/blink/renderer/modules/webgpu/gpu_render_bundle_encoder.idl
M third_party/blink/renderer/modules/webgpu/gpu_command_encoder.idl
M third_party/blink/renderer/modules/webgpu/gpu.idl
M third_party/blink/renderer/modules/webgpu/gpu_bind_group_layout.idl
M third_party/blink/renderer/modules/webgpu/gpu_compilation_message.idl
M third_party/blink/renderer/modules/webgpu/gpu_programmable_pass_encoder.idl
40 files changed, 106 insertions(+), 50 deletions(-)


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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5e1d22dc8cb57ec0076654738e7307ca54784488
Gerrit-Change-Number: 3247888
Gerrit-PatchSet: 2
Gerrit-Owner: Kai Ninomiya <kai...@chromium.org>
Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
Gerrit-Reviewer: Kai Ninomiya <kai...@chromium.org>
Gerrit-Attention: Brandon Jones <baj...@chromium.org>
Gerrit-MessageType: newchange

Kai Ninomiya (Gerrit)

unread,
Oct 27, 2021, 10:02:11 PM10/27/21
to blink-...@chromium.org, cwalle...@chromium.org, jmedle...@chromium.org, kainin...@chromium.org, Brandon Jones, chromium...@chromium.org

Attention is currently required from: Brandon Jones.

Patch set 1:Commit-Queue +1

View Change

1 comment:

  • Patchset:

    • Patch Set #1:

      bajones: PTAL

      I haven't tested this locally though the change seems fairly straightforward. It's possible there will be some test failures catching on this so trying a dry run.

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5e1d22dc8cb57ec0076654738e7307ca54784488
Gerrit-Change-Number: 3247888
Gerrit-PatchSet: 1
Gerrit-Owner: Kai Ninomiya <kai...@chromium.org>
Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
Gerrit-Reviewer: Kai Ninomiya <kai...@chromium.org>
Gerrit-Attention: Brandon Jones <baj...@chromium.org>
Gerrit-Comment-Date: Thu, 28 Oct 2021 02:02:02 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

Brandon Jones (Gerrit)

unread,
Oct 27, 2021, 11:14:31 PM10/27/21
to Kai Ninomiya, blink-...@chromium.org, cwalle...@chromium.org, jmedle...@chromium.org, kainin...@chromium.org, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Kai Ninomiya.

Patch set 2:Code-Review +1

View Change

1 comment:

  • Patchset:

    • Patch Set #2:

      LGTM.

      Hadn't considered the difference between Worker and DedicatedWorker here, but DedicatedWorker is absolutely the right scope.

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5e1d22dc8cb57ec0076654738e7307ca54784488
Gerrit-Change-Number: 3247888
Gerrit-PatchSet: 2
Gerrit-Owner: Kai Ninomiya <kai...@chromium.org>
Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
Gerrit-Reviewer: Kai Ninomiya <kai...@chromium.org>
Gerrit-Attention: Kai Ninomiya <kai...@chromium.org>
Gerrit-Comment-Date: Thu, 28 Oct 2021 03:14:24 +0000

Corentin Wallez (Gerrit)

unread,
Oct 28, 2021, 3:57:32 AM10/28/21
to Kai Ninomiya, blink-...@chromium.org, cwalle...@chromium.org, jmedle...@chromium.org, kainin...@chromium.org, Brandon Jones, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Kai Ninomiya.

View Change

1 comment:

  • Commit Message:

    • Patch Set #2, Line 17: Adding [SecureContext] is a non-breaking change (with no deprecation

      It might be an issue for people using unsafe-webgpu, but will move them towards using SecureContext which they will need anyway for the OT.

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5e1d22dc8cb57ec0076654738e7307ca54784488
Gerrit-Change-Number: 3247888
Gerrit-PatchSet: 2
Gerrit-Owner: Kai Ninomiya <kai...@chromium.org>
Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
Gerrit-Reviewer: Kai Ninomiya <kai...@chromium.org>
Gerrit-CC: Corentin Wallez <cwa...@chromium.org>
Gerrit-Attention: Kai Ninomiya <kai...@chromium.org>
Gerrit-Comment-Date: Thu, 28 Oct 2021 07:57:16 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Kai Ninomiya (Gerrit)

unread,
Nov 4, 2021, 7:40:28 PM11/4/21
to blink-...@chromium.org, cwalle...@chromium.org, jmedle...@chromium.org, kainin...@chromium.org, Corentin Wallez, Brandon Jones, Chromium LUCI CQ, chromium...@chromium.org

Patch set 10:Code-Review -1

View Change

1 comment:

  • Patchset:

    • Patch Set #10:

      CR-1: I'll delay on landing this until the parent patch has had some time to bake. There's a relatively high chance of it having issues requiring a revert (but I am pretty sure it will be OK.)

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5e1d22dc8cb57ec0076654738e7307ca54784488
Gerrit-Change-Number: 3247888
Gerrit-PatchSet: 10
Gerrit-Owner: Kai Ninomiya <kai...@chromium.org>
Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
Gerrit-Reviewer: Kai Ninomiya <kai...@chromium.org>
Gerrit-CC: Corentin Wallez <cwa...@chromium.org>
Gerrit-Comment-Date: Thu, 04 Nov 2021 23:40:19 +0000

Kai Ninomiya (Gerrit)

unread,
Nov 8, 2021, 4:35:39 PM11/8/21
to blink-...@chromium.org, cwalle...@chromium.org, jmedle...@chromium.org, kainin...@chromium.org, Corentin Wallez, Brandon Jones, Chromium LUCI CQ, chromium...@chromium.org

Kai Ninomiya removed a vote from this change.

View Change

Removed Code-Review-1 by Kai Ninomiya <kai...@chromium.org>

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5e1d22dc8cb57ec0076654738e7307ca54784488
Gerrit-Change-Number: 3247888
Gerrit-PatchSet: 10
Gerrit-Owner: Kai Ninomiya <kai...@chromium.org>
Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
Gerrit-Reviewer: Kai Ninomiya <kai...@chromium.org>
Gerrit-CC: Corentin Wallez <cwa...@chromium.org>
Gerrit-MessageType: deleteVote

Kai Ninomiya (Gerrit)

unread,
Nov 8, 2021, 4:37:14 PM11/8/21
to blink-...@chromium.org, cwalle...@chromium.org, jmedle...@chromium.org, kainin...@chromium.org

Kai Ninomiya uploaded patch set #12 to this change.

View Change

Add [SecureContext] to all WebGPU interfaces

This also makes a few changes to match the upstream IDL more closely:
- Change [Exposed=Worker] to [Exposed=DedicatedWorker]. It probably
didn't work in non-dedicated workers anyway, but no one should be
relying on it because that's out-of-spec.

- Removed [RuntimeEnabled] from `interface mixin`s where they have no
effect as no non-RuntimeEnabled interfaces include them; see docs:
https://chromium.googlesource.com/chromium/src/+/HEAD/third_party/blink/renderer/bindings/IDLExtendedAttributes.md#interface-mixins

Adding [SecureContext] is a non-breaking change (with no deprecation
period) because WebGPU is currently only generally available behind an
Origin Trial that is is only available on secure contexts anyway.
However, this will still result in "breakage" of non-HTTPS sites that
currently require users to specify --enable-unsafe-webgpu, as well
as development workflows that use a local URL other than `localhost`,
e.g. on a LAN, as with all other APIs that require [SecureContext].
Developers can pass --unsafely-treat-insecure-origin-as-secure= or use
chrome://flags/#unsafely-treat-insecure-origin-as-secure to bypass this.
M third_party/blink/tools/blinkpy/web_tests/stale_expectation_removal/queries.py

M third_party/blink/renderer/modules/webgpu/navigator_gpu.idl
M third_party/blink/renderer/modules/webgpu/gpu_device_lost_info.idl
M third_party/blink/renderer/modules/webgpu/gpu_query_set.idl
M third_party/blink/renderer/modules/webgpu/gpu_supported_features.idl
M third_party/blink/renderer/modules/webgpu/gpu_texture_view.idl
M third_party/blink/renderer/modules/webgpu/gpu_color_write.idl
M third_party/blink/renderer/modules/webgpu/gpu_render_pass_encoder.idl
M third_party/blink/renderer/modules/webgpu/gpu_shader_module.idl
M third_party/blink/renderer/modules/webgpu/worker_navigator_gpu.idl
M third_party/blink/renderer/modules/webgpu/gpu_device.idl
M third_party/blink/renderer/modules/webgpu/gpu_external_texture.idl
M third_party/blink/renderer/modules/webgpu/gpu_render_bundle_encoder.idl
M third_party/blink/renderer/modules/webgpu/gpu_command_encoder.idl
M third_party/blink/renderer/modules/webgpu/gpu.idl
M third_party/blink/renderer/modules/webgpu/gpu_bind_group_layout.idl
M third_party/blink/renderer/modules/webgpu/gpu_compilation_message.idl
M third_party/blink/renderer/modules/webgpu/gpu_programmable_pass_encoder.idl
41 files changed, 113 insertions(+), 51 deletions(-)

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5e1d22dc8cb57ec0076654738e7307ca54784488
Gerrit-Change-Number: 3247888
Gerrit-PatchSet: 12
Gerrit-Owner: Kai Ninomiya <kai...@chromium.org>
Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
Gerrit-Reviewer: Kai Ninomiya <kai...@chromium.org>
Gerrit-CC: Corentin Wallez <cwa...@chromium.org>
Gerrit-MessageType: newpatchset

Kai Ninomiya (Gerrit)

unread,
Nov 8, 2021, 5:23:38 PM11/8/21
to blink-...@chromium.org, cwalle...@chromium.org, jmedle...@chromium.org, kainin...@chromium.org, Corentin Wallez, Brandon Jones, Chromium LUCI CQ, chromium...@chromium.org

Patch set 12:Commit-Queue +1

View Change

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

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5e1d22dc8cb57ec0076654738e7307ca54784488
    Gerrit-Change-Number: 3247888
    Gerrit-PatchSet: 12
    Gerrit-Owner: Kai Ninomiya <kai...@chromium.org>
    Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
    Gerrit-Reviewer: Kai Ninomiya <kai...@chromium.org>
    Gerrit-CC: Corentin Wallez <cwa...@chromium.org>
    Gerrit-Comment-Date: Mon, 08 Nov 2021 22:23:22 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment

    Kai Ninomiya (Gerrit)

    unread,
    Nov 8, 2021, 8:03:05 PM11/8/21
    to blink-...@chromium.org, cwalle...@chromium.org, jmedle...@chromium.org, kainin...@chromium.org, Corentin Wallez, Brandon Jones, Chromium LUCI CQ, chromium...@chromium.org

    Patch set 12:Commit-Queue +2

    View Change

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

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I5e1d22dc8cb57ec0076654738e7307ca54784488
      Gerrit-Change-Number: 3247888
      Gerrit-PatchSet: 12
      Gerrit-Owner: Kai Ninomiya <kai...@chromium.org>
      Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
      Gerrit-Reviewer: Kai Ninomiya <kai...@chromium.org>
      Gerrit-CC: Corentin Wallez <cwa...@chromium.org>
      Gerrit-Comment-Date: Tue, 09 Nov 2021 01:02:57 +0000

      Kai Ninomiya (Gerrit)

      unread,
      Nov 8, 2021, 8:13:25 PM11/8/21
      to blink-...@chromium.org, cwalle...@chromium.org, jmedle...@chromium.org, kainin...@chromium.org, Corentin Wallez, Brandon Jones, Chromium LUCI CQ, chromium...@chromium.org

      Patch set 12:Auto-Submit +1

      View Change

      1 comment:

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

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I5e1d22dc8cb57ec0076654738e7307ca54784488
      Gerrit-Change-Number: 3247888
      Gerrit-PatchSet: 12
      Gerrit-Owner: Kai Ninomiya <kai...@chromium.org>
      Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
      Gerrit-Reviewer: Kai Ninomiya <kai...@chromium.org>
      Gerrit-CC: Corentin Wallez <cwa...@chromium.org>
      Gerrit-Comment-Date: Tue, 09 Nov 2021 01:13:14 +0000

      Kai Ninomiya (Gerrit)

      unread,
      Nov 8, 2021, 8:23:55 PM11/8/21
      to blink-...@chromium.org, cwalle...@chromium.org, jmedle...@chromium.org, kainin...@chromium.org, Corentin Wallez, Brandon Jones, Chromium LUCI CQ, chromium...@chromium.org

      View Change

      1 comment:

      • Patchset:

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

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I5e1d22dc8cb57ec0076654738e7307ca54784488
      Gerrit-Change-Number: 3247888
      Gerrit-PatchSet: 12
      Gerrit-Owner: Kai Ninomiya <kai...@chromium.org>
      Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
      Gerrit-Reviewer: Kai Ninomiya <kai...@chromium.org>
      Gerrit-CC: Corentin Wallez <cwa...@chromium.org>
      Gerrit-Comment-Date: Tue, 09 Nov 2021 01:23:46 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Kai Ninomiya <kai...@chromium.org>
      Gerrit-MessageType: comment

      Kai Ninomiya (Gerrit)

      unread,
      Nov 8, 2021, 8:24:05 PM11/8/21
      to blink-...@chromium.org, cwalle...@chromium.org, jmedle...@chromium.org, kainin...@chromium.org, Corentin Wallez, Brandon Jones, Chromium LUCI CQ, chromium...@chromium.org

      Patch set 12:Commit-Queue +1

      View Change

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

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I5e1d22dc8cb57ec0076654738e7307ca54784488
        Gerrit-Change-Number: 3247888
        Gerrit-PatchSet: 12
        Gerrit-Owner: Kai Ninomiya <kai...@chromium.org>
        Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
        Gerrit-Reviewer: Kai Ninomiya <kai...@chromium.org>
        Gerrit-CC: Corentin Wallez <cwa...@chromium.org>
        Gerrit-Comment-Date: Tue, 09 Nov 2021 01:23:57 +0000

        Kai Ninomiya (Gerrit)

        unread,
        Jan 19, 2022, 5:54:14 PM1/19/22
        to blink-...@chromium.org, cwalle...@chromium.org, jmedle...@chromium.org, kainin...@chromium.org, Corentin Wallez, Brandon Jones, Chromium LUCI CQ, chromium...@chromium.org

        Patch set 13:Auto-Submit +1Commit-Queue +2

        View Change

        1 comment:

        • Patchset:

          • Patch Set #13:

            Rebased and splitting the one file out into a separate CL

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

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I5e1d22dc8cb57ec0076654738e7307ca54784488
        Gerrit-Change-Number: 3247888
        Gerrit-PatchSet: 13
        Gerrit-Owner: Kai Ninomiya <kai...@chromium.org>
        Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
        Gerrit-Reviewer: Kai Ninomiya <kai...@chromium.org>
        Gerrit-CC: Corentin Wallez <cwa...@chromium.org>
        Gerrit-Comment-Date: Wed, 19 Jan 2022 22:53:59 +0000

        Kai Ninomiya (Gerrit)

        unread,
        Jan 19, 2022, 6:02:33 PM1/19/22
        to blink-...@chromium.org, cwalle...@chromium.org, jmedle...@chromium.org, kainin...@chromium.org, Corentin Wallez, Brandon Jones, Chromium LUCI CQ, chromium...@chromium.org

        View Change

        1 comment:

        • Patchset:

          • Patch Set #13:

            oops, apparently reuploading after 2.5 months didn't retain the CR+1. bajones PTAL

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

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I5e1d22dc8cb57ec0076654738e7307ca54784488
        Gerrit-Change-Number: 3247888
        Gerrit-PatchSet: 13
        Gerrit-Owner: Kai Ninomiya <kai...@chromium.org>
        Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
        Gerrit-Reviewer: Kai Ninomiya <kai...@chromium.org>
        Gerrit-CC: Corentin Wallez <cwa...@chromium.org>
        Gerrit-Comment-Date: Wed, 19 Jan 2022 23:02:22 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Gerrit-MessageType: comment

        Brandon Jones (Gerrit)

        unread,
        Jan 19, 2022, 7:00:25 PM1/19/22
        to Kai Ninomiya, blink-...@chromium.org, cwalle...@chromium.org, jmedle...@chromium.org, kainin...@chromium.org, Corentin Wallez, Chromium LUCI CQ, chromium...@chromium.org

        Attention is currently required from: Kai Ninomiya.

        Patch set 13:Code-Review +1

        View Change

        1 comment:

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

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I5e1d22dc8cb57ec0076654738e7307ca54784488
        Gerrit-Change-Number: 3247888
        Gerrit-PatchSet: 13
        Gerrit-Owner: Kai Ninomiya <kai...@chromium.org>
        Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
        Gerrit-Reviewer: Kai Ninomiya <kai...@chromium.org>
        Gerrit-CC: Corentin Wallez <cwa...@chromium.org>
        Gerrit-Attention: Kai Ninomiya <kai...@chromium.org>
        Gerrit-Comment-Date: Thu, 20 Jan 2022 00:00:10 +0000

        Kai Ninomiya (Gerrit)

        unread,
        Jan 19, 2022, 7:02:08 PM1/19/22
        to blink-...@chromium.org, cwalle...@chromium.org, jmedle...@chromium.org, kainin...@chromium.org, Brandon Jones, Corentin Wallez, Chromium LUCI CQ, chromium...@chromium.org

        Patch set 13:Commit-Queue +2

        View Change

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

          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I5e1d22dc8cb57ec0076654738e7307ca54784488
          Gerrit-Change-Number: 3247888
          Gerrit-PatchSet: 13
          Gerrit-Owner: Kai Ninomiya <kai...@chromium.org>
          Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
          Gerrit-Reviewer: Kai Ninomiya <kai...@chromium.org>
          Gerrit-CC: Corentin Wallez <cwa...@chromium.org>
          Gerrit-Comment-Date: Thu, 20 Jan 2022 00:01:54 +0000

          Chromium LUCI CQ (Gerrit)

          unread,
          Jan 19, 2022, 9:06:09 PM1/19/22
          to Kai Ninomiya, blink-...@chromium.org, cwalle...@chromium.org, jmedle...@chromium.org, kainin...@chromium.org, Brandon Jones, Corentin Wallez, chromium...@chromium.org

          Chromium LUCI CQ submitted this change.

          View Change


          Approvals: Brandon Jones: Looks good to me Kai Ninomiya: Commit; Send CL to CQ automatically after approval
          Add [SecureContext] to all WebGPU interfaces

          This also makes a few changes to match the upstream IDL more closely:
          - Change [Exposed=Worker] to [Exposed=DedicatedWorker]. It probably
          didn't work in non-dedicated workers anyway, but no one should be
          relying on it because that's out-of-spec.
          - Removed [RuntimeEnabled] from `interface mixin`s where they have no
          effect as no non-RuntimeEnabled interfaces include them; see docs:
          https://chromium.googlesource.com/chromium/src/+/HEAD/third_party/blink/renderer/bindings/IDLExtendedAttributes.md#interface-mixins

          Adding [SecureContext] is a non-breaking change (with no deprecation
          period) because WebGPU is currently only generally available behind an
          Origin Trial that is is only available on secure contexts anyway.
          However, this will still result in "breakage" of non-HTTPS sites that
          currently require users to specify --enable-unsafe-webgpu, as well
          as development workflows that use a local URL other than `localhost`,
          e.g. on a LAN, as with all other APIs that require [SecureContext].
          Developers can pass --unsafely-treat-insecure-origin-as-secure= or use
          chrome://flags/#unsafely-treat-insecure-origin-as-secure to bypass this.

          Spec change: https://github.com/gpuweb/gpuweb/pull/1363

          Fixed: 1243994
          Change-Id: I5e1d22dc8cb57ec0076654738e7307ca54784488
          Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3247888
          Auto-Submit: Kai Ninomiya <kai...@chromium.org>
          Reviewed-by: Brandon Jones <baj...@chromium.org>
          Commit-Queue: Kai Ninomiya <kai...@chromium.org>
          Cr-Commit-Position: refs/heads/main@{#961264}

          ---
          M third_party/blink/renderer/modules/webgpu/gpu_queue.idl
          M third_party/blink/renderer/modules/webgpu/gpu_texture_usage.idl
          M third_party/blink/renderer/modules/webgpu/gpu_map_mode.idl
          M third_party/blink/renderer/modules/webgpu/gpu_validation_error.idl
          M third_party/blink/renderer/modules/webgpu/gpu_adapter.idl
          M third_party/blink/renderer/modules/webgpu/gpu_render_encoder_base.idl
          M third_party/blink/renderer/modules/webgpu/gpu_render_pipeline.idl
          M third_party/blink/renderer/modules/webgpu/gpu_command_buffer.idl
          M third_party/blink/renderer/modules/webgpu/gpu_sampler.idl
          M third_party/blink/renderer/modules/webgpu/gpu_compute_pipeline.idl
          M third_party/blink/renderer/modules/webgpu/gpu_buffer_usage.idl
          M third_party/blink/renderer/modules/webgpu/gpu_compute_pass_encoder.idl
          M third_party/blink/renderer/modules/webgpu/gpu_texture.idl
          M third_party/blink/renderer/modules/webgpu/gpu_supported_limits.idl
          M third_party/blink/renderer/modules/webgpu/gpu_compilation_info.idl
          M third_party/blink/renderer/modules/webgpu/gpu_uncaptured_error_event.idl
          M third_party/blink/renderer/modules/webgpu/gpu_bind_group.idl
          M third_party/blink/renderer/modules/webgpu/gpu_render_bundle.idl
          M third_party/blink/renderer/modules/webgpu/gpu_buffer.idl
          M third_party/blink/renderer/modules/webgpu/gpu_canvas_context.idl
          M third_party/blink/renderer/modules/webgpu/gpu_pipeline_layout.idl
          M third_party/blink/renderer/modules/webgpu/gpu_shader_stage.idl
          M third_party/blink/renderer/modules/webgpu/gpu_out_of_memory_error.idl
          M third_party/blink/renderer/modules/webgpu/navigator_gpu.idl
          M third_party/blink/renderer/modules/webgpu/gpu_device_lost_info.idl
          M third_party/blink/renderer/modules/webgpu/gpu_query_set.idl
          M third_party/blink/renderer/modules/webgpu/gpu_supported_features.idl
          M third_party/blink/renderer/modules/webgpu/gpu_texture_view.idl
          M third_party/blink/renderer/modules/webgpu/gpu_color_write.idl
          M third_party/blink/renderer/modules/webgpu/gpu_render_pass_encoder.idl
          M third_party/blink/renderer/modules/webgpu/gpu_shader_module.idl
          M third_party/blink/renderer/modules/webgpu/worker_navigator_gpu.idl
          M third_party/blink/renderer/modules/webgpu/gpu_device.idl
          M third_party/blink/renderer/modules/webgpu/gpu_external_texture.idl
          M third_party/blink/renderer/modules/webgpu/gpu_render_bundle_encoder.idl
          M third_party/blink/renderer/modules/webgpu/gpu_command_encoder.idl
          M third_party/blink/renderer/modules/webgpu/gpu.idl
          M third_party/blink/renderer/modules/webgpu/gpu_bind_group_layout.idl
          M third_party/blink/renderer/modules/webgpu/gpu_compilation_message.idl
          M third_party/blink/renderer/modules/webgpu/gpu_programmable_pass_encoder.idl
          40 files changed, 117 insertions(+), 50 deletions(-)


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

          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I5e1d22dc8cb57ec0076654738e7307ca54784488
          Gerrit-Change-Number: 3247888
          Gerrit-PatchSet: 14
          Gerrit-Owner: Kai Ninomiya <kai...@chromium.org>
          Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
          Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
          Gerrit-Reviewer: Kai Ninomiya <kai...@chromium.org>
          Gerrit-CC: Corentin Wallez <cwa...@chromium.org>
          Gerrit-MessageType: merged
          Reply all
          Reply to author
          Forward
          0 new messages