Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: afc47a2719e7157bdcf04183b30d741a1f86eb9a
      
https://github.com/WebKit/WebKit/commit/afc47a2719e7157bdcf04183b30d741a1f86eb9a
  Author: Roberto Rodriguez <[email protected]>
  Date:   2026-02-13 (Fri, 13 Feb 2026)

  Changed paths:
    M 
LayoutTests/editing/pasteboard/data-transfer-set-data-sanitize-html-when-dragging-in-null-origin.html
    M 
LayoutTests/editing/pasteboard/data-transfer-set-data-sanitize-url-when-dragging-in-null-origin.html

  Log Message:
  -----------
  [Site Isolation] Fix drag-and-drop pasteboard tests to return after 
finishJSTest()
https://bugs.webkit.org/show_bug.cgi?id=307735
rdar://170279307

Reviewed by Sihui Liu.

After the call to finishJSTest(), the break statement exits the switch
and allows debug('') to execute, which adds an extra BR element.
Without site isolation, notifyDone() captures the DOM synchronously
before debug('') runs, so the BR isn't captured and aligns with the expected
test output. With site isolation, the async capture includes the extra BR,
causing a newline mismatch in the expected vs actual test output.

Add a return statement immediately following finishJSTest() so that the
handler exits immediately and prevents debug('') from executing at all.

* 
LayoutTests/editing/pasteboard/data-transfer-set-data-sanitize-html-when-dragging-in-null-origin.html:
* 
LayoutTests/editing/pasteboard/data-transfer-set-data-sanitize-url-when-dragging-in-null-origin.html:

Canonical link: https://commits.webkit.org/307483@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to