Bug 254864 - Implement [AllowShared] suport in Web IDL
Summary: Implement [AllowShared] suport in Web IDL
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on: 258131
Blocks:
  Show dependency treegraph
 
Reported: 2023-04-01 03:05 PDT by Anne van Kesteren
Modified: 2023-11-26 14:53 PST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anne van Kesteren 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.
Comment 1 Radar WebKit Bug Importer 2023-04-08 03:06:17 PDT
<rdar://problem/107786134>
Comment 2 Anne van Kesteren 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?
Comment 3 Yusuke Suzuki 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.
Comment 4 Yusuke Suzuki 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.