thumbnails missing from Top Sites view

Bug #1540129 reported by Bill Filler
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Bill Filler
webbrowser-app (Ubuntu)
Fix Released
High
Olivier Tilloy

Bug Description

On all of my devices (arale, krillin and N4), the Top Sites page frequently has empty thumbnails for some of it's listings. I have not dug into steps to reproduce, but am experiencing this on all of my devices. This needs to be debugged further and fixed. Let me know what information needs to be provided if you cannot reproduce it.

Related branches

Bill Filler (bfiller)
Changed in webbrowser-app (Ubuntu):
assignee: nobody → Olivier Tilloy (osomon)
importance: Undecided → High
Changed in canonical-devices-system-image:
assignee: nobody → Bill Filler (bfiller)
importance: Undecided → High
status: New → Confirmed
milestone: none → ww08-2016
Revision history for this message
Olivier Tilloy (osomon) wrote :

I’m seeing the same problem, will need to dig into it.

Changed in webbrowser-app (Ubuntu):
status: New → Confirmed
Revision history for this message
Olivier Tilloy (osomon) wrote :

I’m seeing that too on my devices, and I’ve been able to "fix" it by doing the following:

 1) open a new tab
 2) in the new tab view, switch to the top sites grid if needed, identify one top site that doesn’t have a thumbnail, and tap/click it
 3) open a new tab again, and go back to step #2 until all top sites have thumbnails

As a corollary, a possible explanation for the bug is that missing thumbnails were never generated in the first place.
A thumbnail is generated shortly before a tab becomes invisible, so typically switching between tabs or opening a new tab will generate a thumbnail for the tab that was current. On the other hand, closing the current tab or using the address bar to browse to a different website in an existing tab won’t generate a thumbnail.

My suspicion is that those top sites that are missing a thumbnail are typically being browsed to, and then either the tab is closed or the address bar is used to browse to a different site.

To fix that, we need to find the right moment to generate a thumbnail for the current tab, once it has finished rendering.

Revision history for this message
Olivier Tilloy (osomon) wrote :

When closing a tab, its 'current' property becomes false, and as a consequence a capture is requested. However it never manages to complete because in the meantime the tab object has been destroyed. This could be worked around by delaying the destruction until after the capture has been taken, but it wouldn’t solve the case where one re-uses the same webview to navigate to a different site.

Olivier Tilloy (osomon)
Changed in webbrowser-app (Ubuntu):
status: Confirmed → In Progress
Changed in canonical-devices-system-image:
status: Confirmed → In Progress
Revision history for this message
Bill Filler (bfiller) wrote :

We should also make sure of the following:
- display some sort of placeholder graphic (we used to have something iirc) in the case where thumbnail is not generated
- make sure whatever fix we apply to solve this issue is also used when generating previews that appear in tabs, as I've also seen cases (although not as common) where the tab previews are empty and could be the same root cause.

Revision history for this message
Olivier Tilloy (osomon) wrote :

The fix in the linked branch should cater for the second issue, because a capture will be taken (almost) as soon as the page is finished loading, and it won’t be deleted until the page is closed.

Regarding the first point, I’ll talk to design about it.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package webbrowser-app - 0.23+16.04.20160215.1-0ubuntu1

---------------
webbrowser-app (0.23+16.04.20160215.1-0ubuntu1) xenial; urgency=medium

  [ CI Train Bot ]
  * Resync trunk.

  [ Olivier Tilloy ]
  * Add keyboard navigation support to narrow views (new tab view,
    history view, bookmarks view, downloads view). (LP: #1539221)
  * Add video-specific contextual actions. (LP: #1539676)
  * Take a capture of the current page shortly after it has finished
    loading to give rendering an opportunity to complete. (LP: #1540129)
  * Use the new bottom edge bar to open the tabs view in autopilot
    tests.

 -- Olivier Tilloy <email address hidden> Mon, 15 Feb 2016 13:33:21 +0000

Changed in webbrowser-app (Ubuntu):
status: In Progress → Fix Released
Olivier Tilloy (osomon)
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.