Closed Bug 1646221 Opened 4 months ago Closed 3 months ago

[wpt-sync] Sync PR 24175 - Clipboard API: Implemented the HTML clipboard reader and writer

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Dylan Sleeper <dsleeps@google.com> wrote:

Clipboard API: Implemented the HTML clipboard reader and writer

I added two subclasses, a clipboard html reader and a clipboard html
writer. When HTML is read and written it is "sanitized" which means
that all script objects are removed from the html. They are both
entirely synchronous because it is impossible to sanitize the html off
of the main thread.

Change-Id: I29b26f1c721102005bcbb5911549a9546aed3006

Bug: 931839

Reviewed-on: https://chromium-review.googlesource.com/2243532
WPT-Export-Revision: 85d78913a833f7517e1687e5ffbe5672e4d8197a

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

CI Results

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

Total 2 tests and 1 subtests

Status Summary

Firefox

OK : 2
FAIL: 2

Chrome

OK : 2
FAIL: 2

Safari

OK : 2
FAIL: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/clipboard-apis/async-write-html-read-html.https.html
Verify read and write of some text/html content: FAIL (Chrome: FAIL, Safari: FAIL)
/clipboard-apis/async-html-script-removal.https.html
Verify write and read clipboard with scripts removed given text/html: <title>Title of the document</title> <script>const a = 5;</script> <p>Hello World</p>: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/377798f0a7fe
[wpt PR 24175] - Clipboard API: Implement the HTML clipboard reader and writer., a=testonly
https://hg.mozilla.org/integration/autoland/rev/06db56790b0d
[wpt PR 24175] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
You need to log in before you can comment on or make changes to this bug.