The redraw comes from renderProviders, for example when an account's
allowance read lands (loginUsageOf). It drew a subscription's "Move to
the plugin" field again from the provider alone. Midway through a move,
the button then said "Move to the plugin" again and took presses: a
second move could start while the first ran. A failure that came after
the redraw was said into the old field, which was gone, so the user saw
nothing.
renderMove now keeps the running move's label, and a failure's reason,
per provider in moveSaid. A redraw draws both again. A failure that lands
after a redraw redraws the providers, so the reason shows in the field
on screen.
Found while chasing #2431 (plugin-move's editor scrolls 23px in WebKit).
That shift was not reproduced: 16 loaded WebKit runs were green, and so
were injected late usage, late icons, a busy main thread and a forced
chain. The findings are on the issue. This doesn't close#2431.
plugin-move.test.cjs now redraws mid-move and after a failure.
- Broken by hand: without moveSaid it is red 4 of 4, both engines.
The errors are "a redraw mid-move forgot the move" and "a redraw
forgot why the move failed".
- With the fix: 8 of 8 green, 3 runs.
Review: a failure said is kept only while the move's state is the one it
failed from, so a move that lands another way (the hourly hand-over)
doesn't keep showing it. plugin-move*, fonts: 56/56 in both engines after.
Full suite: node --test --test-concurrency=4 internal/gui/tests/*.test.cjs
(chromium and webkit) on a61a6f954 with all three of these commits'
changes: 10655 tests, 10616 pass, 39 fail, all in 16 top-level tests.
Each of their files was then run alone:
- green alone on origin/main 008571462 and on this tree (load):
import-link-gemini, market-have, plugin-page, readable-focus, text-size.
- red alone on main too, filed or commented:
- quota-count-wrap and quota-name-translated: #2228
- s3-sync: #2448
- usage-agents-hide: #2276
- usage-checkin: #2142
- usage-fold: #2163
- tray-usages: #2453, new
After rebasing onto 008571462, these were run again on this tree, alone:
- green: fonts, key-balance-card, plugin-move, i18n-keys.
- still red, the same as main: quota-name-translated, quota-count-wrap, tray-usages.
The full GUI run was not repeated after the rebase.
go test ./internal/gui on 008571462 plus these changes, sandbox HOME:
FAIL. The only failure is TestPanelJoinsFullScreenSpaces, which is #2450
and is red on main too. TestCoreScriptBudget passes.