Bug 1743643 [wpt PR 31793] - WebNFC: Add experimental NDEFReader.makeReadOnly(),...
commit99c87be3c5ffaadd609d3ed31f8df42635d8d9b1
authorFrancois Beaufort <beaufort.francois@gmail.com>
Mon, 20 Dec 2021 22:15:12 +0000 (20 22:15 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 23 Dec 2021 14:25:01 +0000 (23 14:25 +0000)
tree29daa25617600e0e5272556edc66c5184fe19f46
parent2ab1c41486ab0446d9c3ff0967f3274c1ecc880f
Bug 1743643 [wpt PR 31793] - WebNFC: Add experimental NDEFReader.makeReadOnly(), a=testonly

Automatic update from web-platform-tests
WebNFC: Add experimental NDEFReader.makeReadOnly()

This CL adds a way for web developers to make NFC tags permanently
read-only with Web NFC. It does so with a new `makeReadOnly()` method
on NDEFReader. Its behaviour is similar to the `write()` method.

Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/iyljeGnIct8

Binary-Size: Uses Mojo in Java (crbug.com/1062647)
Demo: https://make-read-only.glitch.me/
Spec: https://github.com/w3c/web-nfc/pull/632
Change-Id: I2a9841d969cced22aea469e2eb0e065381706184
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3302801
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Fr <beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/main@{#951550}

--

wpt-commits: e54fe9b63bd8030922f50a67c37134a574fc2a7f
wpt-pr: 31793
testing/web-platform/tests/resources/chromium/nfc-mock.js
testing/web-platform/tests/web-nfc/NDEFReader-make-read-only-document-hidden-manual.https.html [new file with mode: 0644]
testing/web-platform/tests/web-nfc/NDEFReader_make-read-only.https.window.js [new file with mode: 0644]
testing/web-platform/tests/web-nfc/NDEFReader_scan.https.html
testing/web-platform/tests/web-nfc/NDEFReader_write.https.html
testing/web-platform/tests/web-nfc/README.md