[Problem/Bug]: -webkit-app-region: drag causes severe window resize blocking when layout animations exist
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- web-dev
- Ambito
- desktop
Direzione di ricerca
Start by reproducing the reported resize stall in a WebView2 window with -webkit-app-region: drag and layout animations, then compare with the host-side drag implementation described in the issue. The payload names no repository files or tests, so the first step is to identify the WebView2 component responsible for drag-region geometry updates. Done means live resizing no longer blocks on each intermediate drag-region recalculation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
When using -webkit-app-region: drag together with CSS layout animations / transitions in WebView2, live window resizing (dragging window border) suffers from heavy blocking: window size stops updating for a while, then jumps to catch up with mouse. This is not ordinary frame drop; it blocks the native window sizing pipeline.
Reproduction steps
- Create a WebView2 window with custom titlebar.
- Mark titlebar element with
style="-webkit-app-region: drag". - Add layout animations / transform / expand-collapse transitions inside the page.
- Drag the window border continuously to resize.
Observed behavior
- Window geometry update stalls during resize.
- In our real test, the maximum blocking time of a single resize update reached ~453 ms.
- The freeze happens only when
-webkit-app-region: dragis active on animated elements. - After switching to our native window drag implementation (outside WebView CSS), the worst-case latency dropped to ~9.6 ms.
Expected behavior
The native window resize pipeline should not be blocked by internal web layout / animation work of drag regions.
Suggestion
Defer the layout calculation of -webkit-app-region: drag areas during live resizing.
Do not recalculate / recompute drag-region geometry on every intermediate resize tick.
Only update the drag region bounds after the resize operation finishes (on resize end).
Additional context
This issue blocks custom titlebar frameworks built on WebView2. For our project JadeView, we are forced to abandon -webkit-app-region: drag entirely and implement our own drag hit-test in host code to avoid this blocking bug.
Environment: Windows 11, latest WebView2 156.0.4314.42.
- Lingua principale
- PowerShell
- Stelle
- 526
- Fork
- 70
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
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 ·
-
[Problem/Bug]: Runtime 157 suppresses <input type="file"> in Outlook add-in task panes ("top-level window size is smaller than the minimum required size (400x300)")Forse già presa @ambikakunnath l’ha presa 1 giorno fa. Apertaregression
MicrosoftEdge/WebView2Feedback#5797 · 1 assegnatario ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
MicrosoftEdge/WebView2Feedback#5796 ·
-
[Problem/Bug]: PDF viewer fails on inline page dictionaries in /Kids; standalone WPF reproductionApertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
MicrosoftEdge/WebView2Feedback#5795 · 2 commenti ·
-
[Problem/Bug]: Standalone Microsoft Edge 156.0.4314.58 (stable) still triggers a failed interactive logon (4625, 0xC000006A) per new headless browser root process and can lock a local Windows account (4740); WebView2 156 fix does not cover itForse già presa @prija-microsoft l’ha presa 2 giorni fa. Apertaregression
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
MicrosoftEdge/WebView2Feedback#5794 · 1 assegnatario ·
Tutte le issue di MicrosoftEdge/WebView2Feedback
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NousResearch/hermes-agent#151154 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug: on hover a tab's name in Cra stops ~16 pt short of Arc's, with 24 pt of air before the ✕Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
VictorKildahl/cra#243 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
bggRGjQaUbCoE/PiliPlus#3522 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
desktop v3 windows
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
esengine/DeepSeek-Reasonix#15016 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno