tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 01af64b78a68601b14cf592beea57a298c411904
parent 663bbe21a011b6ed7a9e8ab2f35769dce64ed539
Author: Ashish Kumar <ashishkum@microsoft.com>
Date:   Thu, 11 Dec 2025 09:28:43 +0000

Bug 2005034 [wpt PR 56611] - [Editing] Deflake caret-display-list-002.html, a=testonly

Automatic update from web-platform-tests
[Editing] Deflake caret-display-list-002.html

This patch ensures the toggle event is dispatched for the details
element after the document load finishes. I suspect this test was timing
out because the toggle event was fired before the document loaded when
running in headless mode, which resulted in ReferenceError for child
elements (`a` or `b`).

Bug: 465614980
Change-Id: Ia52e63939d0f59cee6088d849d459a09feb81bcf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7237758
Commit-Queue: Ashish Kumar <ashishkum@microsoft.com>
Reviewed-by: Rohan Raja <roraja@microsoft.com>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1556530}

--

wpt-commits: 095150e13c39b5633f501bb642b86bc40a2374c0
wpt-pr: 56611

Diffstat:
Mtesting/web-platform/tests/editing/crashtests/caret-display-list-002.html | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testing/web-platform/tests/editing/crashtests/caret-display-list-002.html b/testing/web-platform/tests/editing/crashtests/caret-display-list-002.html @@ -26,10 +26,11 @@ function func_0() { } document.addEventListener("DOMContentLoaded", () => { window.ontransitionend = func_0 + details.open = "true" document.execCommand("outdent", false) }) </script> -<details ontoggle="func_0()" open=""> +<details ontoggle="func_0()" id="details"> <summary id="a" contenteditable="true"> <table id="b"> <tr id="c">