Skip to content

Commit

Permalink
Bug 1691569 [wpt PR 27530] - [selectors] Fix leak in focus-visible-00…
Browse files Browse the repository at this point in the history
…2.html, a=testonly

Automatic update from web-platform-tests
[selectors] Fix leak in focus-visible-002.html

This is a known issue https://crbug.com/1164600.

This patch is similar to what's done in focus-visible-003.html
to avoid the leak.

Bug: 1175773
Change-Id: Ia6e2eb33ba84945ad28da181e4b597ad6c5dfa74
Cq-Include-Trybots: luci.chromium.try​:layout_test_leak_detection,leak_detection_linux
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2682439
Reviewed-by: Javier Fernandez <jfernandezigalia.com>
Commit-Queue: Manuel Rego <regoigalia.com>
Cr-Commit-Position: refs/heads/master{#851883}

--

wpt-commits: f1322a34aacda08c9a6a36021847397dc62cc4c6
wpt-pr: 27530

UltraBlame original commit: 6e926a8310364312217105e0f7fb6837a3da3047
  • Loading branch information
marco-c committed Feb 16, 2021
1 parent 826af98 commit b8cc28b
Showing 1 changed file with 62 additions and 3 deletions.
65 changes: 62 additions & 3 deletions testing/web-platform/tests/css/selectors/focus-visible-002.html
Original file line number Diff line number Diff line change
Expand Up @@ -890,11 +890,18 @@
<
script
>
for
setup
(
{
explicit_done
:
true
}
)
;
const
target
of
elements
=
document
.
querySelectorAll
Expand All @@ -904,8 +911,33 @@
check
"
)
;
for
(
let
i
=
0
;
i
<
elements
.
length
;
i
+
+
)
{
const
target
=
elements
[
i
]
;
promise_test
(
(
Expand Down Expand Up @@ -937,6 +969,33 @@
(
target
)
.
then
(
(
)
=
>
{
if
(
i
=
=
(
elements
.
length
-
1
)
)
done
(
)
;
}
)
;
}
)
Expand Down

0 comments on commit b8cc28b

Please sign in to comment.