forked from mykmelez/gecko
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1595451 [wpt PR 20193] - [webnfc] Make NDEFReader#scan() return a…
… Promise, a=testonly Automatic update from web-platform-tests [webnfc] Make NDEFReader#scan() return a Promise Previously NDEFReader#scan() returns void and an NDEFErrorEvent will be dispatched in case that the scan operation cannot be started successfully. This is not a well accepted pattern, and also to align with NDEFWriter#push(), this CL makes NDEFReader#scan() return a Promise instead. Note that now NDEFErrorEvent is only used to notify Mojo disconnection, a follow-up CL will remove it completely by using ErrorEvent instead. The spec change: w3c/web-nfc#398 w3c/web-nfc#432 BUG=520391 Change-Id: I1477258ab70f7e40da31ea8795d63125b6a13af0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1899586 Commit-Queue: Leon Han <leon.han@intel.com> Reviewed-by: Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/master@{#716904} -- wpt-commits: 581a056bf7a743722a2e83cb80e1a8ce250e4f9d wpt-pr: 20193
- Loading branch information
1 parent
96677a6
commit d077124
Showing
5 changed files
with
96 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.