Cancelling a script-initiated navigation in NavigationStarting commits chrome-error://chromewebdata/ instead of leaving the page intact
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 36/100
Direzione di ricerca
The report names WebView2's NavigationStarting cancellation, Playwright's main-frame framenavigated observation, and a local page with meta-refresh, timer navigation, and location.replace cases. Start by reproducing those cases on the stated Windows 11 WebView2 runtime and compare the result with the documented Cancel behavior. Done means cancellation leaves the current page intact, reports OPERATION_CANCELED, and does not leave the refused URL in history.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Windows 11 · WebView2 runtime as shipped with the OS · observed 2026-10-18 (through tauri 2.12 / wry).
A host cancels top-level navigations to origins outside an allow-list (ICoreWebView2NavigationStartingEventArgs::put_Cancel(TRUE)).
- A link the person clicks (user gesture): the page stays — as documented.
- Script-initiated navigation without a user gesture —
<meta http-equiv=refresh>,setTimeout(() => location.href = …),
location.replace(…): the main frame commitschrome-error://chromewebdata/(seen as a main-frameframenavigated
in Playwright). The target server is never reached (norequestfailed, no response seen). The page's state is gone. - Same result whether or not the host also answers the document request in
WebResourceRequested(403 or 204), and
whether or notCancelis set while the request is answered 204 — four variants measured. GoBack()afterwards: forlocation.hrefit reloads the previous entry (in-memory state lost); forlocation.replace
and meta refresh the history holds the cancelled target URL as an entry, so going back navigates to the very URL the
host refused.
Expected (docs for Cancel: "the navigation is not longer present and the content of the current page is intact"):
NavigationCompleted with WebErrorStatus = OPERATION_CANCELED, no error page, current page intact.
Why it matters: a host that shows untrusted content and locks a window to its origins can be pushed onto an error page —
losing what the person typed — just by the page trying to leave, and the history keeps the refused URL.
Repro: a local page with three buttons (meta refresh · timer location.href · location.replace) to an origin outside
the allow-list; the host cancels in NavigationStarting; record main-frame navigations and whether the target server was reached (never).
- Lingua principale
- PowerShell
- Stelle
- 526
- Fork
- 68
- Merge medio
- 15g 5h
- PR unite (30g)
- 1
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MicrosoftEdge/WebView2Feedback
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
MicrosoftEdge/WebView2Feedback#5749 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
MicrosoftEdge/WebView2Feedback#5786 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
MicrosoftEdge/WebView2Feedback#5784 ·
-
[Problem/Bug]:Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 18/100
MicrosoftEdge/WebView2Feedback#5783 ·
-
[Problem/Bug]: WebView2 Runtime 156.x prevents New Outlook attachments from opening, Fixed Runtime 155.0.4283.62 worksForse già presa @ambikakunnath l’ha presa 1 giorno fa. Apertabug regression
MicrosoftEdge/WebView2Feedback#5782 · 2 commenti · 1 assegnatario ·
Tutte le issue di MicrosoftEdge/WebView2Feedback
Issue simili
-
Update ghostty to 1.4.0Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
desktop/desktop#23096 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 91/100
caelestia-dots/caelestia#534 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
GitLab: a merge request closed without merging keeps the Git toolbar on View MR instead of Create MRAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
area/local-models area/sessions comp/gateway P2 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NousResearch/hermes-agent#146253 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno