Closed Bug 1621677 Opened 5 years ago Closed 4 years ago

Have some mochitest or wpt tests to ensure getting a correct precision when a page is Cross Origin Isolated

Categories

(Core :: DOM: Core & HTML, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: tt, Assigned: tt)

References

Details

Attachments

(2 files)

See https://phabricator.services.mozilla.com/D63293?id=235976#inline-388555. I quote (2) here:
"Make sure that when a page is Cross Origin Isolated, you are getting the correct (higher) precision. This would be a mochitest or a browser-chrome test and probably can be built by taking the existing precision tests and duplicating them (ew :( ) into a test that correctly sets the headers to get it isolated. (and then editing the tests.)"

And, another quote from Tom Ritter's suggestion:
"We are affecting much more than that single API, so we have a slurry of tests, including
https://searchfox.org/mozilla-central/source/browser/components/resistfingerprinting/test/browser/browser_performanceAPI.js
https://searchfox.org/mozilla-central/source/browser/components/resistfingerprinting/test/mochitest/test_reduce_time_precision.html <- specifically includes performance.now
https://searchfox.org/mozilla-central/source/browser/components/resistfingerprinting/test/mochitest/test_animation_api.html
https://searchfox.org/mozilla-central/source/browser/components/resistfingerprinting/test/browser/file_workerPerformance.js
https://searchfox.org/mozilla-central/source/dom/performance/tests/test_performance_navigation_timing.html"

Priority: -- → P3
Severity: normal → S3
Pushed by ttung@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1b229ed848c8 Add a test to ensure we get higher time precision when it's cross-origin-isolated; r=tjr

(In reply to Tom Tung [:tt, :ttung] from comment #3)

I will check https://searchfox.org/mozilla-central/source/browser/components/resistfingerprinting/test/mochitest/test_animation_api.html and https://searchfox.org/mozilla-central/source/dom/performance/tests/test_performance_navigation_timing.html.

D78898 should cover the others in comment 0.

Hmm, it seems that things in dom/performance/tests/test_performance_navigation_timing.html should be covered by browser/components/resistfingerprinting/test/browser/browser_performanceAPI.js

D79475 should cover test_animation_api.html

remove the flag since we can close this ticket once D79475 is landed.

Keywords: leave-open
Pushed by ttung@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e459bd0a9c55 Add a test case for animation to ensure we get higher time precision when it's cross-origin-isolated; r=tjr
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
Regressions: 1645495
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: