Closed Bug 1713764 Opened 4 years ago Closed 3 years ago

Intermittent [TV] browser/components/resistfingerprinting/test/browser/browser_navigator.js | Checking default navigator.userAgent. - Got "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0", expected "Mozilla/5.0 (Windows NT

Categories

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

x86
Windows
defect

Tracking

()

RESOLVED INCOMPLETE
Tracking Status
firefox98 --- wontfix
firefox99 --- wontfix
firefox100 --- wontfix
firefox101 --- wontfix
firefox102 --- wontfix

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure)

Filed by: dluca [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=341374446&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/MSPHcAl_TECp9TD9oyPH2g/runs/0/artifacts/public/logs/live_backing.log
Reftest URL: https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/MSPHcAl_TECp9TD9oyPH2g/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1


INFO - TEST-START | browser/components/resistfingerprinting/test/browser/browser_navigator.js
[task 2021-06-01T04:31:33.625Z] 04:31:33     INFO - TEST-INFO | started process screenshot
[task 2021-06-01T04:31:33.724Z] 04:31:33     INFO - TEST-INFO | screenshot: exit 0
[task 2021-06-01T04:31:33.724Z] 04:31:33     INFO - Buffered messages logged at 04:31:33
[task 2021-06-01T04:31:33.725Z] 04:31:33     INFO - Entering test bound setupDefaultUserAgent
[task 2021-06-01T04:31:33.725Z] 04:31:33     INFO - Leaving test bound setupDefaultUserAgent
[task 2021-06-01T04:31:33.725Z] 04:31:33     INFO - Entering test bound runDefaultNavigatorTest
[task 2021-06-01T04:31:33.726Z] 04:31:33     INFO - TEST-PASS | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Checking default navigator.appVersion. - 
[task 2021-06-01T04:31:33.726Z] 04:31:33     INFO - TEST-PASS | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Checking default navigator.platform. - 
[task 2021-06-01T04:31:33.727Z] 04:31:33     INFO - Buffered messages finished
[task 2021-06-01T04:31:33.727Z] 04:31:33     INFO - TEST-UNEXPECTED-FAIL | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Checking default navigator.userAgent. - Got "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0", expected "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
[task 2021-06-01T04:31:33.727Z] 04:31:33     INFO - Stack trace:
[task 2021-06-01T04:31:33.728Z] 04:31:33     INFO - chrome://mochikit/content/browser-test.js:test_is:1362
[task 2021-06-01T04:31:33.728Z] 04:31:33     INFO - chrome://mochitests/content/browser/browser/components/resistfingerprinting/test/browser/browser_navigator.js:testNavigator:197
[task 2021-06-01T04:31:33.729Z] 04:31:33     INFO - TEST-PASS | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Navigator.mimeTypes has a length of 0. - 
[task 2021-06-01T04:31:33.729Z] 04:31:33     INFO - TEST-PASS | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Navigator.plugins has a length of 0. - 
[task 2021-06-01T04:31:33.729Z] 04:31:33     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-01T04:31:33.729Z] 04:31:33     INFO - TEST-UNEXPECTED-FAIL | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Checking default navigator.oscpu. - Got "Windows NT 10.0; Win64; x64", expected "Windows NT 10.0"
[task 2021-06-01T04:31:33.729Z] 04:31:33     INFO - Stack trace:
[task 2021-06-01T04:31:33.729Z] 04:31:33     INFO - chrome://mochikit/content/browser-test.js:test_is:1362
[task 2021-06-01T04:31:33.729Z] 04:31:33     INFO - chrome://mochitests/content/browser/browser/components/resistfingerprinting/test/browser/browser_navigator.js:testNavigator:204
[task 2021-06-01T04:31:33.730Z] 04:31:33     INFO - TEST-PASS | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Checking default navigator.hardwareConcurrency. - 
[task 2021-06-01T04:31:33.730Z] 04:31:33     INFO - TEST-PASS | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Navigator.appCodeName reports correct constant value. - 
[task 2021-06-01T04:31:33.730Z] 04:31:33     INFO - TEST-PASS | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Navigator.appName reports correct constant value. - 
[task 2021-06-01T04:31:33.730Z] 04:31:33     INFO - TEST-PASS | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Navigator.product reports correct constant value. - 
[task 2021-06-01T04:31:33.730Z] 04:31:33     INFO - TEST-PASS | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Navigator.productSub reports correct constant value. - 
[task 2021-06-01T04:31:33.730Z] 04:31:33     INFO - TEST-PASS | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Navigator.vendor reports correct constant value. - 
[task 2021-06-01T04:31:33.730Z] 04:31:33     INFO - TEST-PASS | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Navigator.vendorSub reports correct constant value. - 
[task 2021-06-01T04:31:33.731Z] 04:31:33     INFO - Leaving test bound runDefaultNavigatorTest
[task 2021-06-01T04:31:33.731Z] 04:31:33     INFO - Entering test bound runDefaultHTTPHeaderTest
[task 2021-06-01T04:31:33.944Z] 04:31:33     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-01T04:31:33.944Z] 04:31:33     INFO - TEST-UNEXPECTED-FAIL | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Checking default User Agent HTTP Header. - Got "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0", expected "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
[task 2021-06-01T04:31:33.944Z] 04:31:33     INFO - Stack trace:
[task 2021-06-01T04:31:33.944Z] 04:31:33     INFO - chrome://mochikit/content/browser-test.js:test_is:1362
[task 2021-06-01T04:31:33.944Z] 04:31:33     INFO - chrome://mochitests/content/browser/browser/components/resistfingerprinting/test/browser/browser_navigator.js:testUserAgentHeader:163
[task 2021-06-01T04:31:33.953Z] 04:31:33     INFO - Leaving test bound runDefaultHTTPHeaderTest
[task 2021-06-01T04:31:33.953Z] 04:31:33     INFO - Entering test bound runDefaultWorkerNavigatorTest
[task 2021-06-01T04:31:34.294Z] 04:31:34     INFO - TEST-PASS | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Checking default navigator.appVersion. - 
[task 2021-06-01T04:31:34.295Z] 04:31:34     INFO - TEST-PASS | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Checking default navigator.platform. - 
[task 2021-06-01T04:31:34.295Z] 04:31:34     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-01T04:31:34.295Z] 04:31:34     INFO - TEST-UNEXPECTED-FAIL | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Checking default navigator.userAgent. - Got "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0", expected "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
[task 2021-06-01T04:31:34.296Z] 04:31:34     INFO - Stack trace:
[task 2021-06-01T04:31:34.296Z] 04:31:34     INFO - chrome://mochikit/content/browser-test.js:test_is:1362
[task 2021-06-01T04:31:34.296Z] 04:31:34     INFO - chrome://mochitests/content/browser/browser/components/resistfingerprinting/test/browser/browser_navigator.js:testWorkerNavigator:289
[task 2021-06-01T04:31:34.296Z] 04:31:34     INFO - TEST-PASS | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Checking default navigator.hardwareConcurrency. - 
[task 2021-06-01T04:31:34.296Z] 04:31:34     INFO - TEST-PASS | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Navigator.appCodeName reports correct constant value. - 
[task 2021-06-01T04:31:34.296Z] 04:31:34     INFO - TEST-PASS | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Navigator.appName reports correct constant value. - 
[task 2021-06-01T04:31:34.296Z] 04:31:34     INFO - TEST-PASS | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Navigator.product reports correct constant value. - 
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---

