4 <script src=
"../resources/js-test.js"></script>
6 window
.jsTestIsAsync
= true;
8 description("Detaching a frame should bypass it's cached permissionclient state in StorageAreaProxy.");
10 if (window
.testRunner
&& testRunner
.setStorageAllowed
)
11 testRunner
.setStorageAllowed(true);
14 window
.onload = function () {
15 frame
= document
.querySelector('iframe');
16 storage
= frame
.contentWindow
.localStorage
;
17 frame
.parentElement
.removeChild(frame
);
18 shouldThrow("storage.length");
19 shouldThrow("storage.getItem('foo')");
20 shouldThrow("storage.setItem('foo', 'bar')");
21 shouldThrow("storage.key(0)");
22 shouldThrow("storage.clear()");
28 <iframe srcdoc=
""></iframe>