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

Firefox中browser.identity.getRedirectURL()返回随机ID而非设置的扩展ID问题

Firefox扩展中browser.identity.getRedirectURL()返回异常问题

我在Firefox浏览器中开发扩展,已在manifest.json的browser_specific_settings.gecko.id字段设置扩展ID为contexto-transletto@bstrama.com,扩展详情页面显示的ID也正确,但调用browser.identity.getRedirectURL()时,返回的却是https://3347c8cebdf365b6de12af5ab0927a76cf6421c3.extensions.allizom.org/。我尝试过咨询MDN AI、查阅官方文档等方法,未发现同类问题。

以下是我的manifest.json内容:

{
  "manifest_version": 2,
  "name": "Contexto transletto",
  "version": "1.0",
  "description": "TODO: Write a description",
  "permissions": [
    "contextMenus",
    "tabs",
    "identity",
    "activeTab",
    "scripting",
    "http://localhost/*",
    "http://127.0.0.1/*"
  ],
  "browser_specific_settings": {
    "gecko": {
      "id": "contexto-transletto@bstrama.com"
    }
  },
  "background": {
    "scripts": [
      "background.js"
    ],
    "persistent": false
  },
  "browser_action": {
    "default_popup": "popup.html",
    "default_icon": {
      "16": "images/logo/date-time-16.png",
      "32": "images/logo/date-time-32.png",
      "48": "images/logo/date-time-48.png",
      "128": "images/logo/date-time-128.png"
    },
    "default_title": "Getting Started Example"
  },
  "icons": {
    "16": "images/logo/date-time-16.png",
    "32": "images/logo/date-time-32.png",
    "48": "images/logo/date-time-48.png",
    "128": "images/logo/date-time-128.png"
  }
}

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.22 21:51:02