Closed Bug 803687 Opened 12 years ago Closed 12 years ago

Corrupt thumbnails after Fennec starts up with a page URL

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox19 verified)

VERIFIED FIXED
Firefox 19
Tracking Status
firefox19 --- verified

People

(Reporter: bnicholson, Assigned: wesj)

References

Details

Attachments

(3 files)

STR: 1) Open Fennec 2) Open any page 3) Push home and kill Fennec 4) Reopen Fennec; the page from step 2 should load 5) Go to about:home 6) Open any page The page in step 6 will have a corrupt thumbnail.
tracking-fennec: --- → ?
Looks like this isn't limited to killing/restoring Fennec. Opening Fennec with some (non-about:home) page loaded first is sufficient. Alternate STR: 1) Open Fennec from an external link 2) Go to about:home 3) Open any page
Summary: Corrupt thumbnails after killing/restoring Fennec → Corrupt thumbnails after Fennec starts up with a page URL
Attached patch PatchSplinter Review
We only hit this if (sThumbnailWidth < 0) path in this one case. On subsequent hits, we use the cached value, which we're not rounding and which then causes a step mismatch between the buffer returned from Gecko and the Bitmap we make in Java.
Attachment #673426 - Flags: review?(bugmail.mozilla)
Comment on attachment 673426 [details] [diff] [review] Patch Review of attachment 673426 [details] [diff] [review]: ----------------------------------------------------------------- Does this actually fix the corrupt thumbnail problem? I tried a similar patch locally earlier and saw it still happen, but it's possible I screwed up my test. Regardless the patch is good and at least takes care of bug 803690 if not this one.
Attachment #673426 - Flags: review?(bugmail.mozilla) → review+
Fix works locally.
After pulling this change from inbound and rebuilding, I can still reproduce using the STR in comment 3.
Whiteboard: [leave open]
Attached patch PatchSplinter Review
Whoops. I tested one bug and not another. We're smart about throwing away our buffer when the thumbnail size changes, but are keeping around the bitmap object and then trying to use our resized buffer with it.
Assignee: nobody → wjohnston
Attachment #673426 - Attachment is obsolete: true
Attachment #674252 - Flags: review?(bugmail.mozilla)
Comment on attachment 674252 [details] [diff] [review] Patch Review of attachment 674252 [details] [diff] [review]: ----------------------------------------------------------------- r=me if you make getThumbnailBitmap() synchronized as well.
Attachment #674252 - Flags: review?(bugmail.mozilla) → review+
The above patch should also fix bug 802510.
Do we still need to leave this bug open?
Nope. Should be good now.
Whiteboard: [leave open]
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 19
Status: RESOLVED → VERIFIED
tracking-fennec: ? → ---
Comment on attachment 673426 [details] [diff] [review] Patch Un-obsoleting this patch as it did actually land and is a valid patch.
Attachment #673426 - Attachment is obsolete: false
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: