mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-27 05:46:28 +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`. |
||
---|---|---|
.. | ||
html-reporter | ||
playwright | ||
playwright-browser-chromium | ||
playwright-browser-firefox | ||
playwright-browser-webkit | ||
playwright-chromium | ||
playwright-core | ||
playwright-ct-core | ||
playwright-ct-react | ||
playwright-ct-react17 | ||
playwright-ct-solid | ||
playwright-ct-svelte | ||
playwright-ct-vue | ||
playwright-ct-vue2 | ||
playwright-firefox | ||
playwright-test | ||
playwright-webkit | ||
protocol/src | ||
recorder | ||
trace/src | ||
trace-viewer | ||
web | ||
.eslintrc-with-ts-config.js | ||
.eslintrc.js |