You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
##🚀 What's New in v2.2.0-alpha - Event Object Refactoring
71
+
# 🚀 What's New in v2.2.1-alpha - UI Responsiveness & Refactoring
71
72
72
73
This release marks a major architectural milestone for the library by introducing **Event Object Refactoring**. Key events have been transitioned from passing raw data (strings) to passing full **COM-visible objects**, granting developers absolute control over the application's navigation flow.
73
74
74
-
###⚡ Key Features & Enhancements
75
+
## ⚡ Key Features & Enhancements
75
76
76
77
### 1. Advanced Navigation Control (`IWebView2NavigationStartingEventArgs`)
77
78
@@ -86,16 +87,24 @@ Navigation is no longer a passive process. With the new `Args` object, you can p
86
87
-**`NavigationId`**: A unique identifier for precise request tracking across complex web sessions.
87
88
88
89
89
-
####2. Event Object Refactoring & API Maturity
90
+
### 2. Event Object Refactoring & API Maturity
90
91
91
92
We are moving away from "Raw Parameter" callbacks toward an **Object-Oriented Event Model**.
92
93
93
94
-**Breaking Change**: `OnNavigationStarting` and `OnFrameNavigationStarting` now return an **Args Object**. This change is essential to support bi-directional communication (e.g., AutoIt telling C# to `Cancel = True`).
94
95
95
96
-**Future-Proofing**: Adding new metadata in future WebView2 updates will no longer break existing user code, as new properties will simply be appended to the existing object.
Following the initial alpha release, we identified and resolved a critical issue where Developer Tools (F12) and Right-Click menus could become unresponsive after navigation.
101
+
102
+
-**Interception-Based Locking**: We moved away from toggling engine-level properties (which caused state lag) to a robust **C# Interception Model**. Features are kept "On" at the engine level but are blocked via the `_isLocked` flag in C#, ensuring the "Inspect" menu item never disappears.
103
+
-**C# Fast Path**: Common actions like F12 are now handled instantly within the C# layer, bypassing the AutoIt COM overhead for maximum performance.
104
+
-**Guaranteed Unlock**: Improved the AutoIt navigation functions (`_NetWebView2_Navigate`) to ensure the browser is always unlocked, even if a navigation times out or fails.
97
105
98
-
### 🏗️ Architectural Inheritance & Refactoring
106
+
107
+
## 🏗️ Architectural Inheritance & Refactoring
99
108
100
109
Building on the foundation of v2.1.0, this version further strengthens the **Event Wrapper** hierarchy:
101
110
@@ -107,12 +116,13 @@ Building on the foundation of v2.1.0, this version further strengthens the **Eve
107
116
> **Why this matters:** The shift to objects transforms **NetWebView2Lib** from a "simple browser wrapper" into a **Professional-Grade SDK** for AutoIt. It brings low-level control—previously reserved for languages like C# or C++—directly into the hands of the AutoIt developer.
0 commit comments