Open Bug 2101361 Opened 2 days ago Updated 1 hour ago

privacy.resistFingerprinting breaks youtube playback after one minute from beginning due to timezone spoofing (JSDateTimeUTC)

Categories

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

Firefox 161
x86_64
All
defect

Tracking

()

Tracking Status
firefox164 --- affected

People

(Reporter: bughit.github, Unassigned)

References

(Blocks 2 open bugs)

Details

  • win10, fx 161.0.1, new profile, privacy.resistFingerprinting=true
  • play any yt video longer than a minute
  • 40 - 55 secs in playback stops and the player shows "Something went wrong. Refresh or try again later."
  • this is logged in the console: "WEBGL_debug_renderer_info is deprecated in Firefox and will be removed. Please use RENDERER. base.js:8092:447"

The YT doesn't actually need whatever is failing due to privacy.resistFingerprinting so it's probably possible to spoof it.

OS: Unspecified → Windows 10
Hardware: Unspecified → x86_64

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Audio/Video: Playback
Product: Firefox → Core

Thanks for the clear steps.

Analysis

"Something went wrong. Refresh or try again later." is a message from the YouTube player, not from Firefox. The WEBGL_debug_renderer_info warning shows on every page that asks for that extension, also without privacy.resistFingerprinting, so it does not show the failure. The stop after 40 to 55 seconds can come from a decoder error, or from YouTube that stops sending video data. The spoofed values that RFP gives come from nsRFPService.cpp, which Core :: Privacy: Anti-Tracking owns. This bug is in the YouTube meta bug 1904915.

Next steps

Keep privacy.resistFingerprinting set to true for the capture below. Play a YouTube video until the error shows.

Please capture a profile:

  1. Open about:logging.
  2. Under Log module selection, choose "Media playback" in the Logging preset: drop-down.
  3. Under Logging output, select "Logging to the Firefox Profiler".
  4. Click Start Logging.
  5. Reload the page. Then do the steps that show the problem.
  6. Click Stop Logging. The profile opens in the Firefox Profiler.
  7. Click Upload Local Profile. This is the share button.
  8. Copy the share URL. Add it to this bug.

The instruction video shows these steps.

@bughit.github, could you please also attach the text of about:support to this bug?


If you'd like to provide feedback on this comment, please use the 👍 or 👎 reaction.

Blocks: yt-playback
Severity: -- → S3
Flags: needinfo?(bughit.github)
Priority: -- → P3

Repro the bug, it shouldn't be difficult. I've contributed enough time trying to figure out why it was failing and moving on now.

Flags: needinfo?(bughit.github)

STR:

  1. Launch latest Nightly 164.0a1 on Ubuntu 26.10 with privacy.resistFingerprinting = true.
  2. Visit a youtube video.
  3. Play video for more than 1 minute or skip beyond first minute.
  4. May require clearing cookies and hard reloading page a few times.

Expected:
Playback and skipping works across entire video length.

Actual:
Playback and skipping works within the first 1 minute but fails beyond that.

Spinning wheel appears followed by message:

Something went wrong. Refresh or try again later.

Not a regression on the Firefox side, same problem exists with older builds but only recently started occurring in last few weeks with increasing frequency, likely due to rollout on youtube side.

Using FPP it is possible to reproduce it with only timezone spoofing:

privacy.fingerprintingProtection = true
privacy.fingerprintingProtection.overrides = +JSDateTimeUTC

Workaround for FPP is to exclude timezone spoofing:

privacy.fingerprintingProtection.overrides = +AllTargets,-JSDateTimeUTC

Timezone reported:

Greenwich Mean Time
timeZone  Atlantic/Reykjavik
Blocks: rfp-breakage
Status: UNCONFIRMED → NEW
Component: Audio/Video: Playback → Privacy: Anti-Tracking
Ever confirmed: true
OS: Windows 10 → All
Summary: privacy.resistFingerprinting breaks youtube playback → privacy.resistFingerprinting breaks youtube playback after one minute from beginning due to timezone spoofing (JSDateTimeUTC)

The component has been changed since the backlog priority was decided, so we're resetting it.
For more information, please visit BugBot documentation.

Priority: P3 → --

Incredibly it is the zone, which shouldn't be able to break content. Setting the OS time zone to UTC does not reproduce but RFP and FPP+AllTargets does. So firefox must not be spoofing the zone correctly.

For me, it's actually more complicated than just JSDateTimeUTC.

  • "+AllTargets" reproduces
  • "+AllTargets,-JSDateTimeUTC" doesn't
  • "+JSDateTimeUTC" doesn't

So it looks like interaction of JSDateTimeUTC with something else.

After some more attempts later, I did reproduce with just +JSDateTimeUTC.

And now without any RFP or FFP, with just OS UTC zone. You really have to try hard to create a video player that fails in UTC zone. Impressive work Gemini.

with just OS UTC zone.

RFP doesn't use timeZoneName UTC - it uses Atlantic/Reykjavik, so if you're trying to replicate RFP timezone protection causing anything, at least use the right timeZoneName

so if you're trying to replicate RFP timezone protection causing anything, at least use the right timeZoneName

Atlantic/Reykjavik is UTC+0. The fact that I reproduced with UTC suggests it's the offset that's significant here not the name. Certainly a useful detail, yet somehow you sound annoyed. I am sorry for not realizing that JSDateTimeUTC actually means JSDateTimeReykjavik.

You need to log in before you can comment on or make changes to this bug.