Open Bug 1475973 Opened 2 years ago Updated Last year

browser/components/resistfingerprinting/test/browser/browser_roundedWindow_open_* and browser/components/resistfingerprinting/test/browser/browser_roundedWindow_windowSetting_* fail on Windows install with 150% dpi

Categories

(Core :: XUL, defect, P3)

defect

Tracking

()

People

(Reporter: Gijs, Assigned: timhuang)

References

(Blocks 1 open bug)

Details

(Whiteboard: [tor][fingerprinting][fp-triaged])

STR:

1. use standard issue Dell screen with resolution 3840x2160 on Windows 10, and 150% "size of text, apps and other items" in the Windows settings app
2. run ./mach build faster && ./mach mochitest browser/components/resistfingerprinting/test/browser/

ER:

tests pass

AR:
tests have off-by-one errors:


browser/components/resistfingerprinting/test/browser/browser_roundedWindow_open_max_outer.js
  FAIL The screen.width has a correct rounded value - 999 == 1000 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onload:9
  FAIL The window.innerWidth has a correct rounded value - 999 == 1000 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onload:13
  FAIL The screen.width has a correct rounded value - 999 == 1000 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onload:9
  FAIL The window.innerWidth has a correct rounded value - 999 == 1000 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onload:13
  FAIL The screen.width has a correct rounded value - 999 == 1000 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onload:9
  FAIL The window.innerWidth has a correct rounded value - 999 == 1000 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onload:13
browser/components/resistfingerprinting/test/browser/browser_roundedWindow_open_mid_outer.js
  FAIL The screen.width has a correct rounded value - 799 == 600 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onload:9
  FAIL The window.innerWidth has a correct rounded value - 799 == 600 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onload:13
  FAIL The screen.width has a correct rounded value - 599 == 600 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onload:9
  FAIL The window.innerWidth has a correct rounded value - 599 == 600 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onload:13
  FAIL The screen.width has a correct rounded value - 599 == 600 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onload:9
  FAIL The window.innerWidth has a correct rounded value - 599 == 600 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onload:13
browser/components/resistfingerprinting/test/browser/browser_roundedWindow_open_min_outer.js
  FAIL The screen.width has a correct rounded value - 199 == 200 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onload:9
  FAIL The window.innerWidth has a correct rounded value - 199 == 200 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onload:13
  FAIL The screen.width has a correct rounded value - 199 == 200 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onload:9
  FAIL The window.innerWidth has a correct rounded value - 199 == 200 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onload:13
browser/components/resistfingerprinting/test/browser/browser_roundedWindow_windowSetting_max_outer.js
  FAIL The screen.width has a correct rounded value - 1001 == 1000 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onresize:18
  FAIL The window.innerWidth has a correct rounded value - 1001 == 1000 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onresize:20
  FAIL The screen.width has a correct rounded value - 1001 == 1000 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onresize:18
  FAIL The window.innerWidth has a correct rounded value - 1001 == 1000 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onresize:20
  FAIL The screen.width has a correct rounded value - 1001 == 1000 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onresize:18
  FAIL The window.innerWidth has a correct rounded value - 1001 == 1000 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onresize:20
browser/components/resistfingerprinting/test/browser/browser_roundedWindow_windowSetting_mid_outer.js
  FAIL The screen.width has a correct rounded value - 601 == 600 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onresize:18
  FAIL The window.innerWidth has a correct rounded value - 601 == 600 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onresize:20
  FAIL The screen.width has a correct rounded value - 601 == 600 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onresize:18
  FAIL The window.innerWidth has a correct rounded value - 601 == 600 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onresize:20
  FAIL The screen.width has a correct rounded value - 601 == 600 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onresize:18
  FAIL The window.innerWidth has a correct rounded value - 601 == 600 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onresize:20
browser/components/resistfingerprinting/test/browser/browser_roundedWindow_windowSetting_min_outer.js
  FAIL The screen.width has a correct rounded value - 201 == 200 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onresize:18
  FAIL The window.innerWidth has a correct rounded value - 201 == 200 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onresize:20
  FAIL The screen.width has a correct rounded value - 201 == 200 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onresize:18
  FAIL The window.innerWidth has a correct rounded value - 201 == 200 -
Stack trace:
resource://testing-common/content-task.js line 59 > eval:win.onresize:20
Priority: -- → P3
Whiteboard: [tor][fingerprint]
Whiteboard: [tor][fingerprint] → [tor][fingerprinting]
Assignee: nobody → tihuang
Whiteboard: [tor][fingerprinting] → [tor][fingerprinting][fp-triaged]
You need to log in before you can comment on or make changes to this bug.