mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
feat: add support for long-animation-frame script attribution (#49772)
* feat: add support for `long-animation-frame` script attribution Co-authored-by: Niklas Wenzel <dev@nikwen.de> * docs: document `AlwaysLogLOAFURL` Co-authored-by: Niklas Wenzel <dev@nikwen.de> * chore: add test Co-authored-by: Niklas Wenzel <dev@nikwen.de> * docs: adjust docs as per PR comment Co-authored-by: Niklas Wenzel <dev@nikwen.de> * fix: test failures Co-authored-by: Niklas Wenzel <dev@nikwen.de> * chore: simplify test Co-authored-by: Niklas Wenzel <dev@nikwen.de> * fix: tests on Windows and Linux Co-authored-by: Niklas Wenzel <dev@nikwen.de> * chore: fixup patches --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Niklas Wenzel <dev@nikwen.de>
This commit is contained in:
@@ -366,6 +366,13 @@ Keep in mind that standalone switches can sometimes be split into individual fea
|
||||
|
||||
Finally, you'll need to ensure that the version of Chromium in Electron matches the version of the browser you're using to cross-reference the switches.
|
||||
|
||||
### Chromium features relevant to Electron apps
|
||||
|
||||
* `AlwaysLogLOAFURL`: enables script attribution for
|
||||
[`long-animation-frame`](https://developer.mozilla.org/en-US/docs/Web/API/Performance_API/Long_animation_frame_timing)
|
||||
`PerformanceObserver` events for non-http(s), non-data, non-blob URLs (such as `file:` or custom
|
||||
protocol URLs).
|
||||
|
||||
[app]: app.md
|
||||
[append-switch]: command-line.md#commandlineappendswitchswitch-value
|
||||
[debugging-main-process]: ../tutorial/debugging-main-process.md
|
||||
|
||||
Reference in New Issue
Block a user