tabs.captureVisibleTab() resolves as `undefined`

Issue #20064213 • Assigned to Arvind M.

Details

Author
Andrea G.
Created
Jan 2, 2019
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

When invoked from a popup, tabs.captureVisibleTab(null, {}, cb) passes the screenshot base64 encoded data to the callback.

However, if a tab is created from the popup, and the code within that new tab invokes tabs.captureVisibleTab(null, {}, cb), the callback will always return undefined, even if the parameters are specified (i.e. the currect active tab id and/or {format: 'png'} or jpeg).

The new tab could be either active or not, the result would be the same. It looks like there is some privilege issue with Web extension tabs created through the popup, which instead grants the ability to capture the screenshot.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Veerabhadra r.”

    • Hi thanks for reporting your feedback. We need more information to investigate further and reproduce this issue. It may be screenshots or snippet code or work around issue.

      Best regards,
      The MS Edge Team

    • Hi,

      We have created a better test case for you, that can be found here -> https://github.com/Manvel/eyeo/tree/master/edge-api

      Also you can find reproduction video here https://www.youtube.com/watch?v=9CkdZWLoOWE

      Hope this issue will be fixed, so we can enable Issue reporting in the Edge browser as well,

      Thanks in advance,

    • Also seems like Andrea were having an issue posting a comment here with the testcase previous week -> https://twitter.com/WebReflection/status/1081257579387518976

    • Microsoft Edge Team

      Changed Assigned To to “Arvind M.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in