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
- Open browser settings
- Go to "Privacy & Security" section
- Select "custom" Enhanced Tracking Protection
- 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
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
Workarounds
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:
This issues does not occur in versions of the addon prior to 6.1.3.
Reproduction steps
Visit a youtube video that has blocked segments and observe that the addon does not function.
Example configuration
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:
This error is referencing line 212 in
maze-utils/src/metadataFetcher.tsIt'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 theBroadcastChannelAPI 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
Workarounds