WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
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.
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