removing individual nodes from recently closed tabs

220 views
Skip to first unread message

Wolf War

unread,
Jan 27, 2015, 10:08:27 AM1/27/15
to chromium-...@chromium.org
Is there a way (with extension) to remove individual nodes from recently closed tabs list (hamburger button >> Recent tabs)?
If I delete item from History, it is still in the recent tabs list. Only when I delete whole history, recent tabs list is cleared completely.
But is there a way to remove just a single node from that list?

Scott Fujan

unread,
Jan 27, 2015, 10:19:00 AM1/27/15
to Wolf War, Chromium-extensions
The API to access recently closed tabs is chrome.sessions. I don't see a delete, however.

Scott

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/29f83217-c63d-4bd3-8ed8-66e144126bd9%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Wolf War

unread,
Jan 27, 2015, 10:24:28 AM1/27/15
to chromium-...@chromium.org, wolf...@gmail.com
yeah, there is no way with Sessions API, plus getRecentlyClosed method behaves really weird. I can't rely on it even for fetching recent tabs.

iza

unread,
Jan 27, 2015, 2:15:11 PM1/27/15
to chromium-...@chromium.org, wolf...@gmail.com
AFAIK the only way to remove a session from the list is to restore it (chrome.sessions.restore), but obviously that isn't what you want.

There is a bug where getRecentlyClosed only has closed tabs from the current session until the hamburger menu is opened for the first time (crbug.com/407525). Is that the weird behaviour you're talking about, or something else?

Wolf War

unread,
Jan 27, 2015, 5:11:29 PM1/27/15
to chromium-...@chromium.org, wolf...@gmail.com
I remember testing getRecentlyClosed couple of months ago, and I was getting duplicate results (as duplicate tabs, individually and one more time under window object) so I ditch it and continue to maintain the list of closed tabs per session manually.
And overall philosophy of this API is confusing. 
Tabs with negative index are from previous session?
what would WindowId represent ?.. it's not id of the window in which tab is closed, because in my results all WindowId's are the same (and tabs are from different windows)
Chrome on hamburger menu is giving limited number of recent tabs? (I closed around 25-30 tabs, and only 8 is shown)
Reply all
Reply to author
Forward
0 new messages