mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
Bug 1607804 - Store ModuleSignatureInfo as stringified JSON instead of as an actual JSON object r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D59429 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
f719f6af1e
commit
dc8c1764a9
@ -406,13 +406,18 @@ static bool UpdateExtraDataFile(const string& aDumpPath,
|
||||
|
||||
bool res = false;
|
||||
if (f.is_open()) {
|
||||
extra["StackTraces"] = aStackTraces;
|
||||
if (!!aCertSubjects) {
|
||||
extra["ModuleSignatureInfo"] = aCertSubjects;
|
||||
}
|
||||
|
||||
Json::StreamWriterBuilder builder;
|
||||
builder["indentation"] = "";
|
||||
|
||||
// The StackTraces field is not stored as a string because it's not a
|
||||
// crash annotation. It's only used by the crash reporter client which
|
||||
// strips it before submitting the other annotations to Socorro.
|
||||
extra["StackTraces"] = aStackTraces;
|
||||
|
||||
if (!!aCertSubjects) {
|
||||
extra["ModuleSignatureInfo"] = Json::writeString(builder, aCertSubjects);
|
||||
}
|
||||
|
||||
std::unique_ptr<Json::StreamWriter> writer(builder.newStreamWriter());
|
||||
writer->write(extra, &f);
|
||||
f << "\n";
|
||||
|
Loading…
Reference in New Issue
Block a user