WebPanel: fix round 2 (unresponsive reset, foreground gate, clipboard, Open rollback)
- Reset the unresponsive counter on teardown, on each new open and on navigation completed; harness check UnresponsiveCountResetsPerOpen. - Show only calls SetForegroundWindow when our process holds the foreground. - ClipboardRead permission is denied for about:blank. - Open rolls back live handle and status fields if the STA thread fails to start. - State struct minimum size is 28 on both platforms; test asserts it unguarded. - Harness Escape message reports game key count as informational. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
388f3fd908
commit
ba7d96c7d9
5 changed files with 54 additions and 5 deletions
|
|
@ -55,6 +55,7 @@ public static unsafe class PayloadEntry
|
|||
public static bool ThreadRunning => _host!.ThreadRunningForTests;
|
||||
public static bool PanelOpen => _host!.PanelOpenForTests;
|
||||
public static bool FailHandle(int handle) => _host!.FailForTests(handle);
|
||||
public static bool ReportUnresponsive() => _host!.UnresponsiveForTests();
|
||||
|
||||
public static string ProfileFolder(string world, string key) => WebPanelProfile.Folder(_env!.LocalAppData, world, key);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue