Skip to content

Version >=6.1.3 nonfunctional in Firefox when browser configured to block cookies #2473

@stevenbenner

Description

@stevenbenner

The addon curently fails to detect youtube videos in Firefox when cookies and site data are blocked via the security settings. The sponsorblock toolbar menu displays the following message:

No YouTube video found. If this is incorrect, refresh the tab.

This issues does not occur in versions of the addon prior to 6.1.3.

Reproduction steps

  1. Open browser settings
  2. Go to "Privacy & Security" section
  3. Select "custom" Enhanced Tracking Protection
  4. Make sure that "Cookies" is checked and the blocking level dropdown is set to "All cookies (will cause websites to break)"

Visit a youtube video that has blocked segments and observe that the addon does not function.

Example configuration

Image

Technical notes

I did some basic investigation and found that the addon was producing multiple errors in the console. The first error (and likely root cause) is the following:

uncaught exception: SecurityError: The operation is insecure.
    f                        metadataFetcher.ts:212
    setupMetadataOnRecieve   metadataFetcher.ts:641
    setupVideoModule         video.ts:669
    setupVideoModule         video.ts:107
    6069                     content.ts:122

This error is referencing line 212 in maze-utils/src/metadataFetcher.ts

const channel = new BroadcastChannel("maze-utils:metadata-fetcher");

It's worth noting that Firefox blocks more than cookies in this configuration. It blocks "cookies and site data", which seems to be anything that can save/read data or interact with the local file system in any way (e.g. LocalStorage). I suspect that the BroadcastChannel API is included in this feature blocking. But I didn't dig into the specific APIs that Firefox includes in the list, so am not totally sure about that.

Console output

Image

Workarounds

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions