Skip to content

Commit

Permalink
Fallback to Firefox name #1711 (#1712)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Feb 5, 2022
1 parent 554d7e0 commit 79e9b0e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/firefox/geckoProfiler.js
Expand Up @@ -3,6 +3,7 @@ const log = require('intel').getLogger('browsertime.firefox');
const geckoProfilerDefaults = require('./settings/geckoProfilerDefaults');
const { isAndroidConfigured, Android } = require('../android');
const path = require('path');
const get = require('lodash.get');
const pathToFolder = require('../support/pathToFolder');
const { BrowserError } = require('../support/errors');
const delay = ms => new Promise(res => setTimeout(res, ms));
Expand Down Expand Up @@ -103,7 +104,11 @@ class GeckoProfiler {

let deviceProfileFilename = destinationFilename;
if (isAndroidConfigured(options)) {
deviceProfileFilename = `/sdcard/Android/data/${this.firefoxConfig.android.package}/files/geckoProfile-${index}.json`;
deviceProfileFilename = `/sdcard/Android/data/${get(
this.firefoxConfig,
'android.package',
'org.mozilla.firefox'
)}/files/geckoProfile-${index}.json`;
}

// Must use String.raw or else the backslashes on Windows will be escapes.
Expand Down

0 comments on commit 79e9b0e

Please sign in to comment.