diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /devtools/server/actors/source.js | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-adbda400be353e676059e335c3c0aaf99e719475.tar.xz firefox-adbda400be353e676059e335c3c0aaf99e719475.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/server/actors/source.js')
-rw-r--r-- | devtools/server/actors/source.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/devtools/server/actors/source.js b/devtools/server/actors/source.js index ff08bcb4c2..e246e11b8c 100644 --- a/devtools/server/actors/source.js +++ b/devtools/server/actors/source.js @@ -128,7 +128,7 @@ class SourceActor extends Actor { // because we can't easily fetch the full html content of the srcdoc attribute. this.__isInlineSource = source.introductionType === "inlineScript" && - !resolveSourceURL(source.displayURL, this.threadActor._parent) && + !resolveSourceURL(source.displayURL, this.threadActor.targetActor) && !this.url.startsWith("about:srcdoc"); } return this.__isInlineSource; @@ -148,7 +148,7 @@ class SourceActor extends Actor { } get url() { if (this._url === undefined) { - this._url = getSourceURL(this._source, this.threadActor._parent); + this._url = getSourceURL(this._source, this.threadActor.targetActor); } return this._url; } @@ -205,7 +205,7 @@ class SourceActor extends Actor { isBlackBoxed: this.sourcesManager.isBlackBoxed(this.url), sourceMapBaseURL: getSourcemapBaseURL( this.url, - this.threadActor._parent.window + this.threadActor.targetActor.window ), sourceMapURL: source.sourceMapURL, introductionType, |