[wpt-sync] Sync PR 63287 - text-detection: Add EnsureReady() and TextDetector.create() API
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| 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
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•21 days ago
|
| Assignee | ||
Updated•18 days ago
|
| Assignee | ||
Comment 1•18 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=116394
| Assignee | ||
Comment 2•17 days ago
|
||
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
- /shape-detection/detected-boundingBox-read-only.https.html [wpt.fyi]:
SKIP - /shape-detection/detected-postMessage.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-Blob.https.window.html [wpt.fyi]:
SKIP - /shape-detection/detection-HTMLCanvasElement.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-HTMLImageElement-empty-src.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-HTMLImageElement-zero-dimension-image.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-HTMLImageElement.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-HTMLVideoElement.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-ImageBitmap-closed.https.window.html [wpt.fyi]:
SKIP - /shape-detection/detection-ImageBitmap.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-ImageData-detached.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-ImageData.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-SVGImageElement.https.window.html [wpt.fyi]:
SKIP - /shape-detection/detection-VideoFrame.https.window.html [wpt.fyi]:
SKIP - /shape-detection/detection-getSupportedFormats.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-on-worker.https.worker.html [wpt.fyi]:
SKIP - /shape-detection/detection-options.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-security-test.https.html [wpt.fyi]:
SKIP - /shape-detection/detector-same-object.https.html [wpt.fyi]:
SKIP - /shape-detection/idlharness.https.any.sharedworker.html [wpt.fyi]:
SKIP - /shape-detection/idlharness.https.any.html [wpt.fyi]:
SKIP - /shape-detection/idlharness.https.any.worker.html [wpt.fyi]:
SKIP - /shape-detection/idlharness.https.any.serviceworker.html [wpt.fyi]:
SKIP - /shape-detection/shapedetection-cross-origin.sub.https.html [wpt.fyi]:
SKIP - /shape-detection/single-barcode-detection.https.html [wpt.fyi]:
SKIP - /shape-detection/single-face-detection.https.html [wpt.fyi]:
SKIP - /shape-detection/single-text-detection.https.html [wpt.fyi]:
SKIP - /shape-detection/text-detector-create.https.html [wpt.fyi]:
ERROR[GitHub],SKIP[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:OK, Safari:ERROR)- TextDetector.create() resolves with a working TextDetector instance when ready:
FAIL(Chrome:PASS, Safari:FAIL) - TextDetector.create() rejects with NotSupportedError when backend initialization fails:
FAIL(Chrome:PASS, Safari:FAIL)
- TextDetector.create() resolves with a working TextDetector instance when ready:
Tests Disabled in Gecko Infrastructure
- /shape-detection/detected-boundingBox-read-only.https.html [wpt.fyi]:
SKIP - /shape-detection/detected-postMessage.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-Blob.https.window.html [wpt.fyi]:
SKIP - /shape-detection/detection-HTMLCanvasElement.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-HTMLImageElement-empty-src.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-HTMLImageElement-zero-dimension-image.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-HTMLImageElement.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-HTMLVideoElement.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-ImageBitmap-closed.https.window.html [wpt.fyi]:
SKIP - /shape-detection/detection-ImageBitmap.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-ImageData-detached.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-ImageData.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-SVGImageElement.https.window.html [wpt.fyi]:
SKIP - /shape-detection/detection-VideoFrame.https.window.html [wpt.fyi]:
SKIP - /shape-detection/detection-getSupportedFormats.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-on-worker.https.worker.html [wpt.fyi]:
SKIP - /shape-detection/detection-options.https.html [wpt.fyi]:
SKIP - /shape-detection/detection-security-test.https.html [wpt.fyi]:
SKIP - /shape-detection/detector-same-object.https.html [wpt.fyi]:
SKIP - /shape-detection/idlharness.https.any.sharedworker.html [wpt.fyi]:
SKIP - /shape-detection/idlharness.https.any.html [wpt.fyi]:
SKIP - /shape-detection/idlharness.https.any.worker.html [wpt.fyi]:
SKIP - /shape-detection/idlharness.https.any.serviceworker.html [wpt.fyi]:
SKIP - /shape-detection/shapedetection-cross-origin.sub.https.html [wpt.fyi]:
SKIP - /shape-detection/single-barcode-detection.https.html [wpt.fyi]:
SKIP - /shape-detection/single-face-detection.https.html [wpt.fyi]:
SKIP - /shape-detection/single-text-detection.https.html [wpt.fyi]:
SKIP - /shape-detection/text-detector-create.https.html [wpt.fyi]:
ERROR[GitHub],SKIP[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:OK, Safari:ERROR)
Comment 4•12 days ago
|
||
| bugherder | ||
Description
•