Commit 112ce88
committed
fix(Playwright): Guard _init() to prevent duplicate selector registration
- Only call _init() once per process using defaultSelectorEnginesInitialized flag
- Prevents duplicate selector registration errors in worker processes
- Add error handling for newContext when selectors already registered
Note: Worker processes still have initialization issues (ES Module loader errors)
that are unrelated to selector registration. The BROWSER_RESTART=session with
workers shows selector already registered errors which need further investigation.1 parent 42a975b commit 112ce88
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1180 | 1180 | | |
1181 | 1181 | | |
1182 | 1182 | | |
1183 | | - | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
1184 | 1187 | | |
1185 | 1188 | | |
1186 | 1189 | | |
| |||
0 commit comments