cookieStore_in_detached_frame.https.html (652B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>cookieStore on DOMWindow of detached iframe</title> 4 <link rel="help" href="https://cookiestore.spec.whatwg.org/"> 5 <link rel="author" href="pwnall@chromium.org" title="Victor Costan"> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 <iframe id="iframe"></iframe> 9 <script> 10 'use strict'; 11 12 test(() => { 13 const iframe = document.getElementById('iframe'); 14 const frameWindow = iframe.contentWindow; 15 16 iframe.parentNode.removeChild(iframe); 17 18 // By spec, window.cookieStore isn't nullable. 19 assert_true(frameWindow.cookieStore != null); 20 }); 21 </script>