https://github.com/w3c/ServiceWorker/commit/4ce01b53aa96982610c5a671808fae0967b69094#diff-27b79860afe28f01aed4f1f6228367faR1278 added if-else steps in several places in the wrong order, where it probably meant to be checking if *client* is the more specific category (an environment settings object) first, like https://github.com/w3c/ServiceWorker/commit/8b483b091e0f0bae6b698cf05d915c2029748ae0#diff-27b79860afe28f01aed4f1f6228367faR3533 did -- because "if client is an environment" is always true regardless.