Skip to content

Commit

Permalink
Bug 1903940 [wpt PR 46853] - Shared Storage: Add non-live dataOption …
Browse files Browse the repository at this point in the history
…to createWorklet for use counter, a=testonly

Automatic update from web-platform-tests
Shared Storage: Add non-live dataOption to createWorklet for use counter

We proposed a breaking change to sharedStorage.createWorklet() in
WICG/shared-storage#158.

We add a use counter for how frequently createWorklet is called in a
non-forward-compatible way according to the proposal (i.e. with a
cross-origin script but without the option dataOrigin: "script-
origin"). This will help us determine what the impact of this change
would be.

Bug: 348445878
Change-Id: I3b882a9ec859beb5265ba31d3169fb5e1239cac4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5645568
Reviewed-by: Yao Xiao <yaoxiachromium.org>
Commit-Queue: Cammie Smith Barnes <cammiechromium.org>
Cr-Commit-Position: refs/heads/main{#1318000}

--

wpt-commits: 25b56c5748119452697daf6903523c3523fbb64a
wpt-pr: 46853

UltraBlame original commit: 9d3e2f74487b035e80c69a330be89ef279bd2862
  • Loading branch information
marco-c committed Jul 1, 2024
1 parent 9375841 commit a33c195
Show file tree
Hide file tree
Showing 3 changed files with 959 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,323 @@
<
!
doctype
html
>
<
script
src
=
"
/
resources
/
testharness
.
js
"
>
<
/
script
>
<
script
src
=
"
/
resources
/
testharnessreport
.
js
"
>
<
/
script
>
<
script
src
=
"
/
common
/
utils
.
js
"
>
<
/
script
>
<
script
src
=
"
/
shared
-
storage
/
resources
/
util
.
js
"
>
<
/
script
>
<
script
src
=
"
/
shared
-
storage
/
resources
/
util
.
sub
.
js
"
>
<
/
script
>
<
script
src
=
"
/
fenced
-
frame
/
resources
/
utils
.
js
"
>
<
/
script
>
<
body
>
<
script
>
'
use
strict
'
;
async_test
(
t
=
>
{
testCreateWorkletWithDataOption
(
t
"
context
-
origin
"
"
key0
"
"
value0
"
/
*
is_same_origin_script
=
*
/
false
/
*
expect_success
=
*
/
true
)
;
}
'
For
cross
-
origin
createWorklet
with
dataOrigin
option
"
context
-
origin
"
'
+
'
there
is
no
error
.
'
)
;
async_test
(
t
=
>
{
testCreateWorkletWithDataOption
(
t
"
script
-
origin
"
"
key0
"
"
value0
"
/
*
is_same_origin_script
=
*
/
false
/
*
expect_success
=
*
/
true
)
;
}
'
For
cross
-
origin
createWorklet
with
dataOrigin
option
"
script
-
origin
"
'
+
'
there
is
no
error
.
'
)
;
async_test
(
t
=
>
{
testCreateWorkletWithDataOption
(
t
"
invalid
"
"
key0
"
"
value0
"
/
*
is_same_origin_script
=
*
/
false
/
*
expect_success
=
*
/
false
)
;
}
'
For
cross
-
origin
createWorklet
with
dataOrigin
option
"
invalid
"
'
+
'
there
is
a
TypeError
thrown
.
'
)
;
<
/
script
>
<
/
body
>
Loading

0 comments on commit a33c195

Please sign in to comment.