Closed Bug 1816998 Opened 2 years ago Closed 1 year ago

Read macOS attribution data from Mozilla-specific extended attribute

Categories

(Firefox :: Installer, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: nalexander, Assigned: bhearsum)

References

Details

(Whiteboard: [fidedi-attribution])

Attachments

(2 files)

This ticket tracks reading macOS attribution data from a Mozilla-specific extended attribute of the main Firefox.app bundle at runtime.

We might choose to cache this data to keep it consistent across a profile's lifetime.

The existing implementation is in practice obsolete, so I don't think we need to guard the new implementation behind a Gecko preference or bother with a rollout.

This work is all in and around https://searchfox.org/mozilla-central/source/browser/components/attribution.

Priority: -- → P3
Assignee: nobody → bhearsum

For posterity, I've been told that the data review we did for Windows attribution in https://bugzilla.mozilla.org/show_bug.cgi?id=1515172 is valid for our work on macOS as well, so I will not be filing a data review request here.

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.)

Attachment #9355142 - Attachment description: WIP: Bug 1816998: Replace macOS quarantine database-based attribution with extended attribute attribution → Bug 1816998: Replace macOS quarantine database-based attribution with extended attribute attribution r?nalexander!
Attachment #9355143 - Attachment description: WIP: Bug 1816998: Update ASRouter to use extended attribute attribution on macOS → Bug 1816998: Update ASRouter to use extended attribute attribution on macOS r?pdahiya!
Pushed by bhearsum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c937eafeffe2 Replace macOS quarantine database-based attribution with extended attribute attribution r=nalexander https://hg.mozilla.org/integration/autoland/rev/f06103d86424 Update ASRouter to use extended attribute attribution on macOS r=pdahiya
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: