Commit Graph

149 Commits

Author SHA1 Message Date
Chris H-C
42e484060f Bug 1955429 - Instrument attribution and distribution information in Glean r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D244987
2025-04-21 14:12:43 +00:00
smolnar
280680c5c4 Backed out 5 changesets (bug 1955429) for causing mochitest failures @ widget/tests/test_bug343416.xhtml CLOSED TREE
Backed out changeset 3fd7b7cba0ff (bug 1955429)
Backed out changeset d771f40c809c (bug 1955429)
Backed out changeset 98fe0042de25 (bug 1955429)
Backed out changeset f239ffd8098f (bug 1955429)
Backed out changeset a49202330c21 (bug 1955429)
2025-04-17 17:53:46 +03:00
Chris H-C
a39097b3ec Bug 1955429 - Instrument attribution and distribution information in Glean r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D244987
2025-04-17 13:07:54 +00:00
Goloman Adrian
efcf0aaa0a Backed out 4 changesets (bug 1955429) for causing xpc failures. CLOSED TREE
Backed out changeset 8793ee7ac873 (bug 1955429)
Backed out changeset e1cf811b7274 (bug 1955429)
Backed out changeset 79bf1547f82b (bug 1955429)
Backed out changeset c451dfbfb59f (bug 1955429)
2025-04-15 21:57:40 +03:00
Chris H-C
4ce4821e3a Bug 1955429 - Instrument attribution and distribution information in Glean r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D244987
2025-04-15 16:39:27 +00:00
Butkovits Atila
ed01a1d8b2 Backed out 4 changesets (bug 1955429) for causing failures at test_AttributionDistribution.js. CLOSED TREE
Backed out changeset ab33904d0edb (bug 1955429)
Backed out changeset abdbe82d2cc1 (bug 1955429)
Backed out changeset eba2fd65a5cf (bug 1955429)
Backed out changeset e0aa301f9301 (bug 1955429)
2025-04-15 19:16:06 +03:00
Chris H-C
c88a6cba32 Bug 1955429 - Instrument attribution and distribution information in Glean r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D244987
2025-04-15 14:37:32 +00:00
Florian Quèze
b412ac1d8d Bug 1944631 - Migrate histograms to use Glean APIs for BROWSER_*, r=mconley.
Differential Revision: https://phabricator.services.mozilla.com/D238788
2025-02-20 19:34:10 +00:00
Ben Hearsum
0220aa4c47 Bug 1874944: send distinct telemetry data for empty attribution strings r=nalexander
An empty attribution string is a different case from one that exists that cannot be read (they generally point towards different potential causes in our infrastructure). We should send them as distinct errors.

Differential Revision: https://phabricator.services.mozilla.com/D199558
2024-01-26 00:26:58 +00:00
Joel Maher
3662d84cd4 Bug 1873732 - remove outdated manifest conditions and use consistent conditions. r=aryx,necko-reviewers,jgilbert,settings-reviewers,credential-management-reviewers,devtools-reviewers,sessionstore-reviewers,dom-storage-reviewers,sgalich,kershaw,nchevobbe,janv,dao
Differential Revision: https://phabricator.services.mozilla.com/D198082
2024-01-25 00:27:05 +00:00
Stanca Serban
71d0d5cf96 Backed out changeset 54462970f797 (bug 1873732) for causing web platform tests failures. 2024-01-24 21:08:19 +02:00
Joel Maher
04ec786571 Bug 1873732 - remove outdated manifest conditions and use consistent conditions. r=aryx,necko-reviewers,jgilbert,settings-reviewers,credential-management-reviewers,devtools-reviewers,sessionstore-reviewers,dom-storage-reviewers,sgalich,kershaw,nchevobbe,janv,dao
Differential Revision: https://phabricator.services.mozilla.com/D198082
2024-01-24 16:35:54 +00:00
Ben Hearsum
95abbbe2b4 Bug 1874177: enable macOS attribution reporting by default r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D198294
2024-01-11 20:39:40 +00:00
Ben Hearsum
ec42f5ce45 Bug 1865845: stop caching mac attribution data in a separate file r=nalexander
This is mostly removing code and tests related to reading/writing the cache file on macOS and updating of tests. Aside from that, the most notable part is the change to `setAttributionString` to automatically prepend `__MOZCUSTOM__` when writing an attribution code. This is mostly done to make things simpler and cleaner in the majority of the tests, but seeing as `getAttributionString` is also aware of it, it seems like a generally nicer way to do this.

Differential Revision: https://phabricator.services.mozilla.com/D197204
2024-01-09 20:21:54 +00:00
Ben Hearsum
a85096e195 Bug 1865845: refactor attribution code to clearly separate out flows for mac, nsis, and msix r=nalexander
This function has been difficult to read for awhile. This patch cleans it up in preparation to adjust it for the removal of the cache file on macOS.

Differential Revision: https://phabricator.services.mozilla.com/D197203
2024-01-09 20:21:54 +00:00
Narcis Beleuzu
a68fbd0a88 Backed out 3 changesets (bug 1865845) for bc failures on browser_AttributionCode_telemetry.js . CLOSED TREE
Backed out changeset 4f799b89c628 (bug 1865845)
Backed out changeset e825fb03ff56 (bug 1865845)
Backed out changeset 9a8c396a22db (bug 1865845)
2024-01-09 21:26:48 +02:00
Ben Hearsum
b2ea441dc1 Bug 1865845: stop caching mac attribution data in a separate file r=nalexander
This is mostly removing code and tests related to reading/writing the cache file on macOS and updating of tests. Aside from that, the most notable part is the change to `setAttributionString` to automatically prepend `__MOZCUSTOM__` when writing an attribution code. This is mostly done to make things simpler and cleaner in the majority of the tests, but seeing as `getAttributionString` is also aware of it, it seems like a generally nicer way to do this.

Differential Revision: https://phabricator.services.mozilla.com/D197204
2024-01-09 15:38:04 +00:00
Ben Hearsum
44cfd58dae Bug 1865845: refactor attribution code to clearly separate out flows for mac, nsis, and msix r=nalexander
This function has been difficult to read for awhile. This patch cleans it up in preparation to adjust it for the removal of the cache file on macOS.

Differential Revision: https://phabricator.services.mozilla.com/D197203
2024-01-09 15:38:03 +00:00
Michael Hughes
c3b8c6535a Bug 1830725: Synchronous nsWindowsPackageManager::GetCampaignId blocks main thread for many seconds r=nrishel
Made GetCampaignId asynchronous to not block anything.
Also fix Bug 1872933 (broken build)

Differential Revision: https://phabricator.services.mozilla.com/D188520
2024-01-05 21:26:39 +00:00
Iulian Moraru
847ded45c7 Backed out changeset f7c78cadff5d (bug 1830725) for causing bc failures on browser_AttributionCode_telemetry.js. 2024-01-04 01:53:19 +02:00
Michael Hughes
22f7c8b815 Bug 1830725: Synchronous nsWindowsPackageManager::GetCampaignId blocks main thread for many seconds r=nrishel
Made GetCampaignId asynchronous to not block anything.

Differential Revision: https://phabricator.services.mozilla.com/D188520
2024-01-03 21:50:04 +00:00
Ben Hearsum
a41ff6c8f5 Bug 1870185: improve installer attribution documentation r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D196516
2023-12-15 20:01:55 +00:00
Norisz Fay
8c94855abe Backed out changeset 416268cc8a36 (bug 1830725) for causing bc failures on browser_AttributionCode_telemetry.js 2023-11-29 00:56:57 +02:00
Michael Hughes
7c539a4288 Bug 1830725: Synchronous nsWindowsPackageManager::GetCampaignId blocks main thread for many seconds r=bytesized,nrishel
Made GetCampaignId asynchronous to not block anything.

Differential Revision: https://phabricator.services.mozilla.com/D188520
2023-11-28 18:24:34 +00:00
Ben Hearsum
c08869cdf3 Bug 1862724: remove nimbus controls for macOS attribution. r=nalexander
The pref is being kept for now, to make it easy for QA to verify dynamic attribution when it is ready.

Depends on D192628

