Using "captureVisibleTab" on extension page

I have an extension that needs to take screenshot of it's own page, but the browser.tabs.captureVisibleTab() doesn't work on "safari-web-extension://" protocol - even when the page is the extension itself and even when using "activeTab" (from popup / context menu) and "<all_urls>" permissions.

It just fails with:
Code Block
Error: Error capturing visible tab.


Is there some workaround?
Using "captureVisibleTab" on extension page
 
 
Q