New issue
Advanced search Search tips

Issue 879838 link

Starred by 4 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 3
Type: Feature



Sign in to add a comment

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:
 
Labels: Needs-Triage-M70
Cc: vamshi.kommuri@chromium.org
Components: Platform>Extensions UI>Browser>TabStrip
Labels: -Type-Bug Triaged-ET Target-71 M-71 FoundIn-71 OS-Linux OS-Mac Type-Feature
Status: Untriaged (was: Unconfirmed)
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.
Cc: rdevlin....@chromium.org chrisha@chromium.org
Status: Available (was: Untriaged)
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.
Status: chrishachromium.org (was: Available)
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.
Owner: chrisha@chromium.org
Status: Assigned (was: chrishachromium.org)
(I think you meant to assign this, rather than mark its status :))
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.
Labels: -Pri-2 -Arch-x86_64 -M-71 -Target-71 -Needs-Triage-M70 -FoundIn-71 Pri-3
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.
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 :)

Comment 9 by dmitriy....@gmail.com, 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