Hi,
I try to use chrome.tabs.create() using the following code
chrome.tabs.getAllInWindow(null, function (tabs) {
var args = {
url: "about:blank",
windowId: null,
index: tabs.length,
selected: true
};
try {
chrome.tabs.create(args, null);
} catch (e) {
console.log(e);
}
});
I expect this code to open a new blank tab next to the rightmost
opened tab. For some reason toolstrip becomes clear (i.e. my button
disappears), JS console shows no errors. I wonder if I understand Tabs
API [http://dev.chromium.org/developers/design-documents/extensions/
tabs-api ] correctly. If this is a bug where I can send bugreport?
Thanks,
Denis
--~--~---------~--~----~------------~-------~--~----~
Chromium Discussion mailing list: [email protected]
View archives, change email options, or unsubscribe:
http://groups.google.com/group/chromium-discuss
-~----------~----~----~----~------~----~------~--~---