This test verifies whether privacy.resistFingerprinting works correctly in Service Workers. In this test failure, all the navigator values are spoofed correctly back privacy.resistFingerprinting in the Service Worker except navigator.userAgent.

Is WorkerNavigator::GetUserAgent or Navigator::GetUserAgent not seeing the privacy.resistFingerprinting pref value in the Service Worker?

Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
See Also: → 1752277
OS: Unspecified → Windows
See Also: → 1719070
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Summary: Intermittent [TV] browser/components/resistfingerprinting/test/browser/browser_navigator.js | Checking default navigator.userAgent. - Got "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0", expected "Mozilla/5.0... → Intermittent [TV] browser/components/resistfingerprinting/test/browser/browser_navigator.js | Checking default navigator.userAgent. - Got "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0", expected "Mozilla/5.0 (Windows NT

Change the status for beta to have the same as nightly and release.
For more information, please visit auto_nag documentation.

TEST-UNEXPECTED-FAIL | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Checking default navigator.oscpu. - Got "Windows NT 10.0; Win64; x64", expected "Windows NT 10.0"

This test was running on (32-bit) "Windows 10 x86 2004 WebRender opt", so the only way navigator.oscpu should be returning "Windows NT 10.0; Win64; x64" instead of (32-bit) "Windows NT 10.0" is if resistFingerprinting mode is still enabled when the TV-fis job reruns the test multiple times.

That would probably be a test bug, the test forgetting to popPrefEnv() some temporary resistFingerprinting pref values.

This test is disabled for debug on 32-bit Firefox Windows. These TV failures are from opt on 32-bit Firefox.

[browser_navigator.js]
https_first_disabled = true
skip-if =
  os == "win" && debug && bits == 32  # fails on win10-32/debug

https://searchfox.org/mozilla-central/source/browser/components/resistfingerprinting/test/browser/browser.ini#24-27

Hardware: Unspecified → x86

We test 32-bit Firefox on 32-bit Windows 7 and 64-bit Windows 10. This test fails on 64-bit Windows 10 because 32-bit Firefox's UA string reports "Win64" but the test expects a 32-bit UA. That's a test bug we could fix to handle this WoW64 case. This test would pass on 32-bit Windows 7. On 64-bit Windows, Services.sysinfo.get("arch") returns "x86" in 32-bit Firefox and "x86-64" in 64-bit Firefox.

This test intermittently runs (and fails) 64-bit Windows 10 because test-verify runs the test in a loop and some temporary pref changes might still set when the test runs the second time.

Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → INCOMPLETE

(In reply to Chris Peterson [:cpeterson] from comment #18)

We test 32-bit Firefox on 32-bit Windows 7 and 64-bit Windows 10. This test fails on 64-bit Windows 10 because 32-bit Firefox's UA string reports "Win64" but the test expects a 32-bit UA. That's a test bug we could fix to handle this WoW64 case. This test would pass on 32-bit Windows 7. On 64-bit Windows, Services.sysinfo.get("arch") returns "x86" in 32-bit Firefox and "x86-64" in 64-bit Firefox.

This test intermittently runs (and fails) 64-bit Windows 10 because test-verify runs the test in a loop and some temporary pref changes might still set when the test runs the second time.

tjr disabled this test on win32 in bug 1752907.

Resolution: INCOMPLETE → FIXED
See Also: → 1752907

Since the status are different for nightly and release, what's the status for beta?
For more information, please visit auto_nag documentation.

.

Assignee: nobody → cpeterson
Severity: S4 → N/A
Assignee: cpeterson → nobody
Resolution: FIXED → INCOMPLETE
See Also: → 1841950
You need to log in before you can comment on or make changes to this bug.