4 <script src=
"../../resources/js-test.js"></script>
7 <div id=
"description"></div>
8 <div id=
"console"></div>
10 description("Check if calling detached navigator's APIs is safe.");
12 window
.jsTestIsAsync
= true;
15 old_nav
= window
.frames
[0].navigator
;
16 var p
= document
.getElementById('subframe');
17 p
.parentNode
.removeChild(p
);
24 function check_navigator() {
26 if (typeof old_nav
[p
] === 'function') {
35 <!-- iframe with some contents -->
36 <iframe src=
"data:text/html,<html></html>" id=
"subframe"></iframe>