Closed Bug 1387580 Opened 7 years ago Closed 7 years ago

Some top sites never get screenshots of redirected pages

Categories

(Firefox :: New Tab Page, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 57
Tracking Status
firefox57 --- verified

People

(Reporter: ekr, Assigned: Mardak)

References

Details

Attachments

(6 files)

Attached image image(2).png
The rest of the tiles render properly
Hmm... seems to work for me. Are you logged in to either? (Although I believe screenshots happen without cookies. ursula?)
Flags: needinfo?(usarracini)
Strava yes, HN no.

LMK if there's any more data you would like me to gather.
I'll make this more general. In my main profile, Feedly (logged in) just shows the fallback "F" even after restarts. But a clean profile gets a screenshot for feedly just fine.
Summary: HN and Strava not rendering properly on Activity Stream → Some top sites never get screenshots
ekr, could you share the urls of those sites missing screenshots? I think it might be something with redirects

E.g., my missing screenshot Feedly url is http://www.feedly.com/i/latest but that redirects to https://feedly.com/i/welcome without cookies
Flags: needinfo?(ekr)
I right-clicked copy link location, and got:

https://www.strava.com/dashboard
http://www.news.ycombinator.com/
Flags: needinfo?(ekr)
And those suspiciously do redirect to..

https://www.strava.com/login

Actually that HN link doesn't even work for me. Charter steals it:

$ dig www.news.ycombinator.com
www.news.ycombinator.com. 10	IN	A	198.105.244.24

$ ping search.charter.net
PING search.charter.net (198.105.244.24)

If I set DNS to something else (8.8.8.8), Firefox says
Firefox can’t find the server at www.news.ycombinator.com.
Summary: Some top sites never get screenshots → Some top sites never get screenshots of redirected pages
Attached image initial fixes
Here's activity stream with a few fixes when running

> ./mach run --setpref browser.newtabpage.pinned='[{"url":"https://www.mozilla.org/"},{"url":"https://www.strava.com/dashboard"},{"url":"http://www.feedly.com/i/latest"},{"url":"https://www.mozilla.com/"}]'

where those urls redirect to:
https://www.mozilla.org/en-US/
https://www.strava.com/login
https://feedly.com/i/welcome
https://www.mozilla.org/en-US/firefox/

It has a fix for not losing the Promise to a GC https://bugzilla.mozilla.org/show_bug.cgi?id=1387682

which gets mozilla.org and mozilla.com to show a screenshot without needing a restart (thumbnail is created but the Promise got eaten by GC)

And a fix for correctly converting over 500k bytes https://github.com/mozilla/activity-stream/pull/3101

which gets strava to work because it's screenshot turns out to be quite large.

ekr, I filed a separate issue for the HN preferring non-existent www. https://github.com/mozilla/activity-stream/issues/3102
Flags: needinfo?(usarracini)
This is running with a clean profile as well as turning off "tippy top" packaged icons for the default sites.

> ./mach run --setpref browser.newtabpage.pinned='[{"url":"https://www.mozilla.org/"},{"url":"https://www.strava.com/dashboard"},{"url":"https://mzl.la/"},{"url":"http://www.feedly.com/i/latest"},{"url":"https://www.mozilla.com/"},{"url":"https://mint.intuit.com/overview.event"}]'

Some thumbnails load faster as it captures right away but it gets confused with feedly redirect and captures a blank page for mint.
Assignee: nobody → edilee
Status: NEW → ASSIGNED
Same process as the previous attachment #8894056 [details] except with the redirect fix where it waits 2.5sec for the page to settle before capturing. Interestingly the total time of both videos are ~10sec.
Comment on attachment 8894058 [details]
Bug 1387580 - Some top sites never get screenshots of redirected pages.

https://reviewboard.mozilla.org/r/165154/#review170960

Interesting, LGTM
Attachment #8894058 - Flags: review?(adw) → review+
Pushed by edilee@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/f1a7a562b59a
Some top sites never get screenshots of redirected pages. r=adw
https://hg.mozilla.org/mozilla-central/rev/f1a7a562b59a
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
(In reply to Eric Rescorla (:ekr) from comment #5)
> https://www.strava.com/dashboard
The problem here was strava screenshot had too many bytes and .apply had too many args.
Fixed by https://github.com/mozilla/activity-stream/pull/3101 to be uplifted via bug 1387746.

> http://www.news.ycombinator.com/
The problem here was a SQL query doing GROUP BY with undefined sqlite ordering behavior.
Fixed by bug 1387694.
Blocks: 1387746
No longer blocks: 1387746
Blocks: 1391336
Blocks: 1394533
Screenshots of redirected pages are displayed in the Top Sites tile.
Verified as fixed using latest Nightly 57.0a1 Build ID 20170917220255, on Windows 10 x64 and Mac 10.12.
Status: RESOLVED → VERIFIED
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: