[WebNFC] Rename NDEFReader onerror to onreadingerror
The NDEFReader onerror event handler is renamed to onreadingerror to make it clear to web developers that only NFC read errors will be fired in this event as NDEFReader and NDEFWriter will soon been merged. Note that an error message is now displayed in the devtools JS console to help web developers to diagnose issues while it was part of the error event before. This CL also removes onreadingerror event fired on MojoConnectionError as this is called if either the NFC service is unavailable in which case NDEFReader.scan() will return a rejected promise, or when NFC permission is revoked in which case the Permission API can be used to detect changes. Spec: https://github.com/w3c/web-nfc/pull/601 Bug: 520391 Change-Id: I451083fb5382149e9a1e45da31e575709f190448 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2546011Reviewed-by:Reilly Grant <reillyg@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Commit-Queue: François Beaufort <beaufort.francois@gmail.com> Cr-Commit-Position: refs/heads/master@{#829626}
Showing
Please register or sign in to comment