Skip to content

fix(windows): stop the example auto-printing on every page load - #10

Merged
Y-PLONI merged 1 commit into
Otzaria:masterfrom
palmoni5:fix/example-no-auto-print
Aug 27, 2026
Merged

fix(windows): stop the example auto-printing on every page load#10
Y-PLONI merged 1 commit into
Otzaria:masterfrom
palmoni5:fix/example-no-auto-print

Conversation

@palmoni5

Copy link
Copy Markdown
Member

Problem

The Windows example's onLoadStop fires a silent printCurrentPage on every navigation. Each run of the example therefore pops the system "Save Print Output As" dialog (or spools a page to the default printer), landing over whatever window happens to be focused. Besides being surprising, the browser-owned dialog sits over the webview area and contaminates any manual testing or input/hit-testing diagnostics run against the example (it skewed several measurements during the Otzaria/otzaria#882 investigation until spotted).

Fix

Remove the auto-print from onLoadStop. Printing remains fully exercised by the example's explicit Print (Silent) / Print (Dialog) buttons, which is also where a demo action belongs — behind user intent.

🤖 Generated with Claude Code

onLoadStop fired a silent printCurrentPage on each navigation, so every
run of the example popped the "Save Print Output As" dialog (or spooled
to the default printer) - over whatever window happened to be focused.
Printing stays fully covered by the example's explicit Print buttons.
@Y-PLONI
Y-PLONI merged commit 9b754b9 into Otzaria:master Aug 27, 2026
1 check passed
@palmoni5
palmoni5 deleted the fix/example-no-auto-print branch August 27, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants