Skip to content

Conversation

@chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Jan 6, 2026

TaskAttribution is extended to track `initiator-url".

The progress of the "initiatorUrl" reporting after this CL is the below:

A) Supported:

(1) Any static resource from a html file;
(2) Resources fetched in script, in main thread, that's not
an imported script, under the condition that the resource fetch
happens after script loading or beyond a number of common ways
to dispatch an asynchronous call: postTask(); fulfillments of
a promise; queueMicrotask(); requestAnimationFrame();
requestIdleCallback(); setInterval(); setTimeout();
XMLHttpRequest();

B) Not Supported yet but planned:

(1) CSS resources that are initiated from another CSS file;
(2) Script resources that are imported JS;
(3) Resources fetched in the main thread, by the script that are
dispatched via an EventHandler, or a MessageHandler;
(4) Resource fetched by script running in a worker thread;

C) Not planned to support: any rare cases that requires significant
efforts, and any resources fetched via deprecated APIs. Example:

(1) document.write();
(2) Resources fetched in the main thread, by the script that are
dispatched via rarely used asynchronous calls.

In addition, previous tests are re-organized and refactored.

Credit to previous contributor: Some "inline-script" test cases are
merged from(with significant modification):
https://chromium-review.googlesource.com/c/chromium/src/+/4812813 And
For script initiators, TaskAttributionInfo is used according to this
draft CL:
https://chromium-review.googlesource.com/c/chromium/src/+/4931296/21

PERFETTO_TESTS=autoninja -C out/Default perfetto_diff_tests && out/Default/bin/run_perfetto_diff_tests

Bug: 40919714
Change-Id: I125e62d488eec5a85f8afa6cd61c399183c56d86
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6960132
Commit-Queue: Guohui Deng <[email protected]>
Reviewed-by: Scott Haseley <[email protected]>
Reviewed-by: Mikhail Khokhlov <[email protected]>
Reviewed-by: Michal Mocny <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1565205}

TaskAttribution is extended to track `initiator-url".

The progress of the "initiatorUrl" reporting after this CL is the below:

A) Supported:

   (1) Any static resource from a html file;
   (2) Resources fetched in script, in main thread, that's not
   an imported script, under the condition that the resource fetch
   happens after script loading or beyond a number of common ways
   to dispatch an asynchronous call: postTask(); fulfillments of
   a promise; queueMicrotask(); requestAnimationFrame();
   requestIdleCallback(); setInterval(); setTimeout();
   XMLHttpRequest();

B) Not Supported yet but planned:

   (1) CSS resources that are initiated from another CSS file;
   (2) Script resources that are imported JS;
   (3) Resources fetched in the main thread, by the script that are
       dispatched via an EventHandler, or a MessageHandler;
   (4) Resource fetched by script running in a worker thread;

C) Not planned to support: any rare cases that requires significant
   efforts, and any resources fetched via deprecated APIs. Example:

   (1) document.write();
   (2) Resources fetched in the main thread, by the script that are
       dispatched via rarely used asynchronous calls.

In addition, previous tests are re-organized and refactored.

Credit to previous contributor: Some "inline-script" test cases are
merged from(with significant modification):
https://chromium-review.googlesource.com/c/chromium/src/+/4812813 And
For script initiators, TaskAttributionInfo is used according to this
draft CL:
https://chromium-review.googlesource.com/c/chromium/src/+/4931296/21

PERFETTO_TESTS=`autoninja -C out/Default perfetto_diff_tests &&
out/Default/bin/run_perfetto_diff_tests`

Bug: 40919714
Change-Id: I125e62d488eec5a85f8afa6cd61c399183c56d86
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6960132
Commit-Queue: Guohui Deng <[email protected]>
Reviewed-by: Scott Haseley <[email protected]>
Reviewed-by: Mikhail Khokhlov <[email protected]>
Reviewed-by: Michal Mocny <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1565205}
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit c253769 into master Jan 6, 2026
27 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-6960132 branch January 6, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants