Closed Bug 2072937 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62753 - Clamp profiler sample timestamps based on context isolation status

Categories

(Core :: DOM: Performance APIs, task, P4)

task

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 62753 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/62753
Details from upstream follow.

Mike Taylor <miketaylr@chromium.org> wrote:

Clamp profiler sample timestamps based on context isolation status

ProfilerTraceBuilder::AddSample() previously converted sample timestamps
using a hardcoded cross_origin_isolated_capability parameter set to
true. Consequently, sample timestamps received fine-resolution clamping
even in contexts that were not cross-origin isolated.

This change updates ProfilerTraceBuilder::AddSample() to pass the
builder's is_cross_origin_isolated_ member instead, ensuring timestamp
resolution matches the execution context's actual isolation capability.

TAG=agy

Bug: 511325076
Change-Id: I0ac2aa2c63f7ba177db759784ddced0ac96c4433
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8416487
Reviewed-by: Kouhei Ueno \<kouhei@chromium.org>
Commit-Queue: Mike Taylor \<miketaylr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1699494}

Component: web-platform-tests → DOM: Performance APIs
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
FAIL: 1

Chrome

OK : 1
FAIL: 1

Safari

OK : 1
FAIL: 1

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4fe40c09a9ab https://hg.mozilla.org/integration/autoland/rev/e3e48b62e1e6 [wpt PR 62753] - Clamp profiler sample timestamps based on context isolation status, a=testonly
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.