w3c / presentation-api

Presentation API
https://www.w3.org/TR/presentation-api/
Other
71 stars 39 forks source link

Editorial: Align with Web IDL specification #482

Closed autokagami closed 3 years ago

autokagami commented 4 years ago

This is an automated pull request to align the spec with the latest Web IDL specification.

Currently the autofix might introduce some awkward code formatting, so please feel free to modify the formatting.

Please file an issue on https://github.com/saschanaz/webidl-updater/issues/new if you think this PR is invalid or should be enhanced.

The following is the validation messages from webidl2.js, which may help understanding this PR:

Validation error at line 8 in presentation-api,6:
  void close();
  ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 9 in presentation-api,6:
  void terminate();
  ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 17 in presentation-api,6:
  void send (DOMString message
  ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 18 in presentation-api,6:
  void send (Blob data
  ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 19 in presentation-api,6:
  void send (ArrayBuffer data
  ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 20 in presentation-api,6:
  void send (ArrayBufferView data
  ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

:boom: Error: 500 Internal Server Error :boom:

PR Preview failed to build. (Last tried on Aug 18, 2020, 4:34 PM UTC).

More PR Preview relies on a number of web services to run. There seems to be an issue with the following one: :rotating_light: [Spec Generator](https://www.w3.org/2015/labs/) - Spec Generator is the web service used to build specs that rely on ReSpec. :link: [Related URL](https://labs.w3.org/spec-generator/?type=respec&url=https%3A%2F%2Frawcdn.githack.com%2Fw3c%2Fpresentation-api%2F57ef841a0ba9e606f5c38ddc3c3352a87de2c723%2Findex.html%3FisPreview%3Dtrue) ``` 😭 Sorry, there was an error generating the HTML. Please report this issue! Specification: https://rawcdn.githack.com/w3c/presentation-api/57ef841a0ba9e606f5c38ddc3c3352a87de2c723/index.html?isPreview=true&publishDate=2020-08-18 ReSpec version: 25.6.0 File a bug: https://github.com/w3c/respec/ Error: Error: Evaluation failed: Timeout: document.respecIsReady didn't resolve in 0ms.  at ExecutionContext._evaluateInternal (/u/spec-generator/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217:19)  at runMicrotasks ()  at processTicksAndRejections (internal/process/task_queues.js:97:5)  at async ExecutionContext.evaluate (/u/spec-generator/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:106:16)  at async generateHTML (/u/spec-generator/node_modules/respec/tools/respecDocWriter.js:128:12)  at async fetchAndWrite (/u/spec-generator/node_modules/respec/tools/respecDocWriter.js:95:18)  at async Object.generate [as respec] (/u/spec-generator/generators/respec.js:14:20)  at async generate (/u/spec-generator/server.js:90:29)  ``` _If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please [file an issue](https://github.com/tobie/pr-preview/issues/new?title=Error%20not%20surfaced%20properly&body=See%20w3c/presentation-api%23482.)._
tidoust commented 3 years ago

This fixes one of the errors reported by ReSpec. I'll prepare another PR to fix the remaining one and warning.