Whenever I try to use the captureVisibleTab function on a page where I have a div with preserve3d in CSS3, all I see is a blank page. How can I solve this issue?
Here is my simple code for capturing the browser screen:
chrome.browserAction.onClicked.addListener(function(tab) {
chrome.tabs.captureVisibleTab(null, function(img) {
$.ajax({
type: "POST",
url: "..my url..",
data: "img=" + img,
success: function(e){
alert(e);
}});
});
});
What changes do I need to make to ensure that the captureVisibleTab function works as expected? Any suggestions on how to modify the code?