You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用puppeteer-core启动Firefox为何打开多无关标签而非目标网站?

问题:Firefox配合puppeteer-core打开网站异常生成无关标签

问题现象

  • 尝试用Firefox搭配puppeteer-core打开指定网站时,Firefox并未加载目标站点,反而生成3个带有无关URL的标签:
    • 标签1的URL:http://translate,backforwardcache,acceptchframe,mediarouter,optimizationhints/
    • 标签2的URL:http://idledetection/
    • 标签3的URL:http://srgb/
  • 这些URL中的术语疑似Firefox相关参数,但不清楚出现原因;将代码中executablePath替换为google-chrome-stable后,puppeteer可正常运行,说明问题出在Firefox端,且已知puppeteer-core支持Firefox。

环境版本信息

  • Firefox版本:102.0
  • puppeteer-core版本:8.19.2

代码示例

const puppeteer = require('puppeteer-core');

(async () => {
const browser = await puppeteer.launch({
  executablePath: 'firefox',
    headless: false
});

const page = await browser.newPage();
await page.goto('https://www.google.com');
}
)();

内容的提问来源于stack exchange,提问作者philipp

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.25 00:13:29