Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

chrome.browserAction.openPopup exists in document, but it does not exist #204

Closed
hanguokai opened this issue Jan 11, 2021 · 10 comments
Closed
Labels
bug Something on the site is broken!

Comments

@hanguokai
Copy link
Contributor

Describe the bug
For chrome.browserAction, in "old documents", I know there are getPopup and setPopup apis, but I don't remember there is an openPopup api. Now, openPopup in the "new document", and in my test it does not exist on stable chrome.

Is it a new feature in next chrome version? or a bug in document?

To Reproduce

  1. visit https://developer.chrome.com/docs/extensions/reference/browserAction/#method-openPopup
  2. Or see screenshot

Screen Shot 2021-01-12 at 12 03 22 AM

@hanguokai hanguokai added the bug Something on the site is broken! label Jan 11, 2021
@hanguokai
Copy link
Contributor Author

Find this https://bugs.chromium.org/p/chromium/issues/detail?id=436489 .
Looks like this api has never been available on stable chrome.

@samthor
Copy link
Contributor

samthor commented Jan 14, 2021

This is fixed but we need to do a new deploy.

@samthor samthor closed this as completed Jan 14, 2021
@chen99-long
Copy link

at present, i am using the v3 version, and there is no way to use this api

@connorlindsey
Copy link

What's the status of this api? Completely understand any security concerns or other issues delaying it.

In the meantime, what would be the best way to implement the same behavior? Currently thinking that instead of having a popup, using a content script which renders the same content in a modal. The service worker could open it when required, including when the browser action is clicked, but this loses out on the built-in behavior of the modal like closing when clicking outside.

@philippb
Copy link

This is till a problem. https://developer.chrome.com/docs/extensions/reference/action/#method-openPopup

image

I'm testing this on Chrome 99.0.4844.51

image

and get the error

Error handling response: TypeError: chrome.action.openPopup is not a function

Reading the documentation my understanding is that this should work with version >= 99.

thank you

@blonde-mike
Copy link

I'm seeing this issue as well. I'm unable to run chrome.action.openPopup()

@datgrog
Copy link

datgrog commented Apr 13, 2022

+1

@xde013
Copy link

xde013 commented Apr 27, 2022

@dotproto following the proposal document here action.openPopup() and Chrome documentation, it should be available but it's not available, even from a user action.

It is quite confusing. Do you have any ideas what can cause this? is it related to any of the following issues?
Bug 1
Bug 2

@Nick9499
Copy link

Nick9499 commented Sep 26, 2023

+1 , is it fixed?

@samthor samthor removed their assignment Sep 26, 2023
@zycoJamie
Copy link

this problem has not resolved, now.
TypeError: chrome.action.openPopup is not a function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something on the site is broken!
Projects
None yet
Development

No branches or pull requests

10 participants