Closed Bug 2071172 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62610 - Enable InitiatorUrl for worker scripts.

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 62610 into mozilla-central (this bug is closed when the sync is complete).

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

Guohui Deng <guohuideng@microsoft.com> wrote:

Enable InitiatorUrl for worker scripts.

Only for dedicated workers, because shared workers don't emit
PerformanceResourceTiming entries.

When a dedicated worker is created, DedicatedWorker::Start() obtains the
initiator URL from task attribution. The URL is carried through
GlobalScopeCreationParams to DedicatedWorkerGlobalScope and copied into
FetchParameters for classic and module top-level script
loads.WorkerMainScriptLoader then transfers it to ResourceTimingInfo
before publishing the worker script's PerformanceResourceTiming entry.

Bug: 40919714
Change-Id: I6f263d764974267254a912d1a158c452281c7c2e
Reviewed-on: https://chromium-review.googlesource.com/8274745
WPT-Export-Revision: c4e76e94c8ffc483db1e533708c7a4263b56e3cd

Component: web-platform-tests → DOM: Performance APIs
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 37 tests and 1 subtests

Status Summary

Firefox

OK : 1[GitHub] 37[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 6[GitHub] 79[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 1
FAIL: 6

Safari

OK : 1
FAIL: 6

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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.