56
56
} ;
57
57
</ script >
58
58
</ head >
59
- < body data-cite ="service-workers ">
59
+ < body data-cite ="service-workers FILEAPI ">
60
60
< section id ="abstract ">
61
61
< p >
62
62
The < cite > Push API</ cite > enables sending of a < a > push message</ a > to a < a > webapp</ a > via a
510
510
"service-workers#serviceworkerregistration "> ServiceWorkerRegistration</ dfn > </ code >
511
511
interface [[SERVICE-WORKERS]], which this specification extends.
512
512
</ p >
513
- < pre class ="idl ">
513
+ < pre class ="idl " data-cite =" service-workers " >
514
514
[SecureContext]
515
515
partial interface ServiceWorkerRegistration {
516
516
readonly attribute PushManager pushManager;
564
564
{{DOMException}} whose name is "{{SecurityError}}" and terminate these steps.
565
565
</ li >
566
566
< li > If the < var > options</ var > argument includes a non-null value for the
567
- ` < a data-link-for ="PushSubscriptionOptions "> applicationServerKey</ a > ` attribute, run the
567
+ < a data-link-for ="PushSubscriptionOptions "> applicationServerKey</ a > attribute, run the
568
568
following substeps:
569
569
< ol >
570
570
< li > If the < var > applicationServerKey</ var > is provided as a {{DOMString}}, set its
581
581
</ ol >
582
582
</ li >
583
583
< li > If the < var > options</ var > argument does not include a non-null value for the
584
- ` < a data-link-for ="PushSubscriptionOptions "> applicationServerKey</ a > ` attribute, and the
585
- < a > push service</ a > requires one to be given, reject < var > promise</ var > with a
586
- {{DOMException}} whose name is "{{NotSupportedError}}" and terminate these steps.
584
+ < a data-link-for ="PushSubscriptionOptions "> applicationServerKey</ a > attribute, and the < a >
585
+ push service</ a > requires one to be given, reject < var > promise</ var > with a
586
+ {{DOMException}} whose name is "{{NotSupportedError}}" and terminate these steps.
587
587
</ li >
588
588
< li > Let < var > registration</ var > be the < a > PushManager</ a > 's associated < a > service worker
589
589
registration</ a > .
709
709
present and the < a > push service</ a > requires one for operational reasons.
710
710
</ p >
711
711
< p >
712
- The ` < a data-link-for ="PushSubscriptionOptions "> applicationServerKey</ a > ` MUST be a
712
+ The < a data-link-for ="PushSubscriptionOptions "> applicationServerKey</ a > MUST be a
713
713
different value to the one used for message encryption [[RFC8291]].
714
714
</ p >
715
715
</ section >
794
794
</ p >
795
795
< p >
796
796
When getting the < dfn > options</ dfn > attribute, the < a > user agent</ a > MUST return a
797
- ` < a > PushSubscriptionOptions</ a > ` object representing the options associated with the
798
- < a > push subscription</ a > .
797
+ < a > PushSubscriptionOptions</ a > object representing the options associated with the < a > push
798
+ subscription</ a > .
799
799
</ p >
800
800
< p >
801
801
The < dfn > getKey()</ dfn > method retrieves keying material that can be used for encrypting
952
952
< h2 >
953
953
< dfn > PushMessageData</ dfn > interface
954
954
</ h2 >
955
- < pre class ="idl ">
955
+ < pre class ="idl " data-cite =" FILEAPI " >
956
956
[Exposed=ServiceWorker, SecureContext]
957
957
interface PushMessageData {
958
958
ArrayBuffer arrayBuffer();
970
970
contents are < var > bytes</ var > . Exceptions thrown during the creation of the {{ArrayBuffer}}
971
971
object are re-thrown.
972
972
</ p >
973
- < p data-cite =" FILEAPI " >
973
+ < p >
974
974
The < dfn > blob()</ dfn > method, when invoked, MUST return a {{Blob}} whose contents are
975
975
< var > bytes</ var > and < var > type</ var > is not provided.
976
976
</ p >
@@ -1023,7 +1023,7 @@ <h2>
1023
1023
"service-workers#serviceworkerglobalscope "> ServiceWorkerGlobalScope</ dfn > interface
1024
1024
[[SERVICE-WORKERS]], which this specification extends.
1025
1025
</ p >
1026
- < pre class ="idl ">
1026
+ < pre class ="idl " data-cite =" HTML " >
1027
1027
[Exposed=ServiceWorker, SecureContext]
1028
1028
partial interface ServiceWorkerGlobalScope {
1029
1029
attribute EventHandler onpush;
@@ -1040,12 +1040,12 @@ <h2>
1040
1040
attribute</ a > whose corresponding < a > event handler event type</ a > is
1041
1041
"`pushsubscriptionchange`".
1042
1042
</ p >
1043
- </ section >
1043
+ </ section > f
1044
1044
< section data-dfn-for ="PushEvent ">
1045
1045
< h2 >
1046
1046
< dfn > PushEvent</ dfn > Interface
1047
1047
</ h2 >
1048
- < pre class ="idl ">
1048
+ < pre class ="idl " data-cite =" service-workers " >
1049
1049
[Constructor(DOMString type, optional PushEventInit eventInitDict), Exposed=ServiceWorker, SecureContext]
1050
1050
interface PushEvent : ExtendableEvent {
1051
1051
readonly attribute PushMessageData? data;
@@ -1075,7 +1075,7 @@ <h2>
1075
1075
< h2 >
1076
1076
< dfn > PushEventInit</ dfn >
1077
1077
</ h2 >
1078
- < pre class ="idl ">
1078
+ < pre class ="idl " data-cite =" service-workers " >
1079
1079
typedef (BufferSource or USVString) PushMessageDataInit;
1080
1080
1081
1081
dictionary PushEventInit : ExtendableEventInit {
@@ -1220,7 +1220,7 @@ <h2>
1220
1220
< h2 >
1221
1221
< dfn > PushSubscriptionChangeEvent</ dfn > Interface
1222
1222
</ h2 >
1223
- < pre class ="idl ">
1223
+ < pre class ="idl " data-cite =" service-workers " >
1224
1224
[Constructor(DOMString type, optional PushSubscriptionChangeInit eventInitDict), Exposed=ServiceWorker, SecureContext]
1225
1225
interface PushSubscriptionChangeEvent : ExtendableEvent {
1226
1226
readonly attribute PushSubscription? newSubscription;
@@ -1240,7 +1240,7 @@ <h2>
1240
1240
< h2 >
1241
1241
< dfn > PushSubscriptionChangeInit</ dfn > Interface
1242
1242
</ h2 >
1243
- < pre class ="idl ">
1243
+ < pre class ="idl " data-cite =" service-workers " >
1244
1244
dictionary PushSubscriptionChangeInit : ExtendableEventInit {
1245
1245
PushSubscription newSubscription = null;
1246
1246
PushSubscription oldSubscription = null;
0 commit comments