Skip to content

Commit a83f899

Browse files
committed
clarify crash report (with example)
1 parent f9b5c78 commit a83f899

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

index.src.html

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,14 +1292,30 @@ <h3 id="crash-report">Crash</h3>
12921292
An <a>crash report</a>'s [=report/body=], represented in JavaScript by
12931293
{{CrashReportBody}}, contains the following fields:
12941294

1295-
- <dfn for="CrashReportBody">crashId</dfn>: A unique identifier. This
1296-
identifier will not be meaningful to developers directly, but it can
1297-
potentially be supplied to the browser vendor for more details.
1295+
- <dfn for="CrashReportBody">crashId</dfn>: An implementation-defined unique
1296+
identifier (100 character maximum string). This identifier will not be
1297+
meaningful to developers directly, but it can potentially be supplied to
1298+
the browser vendor for more details.
12981299

12991300
- <dfn for="CrashReportBody">reason</dfn>: A more specific classification of
13001301
the type of crash that occured. Currently, the only valid
13011302
[=CrashReportBody/reason=] is "oom" (omitted otherwise), indicating an
13021303
out-of-memory crash.
1304+
1305+
<div class="example">
1306+
<pre>
1307+
{
1308+
"type": "crash",
1309+
"age": 42,
1310+
"url": "https://example.com/",
1311+
"user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0",
1312+
"body": {
1313+
"crashId": "30437694edfeae5b",
1314+
"reason": "oom"
1315+
}
1316+
}
1317+
</pre>
1318+
</div>
13031319
</section>
13041320

13051321
<section>

0 commit comments

Comments
 (0)