mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-17 16:37:43 +00:00
The USE_REMOTE crash-resume spec reloads Client B mid-sync. While isSyncInProgress is set, startup.service's beforeunload handler calls preventDefault(), so Chrome raises a beforeunload prompt (the preceding button click supplies the user activation it requires). Playwright auto-accepts such prompts only when no 'dialog' listener is registered — but installDevErrorDialogHandler registers one on every page and early- returned on beforeunload, leaving the prompt unanswered. The navigation then never starts and reload() times out (observed on SuperSync shard 6/6; the earlier load→domcontentloaded de-flake could not help because navigation is blocked before any lifecycle event). Accept beforeunload in the shared fallback, restoring Playwright's default; other dialog types keep flowing to spec-specific handlers. Corrects the two crash-resume comments that encoded the wrong theory. |
||
|---|---|---|
| .. | ||
| assertions.ts | ||
| check-webdav.ts | ||
| config-helpers.ts | ||
| e2e-constants.ts | ||
| element-helpers.ts | ||
| index.ts | ||
| legacy-migration-helpers.ts | ||
| recurring-task-helpers.ts | ||
| runtime-errors.ts | ||
| schedule-task-helper.ts | ||
| supersync-assertions.ts | ||
| supersync-helpers.ts | ||
| sync-helpers.ts | ||
| time-input-helper.ts | ||
| waits.ts | ||