19 Commits

Author SHA1 Message Date
Dmitry Gozman
fd7d249ed4
chore: cleanup runtimeGuid and other builtins bits (#36035) 2025-05-21 22:10:41 +01:00
Dmitry Gozman
6af41232b8
chore: evaluate UtilityScript lazily (#36019) 2025-05-21 14:45:50 +01:00
Dmitry Gozman
d57f194693
chore: extract page bindings controller from UtilityScript (#35996) 2025-05-20 13:43:46 +01:00
Dmitry Gozman
67d7bde959
chore: minor cleanups after builtins rework (#35809) 2025-05-01 08:57:06 +01:00
Dmitry Gozman
3b0135411e
chore: inject builtins through esbuild (#35800) 2025-04-29 20:07:06 +01:00
Dmitry Gozman
4c796a3b12
chore: compile storage script (#35753) 2025-04-25 16:23:04 +01:00
Pavel Feldman
e6426a934d
chore: bake consoleApi into injected script (#35672) 2025-04-22 14:23:40 -07:00
Yury Semikhatsky
b8a0d5f6cd
chore: move injected scripts into packages/injected (#35483) 2025-04-03 16:09:03 -07:00
Pavel Feldman
0cdc7ee1a3
chore: extract polling recorder (#32749)
We are reusing recorder in a snapshot tab, no need for the polling
harness to be there.
2024-09-23 08:42:18 -07:00
Dmitry Gozman
cdcaa7fab6
feat: routeWebSocket (#32675)
This introduces `WebSocketRoute` class and
`page/context.routeWebSocket()` methods.
2024-09-20 03:20:06 -07:00
Pavel Feldman
826343b8a0
chore: rename fakeTimers to clock (#31193) 2024-06-06 15:56:13 -07:00
Pavel Feldman
170c457a61
feat(timers): a stab at fake timers (#31075) 2024-05-30 09:38:27 -07:00
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
Pavel Feldman
bbe26dbdbb
chore: build import registry source (#28978) 2024-01-14 08:41:40 -08:00
Dmitry Gozman
2afd857642
chore: prepare to use codemirror in recorder (#28025) 2023-11-07 20:49:03 -08:00
Pavel Feldman
47427e87ec
chore: do not use module.exports in the injected esm files (#21412)
Follow up to #17145
2023-03-05 20:01:35 -08:00
Yury Semikhatsky
fbf9ca5316
fix: avoid using builtins in injected script bundles (#17145) 2022-09-06 17:25:02 -07:00
Pavel Feldman
f0156d057e
chore: flatten supplements (#13437) 2022-04-08 12:52:40 -07:00
Pavel Feldman
1961959dcb
chore: migrate injected scripts to esbuild (#13143) 2022-03-28 23:10:17 -07:00