Skip to content

Commit e05ce40

Browse files
Bug 2046777 - fix: use about:blank as start url instead of about:home
1 parent 605a31c commit e05ce40

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Add to your Claude Code config file:
6565
"command": "npx",
6666
"args": ["-y", "@mozilla/firefox-devtools-mcp@latest", "--headless", "--viewport", "1280x720"],
6767
"env": {
68-
"START_URL": "about:home"
68+
"START_URL": "about:blank"
6969
}
7070
}
7171
}

src/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ export const cliOptions = {
9696
},
9797
startUrl: {
9898
type: 'string',
99-
description: 'URL to open when Firefox starts (default: about:home)',
100-
default: process.env.START_URL ?? 'about:home',
99+
description: 'URL to open when Firefox starts (default: about:blank)',
100+
default: process.env.START_URL ?? 'about:blank',
101101
},
102102
connectExisting: {
103103
type: 'boolean',

src/tools/firefox-management.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export const restartFirefoxTool = {
220220
startUrl: {
221221
type: 'string',
222222
description:
223-
'URL to navigate to after restart (optional, uses about:home if not specified)',
223+
'URL to navigate to after restart (optional, uses about:blank if not specified)',
224224
},
225225
prefs: {
226226
type: 'object',
@@ -282,7 +282,7 @@ export async function handleRestartFirefox(input: unknown) {
282282
profilePath: profilePath ?? currentOptions.profilePath,
283283
env: newEnv !== undefined ? newEnv : currentOptions.env,
284284
headless: headless !== undefined ? headless : currentOptions.headless,
285-
startUrl: startUrl ?? currentOptions.startUrl ?? 'about:home',
285+
startUrl: startUrl ?? currentOptions.startUrl ?? 'about:blank',
286286
prefs: mergedPrefs,
287287
};
288288

@@ -350,7 +350,7 @@ export async function handleRestartFirefox(input: unknown) {
350350
profilePath: profilePath ?? args.profilePath ?? undefined,
351351
env: newEnv,
352352
headless: headless ?? false,
353-
startUrl: startUrl ?? 'about:home',
353+
startUrl: startUrl ?? 'about:blank',
354354
};
355355

356356
setNextLaunchOptions(newOptions);

0 commit comments

Comments
 (0)