fix(page): resolve navbar show/hide and loading lifecycle failures
Two initialization bugs in page.js prevented the navbar from working:
1. TDZ (temporal dead zone): hideTimer and showSource were declared with
'let' after loadingLifecycle.startLoading() called show(), causing a
ReferenceError that silently aborted module execution. Moved the
declarations before the loadingLifecycle.onChange callback.
2. Unguarded webview methods: updateState() called webview.canGoBack()
during initial startLoading(), before the webview guest was attached.
The thrown error propagated up through startLoading() and prevented
all subsequent code from executing — including event listener
registrations for did-stop-loading, did-finish-load, and pubsub
subscriptions for page:show-navbar and trigger zone hover.
This caused all three reported symptoms:
- Navbar never shown on hover (trigger zone listener never registered)
- Cmd+L never showed navbar (pubsub subscription never registered)
- Loading animation never stopped (did-stop-loading listener never registered)
Added Playwright tests covering navbar show during loading, auto-hide
after load, Cmd+L pubsub show, and trigger zone hover show.