Repository navigation
fix(track,config,ui): harden the Java Access Bridge: SEH containment, step logs, UIPI race, trackJava (#515) - #518
Merged
Conversation
… step logs, UIPI race, trackJava (#515) - Every call into the bridge DLL (Windows_run, set*FP, isJavaWindow, getAccessibleContextWithFocus, getAccessibleTextInfo, getCaretLocation, getAccessibleTextRect, releaseJavaObject), Wind's callback bodies and the tracker's DispatchMessageW go through SEH-only thunks. A fault logs code, address and module, marks the bridge broken for the session (callbacks become no-ops, never called or reloaded) and retires its windows. LoadLibraryExW stays unguarded on purpose (loader lock). - Flushed step logs: DLL path and file version, before/after the load, the message filter, Windows_run, callback registration, the first event, and each Java process's path and bitness on first contact. - UIPI: the bridge messages are allowed process-wide just before Windows_run (a live JVM, as with NVDA, answers at once), then per window on the windows it created, and the process-wide allowance is removed. - New setting trackJava (default 1, "Follow text in Java apps"): 0 never loads the bridge DLL. Config, template, parser, schema, fixture, docs. - Pure helpers FormatFileVersion and kJabFixedMessages with doctest cover. Closes #515 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BjTV6Wj6XLqULZWUmqiVYJ
…ack in its bullet The first-contact JVM path/bitness line is now flushed like the setup steps (the docs already said so), and the MSAA caret sentence moves back to the caret-sources bullet it was split from. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BjTV6Wj6XLqULZWUmqiVYJ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #515. Field report: Wind crashed entering a Java app with NVDA running (NVDA keeps the bridge live in every JVM, so the full bridge path runs inside Wind).
trackJavasetting (default 1, profile key): 0 never loads the bridge. Settings row 'Follow text in Java apps' under caret tracking.Verification:
build.bat,check,test671/671, Playwright 212/212, test:rules pass. Deployed signed UIAccess build: a Swing test app on JDK 21 loaded the bridge (v21.0.12), 7/7 process-wide + 14 per-window allowances, first caret event received, no crash. Not tested with NVDA running.🤖 Generated with Claude Code
https://claude.ai/code/session_01BjTV6Wj6XLqULZWUmqiVYJ