mozilla-b2g/gaia — pull request #2503 by benfrancis (2012-07-17 14:56:24+00:00)
Title: Adding Top Sites tab to browser awesomescreen

In this pull request
* Store frecency for places in database and fetch places by frecency, with unit tests (it's actually just frequency for now, going to explore https://wiki.mozilla.org/User:Jesse/NewFrecency as a future approach to real frecency)
* Top Sites tab added to awesomescreen UI
* Move some logic inside transactions inside the Places.db layer to prevent an increasing number of race conditions with multiple async processes overwriting each others changes in the database. This makes our Places vs. Places.db abstraction a little weak though.
* Rename some anonymous functions

Watch out for database upgrade issues when applying this update, I've seen some problems so it might be worth testing.