Page MenuHomePhabricator

Bug 1861985 - Let the parent process handle validating command encoders. r=#webgpu-reviewers
ClosedPublic

Authored by nical on Nov 6 2023, 1:34 PM.
Referenced Files
Unknown Object (File)
Fri, Apr 17, 11:04 AM
Unknown Object (File)
Mon, Apr 13, 2:29 AM
Unknown Object (File)
Thu, Apr 9, 3:56 PM
Unknown Object (File)
Wed, Apr 8, 6:37 AM
Unknown Object (File)
Tue, Apr 7, 3:32 PM
Unknown Object (File)
Tue, Apr 7, 12:53 PM
Unknown Object (File)
Tue, Apr 7, 11:16 AM
Unknown Object (File)
Mon, Apr 6, 4:48 PM
Subscribers

Details

Summary

This makes sure we never create an invalid (zero) ID after incorrect usage of a command encoder.
It also simplifies the code. The JS object should not do any validaion (per spec) and simply forward the commands to the parent process where all of the validation is done.

Event Timeline

phab-bot published this revision for review.Nov 6 2023, 1:35 PM
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.

Credit goes to Brad Werth for diagnosing the issue and adding the test.

saschanaz added a subscriber: saschanaz.

r+ for webidl, just removes [Throws].

This revision is now accepted and ready to land.Nov 6 2023, 2:41 PM

This revision requires a Testing Policy Project Tag to be set before landing. Please apply one of testing-approved, testing-exception-unchanged, testing-exception-ui, testing-exception-elsewhere, testing-exception-other. Tip: this Firefox add-on makes it easy!

I hope the herald rule can automatically convert other reviewers into blocking reviewers.

This revision now requires review to proceed.Nov 6 2023, 2:42 PM
jimb edited projects, added testing-approved; removed needs-testing-tag.
This revision is now accepted and ready to land.Nov 7 2023, 5:36 PM
This revision is now accepted and ready to land.Nov 21 2023, 7:13 PM
This revision is now accepted and ready to land.Nov 22 2023, 12:12 PM