Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 OS-All Area-Misc

New issue 21370 by dawagner: chrome.tabs.captureVisibleTab optional  
windowId parameter is not optional
http://code.google.com/p/chromium/issues/detail?id=21370

Chrome Version       : 4.0.206.1

What steps will reproduce the problem?
1. Make a call in a background page of an extension to
chrome.tabs.captureVisibleTab(function(dataUrl) { console.log(dataUrl); });

What is the expected result?
dataUrl to be logged, with a screenshot of the currently visible tab. (as
per
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/tabs.html)

What happens instead?
Error: Invalid value for argument 0. Expected 'integer' but got 'function'.

Sample extension attached.

Attachments:
        ss.zip  717 bytes

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to