Skip to content

Commit

Permalink
automation: Check virtualPressureSourceType against "supported source…
Browse files Browse the repository at this point in the history
… types"

This ensures that the types accepted in automation are the same which are
returned by `PressureObserver.knownSources`.

Whether this is really desired can be worked out later.
  • Loading branch information
Raphael Kubo da Costa committed Jun 13, 2024
1 parent a58799e commit 93beaa0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2079,7 +2079,9 @@ <h4>
<a data-cite="!WEBDRIVER2#dfn-getting-properties">get a property</a> "type" from |parameters|.
</li>
<li>
If |virtualPressureSourceType| is not a [=string=], return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
If the [=user agent=]'s [=supported source types=] does not
[=list/contain=] |virtualPressureSourceType|, return [=error=] with
[=error code|WebDriver error code=] [=invalid argument=].
</li>
<li>
Let |topLevelTraversable| be the <a data-cite="webdriver2/#dfn-current-browsing-context">current browsing
Expand Down Expand Up @@ -2145,7 +2147,9 @@ <h4>
Let |virtualPressureSourceType| be the value of the |URL variables|["type"].
</li>
<li>
If |virtualPressureSourceType| is not a [=valid source type=], return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
If the [=user agent=]'s [=supported source types=] does not
[=list/contain=] |virtualPressureSourceType|, return [=error=] with
[=error code|WebDriver error code=] [=invalid argument=].
</li>
<li>
Let |topLevelTraversable| be the <a data-cite="webdriver2/#dfn-current-browsing-context">current browsing
Expand Down Expand Up @@ -2242,7 +2246,9 @@ <h4>
Let |virtualPressureSourceType| be the value of the |URL variables|["type"].
</li>
<li>
If |virtualPressureSourceType| is not a [=valid source type=], return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
If the [=user agent=]'s [=supported source types=] does not
[=list/contain=] |virtualPressureSourceType|, return [=error=] with
[=error code|WebDriver error code=] [=invalid argument=].
</li>
<li>
Let |topLevelTraversable| be the <a data-cite="webdriver2/#dfn-current-browsing-context">current browsing
Expand Down

0 comments on commit 93beaa0

Please sign in to comment.