mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
script: Avoid double borrow crash on iframe focus (#35742)
Signed-off-by: Seán de Búrca <leftmostcat@gmail.com>
This commit is contained in:
parent
28cea920ec
commit
649291bf69
3 changed files with 28 additions and 4 deletions
7
tests/wpt/mozilla/meta/MANIFEST.json
vendored
7
tests/wpt/mozilla/meta/MANIFEST.json
vendored
|
@ -16,6 +16,13 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"iframe_focus-crash.html": [
|
||||
"f991b1a563f3cc44870640ab194708fa239ad89d",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"test-wait-crash.html": [
|
||||
"2419da6af0c278a17b9ff974d4418f9e386ef3e0",
|
||||
[
|
||||
|
|
9
tests/wpt/mozilla/tests/mozilla/iframe_focus-crash.html
vendored
Normal file
9
tests/wpt/mozilla/tests/mozilla/iframe_focus-crash.html
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<meta name="assert" content="focusing an iframe with onfocus event shouldn't crash">
|
||||
|
||||
<iframe id="f" srcdoc="<iframe></iframe><script>document.querySelector('iframe').focus();</script>"></iframe>
|
||||
<script>
|
||||
document.querySelector('iframe').onfocus = () => f;
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue