Stub installer support for attribution
Categories
(Firefox :: Installer, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: molly, Assigned: molly)
References
Details
Attachments
(5 files, 7 obsolete files)
2.65 KB,
text/plain
|
Details | |
2.49 KB,
application/x-x509-ca-cert
|
Details | |
81.70 KB,
patch
|
lizzard
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
10.95 KB,
patch
|
molly
:
review+
lizzard
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
717 bytes,
application/octet-stream
|
Details |
Assignee | ||
Comment 1•9 years ago
|
||
Assignee | ||
Comment 2•9 years ago
|
||
Comment 3•9 years ago
|
||
Assignee | ||
Comment 4•9 years ago
|
||
Assignee | ||
Comment 5•9 years ago
|
||
![]() |
||
Comment 6•9 years ago
|
||
Assignee | ||
Comment 7•9 years ago
|
||
Assignee | ||
Comment 8•9 years ago
|
||
Assignee | ||
Comment 9•9 years ago
|
||
Assignee | ||
Comment 10•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 11•9 years ago
|
||
![]() |
||
Comment 12•9 years ago
|
||
![]() |
||
Comment 13•9 years ago
|
||
![]() |
||
Comment 14•9 years ago
|
||
![]() |
||
Comment 15•9 years ago
|
||
![]() |
||
Comment 16•9 years ago
|
||
Assignee | ||
Comment 17•9 years ago
|
||
![]() |
||
Comment 18•9 years ago
|
||
![]() |
||
Comment 19•9 years ago
|
||
![]() |
||
Comment 20•9 years ago
|
||
![]() |
||
Comment 21•9 years ago
|
||
![]() |
||
Comment 22•9 years ago
|
||
![]() |
||
Comment 23•9 years ago
|
||
Assignee | ||
Comment 24•9 years ago
|
||
![]() |
||
Comment 25•9 years ago
|
||
![]() |
||
Comment 26•9 years ago
|
||
![]() |
||
Comment 27•9 years ago
|
||
![]() |
||
Comment 28•9 years ago
|
||
Assignee | ||
Comment 29•9 years ago
|
||
![]() |
||
Comment 30•9 years ago
|
||
Comment 32•9 years ago
|
||
bugherder |
Assignee | ||
Comment 33•9 years ago
|
||
Assignee | ||
Comment 34•9 years ago
|
||
Comment 35•9 years ago
|
||
Updated•9 years ago
|
Comment 36•3 years ago
|
||
(In reply to Molly Howell (she/her) [:mhowell] from comment #8)
This is a proof of concept for the method described above, containing the
"magic" certificate, a Python script to fill in an attribution code/other
data after signing, and a patch that gets the data to the stub installer for
it to start working with. Here's how to use this stuff:
- Apply the .diff to mozilla-central and build the stub installer normally.
- Sign the stub installer as usual, but add the osslsigncode option "-ac
MozDummy.cer".- Run write_attribution_data.py and pass it the installer file name and the
string you want to write.- Run the stub installer and just leave it open, don't do anything.
- Open 7-Zip's temp folder (should be at "C:\Users[your
username]\AppData\Local\Temp\7z[random stuff].tmp") and you should see a
file called postSigningData which contains the string you supplied. (I don't
have the code written yet to do anything else with the data from there.)
I had need to test this for https://bugzilla.mozilla.org/show_bug.cgi?id=1616355, and modified these instructions a bit to make them work these days. Now, it's:
- Push to try and select one of the repackage-signing tasks (eg:
repackage-signing-win64-shippable/opt
) - Download
target.installer.exe
after the Task completes - Run
write_attribution_data.py
to inject the attribution data. Eg:python3 write_attribution_data.py target.installer.exe 'source%3Dgoogle.com%26medium%3Dorganic%26campaign%3D(not%20set)%26content%3Dbhearsum234'
It's also easier to verify these days -- attribution data should show up in about:telemetry
shortly after starting Firefox.
Comment 37•2 years ago
|
||
While reviewing this bug again yesterday I realized that we never wrote down how to generate the dummy cert used here. Thankfully, Molly still had a copy of this script that she used to do so. It must be hex edited afterwards to add the __MOZCUSTOM__
tag, but that's trivial enough. Thanks Molly!
Description
•