@@ -484,6 +484,21 @@ interface RsaPssParams extends Algorithm {
484
484
saltLength : number ;
485
485
}
486
486
487
+ interface SecurityPolicyViolationEventInit extends EventInit {
488
+ blockedURI ?: string ;
489
+ columnNumber ?: number ;
490
+ disposition : SecurityPolicyViolationEventDisposition ;
491
+ documentURI : string ;
492
+ effectiveDirective : string ;
493
+ lineNumber ?: number ;
494
+ originalPolicy : string ;
495
+ referrer ?: string ;
496
+ sample ?: string ;
497
+ sourceFile ?: string ;
498
+ statusCode : number ;
499
+ violatedDirective : string ;
500
+ }
501
+
487
502
interface StorageEstimate {
488
503
quota ?: number ;
489
504
usage ?: number ;
@@ -935,29 +950,15 @@ interface ConcatParams extends Algorithm {
935
950
936
951
/** Provides access to the browser's debugging console (e.g. the Web Console in Firefox). The specifics of how it works varies from browser to browser, but there is a de facto set of features that are typically provided. */
937
952
interface Console {
938
- memory : any ;
939
- assert ( condition ?: boolean , message ?: string , ...data : any [ ] ) : void ;
940
- clear ( ) : void ;
941
- count ( label ?: string ) : void ;
942
953
debug ( message ?: any , ...optionalParams : any [ ] ) : void ;
943
954
dir ( value ?: any , ...optionalParams : any [ ] ) : void ;
944
955
dirxml ( value : any ) : void ;
945
956
error ( message ?: any , ...optionalParams : any [ ] ) : void ;
946
- exception ( message ?: string , ...optionalParams : any [ ] ) : void ;
947
957
group ( groupTitle ?: string , ...optionalParams : any [ ] ) : void ;
948
958
groupCollapsed ( groupTitle ?: string , ...optionalParams : any [ ] ) : void ;
949
- groupEnd ( ) : void ;
950
959
info ( message ?: any , ...optionalParams : any [ ] ) : void ;
951
960
log ( message ?: any , ...optionalParams : any [ ] ) : void ;
952
- markTimeline ( label ?: string ) : void ;
953
- profile ( reportName ?: string ) : void ;
954
961
profileEnd ( reportName ?: string ) : void ;
955
- table ( ...tabularData : any [ ] ) : void ;
956
- time ( label ?: string ) : void ;
957
- timeEnd ( label ?: string ) : void ;
958
- timeStamp ( label ?: string ) : void ;
959
- timeline ( label ?: string ) : void ;
960
- timelineEnd ( label ?: string ) : void ;
961
962
trace ( message ?: any , ...optionalParams : any [ ] ) : void ;
962
963
warn ( message ?: any , ...optionalParams : any [ ] ) : void ;
963
964
}
@@ -2794,9 +2795,7 @@ interface ReadableStreamDefaultReader<R = any> {
2794
2795
}
2795
2796
2796
2797
interface ReadableStreamReader < R = any > {
2797
- cancel ( ) : Promise < void > ;
2798
2798
read ( ) : Promise < ReadableStreamReadResult < R > > ;
2799
- releaseLock ( ) : void ;
2800
2799
}
2801
2800
2802
2801
declare var ReadableStreamReader : {
@@ -2894,6 +2893,27 @@ declare var Response: {
2894
2893
redirect ( url : string , status ?: number ) : Response ;
2895
2894
} ;
2896
2895
2896
+ /** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */
2897
+ interface SecurityPolicyViolationEvent extends Event {
2898
+ readonly blockedURI : string ;
2899
+ readonly columnNumber : number ;
2900
+ readonly disposition : SecurityPolicyViolationEventDisposition ;
2901
+ readonly documentURI : string ;
2902
+ readonly effectiveDirective : string ;
2903
+ readonly lineNumber : number ;
2904
+ readonly originalPolicy : string ;
2905
+ readonly referrer : string ;
2906
+ readonly sample : string ;
2907
+ readonly sourceFile : string ;
2908
+ readonly statusCode : number ;
2909
+ readonly violatedDirective : string ;
2910
+ }
2911
+
2912
+ declare var SecurityPolicyViolationEvent : {
2913
+ prototype : SecurityPolicyViolationEvent ;
2914
+ new ( type : string , eventInitDict ?: SecurityPolicyViolationEventInit ) : SecurityPolicyViolationEvent ;
2915
+ } ;
2916
+
2897
2917
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
2898
2918
"statechange" : Event ;
2899
2919
}
@@ -5410,10 +5430,6 @@ declare var WindowClient: {
5410
5430
new ( ) : WindowClient ;
5411
5431
} ;
5412
5432
5413
- interface WindowConsole {
5414
- readonly console : Console ;
5415
- }
5416
-
5417
5433
interface WindowOrWorkerGlobalScope {
5418
5434
readonly caches : CacheStorage ;
5419
5435
readonly crypto : Crypto ;
@@ -5472,7 +5488,7 @@ interface WorkerGlobalScopeEventMap {
5472
5488
}
5473
5489
5474
5490
/** This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects — in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop. */
5475
- interface WorkerGlobalScope extends EventTarget , WindowConsole , WindowOrWorkerGlobalScope {
5491
+ interface WorkerGlobalScope extends EventTarget , WindowOrWorkerGlobalScope {
5476
5492
/**
5477
5493
* Returns workerGlobal's WorkerLocation object.
5478
5494
*/
@@ -5929,7 +5945,6 @@ declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response
5929
5945
declare function queueMicrotask ( callback : VoidFunction ) : void ;
5930
5946
declare function setInterval ( handler : TimerHandler , timeout ?: number , ...arguments : any [ ] ) : number ;
5931
5947
declare function setTimeout ( handler : TimerHandler , timeout ?: number , ...arguments : any [ ] ) : number ;
5932
- declare var console : Console ;
5933
5948
declare function cancelAnimationFrame ( handle : number ) : void ;
5934
5949
declare function requestAnimationFrame ( callback : FrameRequestCallback ) : number ;
5935
5950
declare function addEventListener < K extends keyof DedicatedWorkerGlobalScopeEventMap > ( type : K , listener : ( this : DedicatedWorkerGlobalScope , ev : DedicatedWorkerGlobalScopeEventMap [ K ] ) => any , options ?: boolean | AddEventListenerOptions ) : void ;
@@ -6011,6 +6026,7 @@ type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
6011
6026
type RequestRedirect = "error" | "follow" | "manual" ;
6012
6027
type ResizeQuality = "high" | "low" | "medium" | "pixelated" ;
6013
6028
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect" ;
6029
+ type SecurityPolicyViolationEventDisposition = "enforce" | "report" ;
6014
6030
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant" ;
6015
6031
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none" ;
6016
6032
type VisibilityState = "hidden" | "visible" ;
0 commit comments