• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    chrome.tabs.detectLanguage bug

    Opera add-ons
    3
    3
    987
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • acvetkov
      acvetkov last edited by

      chrome.tabs.detectLanguage(tabId, function(lang) {
      // this callback never calls
      // unreachable place
      });

      reproduce steps:

      1. open en.wikipedia.org
      2. in extension background page call chrome.tabs.query({}, console.log.bind(console)); // invokes array of chrome.tab.Tab object
      3. detect wikipedia tab id (for example, 10);
      4. call chrome.tabs.detectLanguage(10, function(lang) {
        // never calls
        });

      This problem is actual since 25 major version.

      Reply Quote 0
        1 Reply Last reply
      • vitpotapov
        vitpotapov last edited by

        +1
        Also faced with that problem! Please fix it!

        ps: In google chrome tabs.detectLanguage works fine.

        Reply Quote 0
          1 Reply Last reply
        • gustavwiz
          gustavwiz last edited by

          Confirmed in Opera developer 32. https://dev.opera.com/extensions/apis.html here it should stand if detectLanguage's not supported. It does not.

          Reply Quote 0
            1 Reply Last reply
          • First post
            Last post

          Computer browsers

          • Opera for Windows
          • Opera for Mac
          • Opera for Linux
          • Opera beta version
          • Opera USB

          Mobile browsers

          • Opera for Android
          • Opera Mini
          • Opera Touch
          • Opera for basic phones

          • Add-ons
          • Opera account
          • Wallpapers
          • Opera Ads

          • Help & support
          • Opera blogs
          • Opera forums
          • Dev.Opera

          • Security
          • Privacy
          • Cookies Policy
          • EULA
          • Terms of Service

          • About Opera
          • Press info
          • Jobs
          • Investors
          • Become a partner
          • Contact us

          Follow Opera

          • Opera - Facebook
          • Opera - Twitter
          • Opera - YouTube
          • Opera - LinkedIn
          • Opera - Instagram

          © Opera Software 1995-