Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Trigger popup from content file #708

Closed
2 of 3 tasks
Tulean opened this issue Jul 28, 2023 · 4 comments
Closed
2 of 3 tasks

[BUG] Trigger popup from content file #708

Tulean opened this issue Jul 28, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@Tulean
Copy link

Tulean commented Jul 28, 2023

What happened?

I have added a button through content.ts into a website. What I am trying to do with that button is to trigger popup.tsx content. Do we have a way to manually via. some event to trigger this?

Version

Latest

What OS are you seeing the problem on?

No response

What browsers are you seeing the problem on?

No response

Relevant log output

No response

(OPTIONAL) Contribution

  • I would like to fix this BUG via a PR

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.
@Tulean Tulean added the bug Something isn't working label Jul 28, 2023
@louisgv
Copy link
Contributor

louisgv commented Aug 11, 2023

I think the API is coming soon, but likely not on stable: https://developer.chrome.com/docs/extensions/reference/action/#method-openPopup

Basically send a message to BGSW, and from BGSW call that method.

@louisgv louisgv closed this as completed Aug 11, 2023
@assimovt
Copy link

@louisgv is there any workaround with the current stable? my use case: context menu -> openPopup. i could probably do with the content overlay on the page, but then typing there conflicts with the onpage shortcuts (f.ex: github uses "s" to search). any help appreciated, ty!

@DanielRuf
Copy link

Unfortunately openPoup is still not available on Chrome (stable), I'm getting Error in event handler: TypeError: chrome.action.openPoupup is not a function.

@DanielRuf
Copy link

DanielRuf commented Nov 6, 2023

Still not available. Seems there is also some usage restriction without any further details.

Local testing is not available, the "policy required" part does not really help.

GoogleChrome/developer.chrome.com#204 (comment)
GoogleChrome/developer.chrome.com#2602 (comment)
https://bugs.chromium.org/p/chromium/issues/detail?id=1245093
https://bugs.chromium.org/p/chromium/issues/detail?id=1245093#c30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants