0
Files
src/content/browser/sms
Sean Maher 5b9af51fdd task posting v3: moving away from ThreadTaskRunnerHandle
To continue the migration away from TaskRunnerHandles, the codebase
was refactored using the following scripts:
shell script:
https://paste.googleplex.com/4673967729147904
python:
https://paste.googleplex.com/5824001174667264

This will do a few sed-like modifications, changing calls to methods of
ThreadTaskRunnerHandle to calls to methods of
SingleThreadTaskRunner::CurrentDefaultHandle, and swapping includes.

Bug: 1026641
AX-Relnotes: n/a.
Change-Id: Ia33b6dfebb15937481c619f5c838720ce7bb2676
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4031817
Commit-Queue: Gabriel Charette <gab@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Owners-Override: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1074085}
2022-11-21 15:32:47 +00:00
..

Web OTP API

Android has automatic and one-tap SMS verification. We would like to cover the gap on web platform and implement the WebOTP Service API for web developers.

Web-exposed Interfaces

Web OTP API

This is implemented in third_party/blink/renderer/modules/credentialmanagement and exposes the following function:

navigator.credentials.get({otp: {transport: ["sms"]}})

Testing

For how to run these tests, refer to Chromium documentation Running tests locally, Android Test Instructions

For testing this API locally, refer to How to use the Web OTP API

Platform Support

Android

The Android implementation (this does not include Android WebView) is located in chrome/browser/ui/android/sms/, content/public/android/java/src/org/chromium/content/browser/sms/, and chrome/android/java/src/org/chromium/chrome/browser/sms/.

For architectural diagrams, refer to design doc.

Desktop

We plan to implement it in the near future.

Design Doc

Web OTP API explainer

How to use the Web OTP API

Launch Bug