fix(web): pass screen context to embedded menu operators
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

- Add screen=window.screen to the desktop_operator temp_override and invoke
  repeat-last/history with a VIEW_3D area. repeat_last still requires a WM
  runtime operator stack, which the embedded host does not retain; recorded
  as a residual.
- Refresh WebEngine wasm (58325d97) and record view-layer add/remove and
  repeat-last evidence. Acceptance remains NOT_CLAIMED.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-11-14 06:22:28 +08:00
parent 8101c009d8
commit 03c7e4ac74
9 changed files with 118 additions and 30 deletions

View File

@@ -545,7 +545,7 @@ def desktop_operator(request, *, _invoke=False):
converted[name] = value
return converted
with context.temp_override(window=window, area=target[0], region=target[1]):
with context.temp_override(window=window, screen=window.screen, area=target[0], region=target[1]):
active = context.active_object
if native and point_cache_target is not None and (active is None or active.session_uid != point_cache_target['ownerSessionUid']):
raise RuntimeError('OPERATOR_POINT_CACHE_OWNER_CHANGED')