Bug 1628423 - Use the proper property name for filename in stacks. r=Honza

Differential Revision: https://phabricator.services.mozilla.com/D70670
This commit is contained in:
Hiroyuki Ikezoe 2020-04-21 03:25:06 +00:00
Родитель 8a09288919
Коммит 10353690c9
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -184,8 +184,8 @@ add_task(async function() {
let initiator = "";
let lineNumber = "";
if (lastFrameExists) {
const { filename, line: _lineNumber } = r.stack[0];
initiator = getUrlBaseName(filename);
const { file, line: _lineNumber } = r.stack[0];
initiator = getUrlBaseName(file);
lineNumber = ":" + _lineNumber;
}
const causeStr = lastFrameExists ? " (" + r.causeType + ")" : r.causeType;
@ -197,9 +197,9 @@ add_task(async function() {
const request = getSortedRequests(store.getState())[i];
let initiator;
if (request.cause.stacktraceAvailable) {
const { fileName, lineNumber } = request.cause.lastFrame;
const { filename, lineNumber } = request.cause.lastFrame;
initiator =
getUrlBaseName(fileName) +
getUrlBaseName(filename) +
":" +
lineNumber +
" (" +