Bringing the shields down without first turning “Block scripts” off makes it impossible to register a service worker.
- Navigate to “https://googlechrome.github.io/samples/service-worker/custom-offline-page/” with the shields up and “Block scripts” on: the page tries to register a service worker, but the service worker cannot be registered. This is expected, since the scripts are blocked.
- Turn “Block scripts” off and reload the page: the service worker is registered; this is expected, since the scripts are not blocked.
- Finally, unregister the service worker, turn “Block scripts” on, bring the shields down and reload the page: the service worker registration fails with the message “Failed to register a ServiceWorker …: The user denied permission to use Service Worker.”
Since scripts are not blocked when the shields are down, wouldn’t the expected result be that the service worker be registered?
Version 1.77.100 Chromium: 135.0.7049.100 (Official Build) (64-bit)