<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>211981</bug_id>
          
          <creation_ts>2020-05-16 03:04:19 -0700</creation_ts>
          <short_desc>[GTK] Test editing/pasteboard/data-transfer-get-data-on-pasting-html-uses-blob-url.html fails</short_desc>
          <delta_ts>2020-05-16 03:04:19 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=211979</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk, LayoutTestFailure</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Garcia Campos">cgarcia</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1653302</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2020-05-16 03:04:19 -0700</bug_when>
    <thetext>This keeps failing even after supporting pasteboard custom data. It needs more investigation:

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

    </bug>

</bugzilla>