playwright/packages/trace-viewer
Dmitry Gozman 8e607d509f
fix(recorder): disallow external imports (#29129)
Previously, new `Recorder` instance was given an existing
`InjectedScript`. However, we built a separate source for
`InjectedScript` vs `Recorder`, and both bundles contain their own copy
of all helper modules, e.g. `roleUtils`.

This resulted in two copies of helper modules, which is troublesome for
any module-level globals like a top-level cache. Depending on whether
`Recorder` or `InjectedScript` called into the helper, they would access
the different value of a module global, which lead to bugs.

To prevent this, we force any external dependencies to be imported
through the `InjectedScript.utils`.
2024-01-23 11:29:40 -08:00
..
public chore: use SVG icons for web apps (#26564) 2023-08-21 18:33:02 +02:00
src fix(recorder): disallow external imports (#29129) 2024-01-23 11:29:40 -08:00
.gitignore fix(debug): do not pause on internal calls, update ct docs (#14018) 2022-05-07 19:56:25 -07:00
bundle.js chore: implement pick locator in trace viewer (#20965) 2023-02-17 11:19:53 -08:00
index.html chore: use SVG icons for web apps (#26564) 2023-08-21 18:33:02 +02:00
package.json chore(tv): render error in-line (#21586) 2023-03-10 16:22:19 -08:00
snapshot.html chore: better error for trace viewer over http:// (#27722) 2023-10-23 18:21:19 +02:00
tsconfig.json chore: make @playwright/test depend on playwright (#26946) 2023-09-08 14:23:35 -07:00
tsconfig.node.json chore: migrate trace-viewer and recorder to vite (#13076) 2022-03-25 14:12:00 -07:00
uiMode.html chore: use SVG icons for web apps (#26564) 2023-08-21 18:33:02 +02:00
vite.config.ts chore: make @playwright/test depend on playwright (#26946) 2023-09-08 14:23:35 -07:00
vite.sw.config.ts chore: remove old webpack folder structure (#26560) 2023-08-19 16:16:44 -07:00