Question

I am using captureVisibleTab as detailed here http://code.google.com/chrome/extensions/tabs.html

chrome.tabs.captureVisibleTab(undefined,{format:"png"}, function(dataUrl){
    //checking for dataUrl here
});

I have wrapped the code into a QUnit test and on ChromeOS 18 I get:

enter image description here

So everything is working fine.

The same code run on ChromeOS 19 (beta) or 20 (dev) returns:

enter image description here

dataUrl is undefined

I also get a message in the Inspector saying:

Internal Error whilst trying to capture the visible region of the current tab

Incidentally, I also tried to test this on Chrome Canary (currently on version 20) and received no such issue

It seems like the api has changed, but I cant see any details of these changes in the documentation

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top