Issue metadata
Sign in to add a comment
|
Service Worker is started for page, even if JavaScript is blocked |
||||||||||||||||||||||||
Issue descriptionVersion: 50.0.2661.86 OS: Linux What steps will reproduce the problem? (1) Visit a site with JavaScript and a Service Worker, for example https://joelweinberger.us. (2) Confirm that Service Worker has installed. (3) Block JavaScript for that host using content settings or the origin info bubble. (4) Reload site and note that the Service Worker still executes while other scripts are blocked. On https://joelweinberger.us, this can be noted by the console message "Running ServiceWorker" which is logged from the SW, even when JS is blocked, while the "registering service worker..." message only appears when JavaScript is not blocked. What is the expected output? The Service Worker for the origin would not execute if the content setting disables JavaScript for that host. What do you see instead? The Service Worker executes. Please use labels and text to provide additional information.
,
May 3 2016
Joel: Are you still seeing this on canary? Blocking JS and reloading the page was problematic in that some parts of the page still executed while the page kept loading. https://crbug.com/232410 fixed that, and from a brief testing it seems to have fixed this bug too.
,
Jun 1 2016
Moving this nonessential bug to the next milestone. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jul 12 2016
Yes it looks like the SW is not able to execute script when JS is blocked. However, we still do start the worker and it's listed as "running" in DevTools. We might be more clever and bypass starting the worker if JS is blocked.
,
Jul 12 2016
This issue has been moved once and is lower than Pri-1. Removing the milestone. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Aug 12 2016
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by falken@chromium.org
, Apr 27 2016