pageAction doesn't show in a browser popup window

这一生的挚爱 提交于 2020-01-05 08:41:42

问题


I'm not talking about the pageACtion's popup.html, but a browser window of type "popup".

I have an extension that shows a pageAction on a certain url (as usual). But the pageAction's button doesn't show if the url is in a popup window.

Couldn't find anything about it in chrome extension's documentation. Is it so, doesn't work in a popup typed window, or is it happening to me, because I'm using Ubuntu 13, for example?


回答1:


Thanks to @apsillers contribute, I conclude Chrome's popup window interface doesn't support browser actions nor page actions, by design.

chrome.pageAction.show on a popup window doesn't work, neither throws any error.

I think the location bar in a popup window isn't an omnibox.



来源:https://stackoverflow.com/questions/17792862/pageaction-doesnt-show-in-a-browser-popup-window

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