From f6e72c5bd9afc4774f11a12171725910936a4c20 Mon Sep 17 00:00:00 2001 From: Douglas Creager Date: Mon, 9 Jul 2018 08:51:56 -0400 Subject: [PATCH] Clarify name of "observability" property (#101) In w3c/network-error-logging#77 there was some confusion about what "observable from JavaScript" means. The intended meaning is very specific: the report will not be handed off to any registered `ReportingObserver`s. Another reading that is you can perform whatever complicated analysis you want, and somehow detect that a report was created. This patch renames the term to something that hopefully can only be read in the more specific way. --- index.src.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/index.src.html b/index.src.html index 8d83edd..5c646bc 100644 --- a/index.src.html +++ b/index.src.html @@ -314,10 +314,10 @@

Report Type

that is contained in the [=report/body=] of a report. When a report type is defined (in this spec or others), it can be - specified to be observable from JavaScript, meaning + specified to be visible to ReportingObservers, meaning that reports of that type can be observed by a reporting - observer. By default, report types are not observable from - JavaScript. + observer. By default, report types are not visible to + ReportingObservers. Note: See [[#deprecation-report]] as an example report type definition. @@ -1084,8 +1084,8 @@

algorithm adds |report| to |observer|'s report list, so long as |report|'s type is observable by |observer|. - 1. If |report|'s [=report/type=] is not observable from JavaScript, - return. + 1. If |report|'s [=report/type=] is not visible to + ReportingObservers, return. 2. If |observer|'s options has a non-empty {{ReportingObserverOptions/types}} member which does not contain |report|'s @@ -1135,7 +1135,8 @@

Deprecation

Deprecation reports have the report type "deprecation". - Deprecation reports are observable from JavaScript. + Deprecation reports are visible to + ReportingObservers.
     interface DeprecationReportBody : ReportBody {
@@ -1190,7 +1191,8 @@ 

Intervention

Intervention reports have the report type "intervention". - Intervention reports are observable from JavaScript. + Intervention reports are visible to + ReportingObservers.
     interface InterventionReportBody : ReportBody {