• 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

    Extension to manage tabs: changing tab index is via Tabs API is unpredictable

    Opera for Mac
    1
    1
    132
    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.
    • romasio
      romasio last edited by

      So this is a weird one related to chrome.tabs API through which I am attempting to reorder tabs.

      I have workspaces with 50+ tabs and I am not sure if workspace or tabs got into some bad disorganized state behind the scenes, but when I attempt to move last tab by one index up, i.e.

      await chrome.tabs.move(ourTab.id, {
          index: ourTab.index - 1
      });
      

      it stays in the place, index does not change.

      If I randomly attempt to move it to ourTab.index - 10, it does move, but not by 10 positions/tabs, but only by a few...

      • In some workspaces it works fine, in some it does not.
      • My workspace has no tab groups.
      • No pinned tabs.
      • Listing out current workspace tab indices, it does not start from 0, but rather from 8.
      • Extension has required tabs and tabsGroup permission.
      • Restarting browser makes no difference.

      Opera One(version: 122.0.5643.150) (arm64)
      Opera is up to date
      Update stream:Stable
      System:macOS Version 15.7.1 (Build 24G231) 15.7.1 arm64
      Chromium version:138.0.7204.251

      Any ideas?

      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-