Skip to content

Service workers cannot be disabled in Canary #1562

@superpoincare

Description

@superpoincare

Prerequisites

  • I verified that this is not a filter issue
  • This is not a support issue or a question
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue
    • Your issue may already be reported.
  • I tried to reproduce the issue when...
    • uBlock Origin is the only extension
    • uBlock Origin with default lists/settings
    • using a new, unmodified browser profile
  • I am running the latest version of uBlock Origin
  • I checked the documentation to understand that the issue I report is not a normal behavior

Description

On Chrome Canary, service workers can't be blocked by the filter $csp=worker-src 'none'

A specific URL where the issue occurs

https://www.youtube.com/

Steps to Reproduce

  1. On a fresh install of Chrome Canary with uBO installed, add this filter $csp=worker-src 'none'
  2. In advanced settings, change suspendTabsUntilReady to yes (as described here)
  3. Visit YouTube.

Expected behavior:

Service worker is not loaded. In Chrome stable this is working fine.

Actual behavior:

Service worker gets loaded as can be seen in developer tools.

Your environment

  • uBlock Origin version: v1.34.0
  • Browser Name and version: Version 92.0.4483.0 (Official Build) canary (64-bit)
  • Operating System and version: Windows 10 Home Single Language, 20H2, OS build: 19042.928

Metadata

Metadata

Assignees

No one assigned

    Labels

    Chromiumspecific to Chromium/Chromeexternalissue involving an external factorinvalidnot a uBlock issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions