Pixel data for an image. Must be an ImageData object (for example, from a canvas element).
ConstonFired when a page action icon is clicked. This event will not fire if the page action has a popup.
Gets the html document set as the popup for this page action.
Gets the title of the page action.
Hides the page action.
The id of the tab for which you want to modify the page action.
Checks whether the page action is shown.
Opens the extension page action in the active window.
Sets the icon for the page action. The icon can be specified either as the path to an image file or as the pixel data from a canvas element, or as dictionary of either one of those. Either the path or the imageData property must be specified.
Sets the html document to be opened as a popup when the user clicks on the page action's icon.
Sets the title of the page action. This is displayed in a tooltip over the page action.
Shows the page action. The page action is shown whenever the tab is selected.
The id of the tab for which you want to modify the page action.
Use the
browser.pageActionAPI to put icons inside the address bar. Page actions represent actions that can be taken on the current page, but that aren't applicable to all pages.Manifest keys:
page_actionNot allowed in: Content scripts, Devtools pages