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)
Tracking
(firefox19 verified)
VERIFIED
FIXED
Firefox 19
Tracking | Status | |
---|---|---|
firefox19 | --- | verified |
People
(Reporter: bnicholson, Assigned: wesj)
References
Details
Attachments
(3 files)
97.00 KB,
image/png
|
Details | |
1.17 KB,
patch
|
kats
:
review+
|
Details | Diff | Splinter Review |
988 bytes,
patch
|
kats
:
review+
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Comment 1•12 years ago
|
||
Reporter | ||
Updated•12 years ago
|
tracking-fennec: --- → ?
Reporter | ||
Comment 3•12 years ago
|
||
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
Assignee | ||
Comment 4•12 years ago
|
||
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 5•12 years ago
|
||
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+
Assignee | ||
Comment 6•12 years ago
|
||
Fix works locally.
Assignee | ||
Comment 7•12 years ago
|
||
Reporter | ||
Comment 8•12 years ago
|
||
After pulling this change from inbound and rebuilding, I can still reproduce using the STR in comment 3.
Reporter | ||
Updated•12 years ago
|
Whiteboard: [leave open]
Comment 9•12 years ago
|
||
Flags: in-testsuite-
Assignee | ||
Comment 10•12 years ago
|
||
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 11•12 years ago
|
||
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+
Comment 12•12 years ago
|
||
The above patch should also fix bug 802510.
Assignee | ||
Comment 15•12 years ago
|
||
Comment 16•12 years ago
|
||
Comment 17•12 years ago
|
||
Do we still need to leave this bug open?
Reporter | ||
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•12 years ago
|
Target Milestone: --- → Firefox 19
Updated•12 years ago
|
Status: RESOLVED → VERIFIED
status-firefox19:
--- → verified
Updated•12 years ago
|
tracking-fennec: ? → ---
Comment 19•12 years ago
|
||
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
Updated•12 years ago
|
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•