Opening Side Panel with `tabId` parameter opens side panel on all tabs
Author: belthaZornvCreated Jun 10, 2024Updated Aug 17, 2025
⚠️ If you have general Chrome Extensions questions, consider posting to the Chromium Extensions Group or Stack Overflow.
Describe the bug
I'm using:
But the sidepanel stays open for all the tabs.
To Reproduce Steps to reproduce the behavior, or file the issue is found in:
- Go to 'cookbook'
- Copy and paste the code to your code (background script)
- 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.
Source: GoogleChrome/chrome-extensions-samples