@@ -98,8 +98,9 @@ API Rules and Precedence
9898| ` _DEFAULT ` set and ` _WEB_RTC ` set to ` (1025,65535) ` | ` _DEFAULT ` applies port range restrictions to all except WebRTC which is unrestricted |
9999
1001002 . Port Range Restriction Scope param in GetEffectiveAllowedPortRange
101- - ` GetEffectiveAllowedPortRange ` returns the range explicitly set for the queried scope.
102- - If a specific scope is unset, it inherits ` _DEFAULT ` .
101+ - GetEffectiveAllowedPortRange returns the port range to use for the specified scope.
102+ - If the scope is _ DEFAULT or if the specified scope is unset, then the _ DEFAULT port range is returned.
103+ - A range of (0, 0) means that no port range has been set.
103104- Querying ` _DEFAULT ` only returns ` _DEFAULT ` ; it does not aggregate component-specific settings.
104105- If neither ` _DEFAULT ` nor a component-specific scope is set, the default ` (0,0) ` (unset) is returned.
105106
@@ -131,7 +132,7 @@ typedef enum COREWEBVIEW2_TRANSPORT_PROTOCOL_KIND {
131132} COREWEBVIEW2_TRANSPORT_PROTOCOL_KIND;
132133
133134/// Additional options used to create WebView2 Environment to manage port range configuration.
134- [uuid(6ce30f6b-5dcc-5dc1-9c09-723cf233dbe5 ), object, pointer_default(unique)]
135+ [uuid(2c0f597d-2958-5a94-82f9-c750cf86cb88 ), object, pointer_default(unique)]
135136interface ICoreWebView2StagingEnvironmentOptions10 : IUnknown {
136137 /// Sets the allowed port range restriction for the specified
137138 /// scope and transport protocol.
@@ -143,7 +144,7 @@ interface ICoreWebView2StagingEnvironmentOptions10 : IUnknown {
143144 ///
144145 /// Currently, only WebRTC UDP Port Range restriction is supported.
145146 ///
146- /// `minPort` and `maxPort` must be within the range 1025-65535 (inclusive).
147+ /// `minPort` and `maxPort` must be within the range 1025-65535 (inclusive), or must both be the sentinel value 0 .
147148 /// `minPort` must be less than or equal to `maxPort`.
148149 /// If `minPort` equals `maxPort`, the range represents a single port.
149150 ///
@@ -179,8 +180,9 @@ interface ICoreWebView2StagingEnvironmentOptions10 : IUnknown {
179180 /// Returns the effective port range previously set via
180181 /// `SetAllowedPortRange`.
181182 ///
182- /// `GetEffectiveAllowedPortRange` returns the range explicitly set for the queried scope.
183- /// If a specific scope is unset, it inherits `_DEFAULT`.
183+ /// GetEffectiveAllowedPortRange returns the port range to use for the specified scope.
184+ /// If the scope is _DEFAULT or if the specified scope is unset, then the _DEFAULT port range is returned.
185+ /// A range of (0, 0) means that no port range has been set.
184186 /// Querying `_DEFAULT` only returns `_DEFAULT`; it does not aggregate component-specific settings.
185187 /// If neither `_DEFAULT` nor a component-specific scope is set, the default `(0,0)` (unset) is returned.
186188
0 commit comments