@@ -113,7 +113,7 @@ <h1>Reporting API</h1>
113
113
text: session; url: dfn-session
114
114
text: success; url: dfn-success
115
115
text: trying; url: dfn-try
116
- spec: STRUCTURED-HEADERS ; urlPrefix: https://www.rfc-editor.org/rfc/rfc8941.html#
116
+ spec: STRUCTURED-FIELDS ; urlPrefix: https://www.rfc-editor.org/rfc/rfc8941.html#
117
117
type: grammar
118
118
text: sf-dictionary; url: section-3.2
119
119
</ pre >
@@ -125,7 +125,7 @@ <h1>Reporting API</h1>
125
125
"title": "Secure Contexts",
126
126
"publisher": "W3C"
127
127
},
128
- "STRUCTURED-HEADERS ": {
128
+ "STRUCTURED-FIELDS ": {
129
129
"authors": [ "Mark Nottingham", "Poul-Henning Kamp" ],
130
130
"href": "https://www.rfc-editor.org/rfc/rfc8941.html",
131
131
"title": "Structured Field Values for HTTP",
@@ -420,8 +420,8 @@ <h3 id="header">The `Reporting-Endpoints` HTTP Response Header Field</h3>
420
420
The value of the < dfn export > `Reporting-Endpoints`</ dfn > HTTP response header
421
421
field is used to construct the reporting configuration for a resource.
422
422
423
- < a > `Reporting-Endpoints`</ a > is a Dictionary Structured Header
424
- [[STRUCTURED-HEADERS ]]. Each entry in the dictionary defines an
423
+ < a > `Reporting-Endpoints`</ a > is a Dictionary Structured Field
424
+ [[STRUCTURED-FIELDS ]]. Each entry in the dictionary defines an
425
425
< a > endpoint</ a > to which reports may be delivered. The entry value MUST be a
426
426
string.
427
427
@@ -438,7 +438,7 @@ <h3 id="header">The `Reporting-Endpoints` HTTP Response Header Field</h3>
438
438
The header is represented by the following ABNF grammar [[!RFC5234]]:
439
439
440
440
< pre class ="abnf " link-type ="grammar " dfn-type ="grammar ">
441
- Reporting-Endpoints = < a > sh -dictionary</ a >
441
+ Reporting-Endpoints = < a > sf -dictionary</ a >
442
442
</ pre >
443
443
444
444
< h3 id ="process-header " algorithm >
@@ -640,7 +640,7 @@ <h4 id="try-delivery" algorithm>
640
640
6. If |response|'s `status` is an < a > OK status</ a > (200-299), return
641
641
"`Success`".
642
642
643
- 7. If |response|'s `status` is `410 Gone` [[!RFC7231 ]], return "`Remove
643
+ 7. If |response|'s `status` is `410 Gone` [[!RFC9110 ]], return "`Remove
644
644
Endpoint`".
645
645
646
646
8. Return "`Failure`".
@@ -741,36 +741,34 @@ <h3 id=interface-reporting-observer>Interface {{ReportingObserver}}</h3>
741
741
The < dfn method for =ReportingObserver > < code > observe()</ code > </ dfn >
742
742
method, when invoked, must run these steps:
743
743
744
- 1. Let |global| be the be the [=relevant global object=] of the < a > context
745
- object</ a > .
744
+ 1. Let |global| be the be the [=relevant global object=] of < a > this</ a > .
746
745
747
- 2. Append the < a > context object </ a > to the |global|'s < a > registered reporting
746
+ 2. Append < a > this </ a > to the |global|'s < a > registered reporting
748
747
observer list</ a > .
749
748
750
- 3. If the < a > context object </ a > 's {{buffered}} < a > option</ a > is false, return.
749
+ 3. If < a > this </ a > 's {{buffered}} < a > option</ a > is false, return.
751
750
752
- 4. Set < a > context object </ a > 's {{buffered}} < a > option</ a > to false.
751
+ 4. Set < a > this </ a > 's {{buffered}} < a > option</ a > to false.
753
752
754
753
5. For each |report| in |global|'s < a > report buffer</ a > , < a > queue a task</ a >
755
- to execute [[#add-report]] with |report| and the < a > context object </ a > .
754
+ to execute [[#add-report]] with |report| and < a > this </ a > .
756
755
757
756
The < dfn method for =ReportingObserver > < code > disconnect()</ code > </ dfn > method,
758
757
when invoked, must run these steps:
759
758
760
- 1. If the < a > context object </ a > is not < a > registered</ a > , return.
759
+ 1. If < a > this </ a > is not < a > registered</ a > , return.
761
760
762
- 2. Let |global| be the [=relevant global object=] of the < a > context
763
- object</ a > .
761
+ 2. Let |global| be the [=relevant global object=] of < a > this</ a > .
764
762
765
- 3. Remove the < a > context object </ a > from |global|'s < a > registered reporting
763
+ 3. Remove < a > this </ a > from |global|'s < a > registered reporting
766
764
observer list</ a > .
767
765
768
766
The < dfn method for =ReportingObserver > < code > takeRecords()</ code > </ dfn > method,
769
767
when invoked, must run these steps:
770
768
771
- 1. Let |reports| be a copy of the < a > context object </ a > 's < a > report queue</ a > .
769
+ 1. Let |reports| be a copy of < a > this </ a > 's < a > report queue</ a > .
772
770
773
- 2. Empty the < a > context object </ a > 's < a > report queue</ a > .
771
+ 2. Empty < a > this </ a > 's < a > report queue</ a > .
774
772
775
773
3. Return |reports|.
776
774
0 commit comments