我刚刚移植了一个将 about:newtab 页面从 Chrome 更改为 Firefox 的扩展。
这样做是这样的(来自manifest.json):
...
"chrome_url_overrides": {
"newtab": "index.html"
},
...
Google Chrome 不会在地址栏中显示任何内容,但我的扩展程序的 Firefox 版本显示moz-extension://some-hex-string/index.html。
在这种情况下,有没有办法让 Firefox 显示一个空的地址栏?