Skip to content
This repository has been archived by the owner. It is now read-only.

Forbid Web Workers switch doesn't display detected web worker on a specific webpage #22

Closed
uBlock-user opened this issue Jun 12, 2018 · 10 comments

Comments

@uBlock-user
Copy link
Member

@uBlock-user uBlock-user commented Jun 12, 2018

Prerequisites

  • Did you perform a cursory search of the issue tracker?

  • Can you reproduce the problem when...

    • uMatrix is the only extension?
    • uMatrix with default lists/settings?
    • using a new, unmodified browser profile?
  • Are you running the latest version?

  • Did you check the documentation?

Description

On this web workers test page, the Forbid Web Workers switch doesn't display detected web worker when pressed Start Worker from the aformentioned javascript test page, although it successfully blocks any creation of Web Workers as per dev tools in Chromium.

A specific URL where the issue occurs

https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_webworker

Steps to Reproduce

  1. Have no-workers: * true in My Rules.
  2. Browse to https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_webworker and click Start Worker.
  3. Click on the uMatrix icon and notice that's it doesn't display white dotted icon for the Forbid Web Workers switch even though Web Workers were detected and blocked as per dev tools.

Supporting evidence

https://i.gyazo.com/61c9f88bb48c73788065ada49eb8480a.png

Your environment

  • uMatrix version: 1.3.9.1
  • Browser Name and version: Chromium 69
  • Operating System and version: Windows 10
@uBlock-user
Copy link
Member Author

@uBlock-user uBlock-user commented Jun 12, 2018

Can be reproduced on Chromium 67(current stable) too.

@gwarser
Copy link
Member

@gwarser gwarser commented Jun 12, 2018

Firefox says:

Content Security Policy: The report URI (about:blank) should be an HTTP or HTTPS URI.

@gwarser gwarser added bug and removed Chromium labels Jun 12, 2018
@uBlock-user
Copy link
Member Author

@uBlock-user uBlock-user commented Jun 12, 2018

That's normal, Firefox expects a URL instead of about:blank. Also this issue is specific to Chromium, so don't remove the Chromium lable.

@grenzor
Copy link

@grenzor grenzor commented Jun 12, 2018

I don't think it's a Chromium specific issue. I could never see the white dotted icon on Firefox.

@uBlock-user
Copy link
Member Author

@uBlock-user uBlock-user commented Jun 12, 2018

The white dotted icon does appear for me on Firefox Nightly - https://i.gyazo.com/5b9fc6b531dcc71e1fc6db25c23da306.png

Also the issue here is limited to specific listed URL only for Chromium, the white dotted icon does appear normally on all other web pages where workers are deployed.

@grenzor
Copy link

@grenzor grenzor commented Jun 12, 2018

Odd because it doesn't show for me in v61 latest Firefox beta screenshot taken while the counter is running: https://i.imgur.com/mfsiN99.jpg

I've tried to get the white dotted icon to appear in the past when it was added as a feature but I have never seen the dot even on other websites using web workers so I assumed it didn't show because of something with my Firefox setup. But the above image is in a pretty clean profile so unless it was recently fixed in Nightly I don't know.

Anyone else on stable/beta Firefox that can check if the white dotted icon shows for them?

@gorhill
Copy link
Member

@gorhill gorhill commented Jun 12, 2018

I could never see the white dotted icon on Firefox.

In about:config, you need to toggle security.csp.enable_violation_events to true. I confirm the issue does not affect Firefox.

@grenzor
Copy link

@grenzor grenzor commented Jun 12, 2018

Thanks gorhill, now I can see it. I'm guessing the config value is turned on by default in Nightly then.

@gorhill gorhill mentioned this issue Sep 24, 2018
6 of 7 tasks complete
@uBlock-user
Copy link
Member Author

@uBlock-user uBlock-user commented Oct 3, 2019

@uBlock-user uBlock-user added external and removed bug labels Dec 4, 2019
@uBlock-user uBlock-user closed this Dec 4, 2019
@uBlock-user
Copy link
Member Author

@uBlock-user uBlock-user commented Dec 24, 2019

@gorhill Regression in v1.4.1b0 on Firefox, it doesn't display white dotted icon for the Forbid Web Workers switch, neither a blocked entry is seen in the logger.

additional test url- https://mdn.github.io/simple-web-worker/

Edit: White dotted icon for three switches is broken -- Forbid mixed content/Forbid web workers/Spoof noscript tags. Tested at https://www.bennish.net/mixed-content.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.