Closed Bug 2078477 Opened 1 month ago Closed 12 days ago

[wpt-sync] Sync PR 63287 - text-detection: Add EnsureReady() and TextDetector.create() API

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63287 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63287
Details from upstream follow.

Alvin Ji <alvinji@chromium.org> wrote:

text-detection: Add EnsureReady() and TextDetector.create() API

Adds EnsureReady() to shape_detection.mojom.TextDetection so callers can
asynchronously verify text detection backend readiness before performing
detection.

In Blink, exposes the static Promise\<TextDetector> TextDetector.create()
method on TextDetector (with UseCounter kTextDetectorCreate) and adds
WPT tests.

Bug: 556760835
Intent-to-Prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/P2dn1LHygIU
Change-Id: I18af6a0bb9e22bb470921421c6372ce2d9f7cdf3
Reviewed-on: https://chromium-review.googlesource.com/8384498
WPT-Export-Revision: c170bdb12956ec5dedfcb2bad71b455a82914da1

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 28 tests and 2 subtests

Status Summary

Firefox

FAIL : 2
ERROR: 1

Chrome

OK : 1
PASS : 2

Safari

FAIL : 2
ERROR: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a431ee7e658c https://hg.mozilla.org/integration/autoland/rev/ee0f2440e625 [wpt PR 63287] - text-detection: Add EnsureReady() and TextDetector.create() API, a=testonly
Status: NEW → RESOLVED
Closed: 12 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.