@@ -484,6 +484,21 @@ interface RsaPssParams extends Algorithm {
484484 saltLength : number ;
485485}
486486
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+
487502interface StorageEstimate {
488503 quota ?: number ;
489504 usage ?: number ;
@@ -935,29 +950,15 @@ interface ConcatParams extends Algorithm {
935950
936951/** 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. */
937952interface Console {
938- memory : any ;
939- assert ( condition ?: boolean , message ?: string , ...data : any [ ] ) : void ;
940- clear ( ) : void ;
941- count ( label ?: string ) : void ;
942953 debug ( message ?: any , ...optionalParams : any [ ] ) : void ;
943954 dir ( value ?: any , ...optionalParams : any [ ] ) : void ;
944955 dirxml ( value : any ) : void ;
945956 error ( message ?: any , ...optionalParams : any [ ] ) : void ;
946- exception ( message ?: string , ...optionalParams : any [ ] ) : void ;
947957 group ( groupTitle ?: string , ...optionalParams : any [ ] ) : void ;
948958 groupCollapsed ( groupTitle ?: string , ...optionalParams : any [ ] ) : void ;
949- groupEnd ( ) : void ;
950959 info ( message ?: any , ...optionalParams : any [ ] ) : void ;
951960 log ( message ?: any , ...optionalParams : any [ ] ) : void ;
952- markTimeline ( label ?: string ) : void ;
953- profile ( reportName ?: string ) : void ;
954961 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 ;
961962 trace ( message ?: any , ...optionalParams : any [ ] ) : void ;
962963 warn ( message ?: any , ...optionalParams : any [ ] ) : void ;
963964}
@@ -2794,9 +2795,7 @@ interface ReadableStreamDefaultReader<R = any> {
27942795}
27952796
27962797interface ReadableStreamReader < R = any > {
2797- cancel ( ) : Promise < void > ;
27982798 read ( ) : Promise < ReadableStreamReadResult < R > > ;
2799- releaseLock ( ) : void ;
28002799}
28012800
28022801declare var ReadableStreamReader : {
@@ -2894,6 +2893,27 @@ declare var Response: {
28942893 redirect ( url : string , status ?: number ) : Response ;
28952894} ;
28962895
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+
28972917interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
28982918 "statechange" : Event ;
28992919}
@@ -5410,10 +5430,6 @@ declare var WindowClient: {
54105430 new ( ) : WindowClient ;
54115431} ;
54125432
5413- interface WindowConsole {
5414- readonly console : Console ;
5415- }
5416-
54175433interface WindowOrWorkerGlobalScope {
54185434 readonly caches : CacheStorage ;
54195435 readonly crypto : Crypto ;
@@ -5472,7 +5488,7 @@ interface WorkerGlobalScopeEventMap {
54725488}
54735489
54745490/** 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 {
54765492 /**
54775493 * Returns workerGlobal's WorkerLocation object.
54785494 */
@@ -5929,7 +5945,6 @@ declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response
59295945declare function queueMicrotask ( callback : VoidFunction ) : void ;
59305946declare function setInterval ( handler : TimerHandler , timeout ?: number , ...arguments : any [ ] ) : number ;
59315947declare function setTimeout ( handler : TimerHandler , timeout ?: number , ...arguments : any [ ] ) : number ;
5932- declare var console : Console ;
59335948declare function cancelAnimationFrame ( handle : number ) : void ;
59345949declare function requestAnimationFrame ( callback : FrameRequestCallback ) : number ;
59355950declare 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";
60116026type RequestRedirect = "error" | "follow" | "manual" ;
60126027type ResizeQuality = "high" | "low" | "medium" | "pixelated" ;
60136028type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect" ;
6029+ type SecurityPolicyViolationEventDisposition = "enforce" | "report" ;
60146030type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant" ;
60156031type ServiceWorkerUpdateViaCache = "all" | "imports" | "none" ;
60166032type VisibilityState = "hidden" | "visible" ;
0 commit comments