如何设置 window 特定的 browserAction 按钮标题

How to set window specific browserAction button title

基于 https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/browserAction/setTitle 应该可以设置 window-specific browserAction title 使用类似于

browser.browserAction.setTitle({ title: 'foo', windowId: 3});

不过我得到了

 Error: Type error for parameter details (Unexpected property "windowId") for browserAction.setTitle.

这是否意味着 firefox 还不支持它?我在上面的文档页面上找不到任何相关信息。

我认为这仅受 Firefox 62 支持:https://bugzilla.mozilla.org/show_bug.cgi?id=1419893. The browser compat info noting this has been updated (https://github.com/mdn/browser-compat-data/pull/2586),但尚未部署到 MDN。不过,这可能会在今天发生。