fix(orchestrator): a view transition skipped by the next switch stays quiet
apply() starts a view transition on every hash change; a quick second switch skips the running one, whose ready promise then rejected with an unhandled AbortError, which the presence e2e counted as a page error in Chromium and Firefox. The skip is expected, so its AbortError is caught; every other ready failure is rethrown and still surfaces. 🎯 Fix: 92 % 💥 Break: 2 % 💸 Cost: 100 % ⏱️ Time: 100 % 🛡️ Security: 100 % 🏆 Score: 90 🚦 Gate: ✅ 90/5, cost and time <= 100, security 100 % Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4ab13b6e65
commit
82edf43417
2 files changed
+43
-2
No files matched your search
@@ -37,7 +37,11 @@
|
||||
ui.views[route.screen] = route.view;
|
||||
}
|
||||
if (document.startViewTransition && drawn.screen && !calm.matches) {
|
||||
document.startViewTransition(() => render(true));
|
||||
document.startViewTransition(() => render(true)).ready.catch((error) => {
|
||||
if (error.name !== "AbortError") {
|
||||
throw error;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
render(true);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user