-
Notifications
You must be signed in to change notification settings - Fork 29
Fix webidl for XRRay #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Actually it seems like one of the tests asserts that this throws an error, so i'm just going to switch that over to an error |
|
Actually, ugh, this isn't right either, because now |
|
At least in Servo the overload isn't working when we pass a single argument, either. |
This reverts commit e555563.
|
Yeah so the current model is fundamentally broken, it relies on obsolete webidl behavior (which is no longer allowed by Firefox and Servo's webidl parser and cannot be implemented). It is not possible to distinguish between a null and initial-value dict argument.
|
Hmm, actually, maybe not, it requires that V implement it. Could be a bug on our side, but I'm not sure. Update: yeah that's a bug on our side. The original change in this PR still stands. |
See immersive-web/hit-test#83, this test is currently impossible to pass for a browser implementing the current WebIDL specification.
|
I'm not sure if we should silently accept And now it occurred to me that we ignore |
|
@bialpio there is no way to distinguish between Using DOMPointReadOnlys is an API breaking change, because currently you can pass a dictionary and making it use DOMPointReadOnly will force you to use an interface. And yeah, we ignore the |
|
Oh, another option we have available is to define a new dictionary for direction that has different defaults. Thoughts? |
|
It's not pretty, but it would work. |
|
Should I file an issue for this with the various options? |
|
I like the idea of having a new dictionary - I think it checks all the boxes (should not be a breaking change, we won't be auto-fixing incorrect parameters, allows us to correctly validate & handle |
|
I'm closing this and will reopen a fresh PR |
See immersive-web/hit-test#83, this test is currently impossible to pass for a browser implementing the current WebIDL specification.
See immersive-web/hit-test#83, this test is currently impossible to pass for a browser implementing the current WebIDL specification.
See immersive-web/hit-test#83, this test is currently impossible to pass for a browser implementing the current WebIDL specification.
See immersive-web/hit-test#83, this test is currently impossible to pass for a browser implementing the current WebIDL specification.
Automatic update from web-platform-tests Update xrRay_constructor test to not throw See immersive-web/hit-test#83, this test is currently impossible to pass for a browser implementing the current WebIDL specification. -- Update XRRay semantics Implements changes from immersive-web/hit-test#85 -- Fix world generation to have vertices member -- wpt-commits: 7513c92e130e043def925bda97e9fb9d8fd0b48f, 0fce2e94f0feb04966868a0b5795d76ea1db3906, 08c95d8ca3466c37df307cb775502a916e22b814 wpt-pr: 22868
Automatic update from web-platform-tests Update xrRay_constructor test to not throw See immersive-web/hit-test#83, this test is currently impossible to pass for a browser implementing the current WebIDL specification. -- Update XRRay semantics Implements changes from immersive-web/hit-test#85 -- Fix world generation to have vertices member -- wpt-commits: 7513c92e130e043def925bda97e9fb9d8fd0b48f, 0fce2e94f0feb04966868a0b5795d76ea1db3906, 08c95d8ca3466c37df307cb775502a916e22b814 wpt-pr: 22868
Automatic update from web-platform-tests Update xrRay_constructor test to not throw See immersive-web/hit-test#83, this test is currently impossible to pass for a browser implementing the current WebIDL specification. -- Update XRRay semantics Implements changes from immersive-web/hit-test#85 -- Fix world generation to have vertices member -- wpt-commits: 7513c92e130e043def925bda97e9fb9d8fd0b48f, 0fce2e94f0feb04966868a0b5795d76ea1db3906, 08c95d8ca3466c37df307cb775502a916e22b814 wpt-pr: 22868 UltraBlame original commit: 309322031e57b9f606c20274ad42711703753086
Automatic update from web-platform-tests Update xrRay_constructor test to not throw See immersive-web/hit-test#83, this test is currently impossible to pass for a browser implementing the current WebIDL specification. -- Update XRRay semantics Implements changes from immersive-web/hit-test#85 -- Fix world generation to have vertices member -- wpt-commits: 7513c92e130e043def925bda97e9fb9d8fd0b48f, 0fce2e94f0feb04966868a0b5795d76ea1db3906, 08c95d8ca3466c37df307cb775502a916e22b814 wpt-pr: 22868 UltraBlame original commit: 309322031e57b9f606c20274ad42711703753086
Automatic update from web-platform-tests Update xrRay_constructor test to not throw See immersive-web/hit-test#83, this test is currently impossible to pass for a browser implementing the current WebIDL specification. -- Update XRRay semantics Implements changes from immersive-web/hit-test#85 -- Fix world generation to have vertices member -- wpt-commits: 7513c92e130e043def925bda97e9fb9d8fd0b48f, 0fce2e94f0feb04966868a0b5795d76ea1db3906, 08c95d8ca3466c37df307cb775502a916e22b814 wpt-pr: 22868 UltraBlame original commit: 309322031e57b9f606c20274ad42711703753086
Automatic update from web-platform-tests Update xrRay_constructor test to not throw See immersive-web/hit-test#83, this test is currently impossible to pass for a browser implementing the current WebIDL specification. -- Update XRRay semantics Implements changes from immersive-web/hit-test#85 -- Fix world generation to have vertices member -- wpt-commits: 7513c92e130e043def925bda97e9fb9d8fd0b48f, 0fce2e94f0feb04966868a0b5795d76ea1db3906, 08c95d8ca3466c37df307cb775502a916e22b814 wpt-pr: 22868
[Constructor]is nowconstructor(){}in the webidl Define a way to specify a default value for dictionaries (the literal "{}") and require it to be specified for the dictionary arguments that are required to be optional. whatwg/webidl#750{}, we can't check if it's null, we have to check if all fields are zero (which we should have been checking anyway).r? @bialpio
Preview | Diff