diff --git a/lib/firefox/webdriver/firefox.js b/lib/firefox/webdriver/firefox.js index 4163d0e98..e3403aa38 100644 --- a/lib/firefox/webdriver/firefox.js +++ b/lib/firefox/webdriver/firefox.js @@ -67,6 +67,7 @@ export class Firefox { browsingContextIds: [this.windowId], debugLogs: this.options.verbose >= 2 || this.firefoxConfig.enableBidiHarLog, + maxBodySize: this.includeResponseBodies === 'all' ? 10_485_760 : 1, driver: runner.getDriver(), headerValueFormatter: this.options.cleanSensitiveHeaders ? cleanSensitiveHeaders diff --git a/lib/support/cli.js b/lib/support/cli.js index e03387bb0..3e162d86d 100644 --- a/lib/support/cli.js +++ b/lib/support/cli.js @@ -470,7 +470,7 @@ export function parseCommandLine() { .option('firefox.includeResponseBodies', { describe: 'Include response bodies in HAR', default: 'none', - choices: ['none', 'all', 'html'], + choices: ['none', 'all'], group: 'firefox' }) .option('firefox.appconstants', { diff --git a/package-lock.json b/package-lock.json index df0107d00..06d483043 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "chrome-remote-interface": "0.33.3", "execa": "9.6.0", "fast-stats": "0.0.7", - "ff-test-bidi-har-export": "0.0.18", + "ff-test-bidi-har-export": "0.0.20", "lodash.merge": "4.6.2", "selenium-webdriver": "4.39.0", "yargs": "18.0.0" @@ -4114,9 +4114,9 @@ } }, "node_modules/ff-test-bidi-har-export": { - "version": "0.0.18", - "resolved": "https://registry.npmjs.org/ff-test-bidi-har-export/-/ff-test-bidi-har-export-0.0.18.tgz", - "integrity": "sha512-9Id/mF6o0src/I4kCbLhkqSlLHMrbEi7cwI6yLpjsSK+xqdgo5J80tbkV7YkLV4NhNalJ5O+jPjZklz1pSurAQ==", + "version": "0.0.20", + "resolved": "https://registry.npmjs.org/ff-test-bidi-har-export/-/ff-test-bidi-har-export-0.0.20.tgz", + "integrity": "sha512-1Mt6RwIAW5kNm6WXMBb4m3/YV2uK1V/zaACfGnRcJXJW0LQ4Erv2Vtu+C3ZbQVtCogtPBoD0mnqkjRA+GRJ6Kw==", "license": "MPL-2.0" }, "node_modules/figures": { @@ -10430,9 +10430,9 @@ } }, "ff-test-bidi-har-export": { - "version": "0.0.18", - "resolved": "https://registry.npmjs.org/ff-test-bidi-har-export/-/ff-test-bidi-har-export-0.0.18.tgz", - "integrity": "sha512-9Id/mF6o0src/I4kCbLhkqSlLHMrbEi7cwI6yLpjsSK+xqdgo5J80tbkV7YkLV4NhNalJ5O+jPjZklz1pSurAQ==" + "version": "0.0.20", + "resolved": "https://registry.npmjs.org/ff-test-bidi-har-export/-/ff-test-bidi-har-export-0.0.20.tgz", + "integrity": "sha512-1Mt6RwIAW5kNm6WXMBb4m3/YV2uK1V/zaACfGnRcJXJW0LQ4Erv2Vtu+C3ZbQVtCogtPBoD0mnqkjRA+GRJ6Kw==" }, "figures": { "version": "6.1.0", diff --git a/package.json b/package.json index 3cdb9be19..2d9e5df8a 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "chrome-remote-interface": "0.33.3", "execa": "9.6.0", "fast-stats": "0.0.7", - "ff-test-bidi-har-export": "0.0.18", + "ff-test-bidi-har-export": "0.0.20", "lodash.merge": "4.6.2", "selenium-webdriver": "4.39.0", "yargs": "18.0.0"