diff options
author | Moonchild <moonchild@palemoon.org> | 2023-08-07 07:36:53 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-08-07 07:36:53 +0000 |
commit | 20ac6059cef7e9fc7f6f3c09ef9b96e26c2efa34 (patch) | |
tree | 6b241a4947b90f1312cdfdd9cd7911478ac7764b | |
parent | 8b1222c5f88cfa5a1cd5fa2a01b61eeb5a8c0b0c (diff) | |
parent | d9aa76f5c2bd150af3b284cdde1a3da20120b51b (diff) | |
download | uxp-20ac6059cef7e9fc7f6f3c09ef9b96e26c2efa34.tar.gz |
Merge pull request 'Several low risk fixes and improvements' (#2286) from dbsoft/UXP:fixes into master
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2286
-rw-r--r-- | dom/base/Crypto.cpp | 2 | ||||
-rw-r--r-- | dom/base/FragmentOrElement.cpp | 7 | ||||
-rw-r--r-- | js/src/builtin/intl/CommonFunctions.h | 4 |
3 files changed, 11 insertions, 2 deletions
diff --git a/dom/base/Crypto.cpp b/dom/base/Crypto.cpp index 4226832f4b..863c26c902 100644 --- a/dom/base/Crypto.cpp +++ b/dom/base/Crypto.cpp @@ -75,6 +75,8 @@ Crypto::GetRandomValues(JSContext* aCx, const ArrayBufferView& aArray, case js::Scalar::Uint16: case js::Scalar::Int32: case js::Scalar::Uint32: + case js::Scalar::BigInt64: + case js::Scalar::BigUint64: break; default: aRv.Throw(NS_ERROR_DOM_TYPE_MISMATCH_ERR); diff --git a/dom/base/FragmentOrElement.cpp b/dom/base/FragmentOrElement.cpp index ccfe960cb7..3438c0c733 100644 --- a/dom/base/FragmentOrElement.cpp +++ b/dom/base/FragmentOrElement.cpp @@ -1022,7 +1022,12 @@ nsIContent::GetEventTargetParent(EventChainPreVisitor& aVisitor) nsContentUtils::Retarget(relatedTargetAsNode, this); nsCOMPtr<nsINode> targetInKnownToBeHandledScope = FindChromeAccessOnlySubtreeOwner(aVisitor.mTargetInKnownToBeHandledScope); - if (nsContentUtils::ContentIsShadowIncludingDescendantOf( + // If aVisitor.mTargetInKnownToBeHandledScope wasn't nsINode, + // targetInKnownToBeHandledScope will be null. This may happen when + // dispatching event to Window object in a content page and + // propagating the event to a chrome Element. + if (targetInKnownToBeHandledScope && + nsContentUtils::ContentIsShadowIncludingDescendantOf( this, targetInKnownToBeHandledScope->SubtreeRoot())) { // Part of step 11.4. // "If target's root is a shadow-including inclusive ancestor of diff --git a/js/src/builtin/intl/CommonFunctions.h b/js/src/builtin/intl/CommonFunctions.h index c6856c9b6d..8c538a489b 100644 --- a/js/src/builtin/intl/CommonFunctions.h +++ b/js/src/builtin/intl/CommonFunctions.h @@ -18,6 +18,8 @@ #include "js/Vector.h"
#include "vm/String.h"
+#include "jscntxt.h"
+
namespace JS { class Value; }
class JSObject;
@@ -159,4 +161,4 @@ CallICU(JSContext* cx, const ICUStringFunction& strFn) } // namespace js
-#endif /* builtin_intl_CommonFunctions_h */
\ No newline at end of file +#endif /* builtin_intl_CommonFunctions_h */
|