mirror of
https://github.com/microsoft/playwright.git
synced 2025-01-08 12:28:46 +03:00
8e607d509f
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`. |
||
---|---|---|
.. | ||
android | ||
assets | ||
components | ||
config | ||
electron | ||
image_tools | ||
installation | ||
library | ||
page | ||
playwright-test | ||
stress | ||
webview2 | ||
.eslintrc.js | ||
index.d.ts | ||
tsconfig.json |