Skip to content

Commit d11c968

Browse files
authored
Update NetWebView2Lib.au3
1 parent 1718614 commit d11c968

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

NetWebView2Lib.au3

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include <WindowsConstants.au3>
1515

1616
#REMARK This UDF is marked as WorkInProgress - you may use them, but do not blame me if I do ScriptBreakingChange and as so far do not ask me for description or help till I remove this remark ; mLipok
17-
1817
#TODO UDF HEADER - anybody - feel free to make it done - just do not hesitate to full fill this part
1918
#TODO UDF INDEX - anybody - feel free to make it done - just do not hesitate to full fill this part
2019
#TODO FUNCTION HEADERS SUPLEMENTATION & CHECK - anybody - feel free to make it done - just do not hesitate to full fill this part
@@ -39,12 +38,12 @@ Global Enum _ ; $NETWEBVIEW2_MESSAGE__* are set by mainly by __NetWebView2_Event
3938
$NETWEBVIEW2_MESSAGE__CONTENT_LOADING, _ ; #TODO https://learn.microsoft.com/en-us/microsoft-edge/webview2/get-started/wpf#step-7---navigation-events
4039
$NETWEBVIEW2_MESSAGE__HISTORY_CHANGED, _ ; #TODO https://learn.microsoft.com/en-us/microsoft-edge/webview2/get-started/wpf#step-7---navigation-events
4140
$NETWEBVIEW2_MESSAGE__BASIC_AUTHENTICATION_REQUESTED, _ ; #TODO WHERE THIS SHOULD be Lower/Higher ?
42-
$NETWEBVIEW2_MESSAGE__DOM_CONTENT_LOADED, _ ; #TODO https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/navigation-events
4341
$NETWEBVIEW2_MESSAGE__PROCESS_FAILED, _
4442
$NETWEBVIEW2_MESSAGE__CRITICAL_ERROR, _
45-
$NETWEBVIEW2_MESSAGE__NAVIGATION_COMPLETED, _
46-
$NETWEBVIEW2_MESSAGE__TITLE_CHANGED, _
43+
$NETWEBVIEW2_MESSAGE__DOM_CONTENT_LOADED, _ ; #TODO https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/navigation-events
4744
$NETWEBVIEW2_MESSAGE__NAV_ERROR, _
45+
$NETWEBVIEW2_MESSAGE__NAV_COMPLETED, _
46+
$NETWEBVIEW2_MESSAGE__TITLE_CHANGED, _
4847
$NETWEBVIEW2_MESSAGE__EXTENSION, _
4948
$NETWEBVIEW2_MESSAGE__EXTENSION_LOADED, _
5049
$NETWEBVIEW2_MESSAGE__EXTENSION_FAILED, _
@@ -101,7 +100,7 @@ Global Enum _ ; Indicates the reason for the process failure.
101100
$NETWEBVIEW2_PROCESS_FAILED_REASON_CRASHED, _
102101
$NETWEBVIEW2_PROCESS_FAILED_REASON_LAUNCH_FAILED, _
103102
$NETWEBVIEW2_PROCESS_FAILED_REASON_OUT_OF_MEMORY
104-
103+
#EndRegion ; ENUMS
105104

106105
#Region ; NetWebView2Lib UDF - _NetWebView2_* core functions
107106
; #FUNCTION# ====================================================================================================================
@@ -1252,7 +1251,7 @@ Volatile Func __NetWebView2_Events__OnMessageReceived($oWebV2M, $hGUI, $sMsg)
12521251

12531252
Case "NAV_COMPLETED"
12541253
__NetWebView2_Log(@ScriptLineNumber, $s_Prefix & ' COMMAND:' & $sCommand, 1)
1255-
__NetWebView2_LastMessageReceived($oWebV2M, $NETWEBVIEW2_MESSAGE__NAVIGATION_COMPLETED)
1254+
__NetWebView2_LastMessageReceived($oWebV2M, $NETWEBVIEW2_MESSAGE__NAV_COMPLETED)
12561255

12571256
Case "TITLE_CHANGED"
12581257
__NetWebView2_Log(@ScriptLineNumber, $s_Prefix & ' COMMAND:' & $sCommand, 1)
@@ -1591,7 +1590,7 @@ EndFunc ;==>__NetWebView2_Events__OnNavigationStarting
15911590
Volatile Func __NetWebView2_Events__OnNavigationCompleted($oWebV2M, $hGUI, $bIsSuccess, $iWebErrorStatus)
15921591
Local Const $s_Prefix = "[NetWebView2Lib:EVENT: OnNavigationCompleted]: GUI:" & $hGUI & " " & ($bIsSuccess ? "SUCCESS" : "ERROR ( WebErrorStatus:" & $iWebErrorStatus & ")")
15931592
__NetWebView2_Log(@ScriptLineNumber, (StringLen($s_Prefix) > 150 ? StringLeft($s_Prefix, 150) & "..." : $s_Prefix), 1)
1594-
__NetWebView2_LastMessageReceived($oWebV2M, $NETWEBVIEW2_MESSAGE__NAVIGATION_COMPLETED)
1593+
__NetWebView2_LastMessageReceived($oWebV2M, $NETWEBVIEW2_MESSAGE__NAV_COMPLETED)
15951594
EndFunc ;==>__NetWebView2_Events__OnNavigationCompleted
15961595

15971596
; #INTERNAL_USE_ONLY# ===========================================================================================================
@@ -1806,7 +1805,8 @@ EndFunc ;==>__NetWebView2_Events__OnProcessFailed
18061805
; Return values .: None
18071806
; Author ........: ioa747
18081807
; Modified ......:
1809-
; Remarks .......:
1808+
; Remarks .......: The host can provide a response with credentials for the authentication or cancel the request.
1809+
; If the host sets the Cancel property to false but does not provide either UserName or Password properties on the Response property, then WebView2 will show the default authentication challenge dialog prompt to the user.
18101810
; Related .......:
18111811
; Link ..........: https://learn.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2.basicauthenticationrequested?view=webview2-dotnet-1.0.2903.40
18121812
; Example .......: No

0 commit comments

Comments
 (0)