<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=Auto.WebNav%2FUPGRADING</id>
	<title>Auto.WebNav/UPGRADING - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=Auto.WebNav%2FUPGRADING"/>
	<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Auto.WebNav/UPGRADING&amp;action=history"/>
	<updated>2026-12-05T22:52:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>https://mindattic.com/wiki/docs/index.php?title=Auto.WebNav/UPGRADING&amp;diff=2568&amp;oldid=prev</id>
		<title>Docs Sync: md2wiki: sync from MindAttic.Docs</title>
		<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Auto.WebNav/UPGRADING&amp;diff=2568&amp;oldid=prev"/>
		<updated>2026-12-02T01:13:20Z</updated>

		<summary type="html">&lt;p&gt;md2wiki: sync from MindAttic.Docs&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Upgrading AutoWebNav =&lt;br /&gt;
&lt;br /&gt;
AutoWebNav bumps its major version by one for every release, whether or not the change breaks a consumer (&amp;lt;code&amp;gt;Directory.Build.props&amp;lt;/code&amp;gt;: &amp;quot;Whole-number versioning: major-only bumps&amp;quot;). NuGet caches a package by version, so a consumer only sees a change after it raises its own &amp;lt;code&amp;gt;PackageReference&amp;lt;/code&amp;gt; version. This page lists, for each major version since the library was extracted from Automata, what changed and what a consumer must do about it. Current version: &amp;lt;strong&amp;gt;5.0.0&amp;lt;/strong&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Moving to 5.0.0 ==&lt;br /&gt;
&lt;br /&gt;
Commit [https://github.com/mindattic/AutoWebNav/commit/296b774 &amp;lt;code&amp;gt;296b774&amp;lt;/code&amp;gt;] (AWN-T15).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;What changed:&amp;lt;/strong&amp;gt; &amp;lt;code&amp;gt;OffscreenWebView2Factory&amp;lt;/code&amp;gt; now wires &amp;lt;code&amp;gt;NewWindowRequested&amp;lt;/code&amp;gt; on every off-screen WebView2 controller it creates. A page that opens &amp;lt;code&amp;gt;target=&amp;quot;_blank&amp;quot;&amp;lt;/code&amp;gt; or calls &amp;lt;code&amp;gt;window.open()&amp;lt;/code&amp;gt; used to fall back to WebView2&amp;#039;s own default behaviour — a real, visible, normally-positioned popup window outside the factory&amp;#039;s control, which could steal focus. Now the request is handled and the URL is navigated inside the same off-screen surface instead, so it never produces a visible window.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;Public API:&amp;lt;/strong&amp;gt; unchanged. No type, member or signature was added, removed or changed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;What a consumer must change:&amp;lt;/strong&amp;gt; nothing to compile or call differently. If a consumer&amp;#039;s own code (or a site it drives) relied on that popup actually appearing as a separate native window — for example to find and screenshot it, or to drive it as a second WebView2 host — that code stops working, because the popup no longer exists; the navigation now happens inside the original off-screen surface and its content shows up there instead. No known consumer did this.&lt;br /&gt;
&lt;br /&gt;
== Moving to 4.0.0 ==&lt;br /&gt;
&lt;br /&gt;
Commit [https://github.com/mindattic/AutoWebNav/commit/b1642b5 &amp;lt;code&amp;gt;b1642b5&amp;lt;/code&amp;gt;].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;What changed:&amp;lt;/strong&amp;gt; &amp;lt;code&amp;gt;SessionRecording.Flush&amp;lt;/code&amp;gt; writes the session recording file through &amp;lt;code&amp;gt;MindAttic.Export&amp;lt;/code&amp;gt;&amp;#039;s &amp;lt;code&amp;gt;ArtifactWriter.WriteTextAsync&amp;lt;/code&amp;gt; (atomic, &amp;lt;code&amp;gt;Existing = Overwrite&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;SanitizeName = false&amp;lt;/code&amp;gt;) instead of writing to a &amp;lt;code&amp;gt;.tmp&amp;lt;/code&amp;gt; file and renaming it by hand. The file name now comes from &amp;lt;code&amp;gt;ArtifactNames.Timestamped&amp;lt;/code&amp;gt;. Output is unchanged: the same folder (&amp;lt;code&amp;gt;KnownFolders.Downloads&amp;lt;/code&amp;gt; unless overridden), the same name (&amp;lt;code&amp;gt;&amp;amp;lt;App&amp;gt;-session-&amp;amp;lt;yyyyMMdd-HHmmss&amp;gt;.autowebnav-recording.json&amp;lt;/code&amp;gt;), and byte-identical UTF-8 (no BOM) JSON content.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;Public API:&amp;lt;/strong&amp;gt; unchanged. &amp;lt;code&amp;gt;SessionRecording&amp;lt;/code&amp;gt;&amp;#039;s constructor, &amp;lt;code&amp;gt;AttachAsync&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Dispose&amp;lt;/code&amp;gt; all keep their existing signatures and behaviour.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;New dependency:&amp;lt;/strong&amp;gt; &amp;lt;code&amp;gt;AutoWebNav.WebView2&amp;lt;/code&amp;gt; now carries a &amp;lt;code&amp;gt;PackageReference&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;MindAttic.Export&amp;lt;/code&amp;gt; 3.0.0 and pulls it in transitively.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;What a consumer must change:&amp;lt;/strong&amp;gt; nothing in its own code. The only requirement is that &amp;lt;code&amp;gt;MindAttic.Export&amp;lt;/code&amp;gt; 3.0.0 (or a compatible version) be resolvable from wherever the consumer restores packages (the same local feed, &amp;lt;code&amp;gt;C:\LocalNuGet&amp;lt;/code&amp;gt;, that &amp;lt;code&amp;gt;AutoWebNav.WebView2&amp;lt;/code&amp;gt; itself is packed to) — if the consumer&amp;#039;s own &amp;lt;code&amp;gt;NuGet.config&amp;lt;/code&amp;gt; doesn&amp;#039;t already list that feed, add it, or restore will fail on the new transitive dependency.&lt;br /&gt;
&lt;br /&gt;
== Moving to 3.0.0 ==&lt;br /&gt;
&lt;br /&gt;
Commit [https://github.com/mindattic/AutoWebNav/commit/4d6ad24 &amp;lt;code&amp;gt;4d6ad24&amp;lt;/code&amp;gt;].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;What changed:&amp;lt;/strong&amp;gt; two new types were added to &amp;lt;code&amp;gt;AutoWebNav.WebView2&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;LiveObservation&amp;lt;/code&amp;gt; — one per host app. Opens a local CDP port per WebView2 browser process and registers the app, its PID and its panes&amp;#039; ports in &amp;lt;code&amp;gt;%LocalAppData%\MindAttic\AutoWebNav\instances\&amp;amp;lt;App&amp;gt;-&amp;amp;lt;PID&amp;gt;.json&amp;lt;/code&amp;gt;, so an external observer (&amp;lt;code&amp;gt;tools/awn-observe.mjs&amp;lt;/code&amp;gt;, added in this version) can attach to the running app. Also gives the house window title, &amp;lt;code&amp;gt;WindowTitle&amp;lt;/code&amp;gt; (&amp;quot;&amp;lt;code&amp;gt;&amp;amp;lt;App&amp;gt; - PID: &amp;amp;lt;n&amp;gt;&amp;lt;/code&amp;gt;&amp;quot;). A page may expose &amp;lt;code&amp;gt;window.&amp;amp;#95;_awnObserve = () =&amp;gt; ({ running, summary, log })&amp;lt;/code&amp;gt; so an observer sees the app&amp;#039;s own view of itself; a consumer with a control panel page can add this, but doesn&amp;#039;t have to.&lt;br /&gt;
* &amp;lt;code&amp;gt;SessionRecording&amp;lt;/code&amp;gt; — Spectator Mode, always on once attached to a pane. Every click, typed value (passwords masked), selection, upload and navigation — by the person or by automation — is saved to Downloads as &amp;lt;code&amp;gt;&amp;amp;lt;App&amp;gt;-session-&amp;amp;lt;yyyyMMdd-HHmmss&amp;gt;.autowebnav-recording.json&amp;lt;/code&amp;gt;, rewritten every 30 seconds while something changed and once more on close.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;AutoWebNav/Scripts/recorder.js&amp;lt;/code&amp;gt; changed so the page recorder captures while &amp;lt;em&amp;gt;either&amp;lt;/em&amp;gt; an explicit &amp;lt;code&amp;gt;RecorderSession&amp;lt;/code&amp;gt; arm or an attached &amp;lt;code&amp;gt;SessionRecording&amp;lt;/code&amp;gt; is on; the two no longer turn each other off.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;Public API:&amp;lt;/strong&amp;gt; additive only. Nothing existing was removed or changed; &amp;lt;code&amp;gt;IBrowserSurface&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;WebView2BrowserSurface&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;BrowserActions&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;FingerprintResolver&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;RecorderSession&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;RecordingBuilder&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;RecordingExport&amp;lt;/code&amp;gt; are unchanged.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;What a consumer must change:&amp;lt;/strong&amp;gt; nothing is required to keep building or running. To adopt Live Observation and always-on session recording, construct a &amp;lt;code&amp;gt;LiveObservation&amp;lt;/code&amp;gt; and a &amp;lt;code&amp;gt;SessionRecording&amp;lt;/code&amp;gt; per host app, use &amp;lt;code&amp;gt;observation.OptionsFor(pane, preferredPort)&amp;lt;/code&amp;gt; when creating the &amp;lt;code&amp;gt;CoreWebView2Environment&amp;lt;/code&amp;gt;, call &amp;lt;code&amp;gt;sessionRecording.AttachAsync(pane, coreWebView2, installToolkit: false)&amp;lt;/code&amp;gt; for each pane (&amp;lt;code&amp;gt;installToolkit: false&amp;lt;/code&amp;gt; because a &amp;lt;code&amp;gt;WebView2BrowserSurface&amp;lt;/code&amp;gt; already installs the page toolkit), and dispose both when the app&amp;#039;s window closes. See &amp;lt;code&amp;gt;docs/overview.md&amp;lt;/code&amp;gt; (&amp;quot;Live Observation&amp;quot;, &amp;quot;Recording (Spectator Mode)&amp;quot;) for the full adoption snippet.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Auto.WebNav|overview.md]] — current API, features and the project layout.&lt;br /&gt;
* [[Auto.WebNav/RELEASE|RELEASE.md]] — the 5.0 release charter this guide is a deliverable of (AWN2-T12).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-crumb&amp;quot;&amp;gt;Part of [[Auto.WebNav]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-source&amp;quot;&amp;gt;From [https://github.com/mindattic/Auto.WebNav/blob/main/docs/UPGRADING.md Auto.WebNav/docs/UPGRADING.md] via MindAttic.Docs; synced automatically, so edit the repo, not this page.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Auto.WebNav]]&lt;/div&gt;</summary>
		<author><name>Docs Sync</name></author>
	</entry>
</feed>