Navigation

    • 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

    [Solved]I need WindowId for Sidebar in Opera 29

    Future releases
    2
    4
    547
    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.
    • kroppy
      kroppy last edited by

      I can't find a way to get WindowId or Window.id where Sidebar residues.
      I can get it easily from chrome.windows.getCurrent or from tabs.query, when sidebar is launched in active window, but issue starts when browser is closed from menu with multiple windows and started with Sidebar open.
      My extension gets confused at this point, because all sidebars add tabs from current window.
      Oh and one more thing, opr.sidebarAction.onClicked.addListener does not work, I get "Cannot read property 'addListener' of undefined".

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

        Bump, I see update to Opera 31, but no updates in API documentation.
        I see ExtensionSidebarTest.SidebarVisibilityInMultipleWindows in blog post, but will it give me window.ids ?

        Oh and one more thing, I see now that opera:// internal pages are now browser://, but I doubt it was intentional.

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

          Yeah, I see the internal pages as browser:// too. opera:// was much better in my opinion.

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

            I completely forgot about this thread. This is not needed anymore because since opera version 32, when I call chrome.windows.getCurrent from a sidebar, it finally gives me current windowId instead of Id from active window. I always wondered why it always gave me the wrong Id, that's why i asked for this feature from sidebar's API, but it must have been a bug.
            So it's solved and thread can be closed 🙂

            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-