@@ -243,17 +243,17 @@ The API design here is synchronized with [that of the translation and language d
243
243
// Shared self.ai APIs
244
244
245
245
partial interface WindowOrWorkerGlobalScope {
246
- [Replaceable] readonly attribute AI ai;
246
+ [Replaceable, SecureContext ] readonly attribute AI ai;
247
247
};
248
248
249
- [Exposed= (Window ,Worker )]
249
+ [Exposed= (Window ,Worker ), SecureContext ]
250
250
interface AI {
251
251
readonly attribute AISummarizerFactory summarizer;
252
252
readonly attribute AIWriterFactory writer;
253
253
readonly attribute AIRewriterFactory rewriter;
254
254
};
255
255
256
- [Exposed= (Window ,Worker )]
256
+ [Exposed= (Window ,Worker ), SecureContext ]
257
257
interface AICreateMonitor : EventTarget {
258
258
attribute EventHandler ondownloadprogress;
259
259
@@ -269,13 +269,13 @@ enum AICapabilityAvailability { "readily", "after-download", "no" };
269
269
` ` ` webidl
270
270
// Summarizer
271
271
272
- [Exposed= (Window ,Worker )]
272
+ [Exposed= (Window ,Worker ), SecureContext ]
273
273
interface AISummarizerFactory {
274
274
Promise < AISummarizer> create (optional AISummarizerCreateOptions options = {});
275
275
Promise < AISummarizerCapabilities> capabilities ();
276
276
};
277
277
278
- [Exposed= (Window ,Worker )]
278
+ [Exposed= (Window ,Worker ), SecureContext ]
279
279
interface AISummarizer {
280
280
Promise < DOMString > summarize (DOMString input, optional AISummarizerSummarizeOptions options = {});
281
281
ReadableStream summarizeStreaming (DOMString input, optional AISummarizerSummarizeOptions options = {});
@@ -288,7 +288,7 @@ interface AISummarizer {
288
288
undefined destroy ();
289
289
};
290
290
291
- [Exposed= (Window ,Worker )]
291
+ [Exposed= (Window ,Worker ), SecureContext ]
292
292
interface AISummarizerCapabilities {
293
293
readonly attribute AICapabilityAvailability available;
294
294
@@ -322,13 +322,13 @@ enum AISummarizerLength { "short", "medium", "long" };
322
322
` ` ` webidl
323
323
// Writer
324
324
325
- [Exposed= (Window ,Worker )]
325
+ [Exposed= (Window ,Worker ), SecureContext ]
326
326
interface AIWriterFactory {
327
327
Promise < AIWriter> create (optional AIWriterCreateOptions options = {});
328
328
Promise < AIWriterCapabilities> capabilities ();
329
329
};
330
330
331
- [Exposed= (Window ,Worker )]
331
+ [Exposed= (Window ,Worker ), SecureContext ]
332
332
interface AIWriter {
333
333
Promise < DOMString > write (DOMString writingTask, optional AIWriterWriteOptions options = {});
334
334
ReadableStream writeStreaming (DOMString writingTask, optional AIWriterWriteOptions options = {});
@@ -341,7 +341,7 @@ interface AIWriter {
341
341
undefined destroy ();
342
342
};
343
343
344
- [Exposed= (Window ,Worker )]
344
+ [Exposed= (Window ,Worker ), SecureContext ]
345
345
interface AIWriterCapabilities {
346
346
readonly attribute AICapabilityAvailability available;
347
347
@@ -375,13 +375,13 @@ enum AIWriterLength { "short", "medium", "long" };
375
375
` ` ` webidl
376
376
// Rewriter
377
377
378
- [Exposed= (Window ,Worker )]
378
+ [Exposed= (Window ,Worker ), SecureContext ]
379
379
interface AIRewriterFactory {
380
380
Promise < AIRewriter> create (optional AIRewriterCreateOptions options = {});
381
381
Promise < AIRewriterCapabilities> capabilities ();
382
382
};
383
383
384
- [Exposed= (Window ,Worker )]
384
+ [Exposed= (Window ,Worker ), SecureContext ]
385
385
interface AIRewriter {
386
386
Promise < DOMString > rewrite (DOMString input, optional AIRewriterRewriteOptions options = {});
387
387
ReadableStream rewriteStreaming (DOMString input, optional AIRewriterRewriteOptions options = {});
@@ -394,7 +394,7 @@ interface AIRewriter {
394
394
undefined destroy ();
395
395
};
396
396
397
- [Exposed= (Window ,Worker )]
397
+ [Exposed= (Window ,Worker ), SecureContext ]
398
398
interface AIRewriterCapabilities {
399
399
readonly attribute AICapabilityAvailability available;
400
400
0 commit comments