react-native-windows 0.73.9 → 0.73.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Components/Pressable/Pressable.windows.js +1 -0
- package/Libraries/Pressability/Pressability.windows.js +3 -2
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/Shared/Networking/OriginPolicyHttpFilter.cpp +12 -4
- package/Shared/Networking/OriginPolicyHttpFilter.h +1 -1
- package/package.json +1 -1
|
@@ -325,6 +325,7 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|
|
325
325
|
accessibilityLiveRegion,
|
|
326
326
|
accessibilityLabel,
|
|
327
327
|
accessibilityState: _accessibilityState,
|
|
328
|
+
disabled: disabled == true,
|
|
328
329
|
focusable: focusable !== false,
|
|
329
330
|
accessibilityValue,
|
|
330
331
|
hitSlop,
|
|
@@ -642,14 +642,15 @@ export default class Pressability {
|
|
|
642
642
|
this._isKeyDown = false;
|
|
643
643
|
},
|
|
644
644
|
onKeyDown: (event: KeyEvent): void => {
|
|
645
|
-
const {onKeyDown} = this._config;
|
|
645
|
+
const {onKeyDown, disabled} = this._config;
|
|
646
646
|
onKeyDown && onKeyDown(event);
|
|
647
647
|
|
|
648
648
|
if (
|
|
649
649
|
(event.nativeEvent.code === 'Space' ||
|
|
650
650
|
event.nativeEvent.code === 'Enter' ||
|
|
651
651
|
event.nativeEvent.code === 'GamepadA') &&
|
|
652
|
-
event.defaultPrevented
|
|
652
|
+
event.defaultPrevented !== true &&
|
|
653
|
+
disabled !== true
|
|
653
654
|
) {
|
|
654
655
|
const {onPressIn} = this._config;
|
|
655
656
|
this._isKeyDown = true;
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
-->
|
|
11
11
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
12
12
|
<PropertyGroup>
|
|
13
|
-
<ReactNativeWindowsVersion>0.73.
|
|
13
|
+
<ReactNativeWindowsVersion>0.73.10</ReactNativeWindowsVersion>
|
|
14
14
|
<ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
|
|
15
15
|
<ReactNativeWindowsMinor>73</ReactNativeWindowsMinor>
|
|
16
|
-
<ReactNativeWindowsPatch>
|
|
16
|
+
<ReactNativeWindowsPatch>10</ReactNativeWindowsPatch>
|
|
17
17
|
<ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
|
|
18
|
-
<ReactNativeWindowsCommitId>
|
|
18
|
+
<ReactNativeWindowsCommitId>f0a17a652b6bbd8437fece5ae54bc39b2e9caae9</ReactNativeWindowsCommitId>
|
|
19
19
|
</PropertyGroup>
|
|
20
20
|
</Project>
|
|
@@ -160,8 +160,16 @@ bool OriginPolicyHttpFilter::CaseInsensitiveComparer::operator()(const wstring &
|
|
|
160
160
|
return s_simpleCorsMethods.find(request.Method().ToString().c_str()) != s_simpleCorsMethods.cend();
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
/*static*/
|
|
164
|
-
|
|
163
|
+
/*static*/ const hstring OriginPolicyHttpFilter::GetOrigin(Uri const &uri) noexcept {
|
|
164
|
+
auto const &scheme = uri.SchemeName();
|
|
165
|
+
auto port = uri.Port();
|
|
166
|
+
|
|
167
|
+
hstring result = scheme + L"://" + uri.Host();
|
|
168
|
+
if (!(port == 80 && scheme == L"http") && !(port == 443 && scheme == L"https")) {
|
|
169
|
+
result = result + L":" + to_hstring(port);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
return result;
|
|
165
173
|
}
|
|
166
174
|
|
|
167
175
|
/*static*/ bool OriginPolicyHttpFilter::AreSafeRequestHeaders(
|
|
@@ -683,7 +691,7 @@ ResponseOperation OriginPolicyHttpFilter::SendPreflightAsync(HttpRequestMessage
|
|
|
683
691
|
}
|
|
684
692
|
|
|
685
693
|
preflightRequest.Headers().Insert(L"Access-Control-Request-Headers", headerNames);
|
|
686
|
-
preflightRequest.Headers().Insert(L"Origin", s_origin
|
|
694
|
+
preflightRequest.Headers().Insert(L"Origin", GetOrigin(s_origin));
|
|
687
695
|
preflightRequest.Headers().Insert(L"Sec-Fetch-Mode", L"CORS");
|
|
688
696
|
|
|
689
697
|
co_return {co_await m_innerFilter.SendRequestAsync(preflightRequest)};
|
|
@@ -769,7 +777,7 @@ ResponseOperation OriginPolicyHttpFilter::SendRequestAsync(HttpRequestMessage co
|
|
|
769
777
|
|
|
770
778
|
if (originPolicy == OriginPolicy::SimpleCrossOriginResourceSharing ||
|
|
771
779
|
originPolicy == OriginPolicy::CrossOriginResourceSharing) {
|
|
772
|
-
coRequest.Headers().Insert(L"Origin", s_origin
|
|
780
|
+
coRequest.Headers().Insert(L"Origin", GetOrigin(s_origin));
|
|
773
781
|
}
|
|
774
782
|
|
|
775
783
|
auto response = co_await m_innerFilter.SendRequestAsync(coRequest);
|
|
@@ -58,7 +58,7 @@ class OriginPolicyHttpFilter
|
|
|
58
58
|
winrt::Windows::Foundation::Uri const &u1,
|
|
59
59
|
winrt::Windows::Foundation::Uri const &u2) noexcept;
|
|
60
60
|
|
|
61
|
-
static winrt::
|
|
61
|
+
static const winrt::hstring GetOrigin(winrt::Windows::Foundation::Uri const &uri) noexcept;
|
|
62
62
|
|
|
63
63
|
static bool IsSimpleCorsRequest(winrt::Windows::Web::Http::HttpRequestMessage const &request) noexcept;
|
|
64
64
|
|