fix(record): use example.com as the default record start URL

This commit is contained in:
“haonan”
2026-07-22 14:15:53 +08:00
parent 585308df45
commit d1de850b42
8 changed files with 27 additions and 14 deletions
@@ -9,8 +9,8 @@ import {
} from "../record";
describe("record defaults", () => {
it("uses Baidu as the default injectable start URL", () => {
expect(RECORD_DEFAULT_START_URL).toBe("https://www.baidu.com/");
it("uses example.com as the default injectable start URL", () => {
expect(RECORD_DEFAULT_START_URL).toBe("https://example.com/");
});
});
+1 -1
View File
@@ -78,7 +78,7 @@ function sleep(ms: number): Promise<void> {
}
/** Injectable http(s) landing page when `tool.record_start` omits `url`. */
export const RECORD_DEFAULT_START_URL = "https://www.baidu.com/";
export const RECORD_DEFAULT_START_URL = "https://example.com/";
/** Pages where MV3 content scripts cannot attach (Agent Window boots here). */
function isContentScriptRestrictedUrl(url: string | undefined): boolean {