Welcome guest, is this your first visit? Create Account now to join.
Results 1 to 2 of 2

This is a discussion on chrome.tabs.create problem within the Plugins Development section, part of the Chrome Plugins category: Hello, I have made a browser-action extension, and I would open several tabs with a link in the popup page, ...


  1. #1
    Inco is offline Junior Member
    Join Date
    Oct 2009
    Location
    France
    Posts
    18

    Default chrome.tabs.create problem

    Hello, I have made a browser-action extension, and I would open several tabs with a link in the popup page, but I've strange results.

    Here is my function:
    Code:
    var openAll = function (id){
    	window.close();
    	chrome.bookmarks.getChildren(id, function(children){
    		for (var i in children) {
    			var url = children[i].url;
    			chrome.tabs.create({'url': url});
    		}
    	});
    	//chrome.tabs.create({'url': 'http://www.google.com'},function(){});
    }
    As these, no tab will open... but if I uncomment the last line, all tabs will open.
    I'd be very grateful if you have a solution. Thanks.

  2. #2
    Inco is offline Junior Member
    Join Date
    Oct 2009
    Location
    France
    Posts
    18

    Default

    worked in 4.0.237.0, when "window.close();" is removed.

Similar Threads

  1. How to create themes in crx format for Win, Mac & Linux
    By sulasno in forum Themes Development
    Replies: 6
    Last Post: 01-27-2011, 05:57 PM
  2. How to create a new theme for Chrome 3.0.196.2 for newbies
    By sulasno in forum Themes Troubleshooting
    Replies: 5
    Last Post: 01-12-2011, 12:31 PM
  3. How to create a new theme for Stable / Beta / Dev Chrome
    By sulasno in forum Themes Development
    Replies: 24
    Last Post: 12-03-2009, 10:48 PM
  4. Create & Read cookies problem
    By tuan_robert in forum Plugins Troubleshooting
    Replies: 0
    Last Post: 10-16-2009, 04:24 AM
  5. Closing tabs/undoing to previously closed tabs
    By sam2 in forum Chrome Plugins
    Replies: 3
    Last Post: 04-16-2009, 11:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •