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

Opening Side Panel with tabId parameter opens side panel on all tabs #1179

Open
belthaZornv opened this issue Jun 10, 2024 · 1 comment
Open

Comments

@belthaZornv
Copy link

⚠️ If you have general Chrome Extensions questions, consider posting to the Chromium Extensions Group or Stack Overflow.

Describe the bug

I'm using:

https://github.com/GoogleChrome/chrome-extensions-samples/blob/main/functional-samples/cookbook.sidepanel-open/script.js

But the sidepanel stays open for all the tabs.

To Reproduce
Steps to reproduce the behavior, or file the issue is found in:

  1. Go to 'cookbook'
  2. Copy and paste the code to your code (background script)
  3. Install and open sidePanel -> sidePanel on all tabs.

Expected behavior

SidePanel only open for the active tab

Screenshots
If applicable, add screenshots to help explain your problem.

Notes
Anything additional here. 🌈

@oliverdunk oliverdunk changed the title Tab specific sidepanel - Cookbook - Not working Opening Side Panel with tabId parameter opens side panel on all tabs Jun 10, 2024
@munr0
Copy link

munr0 commented Oct 14, 2024

Bringing attention to this – using chrome.sidePanel.open({ tabId: sender.tab.id }); still seems to open the tab-specific side panel on the intended tab, but also opens the global tab defined in the "default_path": in manifest.json everywhere else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants