summaryrefslogtreecommitdiffstats
path: root/devtools/client/webconsole/utils
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
commit086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch)
treea4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /devtools/client/webconsole/utils
parentAdding debian version 124.0.1-1. (diff)
downloadfirefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz
firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/client/webconsole/utils')
-rw-r--r--devtools/client/webconsole/utils/messages.js19
1 files changed, 14 insertions, 5 deletions
diff --git a/devtools/client/webconsole/utils/messages.js b/devtools/client/webconsole/utils/messages.js
index 135da20536..5f10046a71 100644
--- a/devtools/client/webconsole/utils/messages.js
+++ b/devtools/client/webconsole/utils/messages.js
@@ -386,9 +386,11 @@ function transformTraceResource(traceResource) {
args,
sourceId,
- returnedValue,
relatedTraceId,
why,
+
+ mutationType,
+ mutationElement,
} = traceResource;
const frame = {
@@ -408,14 +410,19 @@ function transformTraceResource(traceResource) {
parameters: args
? args.map(p => (p ? getAdHocFrontOrPrimitiveGrip(p, targetFront) : p))
: null,
- returnedValue: why
- ? getAdHocFrontOrPrimitiveGrip(returnedValue, targetFront)
- : null,
+ returnedValue:
+ why && "returnedValue" in traceResource
+ ? getAdHocFrontOrPrimitiveGrip(traceResource.returnedValue, targetFront)
+ : undefined,
relatedTraceId,
why,
messageText: null,
timeStamp,
prefix,
+ mutationType,
+ mutationElement: mutationElement
+ ? getAdHocFrontOrPrimitiveGrip(mutationElement, targetFront)
+ : null,
// Allow the identical frames to be coallesced into a unique message
// with a repeatition counter so that we keep the output short in case of loops.
allowRepeating: true,
@@ -558,7 +565,9 @@ function areMessagesSimilar(message1, message2) {
message1.isPromiseRejection !== message2.isPromiseRejection ||
message1.userProvidedStyles?.length !==
message2.userProvidedStyles?.length ||
- `${message1.userProvidedStyles}` !== `${message2.userProvidedStyles}`
+ `${message1.userProvidedStyles}` !== `${message2.userProvidedStyles}` ||
+ message1.mutationType !== message2.mutationType ||
+ message1.mutationElement != message2.mutationElement
) {
return false;
}