mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 14:58:37 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
cc3a2ef623
5 changed files with 44 additions and 3 deletions
|
|
@ -2504,6 +2504,21 @@ nsDocument::InitCSP(nsIChannel* aChannel)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
// If this is explicitly loaded as a data document, no need to set a CSP.
|
||||
if (mLoadedAsData) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// If this is an image, no need to set a CSP.
|
||||
// If we don't do this, SVG images will be parsed as normal XML documents and
|
||||
// subject to served CSPs, which might block internally applied inline styles.
|
||||
// See UXP issue #1959.
|
||||
nsCOMPtr<nsILoadInfo> loadInfo = aChannel->GetLoadInfo();
|
||||
if (loadInfo->GetExternalContentPolicyType() ==
|
||||
nsIContentPolicy::TYPE_IMAGE) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsAutoCString tCspHeaderValue, tCspROHeaderValue;
|
||||
|
||||
nsCOMPtr<nsIHttpChannel> httpChannel;
|
||||
|
|
@ -2532,7 +2547,6 @@ nsDocument::InitCSP(nsIChannel* aChannel)
|
|||
|
||||
// Check if this is a signed content to apply default CSP.
|
||||
bool applySignedContentCSP = false;
|
||||
nsCOMPtr<nsILoadInfo> loadInfo = aChannel->GetLoadInfo();
|
||||
if (loadInfo && loadInfo->GetVerifySignedContent()) {
|
||||
applySignedContentCSP = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
#include "MediaTrackConstraints.h"
|
||||
#include "mozilla/dom/MediaStreamTrackBinding.h"
|
||||
#include "mozilla/Unused.h"
|
||||
#include "mozilla/Types.h"
|
||||
|
||||
#include <limits>
|
||||
#include <algorithm>
|
||||
|
|
@ -39,7 +40,7 @@ NormalizedConstraintSet::Range<ValueType>::SetFrom(const ConstrainRange& aOther)
|
|||
|
||||
// The Range code works surprisingly well for bool, except when averaging ideals.
|
||||
template<>
|
||||
bool
|
||||
bool MOZ_EXPORT
|
||||
NormalizedConstraintSet::Range<bool>::Merge(const Range& aOther) {
|
||||
if (!Intersects(aOther)) {
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -701,65 +701,89 @@ static void setup_rtcd_internal(void)
|
|||
if (flags & HAS_SSE2) av1_wiener_convolve_add_src = av1_wiener_convolve_add_src_sse2;
|
||||
if (flags & HAS_AVX2) av1_wiener_convolve_add_src = av1_wiener_convolve_add_src_avx2;
|
||||
cdef_copy_rect8_16bit_to_16bit = cdef_copy_rect8_16bit_to_16bit_c;
|
||||
if (_MSC_VER <= 1900) {
|
||||
if (flags & HAS_SSE2) cdef_copy_rect8_16bit_to_16bit = cdef_copy_rect8_16bit_to_16bit_sse2;
|
||||
if (flags & HAS_SSSE3) cdef_copy_rect8_16bit_to_16bit = cdef_copy_rect8_16bit_to_16bit_ssse3;
|
||||
if (flags & HAS_SSE4_1) cdef_copy_rect8_16bit_to_16bit = cdef_copy_rect8_16bit_to_16bit_sse4_1;
|
||||
if (flags & HAS_AVX2) cdef_copy_rect8_16bit_to_16bit = cdef_copy_rect8_16bit_to_16bit_avx2;
|
||||
}
|
||||
cdef_copy_rect8_8bit_to_16bit = cdef_copy_rect8_8bit_to_16bit_c;
|
||||
if (_MSC_VER <= 1900) {
|
||||
if (flags & HAS_SSE2) cdef_copy_rect8_8bit_to_16bit = cdef_copy_rect8_8bit_to_16bit_sse2;
|
||||
if (flags & HAS_SSSE3) cdef_copy_rect8_8bit_to_16bit = cdef_copy_rect8_8bit_to_16bit_ssse3;
|
||||
if (flags & HAS_SSE4_1) cdef_copy_rect8_8bit_to_16bit = cdef_copy_rect8_8bit_to_16bit_sse4_1;
|
||||
if (flags & HAS_AVX2) cdef_copy_rect8_8bit_to_16bit = cdef_copy_rect8_8bit_to_16bit_avx2;
|
||||
}
|
||||
cdef_filter_16_0 = cdef_filter_16_0_c;
|
||||
if (_MSC_VER <= 1900) {
|
||||
if (flags & HAS_SSE2) cdef_filter_16_0 = cdef_filter_16_0_sse2;
|
||||
if (flags & HAS_SSSE3) cdef_filter_16_0 = cdef_filter_16_0_ssse3;
|
||||
if (flags & HAS_SSE4_1) cdef_filter_16_0 = cdef_filter_16_0_sse4_1;
|
||||
if (flags & HAS_AVX2) cdef_filter_16_0 = cdef_filter_16_0_avx2;
|
||||
}
|
||||
cdef_filter_16_1 = cdef_filter_16_1_c;
|
||||
if (_MSC_VER <= 1900) {
|
||||
if (flags & HAS_SSE2) cdef_filter_16_1 = cdef_filter_16_1_sse2;
|
||||
if (flags & HAS_SSSE3) cdef_filter_16_1 = cdef_filter_16_1_ssse3;
|
||||
if (flags & HAS_SSE4_1) cdef_filter_16_1 = cdef_filter_16_1_sse4_1;
|
||||
if (flags & HAS_AVX2) cdef_filter_16_1 = cdef_filter_16_1_avx2;
|
||||
}
|
||||
cdef_filter_16_2 = cdef_filter_16_2_c;
|
||||
if (_MSC_VER <= 1900) {
|
||||
if (flags & HAS_SSE2) cdef_filter_16_2 = cdef_filter_16_2_sse2;
|
||||
if (flags & HAS_SSSE3) cdef_filter_16_2 = cdef_filter_16_2_ssse3;
|
||||
if (flags & HAS_SSE4_1) cdef_filter_16_2 = cdef_filter_16_2_sse4_1;
|
||||
if (flags & HAS_AVX2) cdef_filter_16_2 = cdef_filter_16_2_avx2;
|
||||
}
|
||||
cdef_filter_16_3 = cdef_filter_16_3_c;
|
||||
if (_MSC_VER <= 1900) {
|
||||
if (flags & HAS_SSE2) cdef_filter_16_3 = cdef_filter_16_3_sse2;
|
||||
if (flags & HAS_SSSE3) cdef_filter_16_3 = cdef_filter_16_3_ssse3;
|
||||
if (flags & HAS_SSE4_1) cdef_filter_16_3 = cdef_filter_16_3_sse4_1;
|
||||
if (flags & HAS_AVX2) cdef_filter_16_3 = cdef_filter_16_3_avx2;
|
||||
}
|
||||
cdef_filter_8_0 = cdef_filter_8_0_c;
|
||||
if (_MSC_VER <= 1900) {
|
||||
if (flags & HAS_SSE2) cdef_filter_8_0 = cdef_filter_8_0_sse2;
|
||||
if (flags & HAS_SSSE3) cdef_filter_8_0 = cdef_filter_8_0_ssse3;
|
||||
if (flags & HAS_SSE4_1) cdef_filter_8_0 = cdef_filter_8_0_sse4_1;
|
||||
if (flags & HAS_AVX2) cdef_filter_8_0 = cdef_filter_8_0_avx2;
|
||||
}
|
||||
cdef_filter_8_1 = cdef_filter_8_1_c;
|
||||
if (_MSC_VER <= 1900) {
|
||||
if (flags & HAS_SSE2) cdef_filter_8_1 = cdef_filter_8_1_sse2;
|
||||
if (flags & HAS_SSSE3) cdef_filter_8_1 = cdef_filter_8_1_ssse3;
|
||||
if (flags & HAS_SSE4_1) cdef_filter_8_1 = cdef_filter_8_1_sse4_1;
|
||||
if (flags & HAS_AVX2) cdef_filter_8_1 = cdef_filter_8_1_avx2;
|
||||
}
|
||||
cdef_filter_8_2 = cdef_filter_8_2_c;
|
||||
if (_MSC_VER <= 1900) {
|
||||
if (flags & HAS_SSE2) cdef_filter_8_2 = cdef_filter_8_2_sse2;
|
||||
if (flags & HAS_SSSE3) cdef_filter_8_2 = cdef_filter_8_2_ssse3;
|
||||
if (flags & HAS_SSE4_1) cdef_filter_8_2 = cdef_filter_8_2_sse4_1;
|
||||
if (flags & HAS_AVX2) cdef_filter_8_2 = cdef_filter_8_2_avx2;
|
||||
}
|
||||
cdef_filter_8_3 = cdef_filter_8_3_c;
|
||||
if (_MSC_VER <= 1900) {
|
||||
if (flags & HAS_SSE2) cdef_filter_8_3 = cdef_filter_8_3_sse2;
|
||||
if (flags & HAS_SSSE3) cdef_filter_8_3 = cdef_filter_8_3_ssse3;
|
||||
if (flags & HAS_SSE4_1) cdef_filter_8_3 = cdef_filter_8_3_sse4_1;
|
||||
if (flags & HAS_AVX2) cdef_filter_8_3 = cdef_filter_8_3_avx2;
|
||||
}
|
||||
cdef_find_dir = cdef_find_dir_c;
|
||||
if (_MSC_VER <= 1900) {
|
||||
if (flags & HAS_SSE2) cdef_find_dir = cdef_find_dir_sse2;
|
||||
if (flags & HAS_SSSE3) cdef_find_dir = cdef_find_dir_ssse3;
|
||||
if (flags & HAS_SSE4_1) cdef_find_dir = cdef_find_dir_sse4_1;
|
||||
if (flags & HAS_AVX2) cdef_find_dir = cdef_find_dir_avx2;
|
||||
}
|
||||
cdef_find_dir_dual = cdef_find_dir_dual_c;
|
||||
if (_MSC_VER <= 1900) {
|
||||
if (flags & HAS_SSE2) cdef_find_dir_dual = cdef_find_dir_dual_sse2;
|
||||
if (flags & HAS_SSSE3) cdef_find_dir_dual = cdef_find_dir_dual_ssse3;
|
||||
if (flags & HAS_SSE4_1) cdef_find_dir_dual = cdef_find_dir_dual_sse4_1;
|
||||
if (flags & HAS_AVX2) cdef_find_dir_dual = cdef_find_dir_dual_avx2;
|
||||
}
|
||||
cfl_get_luma_subsampling_420_hbd = cfl_get_luma_subsampling_420_hbd_c;
|
||||
if (flags & HAS_SSSE3) cfl_get_luma_subsampling_420_hbd = cfl_get_luma_subsampling_420_hbd_ssse3;
|
||||
if (flags & HAS_AVX2) cfl_get_luma_subsampling_420_hbd = cfl_get_luma_subsampling_420_hbd_avx2;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,8 @@
|
|||
// VS compiling for 32 bit targets does not support vector types in
|
||||
// structs as arguments, which makes the v256 type of the intrinsics
|
||||
// hard to support, so optimizations for this target are disabled.
|
||||
#elif HAVE_SSE2 && (defined(_WIN64) || !defined(_MSC_VER) || defined(__clang__))
|
||||
// Disabling optimizations and falling back to plain C here causes problems on newer MSVC.
|
||||
#elif HAVE_SSE2 && (defined(_WIN64) || !defined(_MSC_VER) || _MSC_VER > 1900 || defined(__clang__))
|
||||
#include "simd/v256_intrinsics_x86.h"
|
||||
#else
|
||||
#include "simd/v256_intrinsics.h"
|
||||
|
|
|
|||
|
|
@ -108,6 +108,7 @@ extern ogg_free_function_type *ogg_free_func;
|
|||
typedef int32_t ogg_int32_t;
|
||||
typedef uint32_t ogg_uint32_t;
|
||||
typedef int64_t ogg_int64_t;
|
||||
typedef uint64_t ogg_uint64_t;
|
||||
|
||||
#elif defined(__HAIKU__)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue