<?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>313649</bug_id>
          
          <creation_ts>2026-04-29 06:51:54 -0700</creation_ts>
          <short_desc>REGRESSION(312211@main) [GTK] Broke copy/pasting relative URLs</short_desc>
          <delta_ts>2026-05-21 02:24:25 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vitaly Dyackhov">vitaly</reporter>
          <assigned_to name="Diego Pino">dpino</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2205757</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Dyackhov">vitaly</who>
    <bug_when>2026-04-29 06:51:54 -0700</bug_when>
    <thetext>Broken tests:
editing/pasteboard/block-wrappers-necessary.html
editing/pasteboard/copy-picture-and-text.html
editing/pasteboard/copy-picture.html
editing/pasteboard/copy-resolves-urls.html
editing/pasteboard/copy-text-with-wrapped-tag.html
editing/pasteboard/paste-4039777-fix.html
editing/pasteboard/paste-noscript.html
editing/pasteboard/reveal-selection-after-pasting-images.html

Diff:
```
--- /sdk/webkit/layout-test-results/editing/pasteboard/copy-resolves-urls-expected.txt
+++ /sdk/webkit/layout-test-results/editing/pasteboard/copy-resolves-urls-actual.txt
@@ -2,4 +2,4 @@
 
 link
 link
-&lt;a href=&quot;../relative/path/foo.html&quot;&gt;link&lt;/a&gt;&lt;img src=&quot;resources/abe.png&quot;&gt;
+&lt;a href=&quot;file:///sdk/webkit/LayoutTests/editing/relative/path/foo.html&quot;&gt;link&lt;/a&gt;&lt;img src=&quot;file:///sdk/webkit/LayoutTests/editing/pasteboard/resources/abe.png&quot;&gt;
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2205758</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Dyackhov">vitaly</who>
    <bug_when>2026-04-29 06:54:33 -0700</bug_when>
    <thetext>Test gardening pull request: https://github.com/WebKit/WebKit/pull/63893</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2205760</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-29 06:56:42 -0700</bug_when>
    <thetext>Test gardening commit 312277@main (bb013742ee86): &lt;https://commits.webkit.org/312277@main&gt;

Reviewed commits have been landed. Closing PR #63893 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212649</commentid>
    <comment_count>3</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2026-05-20 13:27:20 -0700</bug_when>
    <thetext>Pull request: https://github.com/webkit/webkit/pull/65316</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212817</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-05-20 22:18:36 -0700</bug_when>
    <thetext>Committed 313644@main (f5376181a643): &lt;https://commits.webkit.org/313644@main&gt;

Reviewed commits have been landed. Closing PR #65316 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212818</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-05-20 22:19:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/177591039&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212872</commentid>
    <comment_count>6</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2026-05-21 02:24:25 -0700</bug_when>
    <thetext>In reply to this comment from Vitaly in the associated PR (https://github.com/WebKit/WebKit/pull/65316#issuecomment-4506061952)

&gt; @dpino I wonder how it works on Apple ports.

In the PR that introduced the regression for WebKitGTK (https://github.com/WebKit/WebKit/pull/63451), the EWS WebKitGTK test bot shows several tests were failing. The PR was merged anyway, which is not great.

That PR was a follow-up to this other commit in the remote branch &apos;origin/safari-7624-branch&apos;:

```
31eb1554d216 2026-01-15 timothy@apple.com    safari-web-extension url masking bypass. https://webkit.org/b/304155 rdar://problem/166499973
```

Unfortunately, I don&apos;t have access to that bugzilla ticket.

It seems to me this was an issue related to Safari and Web Extensions. I think the behavior for WebKitGTK should have been preserved (considering the change made several layout tests fail for WebKitGTK).

BTW, WPE is also affected but right now WPE doesn&apos;t run &apos;editing/pasteboard&apos; tests as they are marked as Skipped in WPE TestExpectations:

```
webkit.org/b/213131 editing/pasteboard [ Skip ]
```</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>