[w3c/ServiceWorker] Avoid executing the code in the All Fetch Listeners Are Empty algorithm. (PR #1676)

This is for stop calling Get for detecting an empty fetch listener.  Benefit of the change is that it won't execute the Javascript, and drawback is that it just ignores an empty fetch listener defined as a handleEvent property.  Since it is rare to configure the fetch event listener with the handleEvent property, not detecting empty function body for it should be negligible coverage reduction.

+@domenic
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/ServiceWorker/pull/1676

-- Commit Summary --

  * Avoid executing the code in the All Fetch Listeners Are Empty algorithm.

-- File Changes --

    M docs/index.bs (5)

-- Patch Links --

https://github.com/w3c/ServiceWorker/pull/1676.patch
https://github.com/w3c/ServiceWorker/pull/1676.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/pull/1676
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/ServiceWorker/pull/1676@github.com>

Received on Monday, 3 April 2023 06:25:23 UTC