如何从隐身窗口创建非隐身窗口

huangapple go评论52阅读模式
英文:

How to create a non-incognito window from an incognito window

问题

我有一个Chrome扩展程序,用户可以在隐身模式下启用,它能够按预期工作。在按钮按下时,我试图强制使特定的网址不在隐身模式下打开,即使从隐身窗口内部启动也是如此。

chrome.windows.create({ 'url': 'https://www.google.com', 'incognito': false });


但它只创建了另一个隐身窗口。

在隐身窗口内部是否可能创建非隐身窗口和/或选项卡?
英文:

I have a Chrome extension that the user can enable for incognito, which works as intended. Upon button press, I'm trying to force a specific url to NOT open incognito, even when initiated from within an incognito window.

chrome.windows.create({ 'url': 'https://www.google.com', 'incognito': false });

But it only creates another incognito window.

Is it possible to create a non-incognito window and/or tab from within an incognito window?

答案1

得分: 1

不,这是不可能的

Chrome的扩展API有意阻止您在隐身窗口内创建非隐身窗口或选项卡。

隐身模式的目的是确保无法访问浏览历史和数据的其余部分。其中一部分是确保您无法打开非隐身选项卡或窗口。

英文:

No, it is not possible

Chrome's extension API deliberately prevents you from creating a non-incognito window or tab from within an incognito window.

The intention of incognito mode is to ensure that the rest of the browsing history and data are not accessible. Part of this is is making sure that you can't open such non-incognito tabs or windows.

huangapple
  • 本文由 发表于 2023年4月11日 03:58:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/75980281.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定