Bug 211981 - [GTK] Test editing/pasteboard/data-transfer-get-data-on-pasting-html-uses-blob-url.html fails
Summary: [GTK] Test editing/pasteboard/data-transfer-get-data-on-pasting-html-uses-blo...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: Gtk, LayoutTestFailure
Depends on:
Blocks:
 
Reported: 2020-05-16 03:04 PDT by Carlos Garcia Campos
Modified: 2020-05-16 03:04 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2020-05-16 03:04:19 PDT
This keeps failing even after supporting pasteboard custom data. It needs more investigation:

 PASS htmlInNullOrigin.includes("dangerousCode") is false
 PASS parsedTree = (new DOMParser).parseFromString(htmlInNullOrigin, "text/html"); !!parsedTree.querySelector("b"); is true
 PASS parsedTree.querySelector("b").textContent is "16th President of the United States:"
-PASS (new URL(parsedTree.querySelector("img").src)).protocol is "blob:"
+FAIL (new URL(parsedTree.querySelector("img").src)).protocol should be blob:. Threw exception TypeError: Type error
 PASS parsedTree.querySelector("img").src.includes("resources/abe.png") is false
 PASS itemsInNullOrigin.some((item) => item.kind == "string" && item.type == "text/html") is true
 PASS typesInNullOrigin.includes("text/html") is true
@@ -16,7 +16,7 @@
 PASS htmlInSameDocument.includes("dangerousCode") is false
 PASS parsedTree = (new DOMParser).parseFromString(htmlInNullOrigin, "text/html"); !!parsedTree.querySelector("b"); is true
 PASS parsedTree.querySelector("b").textContent is "16th President of the United States:"
-FAIL (new URL(parsedTree.querySelector("img").src)).protocol should be file:. Was blob:.
+FAIL (new URL(parsedTree.querySelector("img").src)).protocol should be file:. Threw exception TypeError: Type error
 FAIL parsedTree.querySelector("img").src.includes("resources/abe.png") should be true. Was false.
 PASS itemsInSameDocument.some((item) => item.kind == "string" && item.type == "text/html") is true
 PASS successfullyParsed is true