Open Bug 1511941 Opened 11 months ago Updated Last month

privacy.resistfingerprinting performance API spoofing breaks vimeo.com

Categories

(Core :: DOM: Core & HTML, defect, P2)

65 Branch
defect

Tracking

()

Tracking Status
firefox65 --- affected

People

(Reporter: ke5trel, Assigned: ethan)

References

(Blocks 1 open bug, Regression, )

Details

(Keywords: regression, Whiteboard: [fingerprinting][fp-triaged][sci-exclude])

Console error:
> TypeError: t[0] is undefined; can't access its "startTime" property

Code responsible:

d=function() {
  var e = window.performance;
  if (!e)
    return 0;
  if (window.PerformanceNavigationTiming) {
    var t = e.getEntriesByType("navigation");
    return t[0].startTime;
  }
  return e.timing.navigationStart;
}
Oh, this should be easy; we shouldn't expose PerformanceNavigationTiming if we don't support it. We should also check Resource Timing.
Vimeo have fixed it at their end by adding an extra check:

> return t && t.length ? t[0].startTime : 0;
Priority: -- → P2
(In reply to Kestrel from comment #2)
> Vimeo have fixed it at their end by adding an extra check: 
> > return t && t.length ? t[0].startTime : 0;

Does this mean we can close this bug as resolved worksforme?
Flags: needinfo?(ke5trel)
No, I think we should do what I specify in Comment 1 to be spec-compliant.
Flags: needinfo?(ke5trel)
(In reply to Tom Ritter [:tjr] from comment #4)
> No, I think we should do what I specify in Comment 1 to be spec-compliant.

Thanks for clarification.
Assignee: nobody → ettseng
Whiteboard: [fingerprinting] → [fingerprinting][fp-triaged]
Component: DOM → DOM: Core & HTML
Whiteboard: [fingerprinting][fp-triaged] → [fingerprinting][fp-triaged][sci-exclude]
No longer blocks: 1369303
Keywords: regression
Regressed by: 1369303
You need to log in before you can comment on or make changes to this bug.