gecko-dev/testing/firefox-ui
Marco Bonardo 19cfdf37f2 Bug 977177 - Update favicons API consumers. r=adw
Updates consumers to the new behavior.
Some consumers are changed to use  the "page-icon:" protocol, since it's not
trivial to join the icons table and get a single result out of it. In most cases
the join would return multiple results since a page can have multiple icon payloads.
These consumers for now will return the biggest payload, bug 1347532 will fix
some of them to properly pass a #size=NN fragment.
Note that, even before, these were just "moz-anno:favicon:" uris, and the
payload had to be fetched from the database.
Some other consumers for now just fallback to the largest payload, by passing 0
to GetFaviconURLForPage.

The favicon optimization still happens on the main-thread, bug 1346139 will
handle that problem.

Most of the changes involve handling the modified IconData objects, that now
retain an array of payloads, rather than just one. But note that .ico files are
not yet split into single frames, due to imagelib missing APIs that will be handled
in bug 1337402.
The other changes involve fixing queries to properly join with the new tables.

Finally, note that thanks to the FOREIGN KEYS support, removing from moz_icons or
moz_pages_w_icons will also remove relations from moz_icons_to_pages.

The system only supports square icons, so icons are resized based on their larger side.

This doesn't include new tests, those will be in a following changeset.

MozReview-Commit-ID: JUkpquhpS8y

--HG--
rename : toolkit/components/places/tests/unit/test_svg_favicon.js => toolkit/components/places/tests/favicons/test_svg_favicon.js
extra : rebase_source : fa49c4a81d6ab6b34a2f19ee4175e889a6e9d734
2016-09-28 16:14:30 +02:00
..
harness Bug 1355009 - Temporarily disable usage of simplified update ui. r=ato 2017-04-11 14:01:17 +02:00
resources Bug 1270953 - Enhance notification class for Firefox Puppeteer. r=maja_zf 2016-05-17 13:43:24 +02:00
tests Bug 977177 - Update favicons API consumers. r=adw 2016-09-28 16:14:30 +02:00
.flake8 Bug 1274167 - Add Linter(flake8) support for Firefox-ui and Puppeteer.r=whimboo 2016-08-15 02:16:18 +05:30
mach_commands.py Bug 1302364 - Include firefox-ui and puppeteer in all-tests.json, and allow to run tests via "mach test". r=gps 2016-09-21 10:31:05 +02:00
moz.build Bug 1319705 - Move Puppeteer to testing/marionette and make it available for Marionette tests in test packages. r=gps 2016-11-24 17:02:52 +01:00