Differential Revision: https://phabricator.services.mozilla.com/D193799
2023-11-24 15:15:02 +00:00
Ben Hearsum
2b8bc465a3 Bug 1862768: move mac attribution cache to a new file r=nalexander
While investigating why initial macOS attribution data had a lower attribution rate than expected I realized that one reason why this may be the case is because we're using the same file as a cache for it. This means that even if a user has paved over with a fresh install, we will pick up the previous attribution data (even if it was null).

While doing this, I think we should also accommodate having separate attribution data per channel, which should keep the data cleaner. Release, Beta, and ESR use `Firefox.app`, which makes the likelyhood of a paveover with a different channel reasonably high.

Differential Revision: https://phabricator.services.mozilla.com/D192628
2023-11-24 15:15:02 +00:00
Cristian Tuns
34dfe873b5 Backed out 2 changesets (bug 1862724, bug 1862768) for causing xpcshell failures in test_TelemetryEnvironment_search.js CLOSED TREE
Backed out changeset 560c34a2fcba (bug 1862724)
Backed out changeset 2a75554aef5f (bug 1862768)
2023-11-21 16:47:01 -05:00
Joel Maher
33fa84a382 Bug 1859869 - batch 12 - browser/* xpcshell .ini manifests to .toml. r=aryx,extension-reviewers,credential-management-reviewers,search-reviewers,sessionstore-reviewers,places-reviewers,issammani,Standard8,robwu,sclements
Differential Revision: https://phabricator.services.mozilla.com/D193996
2023-11-21 17:35:23 +00:00
Ben Hearsum
27aaec8787 Bug 1862724: remove nimbus controls for macOS attribution. r=nalexander
The pref is being kept for now, to make it easy for QA to verify dynamic attribution when it is ready.

Differential Revision: https://phabricator.services.mozilla.com/D193799
2023-11-21 14:59:47 +00:00
Ben Hearsum
3662a336d6 Bug 1862768: move mac attribution cache to a new file r=nalexander
While investigating why initial macOS attribution data had a lower attribution rate than expected I realized that one reason why this may be the case is because we're using the same file as a cache for it. This means that even if a user has paved over with a fresh install, we will pick up the previous attribution data (even if it was null).

While doing this, I think we should also accommodate having separate attribution data per channel, which should keep the data cleaner. Release, Beta, and ESR use `Firefox.app`, which makes the likelyhood of a paveover with a different channel reasonably high.

Differential Revision: https://phabricator.services.mozilla.com/D192628
2023-11-21 14:59:47 +00:00
Ben Hearsum
16a5f7c21b Bug 1858545: put macOS attribution reporting behind a Nimbus flag r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D190986
2023-10-18 00:02:47 +00:00
Ben Hearsum
5156f0778e Bug 1816998: Replace macOS quarantine database-based attribution with extended attribute attribution r=nalexander
With extended attribute attribution using exactly the same attribution strings as Windows (eg: no URLs), this turns out to be quite straightforward. Once we've pulled in the attribution string from the extended attribute, the existing parsing, validation, etc. just works.

The only wrinkle is that the extended attributes may have nul bytes or tabs that we need to strip away. (Tabs may be present because we use them to pad the attribution area when we prepare the DMG for attribution. Nul bytes may be present because we overwrite the entire attribution before updating the attribution data.)

Differential Revision: https://phabricator.services.mozilla.com/D189258
2023-10-05 23:30:57 +00:00
Robin Steuber
4bc61ea8a6 Bug 1815021 - Back out reading provenance data from AttributionCode r=nalexander
Backed out Bug 1815021's patch: https://hg.mozilla.org/mozilla-central/rev/9b8c31e9eb9f

Differential Revision: https://phabricator.services.mozilla.com/D189594
2023-10-03 23:40:25 +00:00
Robin Steuber
7ad18fece6 Bug 1855604 - Back out support for sending provenance data via telemetry r=nalexander
Backed out Bug 1815023's patch: https://hg.mozilla.org/mozilla-central/rev/fc0d63d3404b

Depends on D189592

Differential Revision: https://phabricator.services.mozilla.com/D189593
2023-10-03 23:40:25 +00:00
Robin Steuber
e194d9f28b Bug 1855604 - Back out putting provenance attribution in installation.first_seen r=nalexander
Backs out Bug 1821189's patch: https://hg.mozilla.org/mozilla-central/rev/c4f8098f81bb

Differential Revision: https://phabricator.services.mozilla.com/D189591
2023-10-03 23:40:24 +00:00
Sylvestre Ledru
2e0e132821 Bug 1856530 - run file-whitespace on toml files r=linter-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D189896
2023-10-03 09:22:18 +00:00
Tom Marble
ad50861ef9 Bug 1853243 - convert .ini manifests to .toml: batch 5 browser/**/browser.ini r=jmaher,mossop,webcompat-reviewers,twisniewski,search-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D188427
2023-09-21 22:47:07 +00:00
Chris Peterson
97827e82ee Bug 1847154 - cocoa: remove some unnecessary OnMojaveOrLater() and OnCatalinaOrLater() version checks. r=mac-reviewers,bradwerth
Firefox versions >= 116 only support macOS >= 10.15. Mojave is macOS 10.14. Catalina is macOS 10.15.

