gecko-dev/browser/extensions
Thomas Wisniewski d1694a0fd4 Bug 1564594 - Add an Enhanced Search webcompat site patch r=nalexander,denschub
This patch ultimately overrides the user-agent which Fennec users send to Google Search pages, choosing a phone- or tablet-specific UA as appropriate.

It involves adding four new metadata keys to the webcompat addon's metadata for user-agent overrides: blocks, permanentPref, experiment, telemetryKey:

- "blocks" specifies URLs for which any requests should be aborted. This allows us to block the Google service worker for now, as it has caused "content corrupted" issues in the past with other enhanced search addons (see https://github.com/wisniewskit/google-search-fixer/issues/1).
- "permanentPref" specifies an about:config preference, which dictates whether the injection is used. Users may set this to `false` to disable the injection outright, and permanently; `true` or `undefined` values allow the injection to function normally.
- "experiment" specifies the name of the experiment this feature is optionally gated behind. Only a Fennec-specific implementation is provided in this patch. The implementation simply queries Switchboard to determine if the experiment is active.
- "telemetryKey" specifies which telemetry key should be flipped to "true" when this injection runs. We will use this to note whether enhanced search has actually been enabled for this profile. Only a Fennec-specific implementation is given in this patch, which actually just sets a Fennec Shared Preference, which Fennec's core telemetry ping later reads in Java to know what the ping should contain.

Differential Revision: https://phabricator.services.mozilla.com/D41074

--HG--
extra : moz-landing-system : lando
2019-08-21 20:32:27 +00:00
..
formautofill Bug 1571466 - Cleanup unnecessary ESLint global definitions. r=mossop 2019-08-19 07:11:56 +00:00
fxmonitor Bug 1561012 - Don't register fxmonitor events if telemetry is disabled. r=johannh,robwu 2019-07-30 19:58:40 +00:00
pdfjs Backed out changeset 81156ff3f4fa (bug 1571656) for causing browser_PageActions.js and test_insertTree_fixupOrSkipInvalidEntries.js to perma fail CLOSED TREE 2019-08-19 13:00:44 +03:00
report-site-issue Bug 1510067 - change structure of console log messages reporting, create preview of objects and arrays r=twisniewski,Gijs 2019-07-15 20:34:38 +00:00
screenshots Bug 1562642 - Part 3 - Add missing MPL2 headers in browser & toolkit r=Gijs 2019-07-10 12:03:37 +00:00
webcompat Bug 1564594 - Add an Enhanced Search webcompat site patch r=nalexander,denschub 2019-08-21 20:32:27 +00:00
moz.build Bug 1500474 - Rename webcompat-reporter directory to report-site-issue r=florian,Pike 2019-04-23 17:36:40 +00:00