diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
commit | 59203c63bb777a3bacec32fb8830fba33540e809 (patch) | |
tree | 58298e711c0ff0575818c30485b44a2f21bf28a0 /devtools/server/actors/tracer.js | |
parent | Adding upstream version 126.0.1. (diff) | |
download | firefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip |
Adding upstream version 127.0.upstream/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.js | 11 |
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) { |