-
Notifications
You must be signed in to change notification settings - Fork 65
/
reporting.idl
66 lines (56 loc) · 1.84 KB
/
reporting.idl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: Reporting API 1 (https://w3c.github.io/reporting/)
[Exposed=(Window,Worker)]
interface ReportBody {
[Default] object toJSON();
};
[Exposed=(Window,Worker)]
interface Report {
[Default] object toJSON();
readonly attribute DOMString type;
readonly attribute DOMString url;
readonly attribute ReportBody? body;
};
[Exposed=(Window,Worker)]
interface ReportingObserver {
constructor(ReportingObserverCallback callback, optional ReportingObserverOptions options = {});
void observe();
void disconnect();
ReportList takeRecords();
};
callback ReportingObserverCallback = void (sequence<Report> reports, ReportingObserver observer);
dictionary ReportingObserverOptions {
sequence<DOMString> types;
boolean buffered = false;
};
typedef sequence<Report> ReportList;
[Exposed=(Window,Worker)]
interface DeprecationReportBody : ReportBody {
[Default] object toJSON();
readonly attribute DOMString id;
readonly attribute Date? anticipatedRemoval;
readonly attribute DOMString message;
readonly attribute DOMString? sourceFile;
readonly attribute unsigned long? lineNumber;
readonly attribute unsigned long? columnNumber;
};
[Exposed=(Window,Worker)]
interface InterventionReportBody : ReportBody {
[Default] object toJSON();
readonly attribute DOMString id;
readonly attribute DOMString message;
readonly attribute DOMString? sourceFile;
readonly attribute unsigned long? lineNumber;
readonly attribute unsigned long? columnNumber;
};
[Exposed=(Window,Worker)]
interface CrashReportBody : ReportBody {
[Default] object toJSON();
readonly attribute DOMString? reason;
};
dictionary GenerateTestReportParameters {
required DOMString message;
DOMString group = "default";
};