Fungování této stránky je z důvodu údržby dočasně omezeno. Pokud žádný článek nápovědy nevyřeší váš problém a potřebujete se zeptat na další řešení, napište nám na Twitter @FirefoxSupport nebo Reddit /r/firefox.

Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Zjistit více

Ability to create unloaded tabs by chrome.tabs.create

  • 6 odpovědí
  • 1 má tento problém
  • 9 zobrazení
  • Poslední odpověď od kroppy

more options

As question says:

Ability to create discarded tabs (unloaded). Tabs should find favicon from cached url if available. If not, use just default favicon. Also there should be a parameter for titles, an array with titles should match the url length.

In case of windows.create, first tab should be loaded, as usual. chrome.windows.create({url: [], title: [], discarded: true}, function(window) {}); chrome.tabs.create({url: "your url here", title: "your title here", discarded: true}, function(tab) {});

As question says: Ability to create discarded tabs (unloaded). Tabs should find favicon from cached url if available. If not, use just default favicon. Also there should be a parameter for titles, an array with titles should match the url length. In case of windows.create, first tab should be loaded, as usual. chrome.windows.create({url: [], title: [], discarded: true}, function(window) {}); chrome.tabs.create({url: "your url here", title: "your title here", discarded: true}, function(tab) {});

Všechny odpovědi (6)

more options

Would you care to rephrase your question as no idea what you are asking for. Thanks.

more options

As I have no idea where to post feature requests, I posted it here. Question is directed to Firefox developers. My suggestion is to extend WebExtensions API to add ability to create tabs with unloaded (discarded) state. Preload only favicon and title.

more options

What about this:

browser.tabs.create({ url: 'https://mozilla.org', active: false})
.then(tab => browser.tabs.discard(tab.Id))

The good place to meet WebExt devs is here: https://discourse.mozilla.org/c/add-ons/development

more options

TyDraniu said

What about this: browser.tabs.create({ url: 'https://mozilla.org', active: false}) .then(tab => browser.tabs.discard(tab.Id)) The good place to meet WebExt devs is here: https://discourse.mozilla.org/c/add-ons/development

I tried that method some time ago. It won't load favicon neither title until page is loaded. And for some reason tab is "dead". You can activate it but is just empty. I can delay or make loop and wait until tab is loaded and discard it afterwards.

My point, was to not load anything in the first place to save internet traffic, memory and cpu, providing title and/or faviconUrl.

And by the way, you have error there "tab.Id" should be "tab.id"

I will take a look at the provided link.

Upravil uživatel kroppy dne

more options

I don't think FF forum can help with programming a userChrome.css option that is beyond the scope of the normal FF end user help forum. If you got that from someone else then you should contact them for support on the css side if you created it yourself then you will have to do the debugging and testing on how it works.

more options

WestEnd said

I don't think FF forum can help with programming a userChrome.css option that is beyond the scope of the normal FF end user help forum. If you got that from someone else then you should contact them for support on the css side if you created it yourself then you will have to do the debugging and testing on how it works.

I think your answer refers to someone else. Wrong tab maybe?