nikwen

#49706: feat: add support for long-animation-frame script attribution

Merged
Created: Feb 6, 2026, 1:59:48 PM
Merged: Feb 11, 2026, 11:34:23 AM
10 comments
Target: main

Description of Change

Fixes #47630.

Backports https://crrev.com/c/7510894 (minus the test changes) and adds an Electron-specific test.

The change is guarded behind the AlwaysLogLOAFURL Chromium feature (--enable-features=AlwaysLogLOAFURL), which is disabled by default. Thus, the change is very low risk and safe to backport.

The backported CL makes it possible to get script attribution for long-animation-frame PerformanceObserver events in Electron apps.

long-animation-frame events can be used to debug UI freezes. Script attribution via the sourceURL attribute lets the application developer figure out which script is slow.

By default, script attribution is only available for http(s), blob, and data URLs. Electron apps use file:// or custom protocols. Hence, this feature is needed to get script attribution working in Electron apps.

Checklist

Release Notes

Notes: Added support for long-animation-frame script attribution (via --enable-features=AlwaysLogLOAFURL).


Image

Backports

39-x-y
Merged
PR Number
#49771
Merged At
Feb 18, 2026, 3:19:22 PM
Released In
v39.7.0
Release Date
Feb 24, 2026, 4:00:33 PM
40-x-y
Merged
PR Number
#49772
Merged At
Feb 18, 2026, 1:22:00 PM
Released In
v40.5.0
Release Date
Feb 18, 2026, 2:43:04 PM
41-x-y
Merged
PR Number
#49773
Merged At
Feb 18, 2026, 2:00:08 PM
Released In
v41.0.0-beta.4
Release Date
Feb 19, 2026, 7:31:36 AM

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron