privacy.resistFingerprinting breaks youtube playback after one minute from beginning due to timezone spoofing (JSDateTimeUTC)
Categories
(Core :: Privacy: Anti-Tracking, 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.
Comment 1•2 days ago
|
||
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.
Comment 2•2 days ago
|
||
| gecko-triage | ||
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:
- Open
about:logging. - Under Log module selection, choose "Media playback" in the Logging preset: drop-down.
- Under Logging output, select "Logging to the Firefox Profiler".
- Click Start Logging.
- Reload the page. Then do the steps that show the problem.
- Click Stop Logging. The profile opens in the Firefox Profiler.
- Click Upload Local Profile. This is the share button.
- 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.
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.
STR:
- Launch latest Nightly 164.0a1 on Ubuntu 26.10 with
privacy.resistFingerprinting = true. - Visit a youtube video.
- Play video for more than 1 minute or skip beyond first minute.
- 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
Comment 5•1 day ago
|
||
The component has been changed since the backlog priority was decided, so we're resetting it.
For more information, please visit BugBot documentation.
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.
Comment 10•3 hours ago
|
||
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
| Reporter | ||
Comment 11•2 hours ago
|
||
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.
Description
•