Make WakeLockPermissionDescriptor's type attribute required.
Implements https://github.com/w3c/wake-lock/pull/244. The permission algorithms in the spec already assume it is, and so does our implementation. While here, make sure to catch the exception caught when converting JS to a WakeLockPermissionDescriptor, as we will throw a TypeError when |type| is not present or is invalid. Bug: 257511 Change-Id: Ib20001d48296ea4af70368fa494b0d712348da6b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1864659 Auto-Submit: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> Reviewed-by:Mounir Lamouri <mlamouri@chromium.org> Reviewed-by:
Reilly Grant <reillyg@chromium.org> Commit-Queue: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> Cr-Commit-Position: refs/heads/master@{#707018}
Showing
Please register or sign in to comment