chromium/third_party/blink/web_tests/external/wpt/webstorage/resources/session_set_item_iframe.html

<!DOCTYPE HTML>
<html>
 <body>
     <script>
         if (('sessionStorage' in window) && window.sessionStorage !== null){
            try {
                sessionStorage.setItem('name', 'user1');
            } catch (e) {
                parent.fail('setItem method is failed.');
            }
        } else {
            parent.fail('sessionStorage is not supported.');
        }
     </script>
 </body>
</html>