Closed Bug 2088304 Opened 17 days ago Closed 14 days ago

Twitch fails to load m3u8 on nightly 161

Categories

(Core :: Privacy: Anti-Tracking, defect, P2)

Firefox 161
x86_64
Windows 11
defect

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox-esr153 --- unaffected
firefox159 --- unaffected
firefox160 --- unaffected
firefox161 --- disabled
firefox162 --- fixed

People

(Reporter: bugzilla.agenda865, Assigned: timhuang)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 external file)

Steps to reproduce

Load a twitch stream on Nightly build 2026-11-02-22-14-20
(This was previously working on build 2026-11-02-09-39-42)

Actual results

Any twitch stream, the network tab in dev tools shows that m3u8 files fail to load

Expected results

Stream should play normally.

This does not seem to be an issue on kick.com, m3u8 works. I have verified that this is not a network issue, as the same stream loads properly on firefox stable.

OS: Unspecified → Windows 11
Hardware: Unspecified → x86_64

Thanks for the report! Does the stream load if you turn off Enhanced Tracking Protection for twitch.tv (shield icon)? Are you using Standard or Strict? What status or blocked reason does the failing m3u8 request show in the Network tab?

Flags: needinfo?(bugzilla.agenda865)
See Also: → 2053164

I can reproduce the issue in ETP Strict mode.

The issue is caused by enabling the content classifier on Nightly. The content classifier doesn't get a top-level URI for worker requests. As a result, ttvnw.net requests made from a web worker on twitch.tv get blocked, which shouldn't happen because they are in the same entity.

Assignee: nobody → tihuang
Severity: -- → S2
Status: UNCONFIRMED → ASSIGNED
Component: Audio/Video: Playback → Privacy: Anti-Tracking
Ever confirmed: true
Priority: -- → P2

This patch moves the worker fallback in
UrlClassifierCommon::CreatePairwiseEntityListURI into a new
GetTopWindowURIWithFallback helper and uses it when building a
ContentClassifierRequest. Worker requests have no top window, so the
classifier passed an empty source to the engine and $domain= options were
ignored. For example, ttvnw.net loaded by a worker on twitch.tv was
blocked despite its ~twitch.tv exclusion.

Keywords: regression
Regressed by: 2053164
See Also: 2053164 →
Flags: needinfo?(bugzilla.agenda865)

Set release status flags based on info from the regressing bug 2053164

Duplicate of this bug: 2088926
Pushed by tihuang@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3a9788c1a5f1 https://hg.mozilla.org/integration/autoland/rev/c0fbcbe2f715 Use the URLClassifier's top-window fallback for worker requests in ContentClassifierRequest. r=bvandersloot
Status: ASSIGNED → RESOLVED
Closed: 14 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch

The patch landed in nightly and beta is affected.

:timhuang, please make an uplift decision for beta:

  • For beta, nominate the patch for beta uplift approval if the fix should be included in this release, or set status-firefox161 to wontfix if the fix can wait for the next release.

Uplift requests can be submitted from Lando: D339251.

See Requesting an Uplift for documentation on how to request an uplift.

For more information, please visit BugBot documentation.

Flags: needinfo?(tihuang)

This doesn't affect beta because the issue occurs only on Nightly.

Flags: needinfo?(tihuang)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: