Skip to content

Commit 3eacf6a

Browse files
committed
Rename SFrameTransformErrorEvent.type to SFrameTransformErrorEvent.errorType
1 parent f9d5d59 commit 3eacf6a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,13 @@ enum SFrameTransformErrorEventType {
192192
interface SFrameTransformErrorEvent : Event {
193193
constructor(DOMString type, SFrameTransformErrorEventInit eventInitDict);
194194

195-
readonly attribute SFrameTransformErrorEventType type;
195+
readonly attribute SFrameTransformErrorEventType errorType;
196196
readonly attribute CryptoKeyID? keyID;
197197
readonly attribute any frame;
198198
};
199199

200200
dictionary SFrameTransformErrorEventInit : EventInit {
201-
required SFrameTransformErrorEventType type;
201+
required SFrameTransformErrorEventType errorType;
202202
required any frame;
203203
CryptoKeyID? keyID;
204204
};
@@ -227,13 +227,13 @@ The SFrame transform algorithm, given |sframe| as a SFrameTransform object and |
227227
1. Let |buffer| be the result of running the SFrame algorithm with |data| and |role| as parameters. This algorithm is defined by the <a href="https://datatracker.ietf.org/doc/draft-omara-sframe/">SFrame specification</a> and returns an {{ArrayBuffer}}.
228228
1. If the SFrame algorithm exits abruptly with an error, [=queue a task=] to run the following sub steps:
229229
1. If the processing fails on decryption side due to |data| not following the SFrame format, [=fire an event=] named {{SFrameTransform/onerror|error}} at |sframe|,
230-
using the {{SFrameTransformErrorEvent}} interface with its {{SFrameTransformErrorEvent/type}} attribute set to {{SFrameTransformErrorEventType/syntax}}
230+
using the {{SFrameTransformErrorEvent}} interface with its {{SFrameTransformErrorEvent/errorType}} attribute set to {{SFrameTransformErrorEventType/syntax}}
231231
and its {{SFrameTransformErrorEvent/frame}} attribute set to |frame|.
232232
1. If the processing fails on decryption side due to the key identifier parsed in |data| being unknown, [=fire an event=] named {{SFrameTransform/onerror|error}} at |sframe|,
233-
using the {{SFrameTransformErrorEvent}} interface with its {{SFrameTransformErrorEvent/type}} attribute set to {{SFrameTransformErrorEventType/keyID}},
233+
using the {{SFrameTransformErrorEvent}} interface with its {{SFrameTransformErrorEvent/errorType}} attribute set to {{SFrameTransformErrorEventType/keyID}},
234234
its {{SFrameTransformErrorEvent/frame}} attribute set to |frame| and its {{SFrameTransformErrorEvent/keyID}} attribute set to the keyID value parsed in the SFrame header.
235235
1. If the processing fails on decryption side due to validation of the authentication tag, [=fire an event=] named {{SFrameTransform/onerror|error}} at |sframe|,
236-
using the {{SFrameTransformErrorEvent}} interface with its {{SFrameTransformErrorEvent/type}} attribute set to {{SFrameTransformErrorEventType/authentication}}
236+
using the {{SFrameTransformErrorEvent}} interface with its {{SFrameTransformErrorEvent/errorType}} attribute set to {{SFrameTransformErrorEventType/authentication}}
237237
and its {{SFrameTransformErrorEvent/frame}} attribute set to |frame|.
238238
1. Abort these steps.
239239
1. If |frame| is a {{BufferSource}}, set |frame| to |buffer|.

0 commit comments

Comments
 (0)