Cannot access images included in the content pasted from Microsoft Word
[WebKit-https.git] / LayoutTests / http / tests / security / clipboard / copy-paste-html-across-origin-sanitizes-html-expected.txt
1 This tests calling setData with a HTML in a null origin document. The HTML should be sanitized in another document
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 PASS htmlReadInSameDocument is "\n    <meta content=\"secret\"><b onmouseover=\"dangerousCode()\">hello</b><!-- secret-->, world\n    <script>function dangerousCode() { }</script>\n"
7 PASS JSON.stringify(typesInSameDocument) is "[\"text/html\"]"
8 PASS JSON.stringify(itemsInSameDocument) is "[{\"kind\":\"string\",\"type\":\"text/html\"}]"
9 PASS html = event.clipboardData.getData("text/html"); html.includes("hello") is true
10 PASS html.includes(", world") is true
11 PASS html.includes("secret") is false
12 PASS html.includes("dangerousCode") is false
13 PASS JSON.stringify(event.clipboardData.types) is "[\"text/html\"]"
14 PASS JSON.stringify(Array.from(event.clipboardData.items).map((item) => ({kind: item.kind, type: item.type}))) is "[{\"kind\":\"string\",\"type\":\"text/html\"}]"
15 PASS successfullyParsed is true
16
17 TEST COMPLETE
18