summaryrefslogtreecommitdiffstats
path: root/devtools/server/actors/tracer.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
commita90a5cba08fdf6c0ceb95101c275108a152a3aed (patch)
tree532507288f3defd7f4dcf1af49698bcb76034855 /devtools/server/actors/tracer.js
parentAdding debian version 126.0.1-1. (diff)
downloadfirefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz
firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/server/actors/tracer.js')
-rw-r--r--devtools/server/actors/tracer.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/devtools/server/actors/tracer.js b/devtools/server/actors/tracer.js
index d98749ceb1..590834305f 100644
--- a/devtools/server/actors/tracer.js
+++ b/devtools/server/actors/tracer.js
@@ -119,6 +119,17 @@ class TracerActor extends Actor {
return;
}
+ // Ignore WindowGlobal target actors for WindowGlobal of iframes running in the same process and thread as their parent document.
+ // isProcessRoot will be true for each WindowGlobal being the top parent within a given process.
+ // It will typically be true for WindowGlobal of iframe running in a distinct origin and process,
+ // but only for the top iframe document. It will also be true for the top level tab document.
+ if (
+ this.targetActor.window &&
+ !this.targetActor.window.windowGlobalChild?.isProcessRoot
+ ) {
+ return;
+ }
+
this.logMethod = options.logMethod || LOG_METHODS.STDOUT;
if (this.logMethod == LOG_METHODS.PROFILER) {