dpacassi / disable-javascript

Adds the ability to disable JavaScript on specific sites.
MIT License
275 stars 35 forks source link

Security issue: Fails to block JS from webworkers #50

Open telamon opened 5 years ago

telamon commented 5 years ago

Just tried this plugin out after i got tired of no hotkey's in No-script plugin. But disable-javascript failed to block already loaded webworkers, meaning if i temporarily enable JS on a domain and then toggle it off again - Any webworkers registered during that pageload will continue to run unrestricted.

Content Security Policy: Directive ‘child-src’ has been deprecated. Please use directive ‘worker-src’ to 
control workers, or directive ‘frame-src’ to control frames respectively.
dpacassi commented 5 years ago

Hi @telamon!

Thanks for your report. I tried to reproduce the bug you've described but wasn't sucessful. I tried the following:

  1. Visit https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_webworker
  2. Click on "Start Worker"
  3. Disable JS

-> The page gets reloaded with JS disabled, the worker doesn't run.

Could you give me additional information on how to reproduce this bug? I would need:

I will then try to recreate the bug. Thanks for your help!

telamon commented 5 years ago

@dpacassi Thanks for marking it up, I'm trying to remember what page i encountered and replicated this bug on. Should probably have mentioned that in the original post... I'll drop another comment if i encouter it again.