How to open default_popup in the context menu, click in chrome extension

how to open default_popup in the context menu, click in the chrome extension

Anyway? when the user clicks on the context menu item, than we can call / open the html file that defines the default_popup action of the browser.

I am already browsing the following links. there the answer was no (in any way possible). if not, what am I doing to achieve this alternative?

how-to-open-the-default-popup-from-context-menu-in-a-chrome-extension
how-can-i-open-my-extensions-pop-up-with-javascript

+6
source share
1 answer

The Google Chrome development team has stated that this feature will not be added to the feature request :

The philosophy of browser pop-ups and pop-ups is that they should be triggered by user actions.

An alternative would be to open the Popup.html file in a new tab using the following code or something similar

Note. It is required to call from the background page and require the "tab", permission

// Opens Popup.html in new tab chrome.tabs.create({'url': chrome.extension.getURL('popup.html')}, function(tab) { // Tab opened. }); 
+1
source

All Articles