[webnfc] Support NDEFWriteOptions#overwrite
To indicate whether it's allowed to overwrite an NFC tag that already contains some records. We do not do any special checks for the case of overwrite = true, just write into the NFC tag in any cases. In case of overwrite = false, - Writing non-formatted tags that are NDEF-formatable --> format + write - Writing (formatted + empty) NDEF tags --> write - Writing (formatted and non-empty) NDEF tags --> not allowed The spec change: https://github.com/w3c/web-nfc/pull/373/commits/b71a81e33ba568f3a8e3cd3de8271bd45be789e8 https://github.com/w3c/web-nfc/pull/526 BUG=1023231,520391 Change-Id: Ibf271f88e6e395370f994864e966f55ef44f5d2a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2003893 Commit-Queue: Leon Han <leon.han@intel.com> Reviewed-by:François Beaufort <beaufort.francois@gmail.com> Reviewed-by:
Rijubrata Bhaumik <rijubrata.bhaumik@intel.com> Reviewed-by:
Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#734339}
Showing
Please register or sign in to comment