Repository navigation
Update the webusb IDL file - #9854
lukebjerring merged 7 commits into
Conversation
Build BROKENStarted: 2018-03-09 02:32:51 Failing Jobs
View more information about this build on: |
d5b093b to
4804e36
Compare
| sequence<AllowedUSBDevice> allowedDevices = []; | ||
| }; | ||
|
|
||
| interface USBPermissionResult : PermissionStatus { |
There was a problem hiding this comment.
I was expecting this to break the test, because PermissionStatus isn't known, but I think what I've seen is that if both interfaces are implemented, then one will reach some code path in idlharness.js where if we don't have any information about the right-hand side, the failure is pretty mysterious.
So... I added what I think will be needed for anyone who does implement these bits.
| @@ -1,5 +1,6 @@ | |||
| // Copied from https://wicg.github.io/webusb/#idl-index minus the | |||
There was a problem hiding this comment.
@reillyeon, you wrote this bit. What do you think about our auto-updating scheme here? The resulting tests will fail, is that OK? Should it be removed from the spec until it's ready to test and implement, perhaps?
There was a problem hiding this comment.
I think the spec should be annotated to mark that section as unstable and if we have an automatic update mechanism it should be possible to mark IDL sections as "unstable and untested" so they aren't included.
There was a problem hiding this comment.
That would work for us I think. @tabatkins, you have some output from Bikeshed that's used to scrape definitions and things, what you suggest as the "API" for a spec saying that pieces are not to be implemented/tested yet?
There was a problem hiding this comment.
@tabatkins - Ping. Is there an annotation for ignoring an IDL chunk?
There was a problem hiding this comment.
Yes, if it's in a non-normative section (.note, .example, .non-normative or .informative on an ancestor) it gets ignored for definition purposes in Bikeshed, and if it's non-normative or has .extract on the pre (I dunno where this practice came from but it's common on the WHATWG side) it gets omitted from the IDL index at the end of the spec.
There was a problem hiding this comment.
The reason these definitions are there is partially because of how the Permissions API defines the permissions storage data model. What would the best way of defining IDL for objects that are only included in internal slots?
There was a problem hiding this comment.
Internal objects don't have IDL definitions; the only purpose of those is to mediate JS<=>internal type conversions. Just define internal types, using Infra types when possible. Use <dfn dfn for=TheThing> to define slot names/etc if necessary.
reillyeon
left a comment
There was a problem hiding this comment.
It looks like this change is pulling IDL definitions from https://github.com/WICG/webusb/blob/gh-pages/index.html rather than https://github.com/WICG/webusb/blob/master/index.bs. The former is out of date because a recent Bikeshed change broke the build.
|
@lukebjerring is this now getting the IDL from reffy or webidl-diff? |
|
webidl-diff. Will update the specs set to redirect. |
|
Uh, scratch that. Its URL is https://wicg.github.io/webusb/ @reillyeon - I might need to wait until you can push the |
|
Does this PR match what is in https://wicg.github.io/webusb/ now? If so, is there still a problem? I guess whatwg/usb#135 is to fix the build error, but have there been IDL changes since the last successful build that this PR is reverting? |
|
@foolip @odejesush is working on fixing whatwg/usb#135. This patch is still reverting changes that are in index.bs but have not been published to https://wicg.github.io/webusb/. |
|
Got it, thanks! |
|
The issue above has been fixed so the next update based on the published spec should contain the correct definitions. |
|
This change has broken these tests in Chromium: https://test-results.appspot.com/data/layout_results/linux-xenial-rel/669/site_per_process_webkit_layout_tests/layout-test-results/results.html When I looked at this change earlier it seemed that the permission descriptor bits had been filtered out but it looks like the version that was merged still contains them. Please revert this change (or remove the untestable definitions) as soon as possible. |
Upstream re-attempt at #9854. Adds more untested IDL deps. Change-Id: Icf7bda0f264ec66f4980e0742485eb406e334c19
Upstream re-attempt at #9854. Adds more untested IDL deps. Change-Id: Icf7bda0f264ec66f4980e0742485eb406e334c19
Upstream re-attempt at #9854. Adds more untested IDL deps. Change-Id: Icf7bda0f264ec66f4980e0742485eb406e334c19
Upstream re-attempt at #9854. Adds more untested IDL deps. Change-Id: Icf7bda0f264ec66f4980e0742485eb406e334c19
Upstream re-attempt at #9854. Adds more untested IDL deps. Change-Id: Icf7bda0f264ec66f4980e0742485eb406e334c19
Upstream re-attempt at web-platform-tests/wpt#9854. Adds more untested IDL deps. Change-Id: Icf7bda0f264ec66f4980e0742485eb406e334c19 Reviewed-on: https://chromium-review.googlesource.com/1089862 Commit-Queue: Luke Bj <[email protected]> Reviewed-by: Reilly Grant <[email protected]> Cr-Commit-Position: refs/heads/master@{#567118}
Upstream re-attempt at #9854. Adds more untested IDL deps. Change-Id: Icf7bda0f264ec66f4980e0742485eb406e334c19 Reviewed-on: https://chromium-review.googlesource.com/1089862 Commit-Queue: Luke Bj <[email protected]> Reviewed-by: Reilly Grant <[email protected]> Cr-Commit-Position: refs/heads/master@{#567118}
Upstream re-attempt at #9854. Adds more untested IDL deps. Change-Id: Icf7bda0f264ec66f4980e0742485eb406e334c19 Reviewed-on: https://chromium-review.googlesource.com/1089862 Commit-Queue: Luke Bj <[email protected]> Reviewed-by: Reilly Grant <[email protected]> Cr-Commit-Position: refs/heads/master@{#567118}
…web-platform-tests/wpt#9854. Adds more untested IDL deps., a=testonly Automatic update from web-platform-testsUpdate webusb test Upstream re-attempt at web-platform-tests/wpt#9854. Adds more untested IDL deps. Change-Id: Icf7bda0f264ec66f4980e0742485eb406e334c19 Reviewed-on: https://chromium-review.googlesource.com/1089862 Commit-Queue: Luke Bj <[email protected]> Reviewed-by: Reilly Grant <[email protected]> Cr-Commit-Position: refs/heads/master@{#567118} -- wpt-commits: 1110f36ff667fbfa004ae52aad161ccba2574dbe wpt-pr: 11394
…web-platform-tests/wpt#9854. Adds more untested IDL deps., a=testonly Automatic update from web-platform-testsUpdate webusb test Upstream re-attempt at web-platform-tests/wpt#9854. Adds more untested IDL deps. Change-Id: Icf7bda0f264ec66f4980e0742485eb406e334c19 Reviewed-on: https://chromium-review.googlesource.com/1089862 Commit-Queue: Luke Bj <lukebjerringchromium.org> Reviewed-by: Reilly Grant <reillygchromium.org> Cr-Commit-Position: refs/heads/master{#567118} -- wpt-commits: 1110f36ff667fbfa004ae52aad161ccba2574dbe wpt-pr: 11394 UltraBlame original commit: e31898f7a7f7228f0d86ede17022db043182c6d8
…web-platform-tests/wpt#9854. Adds more untested IDL deps., a=testonly Automatic update from web-platform-testsUpdate webusb test Upstream re-attempt at web-platform-tests/wpt#9854. Adds more untested IDL deps. Change-Id: Icf7bda0f264ec66f4980e0742485eb406e334c19 Reviewed-on: https://chromium-review.googlesource.com/1089862 Commit-Queue: Luke Bj <lukebjerringchromium.org> Reviewed-by: Reilly Grant <reillygchromium.org> Cr-Commit-Position: refs/heads/master{#567118} -- wpt-commits: 1110f36ff667fbfa004ae52aad161ccba2574dbe wpt-pr: 11394 UltraBlame original commit: e31898f7a7f7228f0d86ede17022db043182c6d8
…web-platform-tests/wpt#9854. Adds more untested IDL deps., a=testonly Automatic update from web-platform-testsUpdate webusb test Upstream re-attempt at web-platform-tests/wpt#9854. Adds more untested IDL deps. Change-Id: Icf7bda0f264ec66f4980e0742485eb406e334c19 Reviewed-on: https://chromium-review.googlesource.com/1089862 Commit-Queue: Luke Bj <lukebjerringchromium.org> Reviewed-by: Reilly Grant <reillygchromium.org> Cr-Commit-Position: refs/heads/master{#567118} -- wpt-commits: 1110f36ff667fbfa004ae52aad161ccba2574dbe wpt-pr: 11394 UltraBlame original commit: e31898f7a7f7228f0d86ede17022db043182c6d8
No description provided.