WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
254864
Implement [AllowShared] suport in Web IDL
https://bugs.webkit.org/show_bug.cgi?id=254864
Summary
Implement [AllowShared] suport in Web IDL
Anne van Kesteren
Reported
2023-04-01 03:05:57 PDT
It seems that we currently don't throw in places that are not supposed to take shared memory:
https://wpt.fyi/results/xhr/send-data-sharedarraybuffer.any.html
.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-04-08 03:06:17 PDT
<
rdar://problem/107786134
>
Anne van Kesteren
Comment 2
2023-05-07 03:50:09 PDT
Per
https://github.com/WebKit/WebKit/commit/02a7ddd1949f734535c90d93a6d10eea06afcdce#diff-93b28dd1c69f1ae018f811d9fa195b7ccff18e02ffca56c1864ba79ebbe56b30
we have at least some support for [AllowShared], so why does the IDL layer not end up throwing here? Yusuke, do you know?
Yusuke Suzuki
Comment 3
2023-11-26 14:52:17 PST
(In reply to Anne van Kesteren from
comment #2
)
> Per >
https://github.com/WebKit/WebKit/commit/
> 02a7ddd1949f734535c90d93a6d10eea06afcdce#diff- > 93b28dd1c69f1ae018f811d9fa195b7ccff18e02ffca56c1864ba79ebbe56b30 we have at > least some support for [AllowShared], so why does the IDL layer not end up > throwing here? > > Yusuke, do you know?
I have no idea, probably XHR is not using AllowShared.
Yusuke Suzuki
Comment 4
2023-11-26 14:53:11 PST
(In reply to Yusuke Suzuki from
comment #3
)
> (In reply to Anne van Kesteren from
comment #2
) > > Per > >
https://github.com/WebKit/WebKit/commit/
> > 02a7ddd1949f734535c90d93a6d10eea06afcdce#diff- > > 93b28dd1c69f1ae018f811d9fa195b7ccff18e02ffca56c1864ba79ebbe56b30 we have at > > least some support for [AllowShared], so why does the IDL layer not end up > > throwing here? > > > > Yusuke, do you know? > > I have no idea, probably XHR is not using AllowShared.
It is probably largely depending on how XHR is implementing send function, I guess.
Anne van Kesteren
Comment 5
2025-05-23 00:52:28 PDT
I think I figured it out. What happens is that we apply ToString because we treat them as distinct types which does not quite match
https://webidl.spec.whatwg.org/#js-union
I think this is correct for SharedArrayBuffer now that SharedArrayBuffer is a standalone type in Web IDL (though this might need more discussion), but this is incorrect for views on a SharedArrayBuffer.
Anne van Kesteren
Comment 6
2026-04-17 08:23:18 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/62978
EWS
Comment 7
2026-04-18 21:31:38 PDT
Committed
311536@main
(7eb28729693c): <
https://commits.webkit.org/311536@main
> Reviewed commits have been landed. Closing PR #62978 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug