<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=7443&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Firefox is playing crap to protect user privacy]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7443</link>
		<description><![CDATA[The most recent posts in Firefox is playing crap to protect user privacy.]]></description>
		<lastBuildDate>Sat, 04 Oct 2025 16:32:31 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Firefox is playing crap to protect user privacy]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=58406#p58406</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Resist Fingerprinting<br /><strong>How to tell if you have Resist Fingerprinting enabled, and if so, disable it</strong><br />_https://support.mozilla.org/en-US/kb/resist-fingerprinting</p><p>To disable Resist Fingerprinting:</p><p>&#160; &#160; Type about:config in the address bar and press Enter.<br />&#160; &#160; A warning page may appear. Click Accept the Risk and Continue to go to the about:config page.<br />&#160; &#160; In the search bar at the top, search for privacy.resistFingerprinting.<br />&#160; &#160; A number of preferences will appear but see if either privacy.resistFingerprinting or privacy.resistFingerprinting.pbMode have a value of true.<br />&#160; &#160; To tell if an extension is controlling this preference, you can click toggle the value back to false and restart your browser. After restarting, visit about:config again, and see if the value has been returned to true. </p><p>If it has been, you will need to determine which of your extensions is controlling the preference and disable or remove them. One way to do this is to disable the installed extensions one by one, and restart the browser, seeing if the preference is changed upon restarting Firefox. Please be aware that, in rare cases, multiple extensions might be setting the preference.</p></div></blockquote></div><p><strong>Resisting Fingerprinting:</strong> By returning a standard sample rate of 44100 Hz when <span class="bbc">aShouldResistFingerprinting</span> is true, the function <span class="bbc">PreferredSampleRate</span> helps maintain user privacy.</p><p><strong>Fingerprinting:</strong> In the context of web technologies, fingerprinting refers to the technique of tracking users based on their device and browser characteristics. The <span class="bbc">aShouldResistFingerprinting</span> parameter suggests a consideration for privacy in audio playback decisions.</p><div class="codebox"><pre><code>$ cat firefox/dom/media/CubebUtils.cpp | grep PreferredSampleRate\(bool -A14
uint32_t PreferredSampleRate(bool aShouldResistFingerprinting) {
  StaticMutexAutoLock lock(sMutex);
  if (sCubebForcedSampleRate) {
    return sCubebForcedSampleRate;
  }
  if (aShouldResistFingerprinting) {
    return 44100;
  }
  if (!InitPreferredSampleRate()) {
    return 44100;
  }
  MOZ_ASSERT(sPreferredSampleRate);
  return sPreferredSampleRate;
}</code></pre></div><div class="quotebox"><blockquote><div><p><strong>Absolute High Resolution Audio Test 32bit Floating Point</strong><br />_https://youtu.be/v5swkCSvryE</p><div class="codebox"><pre><code>[info] Available formats for v5swkCSvryE:
format code  extension  resolution note
249          webm       audio only audio_quality_low   56k , webm_dash container, opus  (48000Hz), 24.97MiB
250          webm       audio only audio_quality_low   74k , webm_dash container, opus  (48000Hz), 32.59MiB
140          m4a        audio only audio_quality_medium  129k , m4a_dash container, mp4a.40.2 (44100Hz), 56.74MiB
251          webm       audio only audio_quality_medium  142k , webm_dash container, opus  (48000Hz), 62.52MiB
...</code></pre></div><div class="codebox"><pre><code>140          m4a        audio (44100Hz), 56.74MiB
251          webm       audio (48000Hz), 62.52MiB</code></pre></div><p>The <span class="bbc">PreferredSampleRate</span> means exactly what it says - it&#039;s the sample rate that is preferred.</p></div></blockquote></div><div class="codebox"><pre><code>$ cat firefox/dom/media/VideoUtils.cpp | grep kSampleRate -A27
uint32_t DecideAudioPlaybackSampleRate(const AudioInfo&amp; aInfo,
                                       bool aShouldResistFingerprinting) {
  bool resampling = StaticPrefs::media_resampling_enabled();

  uint32_t rate = 0;

  if (resampling) {
    rate = 48000;
  } else if (aInfo.mRate &gt;= 44100) {
    // The original rate is of good quality and we want to minimize unecessary
    // resampling, so we let cubeb decide how to resample (if needed). Cap to
    // 384kHz for good measure.
    rate = std::min&lt;unsigned&gt;(aInfo.mRate, 384000u);
  } else {
    // We will resample all data to match cubeb&#039;s preferred sampling rate.
    rate = CubebUtils::PreferredSampleRate(aShouldResistFingerprinting);
    if (rate &gt; 768000) {
      // bogus rate, fall back to something else;
      rate = 48000;
    }
  }
  MOZ_DIAGNOSTIC_ASSERT(rate, &quot;output rate can&#039;t be 0.&quot;);
    
  return rate;
}</code></pre></div><p>Best Audiophile Vocal 24 bit - Hi-Res Music 2025 - Audiophile Voices <br />_https://youtu.be/uO6jfQ5tQHM<br />Absolute High Resolution Audio Test 32bit Floating Point<br />_https://youtu.be/v5swkCSvryE<br />Hi-Res audio 32 bit floating point. Drums, acoustic guitar, bass guitar, trumpet, sax, violin<br />_https://youtu.be/YIHN0XUK2i8</p><div class="quotebox"><blockquote><div><p><strong>One bug report to rule them all</strong><br />_https://dev1galaxy.org/viewtopic.php?pid=58194#p58194</p></div></blockquote></div><div class="quotebox"><blockquote><div><p>_https://bugzilla.mozilla.org/show_bug.cgi?id=1400731<br /> Open Bug 1400731 Opened 8 years ago Updated 2 years ago<br /><strong>sample rate in Firefox limited to 48KHz</strong></p><p>User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0<br />Build ID: 20170917100334</p><p>Steps to reproduce:</p><p>When listen HiRes audio which have sample rate more than 48KHz browser uses 44.1KHz my DAC displayed it.<br />For reproduce you must use Hi-Fi Sublime+ subscription on service qobuz.<br />For example Grace album by Lizz Wright must played in 96KHz.<br /><a href="http://play.qobuz.com/album/0088807202871" rel="nofollow">http://play.qobuz.com/album/0088807202871</a></p><p>P.S. Also you needed pulseaudio 11.0 with enabled &#039;avoid-resampling&#039; option.<br />More detail here: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=57503" rel="nofollow">https://bugs.freedesktop.org/show_bug.cgi?id=57503</a></p><p><span style="color: red"><strong>Actual results:</strong></span></p><p><span style="color: red"><strong>Instead 96KHz browser used 44.1KHz.</strong></span></p><p>Expected results:</p><p>Expected when played flac with sample rate 96KHz browser not limit sample rate</p></div></blockquote></div><p>1. It is not difficult to disable resampling in Firefox.<br />2. Firefox is easy to compile.</p>]]></description>
			<author><![CDATA[dummy@example.com (igorzwx)]]></author>
			<pubDate>Sat, 04 Oct 2025 16:32:31 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=58406#p58406</guid>
		</item>
	</channel>
</rss>
