问题
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