Closed Bug 1751992 Opened 4 years ago Closed 3 years ago

[wpt-sync] Sync PR 32537 - [Clipboard API]Throw exception on exceeding max custom formats support.

Categories

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

task

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Anupam Snigdha <snianu@microsoft.com> wrote:

[Clipboard API]Throw exception on exceeding max custom formats support.

This change adds logic to throw NotAllowedError exception when web
authors want to write more than 100 custom formats.
Currently we silently fail in ScopedClipboardWriter::WriteData,
but we got feedback from our partners that an exception would be
helpful in these scenarios.

Bug: 106449
Change-Id: I814b653ee13fdf8332647b4b9fdff297bd130d27
Reviewed-on: https://chromium-review.googlesource.com/3415890
WPT-Export-Revision: 1222e5159ff18969019c4a559d74de9a0c165140

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 1 tests and 2 subtests

Status Summary

Firefox

OK : 1
FAIL: 2

Chrome

OK : 1
PASS: 1
FAIL: 1

Safari

OK : 1
FAIL: 2

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/clipboard-apis/async-custom-formats-write-read.tentative.https.html
Verify write and read clipboard given 2 platform-neutral custom format inputs: FAIL (Chrome: PASS, Safari: FAIL)
navigator.clipboard.write() fails for more than 100 custom formats: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/39359ceb43c6 [wpt PR 32537] - [Clipboard API] Throw exception on exceeding limit on custom formats write., a=testonly
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cf608f6a94c8 [wpt PR 32537] - [Clipboard API] Throw exception on exceeding limit on custom formats write., a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
You need to log in before you can comment on or make changes to this bug.