Skip to content

Commit 334a96b

Browse files
authored
Export "generate and queue a report" instead of "queue a report". (#253)
* Export "generate a report" instead of "queue a report". * Rename "generate a report" to "generate and queue a report" (exported), and rename "queue a report" to "generate a report" (not exported)
1 parent 60d1551 commit 334a96b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

index.src.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ <h3 id="queue-report" algorithm>
298298
Queue |data| as |type| for |destination|
299299
</h3>
300300

301-
To <dfn export for="reporting">queue</dfn> a <a>report</a> given a
301+
To <dfn>generate a report</dfn> given a
302302
serializable object (|data|), a string (|type|), another string
303303
(|destination|), an optional <a>environment settings object</a>
304304
(|settings|), and an optional {{URL}} (|url|):
@@ -328,14 +328,6 @@ <h3 id="queue-report" algorithm>
328328
4. Set |report|'s [=report/url=] to the result of executing the <a>URL
329329
serializer</a> on |url| with the <em>exclude fragment flag</em> set.
330330

331-
5. If |settings| is given, then
332-
333-
1. Let |scope| be |settings|'s [=environment settings object/global
334-
object=].
335-
336-
2. If |scope| is an object implementing {{WindowOrWorkerGlobalScope}},
337-
then execute [[#notify-observers]] with |scope| and |report|.
338-
339331
6. Return |report|.
340332

341333
Note: <a>reporting observers</a> can only observe reports from the
@@ -494,16 +486,24 @@ <h3 id="report-generation">Report Generation</h3>
494486
<h4 id="generate-report" export algorithm>Generate report of |type| with
495487
|data|</h4>
496488

497-
When the user agent is to <dfn>generate a report</dfn> for a <a>Document</a>
489+
When the user agent is to <dfn export>generate and queue a report</dfn> for a <a>Document</a>
498490
or {{WorkerGlobalScope}} object (|context|), given a string (|type|), another
499491
string (|destination|), and a serializable object (|data|), it must run the
500492
following steps:
501493

502494
1. Let |settings| be |context|'s [=relevant settings object=].
503495

504-
2. Let |report| be the result of running [[#queue-report]] with |data|,
496+
2. Let |report| be the result of running [=generate a report=] with |data|,
505497
|type|, |destination| and |settings|.
506498

499+
1. If |settings| is given, then
500+
501+
1. Let |scope| be |settings|'s [=environment settings object/global
502+
object=].
503+
504+
1. If |scope| is an object implementing {{WindowOrWorkerGlobalScope}},
505+
then execute [[#notify-observers]] with |scope| and |report|.
506+
507507
3. Append |report| to |context|'s [=reports=].
508508

509509
<h3 id="report-delivery">Report Delivery</h3>
@@ -948,7 +948,7 @@ <h2 id="automation">Automation</h2>
948948

949949
<h3 id="generate-test-report-command">Generate Test Report</h3>
950950

951-
The <dfn>Generate Test Report</dfn> <a>extension command</a> simulates the
951+
The <dfn export>Generate Test Report</dfn> <a>extension command</a> simulates the
952952
generation of a <a>report</a> for the purposes of testing. This report will be
953953
observed by any <a>registered</a> <a>reporting observers</a>.
954954

@@ -1003,7 +1003,7 @@ <h3 id="generate-test-report-command">Generate Test Report</h3>
10031003
9. Let |settings| be the <a>environment settings object</a> of the
10041004
<a>current browsing context</a>'s <a>active document</a>.
10051005

1006-
10. Execute [[#queue-report]] with |body|, "test", |group|, and |settings|.
1006+
10. Execute [=generate and queue a report=] with |body|, "test", |group|, and |settings|.
10071007

10081008
11. Return <a>success</a> with data null.
10091009
</section>

0 commit comments

Comments
 (0)