WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
177722
Support nullable and optional interfaces as members of a dictionary
https://bugs.webkit.org/show_bug.cgi?id=177722
Summary
Support nullable and optional interfaces as members of a dictionary
Sam Weinig
Reported
2017-10-01 12:20:45 PDT
We currently treat a nullable interface that is an non-required member of a dictionary, just like we would a non-nullable interface that is an non-required member of a dictionary. That is for, interface Test { } dictionary Foo { Test? test; } dictionary Bar { Test test; } Foo and Bar have the same backing struct: struct Foo/Bar { RefPtr<Test> test; } To implement abort support for Fetch, we need to be able to distinguish these two cases to support the signal member on RequestInit (
https://fetch.spec.whatwg.org/#requestinit
) where differentiating between null and not-present is observable.
Attachments
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2017-10-01 12:22:02 PDT
For more on why it is necessary, see
https://github.com/whatwg/fetch/pull/523#discussion_r138886101
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