diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /devtools/client/webconsole/utils | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-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.js | 19 |
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; } |