mirror of
https://github.com/servo/servo.git
synced 2025-06-26 18:14:34 +01:00
Update web-platform-tests to revision 887d08e63a19b14acf3217df77f12c121a792fed
This commit is contained in:
parent
97ad913dc2
commit
a41065a1f4
65 changed files with 1433 additions and 463 deletions
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Dynamic import triggered from inactive context should not crash</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<div id="container">
|
||||
<iframe></iframe>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
test(() => {
|
||||
const iframe = document.querySelector('iframe');
|
||||
const otherWindow = iframe.contentWindow;
|
||||
iframe.remove();
|
||||
|
||||
// Below should not crash
|
||||
otherWindow.eval(`import('foobar');`);
|
||||
}, 'dynamic import from inactive context should not crash');
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue