зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1607639 - Part 3: Remove unnecessary falsy checks for _source in source actor. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D72107
This commit is contained in:
Родитель
1c5e2e3489
Коммит
6af9e5261a
|
@ -190,11 +190,11 @@ const SourceActor = ActorClassWithSpec(sourceSpec, {
|
|||
extensionName: this.extensionName,
|
||||
url: this.url,
|
||||
isBlackBoxed: this.threadActor.sources.isBlackBoxed(this.url),
|
||||
sourceMapURL: source ? source.sourceMapURL : null,
|
||||
sourceMapURL: source.sourceMapURL,
|
||||
introductionUrl: introductionUrl
|
||||
? introductionUrl.split(" -> ").pop()
|
||||
: null,
|
||||
introductionType: source ? source.introductionType : null,
|
||||
introductionType: source.introductionType,
|
||||
};
|
||||
},
|
||||
|
||||
|
@ -233,7 +233,6 @@ const SourceActor = ActorClassWithSpec(sourceSpec, {
|
|||
// (javascript.options.discardSystemSource == true). Re-fetch non-JS
|
||||
// sources to get the contentType from the headers.
|
||||
if (
|
||||
this._source &&
|
||||
this._source.text !== "[no source]" &&
|
||||
this._contentType &&
|
||||
(this._contentType.includes("javascript") ||
|
||||
|
|
Загрузка…
Ссылка в новой задаче