You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Host: browser_viewport_reset returns before the page reads its restored size (Chromium 152 lag) #221
After browser_viewport_reset, a screenshot can still show the old override size. Chromium 152 answers Emulation.clearDeviceMetricsOverride before the page reads its restored size. MAWS measured this in 30-try runs (MAWS run 40311614893; maws-app 40311728565, 40312068417, 40312071190): 8, 1, 5 and 9 reads taken right after the reply still showed the override's 800, and the page caught up within about 80 ms. Setting an override has no such lag.
Goal
browser_viewport_reset in cua's host (src/chrome/host.mjs, sendViewport / setViewport) returns only once the page shows its restored size. After the clear, poll Page.getLayoutMetrics until the size differs from the cleared override's, bounded by a short deadline. When the deadline passes, log what was still outstanding and return; don't fail the reset. MAWS passes browser_viewport_reset through unchanged, so the in-app route gets the fix too.
Edge cases: the reset on a tab that is not attached (only tab.viewport = null is recorded, so there's nothing to wait for); a lost debugger (forgetLostDebugger); and a page whose natural size equals the override, where the size never changes and the poll must end at its bound without logging a false alarm.
Test with the host's fake extension: the clear is answered first, then the reported metrics change some milliseconds later, and the reset must not return before that.
[review-trail] Independent doperpowers:reviewer-medium reviewed 9c57bfa..575b282 for PR #223. One actionable P2: a fixed 24-DIP scrollbar allowance can treat an unchanged overridden viewport with wide/double gutters as restored. Independently reproduced with a 750x600 actual layout under an 800x600 override: reset returned in 0.3 ms before the delayed restoration. Fix wave underway to compare observed pre-clear layout instead; no merge.
[review-trail] Fixed the verified P2 in afb007d. doperpowers:reviewer-medium re-reviewed 575b282..afb007d and returned correct: no material findings; both scrollbar reproductions now wait for restoration. Final head verification: 77/77 host tests; full local suite 3998 passed, 172 skipped, 0 failed with CUA_FEEDBACK_DIR unset. PR #223 remains open and unmerged.
Activity
tracker: the vendor host's reset-lag row points at SSFSKIM/cua#221
In-app browser spec: the pre-release undo waits for the page's size a…
SSFSKIM commentedon Oct 26, 2026
[review-trail] Independent doperpowers:reviewer-medium reviewed 9c57bfa..575b282 for PR #223. One actionable P2: a fixed 24-DIP scrollbar allowance can treat an unchanged overridden viewport with wide/double gutters as restored. Independently reproduced with a 750x600 actual layout under an 800x600 override: reset returned in 0.3 ms before the delayed restoration. Fix wave underway to compare observed pre-clear layout instead; no merge.
SSFSKIM commentedon Oct 26, 2026
[review-trail] Fixed the verified P2 in afb007d. doperpowers:reviewer-medium re-reviewed 575b282..afb007d and returned correct: no material findings; both scrollbar reproductions now wait for restoration. Final head verification: 77/77 host tests; full local suite 3998 passed, 172 skipped, 0 failed with CUA_FEEDBACK_DIR unset. PR #223 remains open and unmerged.
Fix #221: wait for viewport reset layout propagation (#223)
tracker: the vendor host's reset-lag row closed (SSFSKIM/cua#221 fixe…
#171 M1b: cua's own Linux engine released (linux-engine-v0.1.0), inst…
SSFSKIM commentedon Nov 1, 2026
[board] done: finalize: closed by its merged PR; stale in-review label stripped