Closed Bug 741275 Opened 12 years ago Closed 12 years ago

Add back support for making a thumbnail after pageload

Categories

(Firefox for Android Graveyard :: General, defect)

x86
Android
defect
Not set
normal

Tracking

(firefox15 verified, blocking-fennec1.0 beta+)

VERIFIED FIXED
Firefox 14
Tracking Status
firefox15 --- verified
blocking-fennec1.0 --- beta+

People

(Reporter: mfinkle, Assigned: gbrown)

References

Details

Attachments

(1 file, 1 obsolete file)

Bug 740146 removed the screenshot code, but also removed making a thumbnail after a pageload. We should add that back:

https://hg.mozilla.org/integration/mozilla-inbound/rev/d3f20d0371d0#l1.180

Right now, we only make thumbnails when opening the TabTray. About:Home also depends on thumbnails and might be empty until the TabTray is displayed.
Darn, how did that happen? Purely unintentional...
Assignee: nobody → gbrown
Depends on: 740146
OS: Linux → Android
I think it's as simple as calling getAndProcessThumbnailForTab - it seems to work for me - and that the remainder of the old SessionSnapshotRunnable is no longer relevant.
Attachment #611498 - Flags: review?(mark.finkle)
Comment on attachment 611498 [details] [diff] [review]
add back thumbnail creation on page load


>+        if (Tabs.getInstance().isSelectedTab(tab)) {
>+            GeckoAppShell.getHandler().postDelayed(new Runnable() {
>+                public void run() {
>+                    getAndProcessThumbnailForTab(tab);
>+                }
>+            }, 500);
>+        }

Just remove the isSelected check. I'm pretty sure we want to always make the thumbnail on a pageload.
Attachment #611498 - Flags: review?(mark.finkle) → review+
Removed check for selected tab and re-tested. r=mfinkle carried.
Attachment #611498 - Attachment is obsolete: true
Attachment #611535 - Flags: review+
Keywords: checkin-needed
Needed for proper thumbnail creation
blocking-fennec1.0: --- → beta+
https://hg.mozilla.org/integration/mozilla-inbound/rev/553c1d8965ca
Flags: in-testsuite-
Keywords: checkin-needed
Target Milestone: --- → Firefox 14
https://hg.mozilla.org/mozilla-central/rev/553c1d8965ca
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Thumbnail is created after pageload on the latest Nightly. Closing bug as verified fixed on:

Firefox 15.0a1 (2012-05-22)
Device: Galaxy Nexus
OS: Android 4.0.2
Status: RESOLVED → VERIFIED
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: