Giter VIP home page Giter VIP logo

Comments (4)

hupf avatar hupf commented on May 17, 2024 1

As far as I understand, the WebExtension API does currently not provide any way to control this. The tabs.create() API also loads the page:

https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/tabs/create

I also encountered long loading times when switching groups. The advantage is, that tabs of not-selected groups don't eat up any memory or cpu power...

But nonetheless there are discussions about a tab hiding API, I don't know what the state of it is:
https://www.ghacks.net/2017/08/02/mozilla-makes-tab-hiding-api-a-priority/

from tabmarks.

edouard-lopez avatar edouard-lopez commented on May 17, 2024

Thanks for your work @hupf.

State preservation would be huge improvement, hope @Firefox move on this.

Direct link to the bug issue

from tabmarks.

hupf avatar hupf commented on May 17, 2024

In this article a planned tabs.discard API is mentioned.

There is also this open feature request: Support the "discarded" property inside browser.tabs.create().

from tabmarks.

freaktechnik avatar freaktechnik commented on May 17, 2024

I guess you could try finding the tab using the sessions API for now, though it is almost impossible to identify the correct target to restore, since you can't go by tab id, only by url and title.

Also, discarding only unloads a tab, it doesn't hide it, hiding is a separate thing, see https://mail.mozilla.org/pipermail/dev-addons/2017-October/003320.html for the latest news on the API that is best suited for tab group add-ons.

from tabmarks.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.