summaryrefslogtreecommitdiffstats
path: root/devtools/server/actors/source.js
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/server/actors/source.js')
-rw-r--r--devtools/server/actors/source.js6
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,