Description- Most visited iframe now uses postMessage() to signal the iframing page that the link has been displayed.
- Refactor most_visited_thumbnail.js to eliminate client-side secondary thumbnail fallback.
- Refactor UMA logging of NTP suggestions events.
The new postMessage() signal is sent whenever the iframe has failed loading the thumbnails, or when the thumbnail has been successfully loaded. This way it's impossible for the iframing page to learn whether the user has a given URL in its TopSites. The iframing page can use that signal to know when it's possible to display a fallback visual under the iframe.
The refactor significantly simplifies the iframe javascript by dropping support for multiple thumbnails, which can now be handled by the iframing page. UMA logging of NTP suggestions related statistics have also been both simplified and augmented. The patch also includes better unit tests for the UMA logging.
BUG=None
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245579
Patch Set 1 #Patch Set 2 : Small fixes. #Patch Set 3 : Removed support for multiple thumbnail URLs, refactored UMA logging. #
Total comments: 36
Patch Set 4 : Answered comments. #
Total comments: 2
Patch Set 5 : Answered estade. #
Total comments: 2
Patch Set 6 : Adding server0 to histogram.xml. #
Total comments: 6
Patch Set 7 : Answered Alexei and Jered. #Patch Set 8 : Minor correction to comment. #Patch Set 9 : Rebased. #Messages
Total messages: 20 (0 generated)
|