Hello everyone,
I would like to bring to your attention a potential bug or unexpected behavior that I have encountered regarding the "activetab" permission when using the side panel view in a Chrome extension. I am seeking insights from the community to better understand if this behavior is expected or if it should be considered a bug.
Issue Description:
When utilizing the "activetab" permission in conjunction with the side panel view, it appears that the permission does not provide temporary access as expected. Specifically, I have encountered an issue when attempting to use the
`captureVisibleTab` API to capture a screenshot of the active page and initiate a download.
In the background script, when the extension is using the pop-up menu, the `captureVisibleTab` API functions flawlessly. However, upon switching to the side panel view, an error is encountered: "Unchecked runtime.lastError: Either the '<all_urls>' or 'activeTab' permission is required."
Objective:
My objective is to avoid adding the "all_urls" permission, as doing so may trigger a new warning for the extension. I would like to determine whether the observed behavior is expected or if it should be considered a bug with the "activetab" permission in conjunction with the side panel API and Manifest V3.
Clarification:
I kindly request the assistance of fellow developers who have experience with Chrome extensions and the "activetab" permission to share their insights. Specifically, I would like to know if this behavior is by design or if it should be considered a bug that needs to be addressed. Any suggestions or workarounds to achieve the desired functionality within the side panel view without requiring the "all_urls" permission would be greatly appreciated.
Thank you for your time and valuable input.
Thank you
Robert James Gabriel
---
Please feel free to customize the form post according to your specific requirements and include any additional details that might be relevant to your situation. Good luck with resolving the issue!