From e770ec7cb5bab4cb66493d6dea1d7e6198afcde6 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Tue, 16 Jan 2024 00:34:56 +0000 Subject: [PATCH] Require an explicit origin for WebDriver BiDi automation (#436) SHA: 8972985f409889b6a8d71a55475144cd31826360 Reason: push, by miketaylr Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- index.html | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/index.html b/index.html index 42dc16f..54c423f 100644 --- a/index.html +++ b/index.html @@ -183,7 +183,7 @@ .mdn .samsunginternet_android::before{background-image:url(https://www.w3.org/assets/logos/browser-logos/samsung-internet/samsung-internet.svg)} .mdn .webview_android::before{background-image:url(https://www.w3.org/assets/logos/browser-logos/android-webview/android-webview.png)} - +
@@ -267,7 +267,7 @@

Permissions

Interacting with Permissions for Powerful Features

-

W3C Editor's Draft

+

W3C Editor's Draft

More details about this document
@@ -1938,13 +1938,14 @@

Permissions

To set a permission given a PermissionDescriptor - descriptor, and a PermissionState state: + descriptor, a PermissionState state, and an + optional origin:

    -
  1. Let settings be the current settings object. +
  2. Let target origin be current settings object's origin if origin is null, or origin otherwise.
  3. Let targets be a list containing all environment settings objects whose - origin is same origin as the origin of settings. + origin is same origin with target origin.
  4. Let tasks be an empty list.
  5. @@ -2126,6 +2127,7 @@

    Permissions

    @@ -2155,7 +2157,9 @@

    Permissions

    's permission descriptor type. If this conversion throws an exception, return error with error code invalid argument. -
  6. Set a permission with typedDescriptor and state. +
  7. Let origin be the value of the origin field of command parameters. +
  8. +
  9. Set a permission with typedDescriptor, state, and origin.
  10. Return success with data null.
  11. @@ -2600,7 +2604,7 @@

    Permissions

    [WebDriver-BiDi]
    WebDriver BiDi. W3C. Editor's Draft. URL: https://w3c.github.io/webdriver-bidi/
    [webdriver2]
    - WebDriver. Simon Stewart; David Burns. W3C. 4 January 2024. W3C Working Draft. URL: https://www.w3.org/TR/webdriver2/ + WebDriver. Simon Stewart; David Burns. W3C. 15 January 2024. W3C Working Draft. URL: https://www.w3.org/TR/webdriver2/
    [WEBIDL]
    Web IDL Standard. Edgar Chen; Timothy Gu. WHATWG. Living Standard. URL: https://webidl.spec.whatwg.org/

@@ -2617,7 +2621,7 @@

Permissions

[orientation-event]
DeviceOrientation Event Specification. Reilly Grant; Raphael Kubo da Costa. W3C. 5 January 2024. W3C Working Draft. URL: https://www.w3.org/TR/orientation-event/
[Permissions]
- Permissions. Marcos Caceres; Mike Taylor. W3C. 1 December 2023. W3C Working Draft. URL: https://www.w3.org/TR/permissions/ + Permissions. Marcos Caceres; Mike Taylor. W3C. 12 January 2024. W3C Working Draft. URL: https://www.w3.org/TR/permissions/
[push-api]
Push API. Peter Beverloo; Martin Thomson; Marcos Caceres. W3C. 11 December 2023. W3C Working Draft. URL: https://www.w3.org/TR/push-api/
[w3c-process]