kiwibrowser / android

This repository is archived, and is now transferred to https://github.com/kiwibrowser/src
https://kiwibrowser.com/
718 stars 74 forks source link

extension captureVisibleTab not working #270

Open qttq23 opened 11 months ago

qttq23 commented 11 months ago

Hi, I'm trying an extension to capture screenshot of an active tab. the following code worked on Windows Edge but not on Android Kiwi Browser:

chrome.tabs.captureVisibleTab(
 (dataUrl ) => { console.log(dataUrl); }
);

https://developer.chrome.com/docs/extensions/reference/tabs/#method-captureVisibleTab

  1. the dataUrl is undefined and the error is: 'Unchecked runtime.lastError: No active web contents to capture'. image

  2. The tab is still active, though, i can't update its properties such as 'highlighted' or 'selected'. Another weird finding is the tab's windowId is different from the only window's id? image

  3. how to fix it or any other ways to capture screenshot of tab?