4 <script src=
"../resources/js-test.js"></script>
8 description("Check if calling navigator.getBattery() on a detached frame doesn't leak.");
10 window
.jsTestIsAsync
= true;
13 old_nav
= window
.frames
[0].navigator
;
14 var p
= document
.getElementById('subframe');
15 p
.parentNode
.removeChild(p
);
22 <!-- iframe with some contents -->
23 <iframe src=
"data:text/html,<html></html>" id=
"subframe"></iframe>