[browser] limit the amount of open tabs restored when browser starts
Bug #1376433 reported by
Bill Filler
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UX |
Fix Released
|
Medium
|
Unassigned | ||
webbrowser-app |
Fix Released
|
High
|
Olivier Tilloy | ||
webbrowser-app (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I just noticed when launching the browser I had a huge list of open tabs (like 30). We should limit this to the 10 most recently visited tabs. Otherwise the list is bound to continue to grow and it's not really apparent to the user unless they visit the open tabs page. Even though we are not loading them in memory I'm sure there is still overhead with creating them.
Related branches
lp:~osomon/webbrowser-app/do-not-restore-all-tabs
- Bill Filler (community): Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 34 lines (+9/-1)1 file modifiedsrc/app/webbrowser/Browser.qml (+9/-1)
Changed in webbrowser-app: | |
importance: | Undecided → Critical |
assignee: | nobody → Olivier Tilloy (osomon) |
tags: | added: rtm14 touch-2014-10-09 |
Changed in webbrowser-app: | |
status: | Triaged → In Progress |
Changed in webbrowser-app: | |
status: | In Progress → Fix Released |
summary: |
- limit the amount of open tabs restored when browser starts + [browser] limit the amount of open tabs restored when browser starts |
Changed in ubuntu-ux: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
WebViews are instantiated on demand, when a tab is first activated. So when you start the browser and it restores 30 previously open tabs, it actually instantiates 30 lightweight tabComponent objects which are made up of just a FocusScope, hidden by default.
So I would expect the overhead to be really minimal, if not negligible.
It might still make sense to limit the number of tabs restored (given our data model in which tabs are always ordered by recency, this should be trivial to implement).
Adding an ubuntu-ux task to get design to comment on the idea.