| 类型 |
字符串
|
|---|---|
| Mandatory | No |
| 范例 |
|
使用
incognito
key to control how the extension works with private browsing windows.
This is a string which may take any of the following values:
incognito
property in the
Window
or
Tab
that represents them. This property indicates whether or not the object is private:
browser.windows.getLastFocused().then((windowInfo) => {
console.log(`Window is private: ${windowInfo.incognito}`);
});
localStorage
is not shared). However, the WebExtension API
storage.local
is shared. (
注意:
this setting is not supported by Firefox.)
"incognito": "spanning"
"incognito": "split"
"incognito": "not_allowed"
BCD tables only load in the browser
最后修改: , 由 MDN 贡献者