Feature-Request: chrome.tabs.create as discarded
Reported by
ka...@jagiello.it,
Sep 1
|
||||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0
Steps to reproduce the problem:
1. create an extension with "tabs" permission
2. use chrome.tabs.create API
3. add {discarded: true, active: false, title: "your title"} to parameters
4. see if tab is created as unloaded
What is the expected behavior?
Tab should be created as not active and not loaded (discarded) with a title.
Mozilla implemented creating unloaded tabs in Firefox 63.
Tabs should find favicon from cached url if available. If not, just use default favicon.
Also there should be a parameter for title. For a new window, an array with urls and titles should match lengths.
For windows.create, active tab should be loaded, as usual.
chrome.windows.create({url: [array with your urls], title: [array with your urls], discarded: true}, function(window) {});
chrome.tabs.create({url: "your url here", title: "your title here", discarded: true}, function(tab) {});
This feature will hit beta in Firefox in few days. It's time for you google! All session managers needs that! Like session buddy, tab bundler and many others. Switching sessions without loading all tabs is the way to go. Once Firefox 63 is out it will be huge!
More on the topic here:
https://bugzilla.mozilla.org/show_bug.cgi?id=1378647
What went wrong?
tab is not created with runtime error.
Did this work before? No
Does this work in other browsers? N/A
Chrome version: Chrome/70.0.3532.8 Channel: n/a
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:
,
Sep 4
Thanks for filing the issue! From comment#0, the issue seems to be a feature request, hence tentatively marking it as Untriaged. Adding components "Platform>Extensions" & UI>Browser>TabStrip, please change if this isn't apt.
,
Sep 7
That's an interesting idea. chrisha@, do you know who owns tab discarding (or do you yourself)? Any idea how complicated this would be from a discarding point of view? In theory, we already do this for session restore.
,
Sep 14
Yup, I'm the right owner. Not at all complicated, as you point out, we already do this with session restore. Assigning to me for now, and I'll see if I can find an owner on the team.
,
Sep 14
(I think you meant to assign this, rather than mark its status :))
,
Oct 31
I'm using / testing an extension which is trying to use this on Canary (72), but the developer says that chrome.tabs.create({discarded:true}); still returns "Unexpected property: 'discarded'". Is the target for this still accurate, or does it not work that way? I'm not familiar with the release cycle / version numbers, but just wanted to add my support for this one... Tx.
,
Nov 6
This work is low priority and hasn't been staffed or completed as of yet. This bug will be updated with information if and when that changes. I've removed target milestones for the time being, as we can't commit to building this for any given milestone.
,
Nov 7
We will patiently wait for this feature. It's a must have. Firefox does it splendidly already and is my "daily driver" for the time being, I'm testing some session managers that use it, and it's a really nice to be able to load a bunch of tabs without hogging RAM at the very start :)
,
Today
(10 hours ago)
This really is a necessity when opening sessions with more than ~10 tabs (which I do very often). Now Firefox's "Tab Session Manager" extension opens large sessions many times faster than Chrome. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by viswa.karala@chromium.org
, Sep 2