Also stop including unused "nsCocoaFeatures.h" in files with no macOS version checks.

Differential Revision: https://phabricator.services.mozilla.com/D185505
2023-08-10 15:27:05 +00:00
Gregory Pappas
e9950eccfd Bug 1845311 - Use ChromeUtils.defineLazyGetter in more places r=arai,webdriver-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,anti-tracking-reviewers,sessionstore-reviewers,pbz,joschmidt,robwu,issammani,bytesized,owlish,dao
Differential Revision: https://phabricator.services.mozilla.com/D184481
2023-07-26 16:28:11 +00:00
Mark Banner
0666077666 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner
91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
anwar
1d2e079021 Bug 1829673 - Put all mochitest test manifest files under browser/components into alphabetical order. r=mconley,extension-reviewers,credential-management-reviewers,dimi,robwu
Differential Revision: https://phabricator.services.mozilla.com/D176459
2023-05-02 16:13:24 +00:00
CanadaHonk
de0de3489c Bug 1801379 - Migrate Sinon.jsm to an ES module r=extension-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,fxview-reviewers,devtools-reviewers,Standard8,nchevobbe,sclements,dimi,mconley,bytesized,robwu
Migrated `testing/modules/Sinon.sys.mjs` to an ES module.

`testing` should now be 100% ESM 🎉

Differential Revision: https://phabricator.services.mozilla.com/D173643
2023-03-29 07:34:10 +00:00
William Durand
1b34df1849 Bug 1819997 - Allow dlsource in attribution data. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D173429
2023-03-28 19:41:36 +00:00
Ben Hearsum
244e0ba2c8 Bug 1822165: add docs for NSIS installer attribution r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D172564
2023-03-14 20:15:06 +00:00
Robin Steuber
c7f37da43c Bug 1821189 - Associate provenance attribution with installation.first_seen event r=nalexander
We can't add the provenance data to the `installation.first_seen` extra data because it is already at its maximum number of keys. So instead we will add the `installation.first_seen_prov_ext` event which will be sent at the same time as `installation.first_seen` and will contain provenance attribution data in its extras object.

Differential Revision: https://phabricator.services.mozilla.com/D172520
2023-03-14 18:08:16 +00:00
Robin Steuber
70d26915bc Bug 1821406 - testProvenance calls should be awaited upon r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D172074
2023-03-09 17:28:37 +00:00
Robin Steuber
5eabcd66a1 Bug 1815023 - Add support for sending attribution provenance data via telemetry r=nalexander,chutten
Add a function that sets scalars to convey what kind of data is present in the :Zone.Identifier Alternate Data Stream. Also adds testing that the scalars get set correctly.

Does not actually call the function that sends the telemetry. This will be done in the next patch since we need to call it in some slightly different places than we usually would since we want to be sure it is included in the `new-profile` ping and in the ping with the `installation.first_seen` event.

Differential Revision: https://phabricator.services.mozilla.com/D171818
2023-03-08 22:25:07 +00:00
Robin Steuber
b8b2f03a55 Bug 1815021 - Update AttributionCode.jsm to read provenance data r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D171817
2023-03-08 22:25:06 +00:00
elephanteatsapple
0ad4eadcd9 Bug 1812141 - Convert JSMs in browser/components/attribution to ESMs. r=mconley,kpatenio,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D167730
2023-02-15 21:40:30 +00:00