英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论