title: Firefox. InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable
body: <p>Firefox 62.0.2 (64 bit). Windows 7 x64. Write code from <a href="https://developer.mozilla.org/en-US/docs/Web/API/Clients" rel="nofollow noreferrer">this</a> in firebase-messaging-sw.js of our site:</p>
  <pre><code>self.addEventListener('notificationclick', event =&gt; {
      event.waitUntil(async function() {
          throw &quot;1&quot;;//this line for debug only
      }());
  });
  </code></pre>
  <p>Code raise exception &quot;InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable&quot; in Firefox on the event.waitUntil(). In Chrome work normally. Why? How I can fix it?</p>
  <p>P.S. I am looking for the answer of the second day. :(</p>