Skip to content

Update the webusb IDL file - #9854

Merged
lukebjerring merged 7 commits into
web-platform-tests:masterfrom
lukebjerring:idl-file-updates-webusb
Jun 6, 2018
Merged

lukebjerring merged 7 commits into
web-platform-tests:masterfrom
lukebjerring:idl-file-updates-webusb

Conversation

@lukebjerring

@lukebjerring lukebjerring commented Mar 5, 2018 •

Copy link
Copy Markdown
Contributor

No description provided.

@wpt-pr-bot
wpt-pr-bot requested review from jensl and yuki3 March 5, 2018 19:11
@ghost

ghost commented Mar 6, 2018 •

Copy link
Copy Markdown

Build BROKEN

Started: 2018-03-09 02:32:51
Finished: 2018-03-09 02:36:15

Failing Jobs

  • firefox:nightly
  • safari:11.0
  • MicrosoftEdge:16.16299

View more information about this build on:

@lukebjerring
lukebjerring force-pushed the idl-file-updates-webusb branch from d5b093b to 4804e36 Compare March 7, 2018 20:33

@foolip foolip left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question for Reilly.

Comment thread interfaces/webusb.idl
sequence<AllowedUSBDevice> allowedDevices = [];
};

interface USBPermissionResult : PermissionStatus {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread interfaces/webusb.idl
@@ -1,5 +1,6 @@
// Copied from https://wicg.github.io/webusb/#idl-index minus the

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tabatkins - Ping. Is there an annotation for ignoring an IDL chunk?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@wpt-pr-bot
wpt-pr-bot requested a review from reillyeon March 9, 2018 02:32

@reillyeon reillyeon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@foolip

foolip commented May 23, 2018

Copy link
Copy Markdown
Member

@lukebjerring is this now getting the IDL from reffy or webidl-diff?

@lukebjerring

Copy link
Copy Markdown
Contributor Author

webidl-diff. Will update the specs set to redirect.

@lukebjerring

Copy link
Copy Markdown
Contributor Author

Uh, scratch that. Its URL is https://wicg.github.io/webusb/

@reillyeon - I might need to wait until you can push the .bs changes?

@foolip

foolip commented May 30, 2018

Copy link
Copy Markdown
Member

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?

@reillyeon

Copy link
Copy Markdown
Contributor

@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/.

@foolip

foolip commented May 30, 2018

Copy link
Copy Markdown
Member

Got it, thanks!

@reillyeon

Copy link
Copy Markdown
Contributor

The issue above has been fixed so the next update based on the published spec should contain the correct definitions.

@lukebjerring
lukebjerring merged commit f110c50 into web-platform-tests:master Jun 6, 2018
@reillyeon

Copy link
Copy Markdown
Contributor

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.

lukebjerring pushed a commit to lukebjerring/wpt that referenced this pull request Jun 6, 2018
plehegar pushed a commit that referenced this pull request Jun 6, 2018
@Hexcles Hexcles mentioned this pull request Jun 6, 2018
chromium-wpt-export-bot pushed a commit that referenced this pull request Jun 6, 2018
Upstream re-attempt at #9854.
Adds more untested IDL deps.

Change-Id: Icf7bda0f264ec66f4980e0742485eb406e334c19
dheiberg pushed a commit to dheiberg/wpt that referenced this pull request Jun 7, 2018
dheiberg pushed a commit to dheiberg/wpt that referenced this pull request Jun 7, 2018
chromium-wpt-export-bot pushed a commit that referenced this pull request Jun 7, 2018
Upstream re-attempt at #9854.
Adds more untested IDL deps.

Change-Id: Icf7bda0f264ec66f4980e0742485eb406e334c19
chromium-wpt-export-bot pushed a commit that referenced this pull request Jun 7, 2018
Upstream re-attempt at #9854.
Adds more untested IDL deps.

Change-Id: Icf7bda0f264ec66f4980e0742485eb406e334c19
chromium-wpt-export-bot pushed a commit that referenced this pull request Jun 11, 2018
Upstream re-attempt at #9854.
Adds more untested IDL deps.

Change-Id: Icf7bda0f264ec66f4980e0742485eb406e334c19
chromium-wpt-export-bot pushed a commit that referenced this pull request Jun 11, 2018
Upstream re-attempt at #9854.
Adds more untested IDL deps.

Change-Id: Icf7bda0f264ec66f4980e0742485eb406e334c19
aarongable pushed a commit to chromium/chromium that referenced this pull request Jun 14, 2018
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}
chromium-wpt-export-bot pushed a commit that referenced this pull request Jun 14, 2018
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}
chromium-wpt-export-bot pushed a commit that referenced this pull request Jun 14, 2018
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}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jul 11, 2018
…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
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 3, 2019
…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
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 3, 2019
…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
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 3, 2019
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants