title: document.hasStorageAccess is not a function
body: <p>I'm trying to use <a href="https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API" rel="nofollow noreferrer">Storage Access API</a> and I'm trying to call <strong>hasStorageAccess()</strong> method like this:</p>
  <pre><code>var promise = document.hasStorageAccess();
  promise.then(
    function (hasAccess) {
      // Boolean hasAccess says whether the document has access or not.
    },
    function (reason) {
      // Promise was rejected for some reason.
    }
  );
  </code></pre>
  <p>But I get an error that says:</p>
  <p>TypeError: document.hasStorageAccess is not a function</p>