Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Extension API: chrome.browserAction.setPopup #10984

Closed
jonathansampson opened this issue Sep 16, 2017 · 4 comments
Closed

Extension API: chrome.browserAction.setPopup #10984

jonathansampson opened this issue Sep 16, 2017 · 4 comments
Labels
bug duplicate Issue has already been reported feature/extensions

Comments

@jonathansampson
Copy link
Collaborator

https://developer.chrome.com/extensions/browserAction#method-setPopup

Pass a single details object:

chrome.browserAction.setPopup(object details)
@mantriv
Copy link

mantriv commented Nov 26, 2017

Hi,
I am trying to open a popup using background script. I tried chrome.browserAction.setPopup passing the tabId and popup HTML url, but its not opening the popup. My requirement is to open the popup and display the content from the web page.

Thanks in advance.

@jonathansampson
Copy link
Collaborator Author

@mantriv I think you may be confusing this method (it has a confusing name). This method sets the browser action popup, which is the small window that appears when you click the browser action icon in the chrome of the browser. It sounds like you're wanting to open a popup window (window.open).

@mantriv
Copy link

mantriv commented Nov 27, 2017

Thanks for the response. Well my requirement is to open up the Chrome extension popup (popup.html) when I mouse hover on the web page say on link of google search result.
I don't want user to manually click on the Chrome extension icon on the browser toolbar.
After opening the popup html, read the content from the web page and show on the chrome extension popup. Hope you are clear with the requirement. Thanks and appreciate your help.

@bsclifton bsclifton added this to the Triage Backlog milestone Nov 27, 2017
@jonathansampson
Copy link
Collaborator Author

Dupe of #10986

@luixxiul luixxiul added the duplicate Issue has already been reported label Jan 17, 2018
@luixxiul luixxiul removed this from the Triage Backlog milestone Jan 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug duplicate Issue has already been reported feature/extensions
Projects
None yet
Development

No branches or pull requests

4 participants