问题
I'm looking to achieve something similar to Bitly's Chrome Extension. It's not exactly frameless but the style of the title bar is minimal. Also, unlike other types of windows, in Mac OS you can maximize the main browser window and spawn Bitly's window on top.
Neither window.open nor chrome.windows.create offer any options to remove the frame of a launched window. And when these windows are spawned from a fullscreen browser window (maximized) they are also maximized and cannot be used on top of the current browser window.
Chrome.app.window.create does expose the option to remove the frame but this only works for Chrome Apps and not extensions.
Neither of these potential duplicate questions sufficiently answer my question:
- How do I customize the title bar of a popup in a chrome extension?
- How to build an chrome extension like Google Hangouts (panels are deprecated)
来源:https://stackoverflow.com/questions/49675219/how-do-i-launch-a-frameless-window-from-a-google-chrome-extension