Closed
Bug 1240651
Opened 9 years ago
Closed 9 years ago
Annotate addonId into crash report
Categories
(Core :: Security: CAPS, defect)
Core
Security: CAPS
Tracking
()
RESOLVED
FIXED
mozilla47
People
(Reporter: allstars.chh, Assigned: allstars.chh)
References
Details
Attachments
(1 file, 2 obsolete files)
As suggested by Bobby and Bill in https://bugzilla.mozilla.org/show_bug.cgi?id=1210099#c5 and https://bugzilla.mozilla.org/show_bug.cgi?id=1210099#c18 I'll try to annotate addon id into crash report.
Assignee | ||
Comment 1•9 years ago
|
||
Assignee | ||
Comment 2•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=0f50fc8dc4ac
Assignee | ||
Comment 3•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=28232c7b1cb4
Assignee | ||
Comment 4•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=2f8b4008cf35
Assignee | ||
Comment 6•9 years ago
|
||
Attachment #8709353 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Attachment #8709354 -
Flags: review?(wmccloskey)
Attachment #8709354 -
Flags: review?(bobbyholley)
Comment on attachment 8709354 [details] [diff] [review] Patch. Review of attachment 8709354 [details] [diff] [review]: ----------------------------------------------------------------- Thanks! ::: caps/BasePrincipal.cpp @@ +129,5 @@ > +#ifdef MOZ_CRASHREPORTER > + CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("Crash_AddonId"), > + NS_ConvertUTF16toUTF8(mAddonId)); > +#endif > + MOZ_RELEASE_ASSERT(false); This can just be MOZ_CRASH.
Attachment #8709354 -
Flags: review?(wmccloskey) → review+
Comment 8•9 years ago
|
||
Comment on attachment 8709354 [details] [diff] [review] Patch. Review of attachment 8709354 [details] [diff] [review]: ----------------------------------------------------------------- r=me on the BasePrincipal.cpp changes. Need data collection review. Flagging Georg.
Attachment #8709354 -
Flags: review?(gfritzsche)
Attachment #8709354 -
Flags: review?(bobbyholley)
Attachment #8709354 -
Flags: review+
Assignee | ||
Comment 9•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=2cc1bbba0b4b
Assignee | ||
Comment 10•9 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/a76600c2820bdc68e729a376d16cfe614a4a0b56 Bug 1240651 - Annotate addonId into crash report. r=billm, bholley
Comment 11•9 years ago
|
||
(In reply to Yoshi Huang[:allstars.chh] from comment #10) > https://hg.mozilla.org/integration/b2g-inbound/rev/ > a76600c2820bdc68e729a376d16cfe614a4a0b56 > Bug 1240651 - Annotate addonId into crash report. r=billm, bholley This has pending data collection review, it shouldn't have landed yet.
Flags: needinfo?(allstars.chh)
Comment 12•9 years ago
|
||
Comment on attachment 8709354 [details] [diff] [review] Patch. I'm not a data collection peer - redirecting.
Attachment #8709354 -
Flags: review?(gfritzsche) → review?(benjamin)
Comment 13•9 years ago
|
||
sorry had to back this out for test failures like https://treeherder.mozilla.org/logviewer.html#?job_id=3796035&repo=b2g-inbound
Comment 14•9 years ago
|
||
Backout: https://hg.mozilla.org/integration/b2g-inbound/rev/5426c8d6c687
Assignee | ||
Comment 15•9 years ago
|
||
Sorry for the trouble, I didn't notice that I have to get another review. I'll be more careful next time.
Flags: needinfo?(allstars.chh)
Assignee | ||
Comment 16•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=d7db6a580967
This is a pretty bad crash, so I landed the patch with only part of the data collection. We already collect add-on IDs in crashes, so there shouldn't be any harm in doing it here. I left out the part that collects UUIDs since that's a new thing that I guess would require data collection review.
Comment 19•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/62600c1a0dcb
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Comment 20•9 years ago
|
||
Comment on attachment 8709354 [details] [diff] [review] Patch. I don't understand what ExtensionManagement.jsm is trying to do. We already have the list of addons in crash reports, right? How is this list different? What is mAddonId? Addons can have arbitrary strings as their extension ID, so I'm a little concerned about this assert in general, unless mAddonId is somehow unrelated to the <em:id> ID. And in general for this kind of annotation, you'd want something more specific, such as "Bug1240651_AddonID"
Flags: needinfo?(allstars.chh)
Comment 21•9 years ago
|
||
I think Bill might be better able to answer here.
Flags: needinfo?(allstars.chh) → needinfo?(wmccloskey)
This code isn't really relevant anymore since we now know that the OriginAttributes crash wasn't related to a particular add-on. However, each WebExtension gets its own unique UUID when it's installed. This UUID is used in moz-extension: URIs rather than the add-on ID to make fingerprinting harder. The patch was including the mapping between UUIDs and add-on IDs in the crash report. Also, my understanding is that add-on IDs have to match this regular expression here: https://dxr.mozilla.org/mozilla-central/source/toolkit/mozapps/extensions/internal/XPIProvider.jsm#270 So I think the assertion is valid.
Flags: needinfo?(wmccloskey)
Comment 23•9 years ago
|
||
Comment on attachment 8709354 [details] [diff] [review] Patch. In that case, the "Extensions" annotation is very poorly named: it should be something like "ExtensionUUIDMappings" and you might as well make it machine-parseable JSON instead of this. The other annotation, if it's still needed, should reference a specific bug and not be generic.
Attachment #8709354 -
Flags: review?(benjamin) → review-
You need to log in
before you can comment on or make changes to this bug.
Description
•