@@ -313,15 +313,15 @@ Finally, note that there is a sort of precedent in the (never-shipped) [`FetchOb
313
313
// Shared self.ai APIs
314
314
315
315
partial interface WindowOrWorkerGlobalScope {
316
- [Replaceable] readonly attribute AI ai;
316
+ [Replaceable, SecureContext ] readonly attribute AI ai;
317
317
};
318
318
319
- [Exposed=(Window,Worker)]
319
+ [Exposed=(Window,Worker), SecureContext ]
320
320
interface AI {
321
321
readonly attribute AIAssistantFactory assistant;
322
322
};
323
323
324
- [Exposed=(Window,Worker)]
324
+ [Exposed=(Window,Worker), SecureContext ]
325
325
interface AICreateMonitor : EventTarget {
326
326
attribute EventHandler ondownloadprogress;
327
327
@@ -337,13 +337,13 @@ enum AICapabilityAvailability { "readily", "after-download", "no" };
337
337
``` webidl
338
338
// Assistant
339
339
340
- [Exposed=(Window,Worker)]
340
+ [Exposed=(Window,Worker), SecureContext ]
341
341
interface AIAssistantFactory {
342
342
Promise<AIAssistant> create(optional AIAssistantCreateOptions options = {});
343
343
Promise<AIAssistantCapabilities> capabilities();
344
344
};
345
345
346
- [Exposed=(Window,Worker)]
346
+ [Exposed=(Window,Worker), SecureContext ]
347
347
interface AIAssistant : EventTarget {
348
348
Promise<DOMString> prompt(DOMString input, optional AIAssistantPromptOptions options = {});
349
349
ReadableStream promptStreaming(DOMString input, optional AIAssistantPromptOptions options = {});
@@ -362,7 +362,7 @@ interface AIAssistant : EventTarget {
362
362
undefined destroy();
363
363
};
364
364
365
- [Exposed=(Window,Worker)]
365
+ [Exposed=(Window,Worker), SecureContext ]
366
366
interface AIAssistantCapabilities {
367
367
readonly attribute AICapabilityAvailability available;
368
368
0 commit comments