What is the “shell” window type in chrome extensions? Can it be used to hide a window?

守給你的承諾、 提交于 2019-12-23 09:19:38

问题


I just noticed this in the trunk/dev channel:

type ( enumerated string ["normal", "popup", "panel", "app", "shell"] )

The type of browser window this is.

I tried it with with Canary: no window is shown, but we have console output, so something has been created. The thing is I just don't get it. How is this different from a background page?

I was hoping to toggle windows completely out of the user's view, without having to reload the window's content when toggling up. Anyway, I'm not hoping much as you can't update a window type with chrome.windows.update. But the question still remains: what is this "shell" type?


回答1:


"shell" moved to the new chrome.app.window API in r140947. Then it appears to have disappeared from there in the dev documentation.




回答2:


"shell" currently does nothing for extensions and should not be used.



来源:https://stackoverflow.com/questions/9927622/what-is-the-shell-window-type-in-chrome-extensions-can-it-be-used-to-hide-a-w

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!