exception-order-initial-about-blank-unserializablestate.html (560B)
1 <!doctype html> 2 <script src="/resources/testharness.js"></script> 3 <script src="/resources/testharnessreport.js"></script> 4 <iframe id="iframe"></iframe> 5 6 <script> 7 test(() => { 8 assert_throws_dom("InvalidStateError", iframe.contentWindow.DOMException, () => { 9 iframe.contentWindow.navigation.updateCurrentEntry({ state: document.body }); 10 }); 11 assert_equals(navigation.currentEntry.getState(), undefined); 12 }, `updateCurrentEntry() with unserializable state on the initial about:blank must throw an "InvalidStateError", not a "DataCloneError"`); 13 </script>