Closed Bug 819277 Opened 12 years ago Closed 12 years ago

[Browser] missing thumbnails when a place has no screenshot

Categories

(Firefox OS Graveyard :: Gaia::Browser, defect, P3)

defect

Tracking

(blocking-basecamp:+)

VERIFIED FIXED
blocking-basecamp +

People

(Reporter: ttaubert, Assigned: ttaubert)

Details

Attachments

(1 file)

When a place doesn't have a .screenshot property I get this:

E/GeckoConsole( 7560): [JavaScript Error: "NS_ERROR_INVALID_POINTER: Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMMozURLProperty.createObjectURL]" {file: "app://browser.gaiamobile.org/js/browser.js" line: 1341}]

We should be able to display top sites without a thumbnail/screenshot. The fix is easy.
Attachment #689632 - Flags: review?(ben)
blocking-basecamp: ? → +
Priority: -- → P3
What happens? Default thumbnail shown? White space? Unless the whole page can't be displayed, not going to block on this. Please re-nom if it breaks the whole page.
blocking-basecamp: + → -
Please go through approval process to land this.
(In reply to Dietrich Ayala (:dietrich) from comment #2)
> What happens? Default thumbnail shown? White space? Unless the whole page
> can't be displayed, not going to block on this. Please re-nom if it breaks
> the whole page.

The whole top-site div is not shown because the .forEach() call aborts with an error. Subsequent top-sites should not be shown as well. Not sure what counts as "breaking the whole page" but it just stays white and empty so I think this doesn't block.
I guess a clearer criteria would be: Does just that top-site not show, or do no top-sites show?

Sounds like the latter, so blocking+.
blocking-basecamp: - → +
Hm, another clarifying question: How often will a top-site not have a thumbnail, and why?
(In reply to Dietrich Ayala (:dietrich) from comment #6)
> Hm, another clarifying question: How often will a top-site not have a
> thumbnail, and why?

Good question. The site that was failing for me was some kind of WAP portal. Not sure how I got into that situation and if I can reproduce it. The fix seemed so easy to me that I didn't really try to dig into it much further (although I understand this would help categorizing this better).
I'd be happy with a fix that handled thumbnail-less top-sites by putting a placeholder image.
Attachment #689632 - Flags: review?(ben) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Bug in browser, thumbnail-less top-sites on restarting browser, did not render the site. Patch updated.
Tested on a Unagi Device. 

Reviewd and VERIFIED on:

Build ID : 20130102070202 
Device : Unagi
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: