Skip to content

Commit f8dc25b

Browse files
authored
Merge pull request #113 from youennf/errorevent-errorType
Rename SFrameTransformErrorEvent.type to SFrameTransformErrorEvent.errorType
2 parents a09f047 + 3eacf6a commit f8dc25b

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
@@ -202,13 +202,13 @@ enum SFrameTransformErrorEventType {
202202
interface SFrameTransformErrorEvent : Event {
203203
constructor(DOMString type, SFrameTransformErrorEventInit eventInitDict);
204204

205-
readonly attribute SFrameTransformErrorEventType type;
205+
readonly attribute SFrameTransformErrorEventType errorType;
206206
readonly attribute CryptoKeyID? keyID;
207207
readonly attribute any frame;
208208
};
209209

210210
dictionary SFrameTransformErrorEventInit : EventInit {
211-
required SFrameTransformErrorEventType type;
211+
required SFrameTransformErrorEventType errorType;
212212
required any frame;
213213
CryptoKeyID? keyID;
214214
};
@@ -237,13 +237,13 @@ The SFrame transform algorithm, given |sframe| as a SFrameTransform object and |
237237
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}}.
238238
1. If the SFrame algorithm exits abruptly with an error, [=queue a task=] to run the following sub steps:
239239
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|,
240-
using the {{SFrameTransformErrorEvent}} interface with its {{SFrameTransformErrorEvent/type}} attribute set to {{SFrameTransformErrorEventType/syntax}}
240+
using the {{SFrameTransformErrorEvent}} interface with its {{SFrameTransformErrorEvent/errorType}} attribute set to {{SFrameTransformErrorEventType/syntax}}
241241
and its {{SFrameTransformErrorEvent/frame}} attribute set to |frame|.
242242
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|,
243-
using the {{SFrameTransformErrorEvent}} interface with its {{SFrameTransformErrorEvent/type}} attribute set to {{SFrameTransformErrorEventType/keyID}},
243+
using the {{SFrameTransformErrorEvent}} interface with its {{SFrameTransformErrorEvent/errorType}} attribute set to {{SFrameTransformErrorEventType/keyID}},
244244
its {{SFrameTransformErrorEvent/frame}} attribute set to |frame| and its {{SFrameTransformErrorEvent/keyID}} attribute set to the keyID value parsed in the SFrame header.
245245
1. If the processing fails on decryption side due to validation of the authentication tag, [=fire an event=] named {{SFrameTransform/onerror|error}} at |sframe|,
246-
using the {{SFrameTransformErrorEvent}} interface with its {{SFrameTransformErrorEvent/type}} attribute set to {{SFrameTransformErrorEventType/authentication}}
246+
using the {{SFrameTransformErrorEvent}} interface with its {{SFrameTransformErrorEvent/errorType}} attribute set to {{SFrameTransformErrorEventType/authentication}}
247247
and its {{SFrameTransformErrorEvent/frame}} attribute set to |frame|.
248248
1. Abort these steps.
249249
1. If |frame| is a {{BufferSource}}, set |frame| to |buffer|.

0 commit comments

Comments
 (0)