chrome-devtools-mcp 0.15.1 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -5
- package/build/src/DevtoolsUtils.js +120 -5
- package/build/src/McpContext.js +5 -9
- package/build/src/McpResponse.js +4 -10
- package/build/src/PageCollector.js +18 -2
- package/build/src/cli.js +9 -0
- package/build/src/formatters/ConsoleFormatter.js +155 -68
- package/build/src/main.js +5 -1
- package/build/src/third_party/THIRD_PARTY_NOTICES +4 -4
- package/build/src/third_party/bundled-packages.json +3 -3
- package/build/src/third_party/devtools-formatter-worker.js +0 -2
- package/build/src/third_party/index.js +512 -295
- package/build/src/tools/input.js +0 -1
- package/build/src/tools/performance.js +31 -1
- package/build/src/tools/script.js +2 -2
- package/package.json +5 -5
|
@@ -22836,6 +22836,9 @@ class Protocol {
|
|
|
22836
22836
|
}
|
|
22837
22837
|
}
|
|
22838
22838
|
async connect(transport) {
|
|
22839
|
+
if (this._transport) {
|
|
22840
|
+
throw new Error('Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.');
|
|
22841
|
+
}
|
|
22839
22842
|
this._transport = transport;
|
|
22840
22843
|
const _onclose = this.transport?.onclose;
|
|
22841
22844
|
this._transport.onclose = () => {
|
|
@@ -22871,6 +22874,10 @@ class Protocol {
|
|
|
22871
22874
|
this._progressHandlers.clear();
|
|
22872
22875
|
this._taskProgressTokens.clear();
|
|
22873
22876
|
this._pendingDebouncedNotifications.clear();
|
|
22877
|
+
for (const controller of this._requestHandlerAbortControllers.values()) {
|
|
22878
|
+
controller.abort();
|
|
22879
|
+
}
|
|
22880
|
+
this._requestHandlerAbortControllers.clear();
|
|
22874
22881
|
const error = McpError.fromError(ErrorCode$1.ConnectionClosed, 'Connection closed');
|
|
22875
22882
|
this._transport = undefined;
|
|
22876
22883
|
this.onclose?.();
|
|
@@ -22926,6 +22933,8 @@ class Protocol {
|
|
|
22926
22933
|
sessionId: capturedTransport?.sessionId,
|
|
22927
22934
|
_meta: request.params?._meta,
|
|
22928
22935
|
sendNotification: async (notification) => {
|
|
22936
|
+
if (abortController.signal.aborted)
|
|
22937
|
+
return;
|
|
22929
22938
|
const notificationOptions = { relatedRequestId: request.id };
|
|
22930
22939
|
if (relatedTaskId) {
|
|
22931
22940
|
notificationOptions.relatedTask = { taskId: relatedTaskId };
|
|
@@ -22933,6 +22942,9 @@ class Protocol {
|
|
|
22933
22942
|
await this.notification(notification, notificationOptions);
|
|
22934
22943
|
},
|
|
22935
22944
|
sendRequest: async (r, resultSchema, options) => {
|
|
22945
|
+
if (abortController.signal.aborted) {
|
|
22946
|
+
throw new McpError(ErrorCode$1.ConnectionClosed, 'Request was cancelled');
|
|
22947
|
+
}
|
|
22936
22948
|
const requestOptions = { ...options, relatedRequestId: request.id };
|
|
22937
22949
|
if (relatedTaskId && !requestOptions.relatedTask) {
|
|
22938
22950
|
requestOptions.relatedTask = { taskId: relatedTaskId };
|
|
@@ -40584,7 +40596,7 @@ function mergeUint8Arrays(items) {
|
|
|
40584
40596
|
* Copyright 2025 Google Inc.
|
|
40585
40597
|
* SPDX-License-Identifier: Apache-2.0
|
|
40586
40598
|
*/
|
|
40587
|
-
const packageVersion = '24.
|
|
40599
|
+
const packageVersion = '24.37.2';
|
|
40588
40600
|
|
|
40589
40601
|
/**
|
|
40590
40602
|
* @license
|
|
@@ -41037,6 +41049,9 @@ let Browser$1 = class Browser extends EventEmitter {
|
|
|
41037
41049
|
async deleteMatchingCookies(...filters) {
|
|
41038
41050
|
return await this.defaultBrowserContext().deleteMatchingCookies(...filters);
|
|
41039
41051
|
}
|
|
41052
|
+
async setPermission(origin, ...permissions) {
|
|
41053
|
+
return await this.defaultBrowserContext().setPermission(origin, ...permissions);
|
|
41054
|
+
}
|
|
41040
41055
|
isConnected() {
|
|
41041
41056
|
return this.connected;
|
|
41042
41057
|
}
|
|
@@ -41836,7 +41851,7 @@ class CSSQueryHandler extends QueryHandler {
|
|
|
41836
41851
|
};
|
|
41837
41852
|
}
|
|
41838
41853
|
|
|
41839
|
-
const source = "\"use strict\";var g=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var Y=Object.prototype.hasOwnProperty;var l=(t,e)=>{for(var r in e)g(t,r,{get:e[r],enumerable:!0})},G=(t,e,r,o)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let s of B(e))!Y.call(t,s)&&s!==r&&g(t,s,{get:()=>e[s],enumerable:!(o=X(e,s))||o.enumerable});return t};var J=t=>G(g({},\"__esModule\",{value:!0}),t);var pe={};l(pe,{default:()=>he});module.exports=J(pe);var N=class extends Error{constructor(e,r){super(e,r),this.name=this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}},p=class extends N{};var c=class t{static create(e){return new t(e)}static async race(e){let r=new Set;try{let o=e.map(s=>s instanceof t?(s.#s&&r.add(s),s.valueOrThrow()):s);return await Promise.race(o)}finally{for(let o of r)o.reject(new Error(\"Timeout cleared\"))}}#e=!1;#r=!1;#o;#t;#a=new Promise(e=>{this.#t=e});#s;#i;constructor(e){e&&e.timeout>0&&(this.#i=new p(e.message),this.#s=setTimeout(()=>{this.reject(this.#i)},e.timeout))}#l(e){clearTimeout(this.#s),this.#o=e,this.#t()}resolve(e){this.#r||this.#e||(this.#e=!0,this.#l(e))}reject(e){this.#r||this.#e||(this.#r=!0,this.#l(e))}resolved(){return this.#e}finished(){return this.#e||this.#r}value(){return this.#o}#n;valueOrThrow(){return this.#n||(this.#n=(async()=>{if(await this.#a,this.#r)throw this.#o;return this.#o})()),this.#n}};var L=new Map,W=t=>{let e=L.get(t);return e||(e=new Function(`return ${t}`)(),L.set(t,e),e)};var b={};l(b,{ariaQuerySelector:()=>z,ariaQuerySelectorAll:()=>x});var z=(t,e)=>globalThis.__ariaQuerySelector(t,e),x=async function*(t,e){yield*await globalThis.__ariaQuerySelectorAll(t,e)};var E={};l(E,{cssQuerySelector:()=>K,cssQuerySelectorAll:()=>Z});var K=(t,e)=>t.querySelector(e),Z=function(t,e){return t.querySelectorAll(e)};var A={};l(A,{customQuerySelectors:()=>P});var v=class{#e=new Map;register(e,r){if(!r.queryOne&&r.queryAll){let o=r.queryAll;r.queryOne=(s,i)=>{for(let n of o(s,i))return n;return null}}else if(r.queryOne&&!r.queryAll){let o=r.queryOne;r.queryAll=(s,i)=>{let n=o(s,i);return n?[n]:[]}}else if(!r.queryOne||!r.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:r.queryOne,querySelectorAll:r.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},P=new v;var R={};l(R,{pierceQuerySelector:()=>ee,pierceQuerySelectorAll:()=>te});var ee=(t,e)=>{let r=null,o=s=>{let i=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT);do{let n=i.currentNode;n.shadowRoot&&o(n.shadowRoot),!(n instanceof ShadowRoot)&&n!==s&&!r&&n.matches(e)&&(r=n)}while(!r&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),o(t),r},te=(t,e)=>{let r=[],o=s=>{let i=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT);do{let n=i.currentNode;n.shadowRoot&&o(n.shadowRoot),!(n instanceof ShadowRoot)&&n!==s&&n.matches(e)&&r.push(n)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),o(t),r};var u=(t,e)=>{if(!t)throw new Error(e)};var y=class{#e;#r;#o;#t;constructor(e,r){this.#e=e,this.#r=r}async start(){let e=this.#t=c.create(),r=await this.#e();if(r){e.resolve(r);return}this.#o=new MutationObserver(async()=>{let o=await this.#e();o&&(e.resolve(o),await this.stop())}),this.#o.observe(this.#r,{childList:!0,subtree:!0,attributes:!0})}async stop(){u(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\")),this.#o&&(this.#o.disconnect(),this.#o=void 0)}result(){return u(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},w=class{#e;#r;constructor(e){this.#e=e}async start(){let e=this.#r=c.create(),r=await this.#e();if(r){e.resolve(r);return}let o=async()=>{if(e.finished())return;let s=await this.#e();if(!s){window.requestAnimationFrame(o);return}e.resolve(s),await this.stop()};window.requestAnimationFrame(o)}async stop(){u(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\"))}result(){return u(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},T=class{#e;#r;#o;#t;constructor(e,r){this.#e=e,this.#r=r}async start(){let e=this.#t=c.create(),r=await this.#e();if(r){e.resolve(r);return}this.#o=setInterval(async()=>{let o=await this.#e();o&&(e.resolve(o),await this.stop())},this.#r)}async stop(){u(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\")),this.#o&&(clearInterval(this.#o),this.#o=void 0)}result(){return u(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}};var _={};l(_,{PCombinator:()=>H,pQuerySelector:()=>fe,pQuerySelectorAll:()=>$});var a=class{static async*map(e,r){for await(let o of e)yield await r(o)}static async*flatMap(e,r){for await(let o of e)yield*r(o)}static async collect(e){let r=[];for await(let o of e)r.push(o);return r}static async first(e){for await(let r of e)return r}};var C={};l(C,{textQuerySelectorAll:()=>m});var re=new Set([\"checkbox\",\"image\",\"radio\"]),oe=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!re.has(t.type),se=new Set([\"SCRIPT\",\"STYLE\"]),f=t=>!se.has(t.nodeName)&&!document.head?.contains(t),I=new WeakMap,F=t=>{for(;t;)I.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},j=new WeakSet,ne=new MutationObserver(t=>{for(let e of t)F(e.target)}),d=t=>{let e=I.get(t);if(e||(e={full:\"\",immediate:[]},!f(t)))return e;let r=\"\";if(oe(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",o=>{F(o.target)},{once:!0,capture:!0});else{for(let o=t.firstChild;o;o=o.nextSibling){if(o.nodeType===Node.TEXT_NODE){e.full+=o.nodeValue??\"\",r+=o.nodeValue??\"\";continue}r&&e.immediate.push(r),r=\"\",o.nodeType===Node.ELEMENT_NODE&&(e.full+=d(o).full)}r&&e.immediate.push(r),t instanceof Element&&t.shadowRoot&&(e.full+=d(t.shadowRoot).full),j.has(t)||(ne.observe(t,{childList:!0,characterData:!0,subtree:!0}),j.add(t))}return I.set(t,e),e};var m=function*(t,e){let r=!1;for(let o of t.childNodes)if(o instanceof Element&&f(o)){let s;o.shadowRoot?s=m(o.shadowRoot,e):s=m(o,e);for(let i of s)yield i,r=!0}r||t instanceof Element&&f(t)&&d(t).full.includes(e)&&(yield t)};var k={};l(k,{checkVisibility:()=>le,pierce:()=>S,pierceAll:()=>O});var ie=[\"hidden\",\"collapse\"],le=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let r=t.nodeType===Node.TEXT_NODE?t.parentElement:t,o=window.getComputedStyle(r),s=o&&!ie.includes(o.visibility)&&!ae(r);return e===s?t:!1};function ae(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var ce=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*S(t){ce(t)?yield t.shadowRoot:yield t}function*O(t){t=S(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let r of e){let o;for(;o=r.nextNode();)o.shadowRoot&&(yield o.shadowRoot,e.push(document.createTreeWalker(o.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var D={};l(D,{xpathQuerySelectorAll:()=>q});var q=function*(t,e,r=-1){let s=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),i=[],n;for(;(n=s.iterateNext())&&(i.push(n),!(r&&i.length===r)););for(let h=0;h<i.length;h++)n=i[h],yield n,
|
|
41854
|
+
const source = "\"use strict\";var g=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var Y=Object.prototype.hasOwnProperty;var l=(t,e)=>{for(var r in e)g(t,r,{get:e[r],enumerable:!0})},G=(t,e,r,o)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let s of B(e))!Y.call(t,s)&&s!==r&&g(t,s,{get:()=>e[s],enumerable:!(o=X(e,s))||o.enumerable});return t};var J=t=>G(g({},\"__esModule\",{value:!0}),t);var pe={};l(pe,{default:()=>he});module.exports=J(pe);var N=class extends Error{constructor(e,r){super(e,r),this.name=this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}},p=class extends N{};var c=class t{static create(e){return new t(e)}static async race(e){let r=new Set;try{let o=e.map(s=>s instanceof t?(s.#s&&r.add(s),s.valueOrThrow()):s);return await Promise.race(o)}finally{for(let o of r)o.reject(new Error(\"Timeout cleared\"))}}#e=!1;#r=!1;#o;#t;#a=new Promise(e=>{this.#t=e});#s;#i;constructor(e){e&&e.timeout>0&&(this.#i=new p(e.message),this.#s=setTimeout(()=>{this.reject(this.#i)},e.timeout))}#l(e){clearTimeout(this.#s),this.#o=e,this.#t()}resolve(e){this.#r||this.#e||(this.#e=!0,this.#l(e))}reject(e){this.#r||this.#e||(this.#r=!0,this.#l(e))}resolved(){return this.#e}finished(){return this.#e||this.#r}value(){return this.#o}#n;valueOrThrow(){return this.#n||(this.#n=(async()=>{if(await this.#a,this.#r)throw this.#o;return this.#o})()),this.#n}};var L=new Map,W=t=>{let e=L.get(t);return e||(e=new Function(`return ${t}`)(),L.set(t,e),e)};var b={};l(b,{ariaQuerySelector:()=>z,ariaQuerySelectorAll:()=>x});var z=(t,e)=>globalThis.__ariaQuerySelector(t,e),x=async function*(t,e){yield*await globalThis.__ariaQuerySelectorAll(t,e)};var E={};l(E,{cssQuerySelector:()=>K,cssQuerySelectorAll:()=>Z});var K=(t,e)=>t.querySelector(e),Z=function(t,e){return t.querySelectorAll(e)};var A={};l(A,{customQuerySelectors:()=>P});var v=class{#e=new Map;register(e,r){if(!r.queryOne&&r.queryAll){let o=r.queryAll;r.queryOne=(s,i)=>{for(let n of o(s,i))return n;return null}}else if(r.queryOne&&!r.queryAll){let o=r.queryOne;r.queryAll=(s,i)=>{let n=o(s,i);return n?[n]:[]}}else if(!r.queryOne||!r.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:r.queryOne,querySelectorAll:r.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},P=new v;var R={};l(R,{pierceQuerySelector:()=>ee,pierceQuerySelectorAll:()=>te});var ee=(t,e)=>{let r=null,o=s=>{let i=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT);do{let n=i.currentNode;n.shadowRoot&&o(n.shadowRoot),!(n instanceof ShadowRoot)&&n!==s&&!r&&n.matches(e)&&(r=n)}while(!r&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),o(t),r},te=(t,e)=>{let r=[],o=s=>{let i=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT);do{let n=i.currentNode;n.shadowRoot&&o(n.shadowRoot),!(n instanceof ShadowRoot)&&n!==s&&n.matches(e)&&r.push(n)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),o(t),r};var u=(t,e)=>{if(!t)throw new Error(e)};var y=class{#e;#r;#o;#t;constructor(e,r){this.#e=e,this.#r=r}async start(){let e=this.#t=c.create(),r=await this.#e();if(r){e.resolve(r);return}this.#o=new MutationObserver(async()=>{let o=await this.#e();o&&(e.resolve(o),await this.stop())}),this.#o.observe(this.#r,{childList:!0,subtree:!0,attributes:!0})}async stop(){u(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\")),this.#o&&(this.#o.disconnect(),this.#o=void 0)}result(){return u(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},w=class{#e;#r;constructor(e){this.#e=e}async start(){let e=this.#r=c.create(),r=await this.#e();if(r){e.resolve(r);return}let o=async()=>{if(e.finished())return;let s=await this.#e();if(!s){window.requestAnimationFrame(o);return}e.resolve(s),await this.stop()};window.requestAnimationFrame(o)}async stop(){u(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\"))}result(){return u(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},T=class{#e;#r;#o;#t;constructor(e,r){this.#e=e,this.#r=r}async start(){let e=this.#t=c.create(),r=await this.#e();if(r){e.resolve(r);return}this.#o=setInterval(async()=>{let o=await this.#e();o&&(e.resolve(o),await this.stop())},this.#r)}async stop(){u(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\")),this.#o&&(clearInterval(this.#o),this.#o=void 0)}result(){return u(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}};var _={};l(_,{PCombinator:()=>H,pQuerySelector:()=>fe,pQuerySelectorAll:()=>$});var a=class{static async*map(e,r){for await(let o of e)yield await r(o)}static async*flatMap(e,r){for await(let o of e)yield*r(o)}static async collect(e){let r=[];for await(let o of e)r.push(o);return r}static async first(e){for await(let r of e)return r}};var C={};l(C,{textQuerySelectorAll:()=>m});var re=new Set([\"checkbox\",\"image\",\"radio\"]),oe=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!re.has(t.type),se=new Set([\"SCRIPT\",\"STYLE\"]),f=t=>!se.has(t.nodeName)&&!document.head?.contains(t),I=new WeakMap,F=t=>{for(;t;)I.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},j=new WeakSet,ne=new MutationObserver(t=>{for(let e of t)F(e.target)}),d=t=>{let e=I.get(t);if(e||(e={full:\"\",immediate:[]},!f(t)))return e;let r=\"\";if(oe(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",o=>{F(o.target)},{once:!0,capture:!0});else{for(let o=t.firstChild;o;o=o.nextSibling){if(o.nodeType===Node.TEXT_NODE){e.full+=o.nodeValue??\"\",r+=o.nodeValue??\"\";continue}r&&e.immediate.push(r),r=\"\",o.nodeType===Node.ELEMENT_NODE&&(e.full+=d(o).full)}r&&e.immediate.push(r),t instanceof Element&&t.shadowRoot&&(e.full+=d(t.shadowRoot).full),j.has(t)||(ne.observe(t,{childList:!0,characterData:!0,subtree:!0}),j.add(t))}return I.set(t,e),e};var m=function*(t,e){let r=!1;for(let o of t.childNodes)if(o instanceof Element&&f(o)){let s;o.shadowRoot?s=m(o.shadowRoot,e):s=m(o,e);for(let i of s)yield i,r=!0}r||t instanceof Element&&f(t)&&d(t).full.includes(e)&&(yield t)};var k={};l(k,{checkVisibility:()=>le,pierce:()=>S,pierceAll:()=>O});var ie=[\"hidden\",\"collapse\"],le=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let r=t.nodeType===Node.TEXT_NODE?t.parentElement:t,o=window.getComputedStyle(r),s=o&&!ie.includes(o.visibility)&&!ae(r);return e===s?t:!1};function ae(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var ce=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*S(t){ce(t)?yield t.shadowRoot:yield t}function*O(t){t=S(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let r of e){let o;for(;o=r.nextNode();)o.shadowRoot&&(yield o.shadowRoot,e.push(document.createTreeWalker(o.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var D={};l(D,{xpathQuerySelectorAll:()=>q});var q=function*(t,e,r=-1){let s=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),i=[],n;for(;(n=s.iterateNext())&&(i.push(n),!(r&&i.length===r)););for(let h=0;h<i.length;h++)n=i[h],yield n,i[h]=null};var ue=/[-\\w\\P{ASCII}*]/u,H=(r=>(r.Descendent=\">>>\",r.Child=\">>>>\",r))(H||{}),V=t=>\"querySelectorAll\"in t,Q=class{#e;#r=[];#o=void 0;elements;constructor(e,r){this.elements=[e],this.#e=r,this.#t()}async run(){for(typeof this.#o==\"string\"&&this.#o.trimStart()===\":scope\"&&this.#t();this.#o!==void 0;this.#t()){let e=this.#o;typeof e==\"string\"?e[0]&&ue.test(e[0])?this.elements=a.flatMap(this.elements,async function*(r){V(r)&&(yield*r.querySelectorAll(e))}):this.elements=a.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!V(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let s of r.parentElement.children)if(++o,s===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=a.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*m(r,e.value);break;case\"xpath\":yield*q(r,e.value);break;case\"aria\":yield*x(r,e.value);break;default:let o=P.get(e.name);if(!o)throw new Error(`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#t(){if(this.#r.length!==0){this.#o=this.#r.shift();return}if(this.#e.length===0){this.#o=void 0;return}let e=this.#e.shift();switch(e){case\">>>>\":{this.elements=a.flatMap(this.elements,S),this.#t();break}case\">>>\":{this.elements=a.flatMap(this.elements,O),this.#t();break}default:this.#r=e,this.#t();break}}},M=class{#e=new WeakMap;calculate(e,r=[]){if(e===null)return r;e instanceof ShadowRoot&&(e=e.host);let o=this.#e.get(e);if(o)return[...o,...r];let s=0;for(let n=e.previousSibling;n;n=n.previousSibling)++s;let i=this.calculate(e.parentNode,[s]);return this.#e.set(e,i),[...i,...r]}},U=(t,e)=>{if(t.length+e.length===0)return 0;let[r=-1,...o]=t,[s=-1,...i]=e;return r===s?U(o,i):r<s?-1:1},de=async function*(t){let e=new Set;for await(let o of t)e.add(o);let r=new M;yield*[...e.values()].map(o=>[o,r.calculate(o)]).sort(([,o],[,s])=>U(o,s)).map(([o])=>o)},$=function(t,e){let r=JSON.parse(e);if(r.some(o=>{let s=0;return o.some(i=>(typeof i==\"string\"?++s:s=0,s>1))}))throw new Error(\"Multiple deep combinators found in sequence.\");return de(a.flatMap(r,o=>{let s=new Q(t,o);return s.run(),s.elements}))},fe=async function(t,e){for await(let r of $(t,e))return r;return null};var me=Object.freeze({...b,...A,...R,..._,...C,...k,...D,...E,Deferred:c,createFunction:W,createTextContent:d,IntervalPoller:T,isSuitableNodeForTextMatching:f,MutationPoller:y,RAFPoller:w}),he=me;\n";
|
|
41840
41855
|
|
|
41841
41856
|
/**
|
|
41842
41857
|
* @license
|
|
@@ -42878,6 +42893,7 @@ class Locator extends EventEmitter {
|
|
|
42878
42893
|
}
|
|
42879
42894
|
#fill(value, options) {
|
|
42880
42895
|
const signal = options?.signal;
|
|
42896
|
+
const typingThreshold = options?.typingThreshold ?? 100;
|
|
42881
42897
|
const cause = new Error('Locator.fill');
|
|
42882
42898
|
return this._wait(options).pipe(this.operators.conditions([
|
|
42883
42899
|
this.#ensureElementIsInTheViewportIfNeeded,
|
|
@@ -42916,48 +42932,67 @@ class Locator extends EventEmitter {
|
|
|
42916
42932
|
return 'unknown';
|
|
42917
42933
|
}))
|
|
42918
42934
|
.pipe(mergeMap(inputType => {
|
|
42935
|
+
const fillDirectly = () => {
|
|
42936
|
+
return from(handle.focus()).pipe(mergeMap(() => {
|
|
42937
|
+
return from(handle.evaluate((input, newValue) => {
|
|
42938
|
+
const element = input;
|
|
42939
|
+
const currentValue = element.isContentEditable
|
|
42940
|
+
? element.innerText
|
|
42941
|
+
: element.value;
|
|
42942
|
+
if (currentValue === newValue) {
|
|
42943
|
+
return;
|
|
42944
|
+
}
|
|
42945
|
+
if (element.isContentEditable) {
|
|
42946
|
+
element.innerText = newValue;
|
|
42947
|
+
}
|
|
42948
|
+
else {
|
|
42949
|
+
element.value = newValue;
|
|
42950
|
+
}
|
|
42951
|
+
element.dispatchEvent(new Event('input', { bubbles: true }));
|
|
42952
|
+
element.dispatchEvent(new Event('change', { bubbles: true }));
|
|
42953
|
+
}, value));
|
|
42954
|
+
}));
|
|
42955
|
+
};
|
|
42919
42956
|
switch (inputType) {
|
|
42920
42957
|
case 'select':
|
|
42921
42958
|
return from(handle.select(value).then(noop));
|
|
42922
42959
|
case 'contenteditable':
|
|
42923
42960
|
case 'typeable-input':
|
|
42924
|
-
|
|
42925
|
-
|
|
42926
|
-
|
|
42927
|
-
|
|
42928
|
-
|
|
42929
|
-
|
|
42930
|
-
if (
|
|
42931
|
-
|
|
42961
|
+
if (value.length < typingThreshold) {
|
|
42962
|
+
return from(handle.evaluate((input, newValue) => {
|
|
42963
|
+
const element = input;
|
|
42964
|
+
const currentValue = element.isContentEditable
|
|
42965
|
+
? element.innerText
|
|
42966
|
+
: input.value;
|
|
42967
|
+
if (newValue.length <= currentValue.length ||
|
|
42968
|
+
!newValue.startsWith(currentValue)) {
|
|
42969
|
+
if (element.isContentEditable) {
|
|
42970
|
+
element.innerText = '';
|
|
42971
|
+
}
|
|
42972
|
+
else {
|
|
42973
|
+
input.value = '';
|
|
42974
|
+
}
|
|
42975
|
+
return newValue;
|
|
42976
|
+
}
|
|
42977
|
+
if (element.isContentEditable) {
|
|
42978
|
+
element.innerText = '';
|
|
42979
|
+
element.innerText = currentValue;
|
|
42932
42980
|
}
|
|
42933
42981
|
else {
|
|
42934
42982
|
input.value = '';
|
|
42983
|
+
input.value = currentValue;
|
|
42935
42984
|
}
|
|
42936
|
-
return newValue;
|
|
42937
|
-
}
|
|
42938
|
-
|
|
42939
|
-
|
|
42940
|
-
|
|
42941
|
-
|
|
42942
|
-
|
|
42943
|
-
|
|
42944
|
-
|
|
42945
|
-
else {
|
|
42946
|
-
input.value = '';
|
|
42947
|
-
input.value = originalValue;
|
|
42948
|
-
}
|
|
42949
|
-
return newValue.substring(originalValue.length);
|
|
42950
|
-
}, value)).pipe(mergeMap(textToType => {
|
|
42951
|
-
return from(handle.type(textToType));
|
|
42952
|
-
}));
|
|
42985
|
+
return newValue.substring(currentValue.length);
|
|
42986
|
+
}, value)).pipe(mergeMap(textToType => {
|
|
42987
|
+
if (!textToType) {
|
|
42988
|
+
return of(undefined);
|
|
42989
|
+
}
|
|
42990
|
+
return from(handle.type(textToType));
|
|
42991
|
+
}));
|
|
42992
|
+
}
|
|
42993
|
+
return fillDirectly();
|
|
42953
42994
|
case 'other-input':
|
|
42954
|
-
return
|
|
42955
|
-
return from(handle.evaluate((input, value) => {
|
|
42956
|
-
input.value = value;
|
|
42957
|
-
input.dispatchEvent(new Event('input', { bubbles: true }));
|
|
42958
|
-
input.dispatchEvent(new Event('change', { bubbles: true }));
|
|
42959
|
-
}, value));
|
|
42960
|
-
}));
|
|
42995
|
+
return fillDirectly();
|
|
42961
42996
|
case 'unknown':
|
|
42962
42997
|
throw new Error(`Element cannot be filled out.`);
|
|
42963
42998
|
}
|
|
@@ -46019,16 +46054,26 @@ class AXNode {
|
|
|
46019
46054
|
#editable = false;
|
|
46020
46055
|
#focusable = false;
|
|
46021
46056
|
#hidden = false;
|
|
46057
|
+
#busy = false;
|
|
46058
|
+
#modal = false;
|
|
46059
|
+
#hasErrormessage = false;
|
|
46060
|
+
#hasDetails = false;
|
|
46022
46061
|
#name;
|
|
46023
46062
|
#role;
|
|
46063
|
+
#description;
|
|
46064
|
+
#roledescription;
|
|
46065
|
+
#live;
|
|
46024
46066
|
#ignored;
|
|
46025
46067
|
#cachedHasFocusableChild;
|
|
46026
46068
|
#realm;
|
|
46027
46069
|
constructor(realm, payload) {
|
|
46028
46070
|
this.payload = payload;
|
|
46029
|
-
this.#name = this.payload.name ? this.payload.name.value : '';
|
|
46030
46071
|
this.#role = this.payload.role ? this.payload.role.value : 'Unknown';
|
|
46031
46072
|
this.#ignored = this.payload.ignored;
|
|
46073
|
+
this.#name = this.payload.name ? this.payload.name.value : '';
|
|
46074
|
+
this.#description = this.payload.description
|
|
46075
|
+
? this.payload.description.value
|
|
46076
|
+
: undefined;
|
|
46032
46077
|
this.#realm = realm;
|
|
46033
46078
|
for (const property of this.payload.properties || []) {
|
|
46034
46079
|
if (property.name === 'editable') {
|
|
@@ -46041,6 +46086,24 @@ class AXNode {
|
|
|
46041
46086
|
if (property.name === 'hidden') {
|
|
46042
46087
|
this.#hidden = property.value.value;
|
|
46043
46088
|
}
|
|
46089
|
+
if (property.name === 'busy') {
|
|
46090
|
+
this.#busy = property.value.value;
|
|
46091
|
+
}
|
|
46092
|
+
if (property.name === 'live') {
|
|
46093
|
+
this.#live = property.value.value;
|
|
46094
|
+
}
|
|
46095
|
+
if (property.name === 'modal') {
|
|
46096
|
+
this.#modal = property.value.value;
|
|
46097
|
+
}
|
|
46098
|
+
if (property.name === 'roledescription') {
|
|
46099
|
+
this.#roledescription = property.value.value;
|
|
46100
|
+
}
|
|
46101
|
+
if (property.name === 'errormessage') {
|
|
46102
|
+
this.#hasErrormessage = true;
|
|
46103
|
+
}
|
|
46104
|
+
if (property.name === 'details') {
|
|
46105
|
+
this.#hasDetails = true;
|
|
46106
|
+
}
|
|
46044
46107
|
}
|
|
46045
46108
|
}
|
|
46046
46109
|
#isPlainTextField() {
|
|
@@ -46161,7 +46224,14 @@ class AXNode {
|
|
|
46161
46224
|
if (this.isLandmark()) {
|
|
46162
46225
|
return true;
|
|
46163
46226
|
}
|
|
46164
|
-
if (this.#focusable ||
|
|
46227
|
+
if (this.#focusable ||
|
|
46228
|
+
this.#richlyEditable ||
|
|
46229
|
+
this.#busy ||
|
|
46230
|
+
(this.#live && this.#live !== 'off') ||
|
|
46231
|
+
this.#modal ||
|
|
46232
|
+
this.#hasErrormessage ||
|
|
46233
|
+
this.#hasDetails ||
|
|
46234
|
+
this.#roledescription) {
|
|
46165
46235
|
return true;
|
|
46166
46236
|
}
|
|
46167
46237
|
if (this.isControl()) {
|
|
@@ -46170,7 +46240,7 @@ class AXNode {
|
|
|
46170
46240
|
if (insideControl) {
|
|
46171
46241
|
return false;
|
|
46172
46242
|
}
|
|
46173
|
-
return this.isLeafNode() && !!this.#name;
|
|
46243
|
+
return this.isLeafNode() && (!!this.#name || !!this.#description);
|
|
46174
46244
|
}
|
|
46175
46245
|
serialize() {
|
|
46176
46246
|
const properties = new Map();
|
|
@@ -46238,16 +46308,17 @@ class AXNode {
|
|
|
46238
46308
|
'readonly',
|
|
46239
46309
|
'required',
|
|
46240
46310
|
'selected',
|
|
46311
|
+
'busy',
|
|
46312
|
+
'atomic',
|
|
46241
46313
|
];
|
|
46242
46314
|
const getBooleanPropertyValue = (key) => {
|
|
46243
|
-
return properties.get(key);
|
|
46315
|
+
return !!properties.get(key);
|
|
46244
46316
|
};
|
|
46245
46317
|
for (const booleanProperty of booleanProperties) {
|
|
46246
46318
|
if (booleanProperty === 'focused' && this.#role === 'RootWebArea') {
|
|
46247
46319
|
continue;
|
|
46248
46320
|
}
|
|
46249
|
-
|
|
46250
|
-
if (value === undefined) {
|
|
46321
|
+
if (!properties.has(booleanProperty)) {
|
|
46251
46322
|
continue;
|
|
46252
46323
|
}
|
|
46253
46324
|
node[booleanProperty] = getBooleanPropertyValue(booleanProperty);
|
|
@@ -46280,6 +46351,10 @@ class AXNode {
|
|
|
46280
46351
|
'haspopup',
|
|
46281
46352
|
'invalid',
|
|
46282
46353
|
'orientation',
|
|
46354
|
+
'live',
|
|
46355
|
+
'relevant',
|
|
46356
|
+
'errormessage',
|
|
46357
|
+
'details',
|
|
46283
46358
|
];
|
|
46284
46359
|
const getTokenPropertyValue = (key) => {
|
|
46285
46360
|
return properties.get(key);
|
|
@@ -47848,7 +47923,7 @@ function createEvaluationError(details) {
|
|
|
47848
47923
|
else if ((details.exception.type !== 'object' ||
|
|
47849
47924
|
details.exception.subtype !== 'error') &&
|
|
47850
47925
|
!details.exception.objectId) {
|
|
47851
|
-
return
|
|
47926
|
+
return valueFromPrimitiveRemoteObject(details.exception);
|
|
47852
47927
|
}
|
|
47853
47928
|
else {
|
|
47854
47929
|
const detail = getErrorDetails(details);
|
|
@@ -47904,7 +47979,7 @@ function createClientError(details) {
|
|
|
47904
47979
|
else if ((details.exception.type !== 'object' ||
|
|
47905
47980
|
details.exception.subtype !== 'error') &&
|
|
47906
47981
|
!details.exception.objectId) {
|
|
47907
|
-
return
|
|
47982
|
+
return valueFromPrimitiveRemoteObject(details.exception);
|
|
47908
47983
|
}
|
|
47909
47984
|
else {
|
|
47910
47985
|
const detail = getErrorDetails(details);
|
|
@@ -47927,7 +48002,29 @@ function createClientError(details) {
|
|
|
47927
48002
|
error.stack = [...messageLines, ...stackLines].join('\n');
|
|
47928
48003
|
return error;
|
|
47929
48004
|
}
|
|
47930
|
-
function
|
|
48005
|
+
function valueFromJSHandle(handle) {
|
|
48006
|
+
const remoteObject = handle.remoteObject();
|
|
48007
|
+
if (remoteObject.objectId) {
|
|
48008
|
+
return valueFromRemoteObjectReference(handle);
|
|
48009
|
+
}
|
|
48010
|
+
else {
|
|
48011
|
+
return valueFromPrimitiveRemoteObject(remoteObject);
|
|
48012
|
+
}
|
|
48013
|
+
}
|
|
48014
|
+
function valueFromRemoteObjectReference(handle) {
|
|
48015
|
+
const remoteObject = handle.remoteObject();
|
|
48016
|
+
assert(remoteObject.objectId, 'Cannot extract value when no objectId is given');
|
|
48017
|
+
const description = remoteObject.description ?? '';
|
|
48018
|
+
if (remoteObject.subtype === 'error' && description) {
|
|
48019
|
+
const newlineIdx = description.indexOf('\n');
|
|
48020
|
+
if (newlineIdx === -1) {
|
|
48021
|
+
return description;
|
|
48022
|
+
}
|
|
48023
|
+
return description.slice(0, newlineIdx);
|
|
48024
|
+
}
|
|
48025
|
+
return `[${remoteObject.subtype || remoteObject.type} ${remoteObject.className}]`;
|
|
48026
|
+
}
|
|
48027
|
+
function valueFromPrimitiveRemoteObject(remoteObject) {
|
|
47931
48028
|
assert(!remoteObject.objectId, 'Cannot extract value when objectId is given');
|
|
47932
48029
|
if (remoteObject.unserializableValue) {
|
|
47933
48030
|
if (remoteObject.type === 'bigint') {
|
|
@@ -48015,7 +48112,7 @@ class CdpJSHandle extends JSHandle {
|
|
|
48015
48112
|
}
|
|
48016
48113
|
async jsonValue() {
|
|
48017
48114
|
if (!this.#remoteObject.objectId) {
|
|
48018
|
-
return
|
|
48115
|
+
return valueFromPrimitiveRemoteObject(this.#remoteObject);
|
|
48019
48116
|
}
|
|
48020
48117
|
const value = await this.evaluate(object => {
|
|
48021
48118
|
return object;
|
|
@@ -48037,7 +48134,7 @@ class CdpJSHandle extends JSHandle {
|
|
|
48037
48134
|
}
|
|
48038
48135
|
toString() {
|
|
48039
48136
|
if (!this.#remoteObject.objectId) {
|
|
48040
|
-
return 'JSHandle:' +
|
|
48137
|
+
return 'JSHandle:' + valueFromPrimitiveRemoteObject(this.#remoteObject);
|
|
48041
48138
|
}
|
|
48042
48139
|
const type = this.#remoteObject.subtype || this.#remoteObject.type;
|
|
48043
48140
|
return 'JSHandle@' + type;
|
|
@@ -48486,7 +48583,7 @@ let ExecutionContext$1 = class ExecutionContext extends EventEmitter {
|
|
|
48486
48583
|
throw createEvaluationError(exceptionDetails);
|
|
48487
48584
|
}
|
|
48488
48585
|
if (returnByValue) {
|
|
48489
|
-
return
|
|
48586
|
+
return valueFromPrimitiveRemoteObject(remoteObject);
|
|
48490
48587
|
}
|
|
48491
48588
|
return this.#world.createCdpHandle(remoteObject);
|
|
48492
48589
|
}
|
|
@@ -48525,7 +48622,7 @@ let ExecutionContext$1 = class ExecutionContext extends EventEmitter {
|
|
|
48525
48622
|
throw createEvaluationError(exceptionDetails);
|
|
48526
48623
|
}
|
|
48527
48624
|
if (returnByValue) {
|
|
48528
|
-
return
|
|
48625
|
+
return valueFromPrimitiveRemoteObject(remoteObject);
|
|
48529
48626
|
}
|
|
48530
48627
|
return this.#world.createCdpHandle(remoteObject);
|
|
48531
48628
|
async function convertArgumentAsync(context, arg) {
|
|
@@ -49327,7 +49424,19 @@ class CdpHTTPRequest extends HTTPRequest {
|
|
|
49327
49424
|
this.#url = data.request.url + (data.request.urlFragment ?? '');
|
|
49328
49425
|
this.#resourceType = (data.type || 'other').toLowerCase();
|
|
49329
49426
|
this.#method = data.request.method;
|
|
49330
|
-
|
|
49427
|
+
if (data.request.postDataEntries &&
|
|
49428
|
+
data.request.postDataEntries.length > 0) {
|
|
49429
|
+
this.#postData = new TextDecoder().decode(mergeUint8Arrays(data.request.postDataEntries
|
|
49430
|
+
.map(entry => {
|
|
49431
|
+
return entry.bytes ? stringToTypedArray(entry.bytes, true) : null;
|
|
49432
|
+
})
|
|
49433
|
+
.filter((entry) => {
|
|
49434
|
+
return entry !== null;
|
|
49435
|
+
})));
|
|
49436
|
+
}
|
|
49437
|
+
else {
|
|
49438
|
+
this.#postData = data.request.postData;
|
|
49439
|
+
}
|
|
49331
49440
|
this.#hasPostData = data.request.hasPostData ?? false;
|
|
49332
49441
|
this.#frame = frame;
|
|
49333
49442
|
this._redirectChain = redirectChain;
|
|
@@ -51732,6 +51841,16 @@ function convertConsoleMessageLevel(method) {
|
|
|
51732
51841
|
return method;
|
|
51733
51842
|
}
|
|
51734
51843
|
}
|
|
51844
|
+
function convertSameSiteFromPuppeteerToCdp(sameSite) {
|
|
51845
|
+
switch (sameSite) {
|
|
51846
|
+
case 'Strict':
|
|
51847
|
+
case 'Lax':
|
|
51848
|
+
case 'None':
|
|
51849
|
+
return sameSite;
|
|
51850
|
+
default:
|
|
51851
|
+
return undefined;
|
|
51852
|
+
}
|
|
51853
|
+
}
|
|
51735
51854
|
class CdpPage extends Page {
|
|
51736
51855
|
static async _create(client, target, defaultViewport) {
|
|
51737
51856
|
const page = new CdpPage(client, target);
|
|
@@ -52173,6 +52292,7 @@ class CdpPage extends Page {
|
|
|
52173
52292
|
return {
|
|
52174
52293
|
...cookieParam,
|
|
52175
52294
|
partitionKey: convertCookiesPartitionKeyFromPuppeteerToCdp(cookieParam.partitionKey),
|
|
52295
|
+
sameSite: convertSameSiteFromPuppeteerToCdp(cookieParam.sameSite),
|
|
52176
52296
|
};
|
|
52177
52297
|
}),
|
|
52178
52298
|
});
|
|
@@ -52232,6 +52352,32 @@ class CdpPage extends Page {
|
|
|
52232
52352
|
const response = await this.#primaryTargetClient.send('Performance.getMetrics');
|
|
52233
52353
|
return this.#buildMetricsObject(response.metrics);
|
|
52234
52354
|
}
|
|
52355
|
+
async captureHeapSnapshot(options) {
|
|
52356
|
+
const { createWriteStream } = environment.value.fs;
|
|
52357
|
+
const stream = createWriteStream(options.path);
|
|
52358
|
+
const streamPromise = new Promise((resolve, reject) => {
|
|
52359
|
+
stream.on('error', reject);
|
|
52360
|
+
stream.on('finish', resolve);
|
|
52361
|
+
});
|
|
52362
|
+
const client = this.#primaryTargetClient;
|
|
52363
|
+
await client.send('HeapProfiler.enable');
|
|
52364
|
+
await client.send('HeapProfiler.collectGarbage');
|
|
52365
|
+
const handler = (event) => {
|
|
52366
|
+
stream.write(event.chunk);
|
|
52367
|
+
};
|
|
52368
|
+
client.on('HeapProfiler.addHeapSnapshotChunk', handler);
|
|
52369
|
+
try {
|
|
52370
|
+
await client.send('HeapProfiler.takeHeapSnapshot', {
|
|
52371
|
+
reportProgress: false,
|
|
52372
|
+
});
|
|
52373
|
+
}
|
|
52374
|
+
finally {
|
|
52375
|
+
client.off('HeapProfiler.addHeapSnapshotChunk', handler);
|
|
52376
|
+
await client.send('HeapProfiler.disable');
|
|
52377
|
+
}
|
|
52378
|
+
stream.end();
|
|
52379
|
+
await streamPromise;
|
|
52380
|
+
}
|
|
52235
52381
|
#emitMetrics(event) {
|
|
52236
52382
|
this.emit("metrics" , {
|
|
52237
52383
|
title: event.title,
|
|
@@ -52262,13 +52408,7 @@ class CdpPage extends Page {
|
|
|
52262
52408
|
}
|
|
52263
52409
|
const textTokens = [];
|
|
52264
52410
|
for (const arg of values) {
|
|
52265
|
-
|
|
52266
|
-
if (remoteObject.objectId) {
|
|
52267
|
-
textTokens.push(arg.toString());
|
|
52268
|
-
}
|
|
52269
|
-
else {
|
|
52270
|
-
textTokens.push(valueFromRemoteObject(remoteObject));
|
|
52271
|
-
}
|
|
52411
|
+
textTokens.push(valueFromJSHandle(arg));
|
|
52272
52412
|
}
|
|
52273
52413
|
const stackTraceLocations = [];
|
|
52274
52414
|
if (event.stackTrace) {
|
|
@@ -52664,6 +52804,23 @@ class CdpBrowserContext extends BrowserContext {
|
|
|
52664
52804
|
permissions: protocolPermissions,
|
|
52665
52805
|
});
|
|
52666
52806
|
}
|
|
52807
|
+
async setPermission(origin, ...permissions) {
|
|
52808
|
+
await Promise.all(permissions.map(async (permission) => {
|
|
52809
|
+
const protocolPermission = {
|
|
52810
|
+
name: permission.permission.name,
|
|
52811
|
+
userVisibleOnly: permission.permission.userVisibleOnly,
|
|
52812
|
+
sysex: permission.permission.sysex,
|
|
52813
|
+
allowWithoutSanitization: permission.permission.allowWithoutSanitization,
|
|
52814
|
+
panTiltZoom: permission.permission.panTiltZoom,
|
|
52815
|
+
};
|
|
52816
|
+
await this.#connection.send('Browser.setPermission', {
|
|
52817
|
+
origin: origin === '*' ? undefined : origin,
|
|
52818
|
+
browserContextId: this.#id || undefined,
|
|
52819
|
+
permission: protocolPermission,
|
|
52820
|
+
setting: permission.state,
|
|
52821
|
+
});
|
|
52822
|
+
}));
|
|
52823
|
+
}
|
|
52667
52824
|
async clearPermissionOverrides() {
|
|
52668
52825
|
await this.#connection.send('Browser.resetPermissions', {
|
|
52669
52826
|
browserContextId: this.#id || undefined,
|
|
@@ -52714,6 +52871,7 @@ class CdpBrowserContext extends BrowserContext {
|
|
|
52714
52871
|
return {
|
|
52715
52872
|
...cookie,
|
|
52716
52873
|
partitionKey: convertCookiesPartitionKeyFromPuppeteerToCdp(cookie.partitionKey),
|
|
52874
|
+
sameSite: convertSameSiteFromPuppeteerToCdp(cookie.sameSite),
|
|
52717
52875
|
};
|
|
52718
52876
|
}),
|
|
52719
52877
|
});
|
|
@@ -55380,9 +55538,9 @@ class Puppeteer {
|
|
|
55380
55538
|
* SPDX-License-Identifier: Apache-2.0
|
|
55381
55539
|
*/
|
|
55382
55540
|
const PUPPETEER_REVISIONS = Object.freeze({
|
|
55383
|
-
chrome: '
|
|
55384
|
-
'chrome-headless-shell': '
|
|
55385
|
-
firefox: 'stable_147.0.
|
|
55541
|
+
chrome: '145.0.7632.46',
|
|
55542
|
+
'chrome-headless-shell': '145.0.7632.46',
|
|
55543
|
+
firefox: 'stable_147.0.3',
|
|
55386
55544
|
});
|
|
55387
55545
|
|
|
55388
55546
|
/**
|
|
@@ -84233,7 +84391,7 @@ function getText(url) {
|
|
|
84233
84391
|
return resolve(String(data));
|
|
84234
84392
|
}
|
|
84235
84393
|
catch {
|
|
84236
|
-
return reject(new Error(
|
|
84394
|
+
return reject(new Error(`Failed to read text response from ${url}`));
|
|
84237
84395
|
}
|
|
84238
84396
|
});
|
|
84239
84397
|
}, false);
|
|
@@ -85209,6 +85367,20 @@ let Cache$2 = class Cache {
|
|
|
85209
85367
|
fs.mkdirSync(path$1.dirname(metatadaPath), { recursive: true });
|
|
85210
85368
|
fs.writeFileSync(metatadaPath, JSON.stringify(metadata, null, 2));
|
|
85211
85369
|
}
|
|
85370
|
+
readExecutablePath(browser, platform, buildId) {
|
|
85371
|
+
const metadata = this.readMetadata(browser);
|
|
85372
|
+
const key = `${platform}-${buildId}`;
|
|
85373
|
+
return metadata.executablePaths?.[key] ?? null;
|
|
85374
|
+
}
|
|
85375
|
+
writeExecutablePath(browser, platform, buildId, executablePath) {
|
|
85376
|
+
const metadata = this.readMetadata(browser);
|
|
85377
|
+
if (!metadata.executablePaths) {
|
|
85378
|
+
metadata.executablePaths = {};
|
|
85379
|
+
}
|
|
85380
|
+
const key = `${platform}-${buildId}`;
|
|
85381
|
+
metadata.executablePaths[key] = executablePath;
|
|
85382
|
+
this.writeMetadata(browser, metadata);
|
|
85383
|
+
}
|
|
85212
85384
|
resolveAlias(browser, alias) {
|
|
85213
85385
|
const metadata = this.readMetadata(browser);
|
|
85214
85386
|
if (alias === 'latest') {
|
|
@@ -85236,6 +85408,11 @@ let Cache$2 = class Cache {
|
|
|
85236
85408
|
delete metadata.aliases[alias];
|
|
85237
85409
|
}
|
|
85238
85410
|
}
|
|
85411
|
+
const key = `${platform}-${buildId}`;
|
|
85412
|
+
if (metadata.executablePaths?.[key]) {
|
|
85413
|
+
delete metadata.executablePaths[key];
|
|
85414
|
+
this.writeMetadata(browser, metadata);
|
|
85415
|
+
}
|
|
85239
85416
|
fs.rmSync(this.installationDir(browser, platform, buildId), {
|
|
85240
85417
|
force: true,
|
|
85241
85418
|
recursive: true,
|
|
@@ -85279,6 +85456,10 @@ let Cache$2 = class Cache {
|
|
|
85279
85456
|
debugCache('could not read .metadata file for the browser');
|
|
85280
85457
|
}
|
|
85281
85458
|
const installationDir = this.installationDir(options.browser, options.platform, options.buildId);
|
|
85459
|
+
const storedExecutablePath = this.readExecutablePath(options.browser, options.platform, options.buildId);
|
|
85460
|
+
if (storedExecutablePath) {
|
|
85461
|
+
return path$1.join(installationDir, storedExecutablePath);
|
|
85462
|
+
}
|
|
85282
85463
|
return path$1.join(installationDir, executablePathByBrowser[options.browser](options.platform, options.buildId));
|
|
85283
85464
|
}
|
|
85284
85465
|
};
|
|
@@ -85387,9 +85568,18 @@ class Process {
|
|
|
85387
85568
|
#logs = [];
|
|
85388
85569
|
#maxLogLinesSize = 1000;
|
|
85389
85570
|
#lineEmitter = new EventEmitter$1();
|
|
85571
|
+
#onAbort = () => {
|
|
85572
|
+
this.kill();
|
|
85573
|
+
};
|
|
85574
|
+
#signal;
|
|
85390
85575
|
constructor(opts) {
|
|
85391
85576
|
this.#executablePath = opts.executablePath;
|
|
85392
85577
|
this.#args = opts.args ?? [];
|
|
85578
|
+
this.#signal = opts.signal;
|
|
85579
|
+
if (this.#signal?.aborted) {
|
|
85580
|
+
throw new Error(this.#signal.reason ? this.#signal.reason : 'Launch aborted');
|
|
85581
|
+
}
|
|
85582
|
+
this.#signal?.addEventListener('abort', this.#onAbort, { once: true });
|
|
85393
85583
|
opts.pipe ??= false;
|
|
85394
85584
|
opts.dumpio ??= false;
|
|
85395
85585
|
opts.handleSIGINT ??= true;
|
|
@@ -85474,6 +85664,7 @@ class Process {
|
|
|
85474
85664
|
unsubscribeFromProcessEvent('SIGINT', this.#onDriverProcessSignal);
|
|
85475
85665
|
unsubscribeFromProcessEvent('SIGTERM', this.#onDriverProcessSignal);
|
|
85476
85666
|
unsubscribeFromProcessEvent('SIGHUP', this.#onDriverProcessSignal);
|
|
85667
|
+
this.#signal?.removeEventListener('abort', this.#onAbort);
|
|
85477
85668
|
}
|
|
85478
85669
|
#onDriverProcessExit = (_code) => {
|
|
85479
85670
|
this.kill();
|
|
@@ -89069,6 +89260,7 @@ class BrowserLauncher {
|
|
|
89069
89260
|
env,
|
|
89070
89261
|
pipe: usePipe,
|
|
89071
89262
|
onExit: onProcessExit,
|
|
89263
|
+
signal: options.signal,
|
|
89072
89264
|
});
|
|
89073
89265
|
let browser;
|
|
89074
89266
|
let cdpConnection;
|
|
@@ -89408,6 +89600,8 @@ class ChromeLauncher extends BrowserLauncher {
|
|
|
89408
89600
|
'MediaRouter',
|
|
89409
89601
|
'OptimizationHints',
|
|
89410
89602
|
'RenderDocument',
|
|
89603
|
+
'IPH_ReadingModePageActionLabel',
|
|
89604
|
+
'ReadAnythingOmniboxChip',
|
|
89411
89605
|
...(turnOnExperimentalFeaturesForTesting
|
|
89412
89606
|
? []
|
|
89413
89607
|
: [
|
|
@@ -89774,11 +89968,11 @@ class PuppeteerNode extends Puppeteer {
|
|
|
89774
89968
|
currentBuildId: '',
|
|
89775
89969
|
},
|
|
89776
89970
|
];
|
|
89777
|
-
|
|
89971
|
+
await Promise.all(puppeteerBrowsers.map(async (item) => {
|
|
89778
89972
|
const tag = this.configuration?.[item.product]?.version ??
|
|
89779
89973
|
PUPPETEER_REVISIONS[item.product];
|
|
89780
89974
|
item.currentBuildId = await resolveBuildId(item.browser, platform, tag);
|
|
89781
|
-
}
|
|
89975
|
+
}));
|
|
89782
89976
|
const currentBrowserBuilds = new Set(puppeteerBrowsers.map(browser => {
|
|
89783
89977
|
return `${browser.browser}_${browser.currentBuildId}`;
|
|
89784
89978
|
}));
|
|
@@ -95728,7 +95922,6 @@ const UIStrings$1a = {
|
|
|
95728
95922
|
networkPanel: 'Network panel',
|
|
95729
95923
|
requestConditionsDrawer: 'Request conditions drawer',
|
|
95730
95924
|
applicationPanel: 'Application panel',
|
|
95731
|
-
securityPanel: 'Security panel',
|
|
95732
95925
|
sourcesPanel: 'Sources panel',
|
|
95733
95926
|
timelinePanel: 'Performance panel',
|
|
95734
95927
|
memoryInspectorPanel: 'Memory inspector panel',
|
|
@@ -95799,7 +95992,6 @@ const RevealerDestination = {
|
|
|
95799
95992
|
TIMELINE_PANEL: i18nLazyString$g(UIStrings$1a.timelinePanel),
|
|
95800
95993
|
APPLICATION_PANEL: i18nLazyString$g(UIStrings$1a.applicationPanel),
|
|
95801
95994
|
SOURCES_PANEL: i18nLazyString$g(UIStrings$1a.sourcesPanel),
|
|
95802
|
-
SECURITY_PANEL: i18nLazyString$g(UIStrings$1a.securityPanel),
|
|
95803
95995
|
MEMORY_INSPECTOR_PANEL: i18nLazyString$g(UIStrings$1a.memoryInspectorPanel),
|
|
95804
95996
|
ANIMATIONS_PANEL: i18nLazyString$g(UIStrings$1a.animationsPanel),
|
|
95805
95997
|
};
|
|
@@ -100781,6 +100973,7 @@ function registerCommands(inspectorBackend) {
|
|
|
100781
100973
|
inspectorBackend.registerEnum("Audits.SharedDictionaryError", { UseErrorCrossOriginNoCorsRequest: "UseErrorCrossOriginNoCorsRequest", UseErrorDictionaryLoadFailure: "UseErrorDictionaryLoadFailure", UseErrorMatchingDictionaryNotUsed: "UseErrorMatchingDictionaryNotUsed", UseErrorUnexpectedContentDictionaryHeader: "UseErrorUnexpectedContentDictionaryHeader", WriteErrorCossOriginNoCorsRequest: "WriteErrorCossOriginNoCorsRequest", WriteErrorDisallowedBySettings: "WriteErrorDisallowedBySettings", WriteErrorExpiredResponse: "WriteErrorExpiredResponse", WriteErrorFeatureDisabled: "WriteErrorFeatureDisabled", WriteErrorInsufficientResources: "WriteErrorInsufficientResources", WriteErrorInvalidMatchField: "WriteErrorInvalidMatchField", WriteErrorInvalidStructuredHeader: "WriteErrorInvalidStructuredHeader", WriteErrorInvalidTTLField: "WriteErrorInvalidTTLField", WriteErrorNavigationRequest: "WriteErrorNavigationRequest", WriteErrorNoMatchField: "WriteErrorNoMatchField", WriteErrorNonIntegerTTLField: "WriteErrorNonIntegerTTLField", WriteErrorNonListMatchDestField: "WriteErrorNonListMatchDestField", WriteErrorNonSecureContext: "WriteErrorNonSecureContext", WriteErrorNonStringIdField: "WriteErrorNonStringIdField", WriteErrorNonStringInMatchDestList: "WriteErrorNonStringInMatchDestList", WriteErrorNonStringMatchField: "WriteErrorNonStringMatchField", WriteErrorNonTokenTypeField: "WriteErrorNonTokenTypeField", WriteErrorRequestAborted: "WriteErrorRequestAborted", WriteErrorShuttingDown: "WriteErrorShuttingDown", WriteErrorTooLongIdField: "WriteErrorTooLongIdField", WriteErrorUnsupportedType: "WriteErrorUnsupportedType" });
|
|
100782
100974
|
inspectorBackend.registerEnum("Audits.SRIMessageSignatureError", { MissingSignatureHeader: "MissingSignatureHeader", MissingSignatureInputHeader: "MissingSignatureInputHeader", InvalidSignatureHeader: "InvalidSignatureHeader", InvalidSignatureInputHeader: "InvalidSignatureInputHeader", SignatureHeaderValueIsNotByteSequence: "SignatureHeaderValueIsNotByteSequence", SignatureHeaderValueIsParameterized: "SignatureHeaderValueIsParameterized", SignatureHeaderValueIsIncorrectLength: "SignatureHeaderValueIsIncorrectLength", SignatureInputHeaderMissingLabel: "SignatureInputHeaderMissingLabel", SignatureInputHeaderValueNotInnerList: "SignatureInputHeaderValueNotInnerList", SignatureInputHeaderValueMissingComponents: "SignatureInputHeaderValueMissingComponents", SignatureInputHeaderInvalidComponentType: "SignatureInputHeaderInvalidComponentType", SignatureInputHeaderInvalidComponentName: "SignatureInputHeaderInvalidComponentName", SignatureInputHeaderInvalidHeaderComponentParameter: "SignatureInputHeaderInvalidHeaderComponentParameter", SignatureInputHeaderInvalidDerivedComponentParameter: "SignatureInputHeaderInvalidDerivedComponentParameter", SignatureInputHeaderKeyIdLength: "SignatureInputHeaderKeyIdLength", SignatureInputHeaderInvalidParameter: "SignatureInputHeaderInvalidParameter", SignatureInputHeaderMissingRequiredParameters: "SignatureInputHeaderMissingRequiredParameters", ValidationFailedSignatureExpired: "ValidationFailedSignatureExpired", ValidationFailedInvalidLength: "ValidationFailedInvalidLength", ValidationFailedSignatureMismatch: "ValidationFailedSignatureMismatch", ValidationFailedIntegrityMismatch: "ValidationFailedIntegrityMismatch" });
|
|
100783
100975
|
inspectorBackend.registerEnum("Audits.UnencodedDigestError", { MalformedDictionary: "MalformedDictionary", UnknownAlgorithm: "UnknownAlgorithm", IncorrectDigestType: "IncorrectDigestType", IncorrectDigestLength: "IncorrectDigestLength" });
|
|
100976
|
+
inspectorBackend.registerEnum("Audits.ConnectionAllowlistError", { InvalidHeader: "InvalidHeader", MoreThanOneList: "MoreThanOneList", ItemNotInnerList: "ItemNotInnerList", InvalidAllowlistItemType: "InvalidAllowlistItemType", ReportingEndpointNotToken: "ReportingEndpointNotToken", InvalidUrlPattern: "InvalidUrlPattern" });
|
|
100784
100977
|
inspectorBackend.registerEnum("Audits.GenericIssueErrorType", { FormLabelForNameError: "FormLabelForNameError", FormDuplicateIdForInputError: "FormDuplicateIdForInputError", FormInputWithNoLabelError: "FormInputWithNoLabelError", FormAutocompleteAttributeEmptyError: "FormAutocompleteAttributeEmptyError", FormEmptyIdAndNameAttributesForInputError: "FormEmptyIdAndNameAttributesForInputError", FormAriaLabelledByToNonExistingIdError: "FormAriaLabelledByToNonExistingIdError", FormInputAssignedAutocompleteValueToIdOrNameAttributeError: "FormInputAssignedAutocompleteValueToIdOrNameAttributeError", FormLabelHasNeitherForNorNestedInputError: "FormLabelHasNeitherForNorNestedInputError", FormLabelForMatchesNonExistingIdError: "FormLabelForMatchesNonExistingIdError", FormInputHasWrongButWellIntendedAutocompleteValueError: "FormInputHasWrongButWellIntendedAutocompleteValueError", ResponseWasBlockedByORB: "ResponseWasBlockedByORB", NavigationEntryMarkedSkippable: "NavigationEntryMarkedSkippable", AutofillAndManualTextPolicyControlledFeaturesInfo: "AutofillAndManualTextPolicyControlledFeaturesInfo", AutofillPolicyControlledFeatureInfo: "AutofillPolicyControlledFeatureInfo", ManualTextPolicyControlledFeatureInfo: "ManualTextPolicyControlledFeatureInfo" });
|
|
100785
100978
|
inspectorBackend.registerEnum("Audits.ClientHintIssueReason", { MetaTagAllowListInvalidOrigin: "MetaTagAllowListInvalidOrigin", MetaTagModifiedHTML: "MetaTagModifiedHTML" });
|
|
100786
100979
|
inspectorBackend.registerEnum("Audits.FederatedAuthRequestIssueReason", { ShouldEmbargo: "ShouldEmbargo", TooManyRequests: "TooManyRequests", WellKnownHttpNotFound: "WellKnownHttpNotFound", WellKnownNoResponse: "WellKnownNoResponse", WellKnownInvalidResponse: "WellKnownInvalidResponse", WellKnownListEmpty: "WellKnownListEmpty", WellKnownInvalidContentType: "WellKnownInvalidContentType", ConfigNotInWellKnown: "ConfigNotInWellKnown", WellKnownTooBig: "WellKnownTooBig", ConfigHttpNotFound: "ConfigHttpNotFound", ConfigNoResponse: "ConfigNoResponse", ConfigInvalidResponse: "ConfigInvalidResponse", ConfigInvalidContentType: "ConfigInvalidContentType", ClientMetadataHttpNotFound: "ClientMetadataHttpNotFound", ClientMetadataNoResponse: "ClientMetadataNoResponse", ClientMetadataInvalidResponse: "ClientMetadataInvalidResponse", ClientMetadataInvalidContentType: "ClientMetadataInvalidContentType", IdpNotPotentiallyTrustworthy: "IdpNotPotentiallyTrustworthy", DisabledInSettings: "DisabledInSettings", DisabledInFlags: "DisabledInFlags", ErrorFetchingSignin: "ErrorFetchingSignin", InvalidSigninResponse: "InvalidSigninResponse", AccountsHttpNotFound: "AccountsHttpNotFound", AccountsNoResponse: "AccountsNoResponse", AccountsInvalidResponse: "AccountsInvalidResponse", AccountsListEmpty: "AccountsListEmpty", AccountsInvalidContentType: "AccountsInvalidContentType", IdTokenHttpNotFound: "IdTokenHttpNotFound", IdTokenNoResponse: "IdTokenNoResponse", IdTokenInvalidResponse: "IdTokenInvalidResponse", IdTokenIdpErrorResponse: "IdTokenIdpErrorResponse", IdTokenCrossSiteIdpErrorResponse: "IdTokenCrossSiteIdpErrorResponse", IdTokenInvalidRequest: "IdTokenInvalidRequest", IdTokenInvalidContentType: "IdTokenInvalidContentType", ErrorIdToken: "ErrorIdToken", Canceled: "Canceled", RpPageNotVisible: "RpPageNotVisible", SilentMediationFailure: "SilentMediationFailure", ThirdPartyCookiesBlocked: "ThirdPartyCookiesBlocked", NotSignedInWithIdp: "NotSignedInWithIdp", MissingTransientUserActivation: "MissingTransientUserActivation", ReplacedByActiveMode: "ReplacedByActiveMode", InvalidFieldsSpecified: "InvalidFieldsSpecified", RelyingPartyOriginIsOpaque: "RelyingPartyOriginIsOpaque", TypeNotMatching: "TypeNotMatching", UiDismissedNoEmbargo: "UiDismissedNoEmbargo", CorsError: "CorsError", SuppressedBySegmentationPlatform: "SuppressedBySegmentationPlatform" });
|
|
@@ -100791,7 +100984,7 @@ function registerCommands(inspectorBackend) {
|
|
|
100791
100984
|
inspectorBackend.registerEnum("Audits.PropertyRuleIssueReason", { InvalidSyntax: "InvalidSyntax", InvalidInitialValue: "InvalidInitialValue", InvalidInherits: "InvalidInherits", InvalidName: "InvalidName" });
|
|
100792
100985
|
inspectorBackend.registerEnum("Audits.UserReidentificationIssueType", { BlockedFrameNavigation: "BlockedFrameNavigation", BlockedSubresource: "BlockedSubresource", NoisedCanvasReadback: "NoisedCanvasReadback" });
|
|
100793
100986
|
inspectorBackend.registerEnum("Audits.PermissionElementIssueType", { InvalidType: "InvalidType", FencedFrameDisallowed: "FencedFrameDisallowed", CspFrameAncestorsMissing: "CspFrameAncestorsMissing", PermissionsPolicyBlocked: "PermissionsPolicyBlocked", PaddingRightUnsupported: "PaddingRightUnsupported", PaddingBottomUnsupported: "PaddingBottomUnsupported", InsetBoxShadowUnsupported: "InsetBoxShadowUnsupported", RequestInProgress: "RequestInProgress", UntrustedEvent: "UntrustedEvent", RegistrationFailed: "RegistrationFailed", TypeNotSupported: "TypeNotSupported", InvalidTypeActivation: "InvalidTypeActivation", SecurityChecksFailed: "SecurityChecksFailed", ActivationDisabled: "ActivationDisabled", GeolocationDeprecated: "GeolocationDeprecated", InvalidDisplayStyle: "InvalidDisplayStyle", NonOpaqueColor: "NonOpaqueColor", LowContrast: "LowContrast", FontSizeTooSmall: "FontSizeTooSmall", FontSizeTooLarge: "FontSizeTooLarge", InvalidSizeValue: "InvalidSizeValue" });
|
|
100794
|
-
inspectorBackend.registerEnum("Audits.InspectorIssueCode", { CookieIssue: "CookieIssue", MixedContentIssue: "MixedContentIssue", BlockedByResponseIssue: "BlockedByResponseIssue", HeavyAdIssue: "HeavyAdIssue", ContentSecurityPolicyIssue: "ContentSecurityPolicyIssue", SharedArrayBufferIssue: "SharedArrayBufferIssue", LowTextContrastIssue: "LowTextContrastIssue", CorsIssue: "CorsIssue", AttributionReportingIssue: "AttributionReportingIssue", QuirksModeIssue: "QuirksModeIssue", PartitioningBlobURLIssue: "PartitioningBlobURLIssue", NavigatorUserAgentIssue: "NavigatorUserAgentIssue", GenericIssue: "GenericIssue", DeprecationIssue: "DeprecationIssue", ClientHintIssue: "ClientHintIssue", FederatedAuthRequestIssue: "FederatedAuthRequestIssue", BounceTrackingIssue: "BounceTrackingIssue", CookieDeprecationMetadataIssue: "CookieDeprecationMetadataIssue", StylesheetLoadingIssue: "StylesheetLoadingIssue", FederatedAuthUserInfoRequestIssue: "FederatedAuthUserInfoRequestIssue", PropertyRuleIssue: "PropertyRuleIssue", SharedDictionaryIssue: "SharedDictionaryIssue", ElementAccessibilityIssue: "ElementAccessibilityIssue", SRIMessageSignatureIssue: "SRIMessageSignatureIssue", UnencodedDigestIssue: "UnencodedDigestIssue", UserReidentificationIssue: "UserReidentificationIssue", PermissionElementIssue: "PermissionElementIssue" });
|
|
100987
|
+
inspectorBackend.registerEnum("Audits.InspectorIssueCode", { CookieIssue: "CookieIssue", MixedContentIssue: "MixedContentIssue", BlockedByResponseIssue: "BlockedByResponseIssue", HeavyAdIssue: "HeavyAdIssue", ContentSecurityPolicyIssue: "ContentSecurityPolicyIssue", SharedArrayBufferIssue: "SharedArrayBufferIssue", LowTextContrastIssue: "LowTextContrastIssue", CorsIssue: "CorsIssue", AttributionReportingIssue: "AttributionReportingIssue", QuirksModeIssue: "QuirksModeIssue", PartitioningBlobURLIssue: "PartitioningBlobURLIssue", NavigatorUserAgentIssue: "NavigatorUserAgentIssue", GenericIssue: "GenericIssue", DeprecationIssue: "DeprecationIssue", ClientHintIssue: "ClientHintIssue", FederatedAuthRequestIssue: "FederatedAuthRequestIssue", BounceTrackingIssue: "BounceTrackingIssue", CookieDeprecationMetadataIssue: "CookieDeprecationMetadataIssue", StylesheetLoadingIssue: "StylesheetLoadingIssue", FederatedAuthUserInfoRequestIssue: "FederatedAuthUserInfoRequestIssue", PropertyRuleIssue: "PropertyRuleIssue", SharedDictionaryIssue: "SharedDictionaryIssue", ElementAccessibilityIssue: "ElementAccessibilityIssue", SRIMessageSignatureIssue: "SRIMessageSignatureIssue", UnencodedDigestIssue: "UnencodedDigestIssue", ConnectionAllowlistIssue: "ConnectionAllowlistIssue", UserReidentificationIssue: "UserReidentificationIssue", PermissionElementIssue: "PermissionElementIssue" });
|
|
100795
100988
|
inspectorBackend.registerEvent("Audits.issueAdded", ["issue"]);
|
|
100796
100989
|
inspectorBackend.registerEnum("Audits.GetEncodedResponseRequestEncoding", { Webp: "webp", Jpeg: "jpeg", Png: "png" });
|
|
100797
100990
|
inspectorBackend.registerCommand("Audits.getEncodedResponse", [{ "name": "requestId", "type": "string", "optional": false, "description": "Identifier of the network request to get content for.", "typeRef": "Network.RequestId" }, { "name": "encoding", "type": "string", "optional": false, "description": "The encoding to use.", "typeRef": "Audits.GetEncodedResponseRequestEncoding" }, { "name": "quality", "type": "number", "optional": true, "description": "The quality of the encoding (0-1). (defaults to 1)", "typeRef": null }, { "name": "sizeOnly", "type": "boolean", "optional": true, "description": "Whether to only return the size information (defaults to false).", "typeRef": null }], ["body", "originalSize", "encodedSize"], "Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.");
|
|
@@ -100818,6 +101011,7 @@ function registerCommands(inspectorBackend) {
|
|
|
100818
101011
|
inspectorBackend.registerType("Audits.SharedDictionaryIssueDetails", [{ "name": "sharedDictionaryError", "type": "string", "optional": false, "description": "", "typeRef": "Audits.SharedDictionaryError" }, { "name": "request", "type": "object", "optional": false, "description": "", "typeRef": "Audits.AffectedRequest" }]);
|
|
100819
101012
|
inspectorBackend.registerType("Audits.SRIMessageSignatureIssueDetails", [{ "name": "error", "type": "string", "optional": false, "description": "", "typeRef": "Audits.SRIMessageSignatureError" }, { "name": "signatureBase", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "integrityAssertions", "type": "array", "optional": false, "description": "", "typeRef": "string" }, { "name": "request", "type": "object", "optional": false, "description": "", "typeRef": "Audits.AffectedRequest" }]);
|
|
100820
101013
|
inspectorBackend.registerType("Audits.UnencodedDigestIssueDetails", [{ "name": "error", "type": "string", "optional": false, "description": "", "typeRef": "Audits.UnencodedDigestError" }, { "name": "request", "type": "object", "optional": false, "description": "", "typeRef": "Audits.AffectedRequest" }]);
|
|
101014
|
+
inspectorBackend.registerType("Audits.ConnectionAllowlistIssueDetails", [{ "name": "error", "type": "string", "optional": false, "description": "", "typeRef": "Audits.ConnectionAllowlistError" }, { "name": "request", "type": "object", "optional": false, "description": "", "typeRef": "Audits.AffectedRequest" }]);
|
|
100821
101015
|
inspectorBackend.registerType("Audits.GenericIssueDetails", [{ "name": "errorType", "type": "string", "optional": false, "description": "Issues with the same errorType are aggregated in the frontend.", "typeRef": "Audits.GenericIssueErrorType" }, { "name": "frameId", "type": "string", "optional": true, "description": "", "typeRef": "Page.FrameId" }, { "name": "violatingNodeId", "type": "number", "optional": true, "description": "", "typeRef": "DOM.BackendNodeId" }, { "name": "violatingNodeAttribute", "type": "string", "optional": true, "description": "", "typeRef": null }, { "name": "request", "type": "object", "optional": true, "description": "", "typeRef": "Audits.AffectedRequest" }]);
|
|
100822
101016
|
inspectorBackend.registerType("Audits.DeprecationIssueDetails", [{ "name": "affectedFrame", "type": "object", "optional": true, "description": "", "typeRef": "Audits.AffectedFrame" }, { "name": "sourceCodeLocation", "type": "object", "optional": false, "description": "", "typeRef": "Audits.SourceCodeLocation" }, { "name": "type", "type": "string", "optional": false, "description": "One of the deprecation names from third_party/blink/renderer/core/frame/deprecation/deprecation.json5", "typeRef": null }]);
|
|
100823
101017
|
inspectorBackend.registerType("Audits.BounceTrackingIssueDetails", [{ "name": "trackingSites", "type": "array", "optional": false, "description": "", "typeRef": "string" }]);
|
|
@@ -100832,7 +101026,7 @@ function registerCommands(inspectorBackend) {
|
|
|
100832
101026
|
inspectorBackend.registerType("Audits.PropertyRuleIssueDetails", [{ "name": "sourceCodeLocation", "type": "object", "optional": false, "description": "Source code position of the property rule.", "typeRef": "Audits.SourceCodeLocation" }, { "name": "propertyRuleIssueReason", "type": "string", "optional": false, "description": "Reason why the property rule was discarded.", "typeRef": "Audits.PropertyRuleIssueReason" }, { "name": "propertyValue", "type": "string", "optional": true, "description": "The value of the property rule property that failed to parse", "typeRef": null }]);
|
|
100833
101027
|
inspectorBackend.registerType("Audits.UserReidentificationIssueDetails", [{ "name": "type", "type": "string", "optional": false, "description": "", "typeRef": "Audits.UserReidentificationIssueType" }, { "name": "request", "type": "object", "optional": true, "description": "Applies to BlockedFrameNavigation and BlockedSubresource issue types.", "typeRef": "Audits.AffectedRequest" }, { "name": "sourceCodeLocation", "type": "object", "optional": true, "description": "Applies to NoisedCanvasReadback issue type.", "typeRef": "Audits.SourceCodeLocation" }]);
|
|
100834
101028
|
inspectorBackend.registerType("Audits.PermissionElementIssueDetails", [{ "name": "issueType", "type": "string", "optional": false, "description": "", "typeRef": "Audits.PermissionElementIssueType" }, { "name": "type", "type": "string", "optional": true, "description": "The value of the type attribute.", "typeRef": null }, { "name": "nodeId", "type": "number", "optional": true, "description": "The node ID of the <permission> element.", "typeRef": "DOM.BackendNodeId" }, { "name": "isWarning", "type": "boolean", "optional": true, "description": "True if the issue is a warning, false if it is an error.", "typeRef": null }, { "name": "permissionName", "type": "string", "optional": true, "description": "Fields for message construction: Used for messages that reference a specific permission name", "typeRef": null }, { "name": "occluderNodeInfo", "type": "string", "optional": true, "description": "Used for messages about occlusion", "typeRef": null }, { "name": "occluderParentNodeInfo", "type": "string", "optional": true, "description": "Used for messages about occluder's parent", "typeRef": null }, { "name": "disableReason", "type": "string", "optional": true, "description": "Used for messages about activation disabled reason", "typeRef": null }]);
|
|
100835
|
-
inspectorBackend.registerType("Audits.InspectorIssueDetails", [{ "name": "cookieIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.CookieIssueDetails" }, { "name": "mixedContentIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.MixedContentIssueDetails" }, { "name": "blockedByResponseIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.BlockedByResponseIssueDetails" }, { "name": "heavyAdIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.HeavyAdIssueDetails" }, { "name": "contentSecurityPolicyIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.ContentSecurityPolicyIssueDetails" }, { "name": "sharedArrayBufferIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.SharedArrayBufferIssueDetails" }, { "name": "lowTextContrastIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.LowTextContrastIssueDetails" }, { "name": "corsIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.CorsIssueDetails" }, { "name": "attributionReportingIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.AttributionReportingIssueDetails" }, { "name": "quirksModeIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.QuirksModeIssueDetails" }, { "name": "partitioningBlobURLIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.PartitioningBlobURLIssueDetails" }, { "name": "navigatorUserAgentIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.NavigatorUserAgentIssueDetails" }, { "name": "genericIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.GenericIssueDetails" }, { "name": "deprecationIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.DeprecationIssueDetails" }, { "name": "clientHintIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.ClientHintIssueDetails" }, { "name": "federatedAuthRequestIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.FederatedAuthRequestIssueDetails" }, { "name": "bounceTrackingIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.BounceTrackingIssueDetails" }, { "name": "cookieDeprecationMetadataIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.CookieDeprecationMetadataIssueDetails" }, { "name": "stylesheetLoadingIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.StylesheetLoadingIssueDetails" }, { "name": "propertyRuleIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.PropertyRuleIssueDetails" }, { "name": "federatedAuthUserInfoRequestIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.FederatedAuthUserInfoRequestIssueDetails" }, { "name": "sharedDictionaryIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.SharedDictionaryIssueDetails" }, { "name": "elementAccessibilityIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.ElementAccessibilityIssueDetails" }, { "name": "sriMessageSignatureIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.SRIMessageSignatureIssueDetails" }, { "name": "unencodedDigestIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.UnencodedDigestIssueDetails" }, { "name": "userReidentificationIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.UserReidentificationIssueDetails" }, { "name": "permissionElementIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.PermissionElementIssueDetails" }]);
|
|
101029
|
+
inspectorBackend.registerType("Audits.InspectorIssueDetails", [{ "name": "cookieIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.CookieIssueDetails" }, { "name": "mixedContentIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.MixedContentIssueDetails" }, { "name": "blockedByResponseIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.BlockedByResponseIssueDetails" }, { "name": "heavyAdIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.HeavyAdIssueDetails" }, { "name": "contentSecurityPolicyIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.ContentSecurityPolicyIssueDetails" }, { "name": "sharedArrayBufferIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.SharedArrayBufferIssueDetails" }, { "name": "lowTextContrastIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.LowTextContrastIssueDetails" }, { "name": "corsIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.CorsIssueDetails" }, { "name": "attributionReportingIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.AttributionReportingIssueDetails" }, { "name": "quirksModeIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.QuirksModeIssueDetails" }, { "name": "partitioningBlobURLIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.PartitioningBlobURLIssueDetails" }, { "name": "navigatorUserAgentIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.NavigatorUserAgentIssueDetails" }, { "name": "genericIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.GenericIssueDetails" }, { "name": "deprecationIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.DeprecationIssueDetails" }, { "name": "clientHintIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.ClientHintIssueDetails" }, { "name": "federatedAuthRequestIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.FederatedAuthRequestIssueDetails" }, { "name": "bounceTrackingIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.BounceTrackingIssueDetails" }, { "name": "cookieDeprecationMetadataIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.CookieDeprecationMetadataIssueDetails" }, { "name": "stylesheetLoadingIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.StylesheetLoadingIssueDetails" }, { "name": "propertyRuleIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.PropertyRuleIssueDetails" }, { "name": "federatedAuthUserInfoRequestIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.FederatedAuthUserInfoRequestIssueDetails" }, { "name": "sharedDictionaryIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.SharedDictionaryIssueDetails" }, { "name": "elementAccessibilityIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.ElementAccessibilityIssueDetails" }, { "name": "sriMessageSignatureIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.SRIMessageSignatureIssueDetails" }, { "name": "unencodedDigestIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.UnencodedDigestIssueDetails" }, { "name": "connectionAllowlistIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.ConnectionAllowlistIssueDetails" }, { "name": "userReidentificationIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.UserReidentificationIssueDetails" }, { "name": "permissionElementIssueDetails", "type": "object", "optional": true, "description": "", "typeRef": "Audits.PermissionElementIssueDetails" }]);
|
|
100836
101030
|
inspectorBackend.registerType("Audits.InspectorIssue", [{ "name": "code", "type": "string", "optional": false, "description": "", "typeRef": "Audits.InspectorIssueCode" }, { "name": "details", "type": "object", "optional": false, "description": "", "typeRef": "Audits.InspectorIssueDetails" }, { "name": "issueId", "type": "string", "optional": true, "description": "A unique id for this issue. May be omitted if no other entity (e.g. exception, CDP message, etc.) is referencing this issue.", "typeRef": "Audits.IssueId" }]);
|
|
100837
101031
|
inspectorBackend.registerEnum("Autofill.FillingStrategy", { AutocompleteAttribute: "autocompleteAttribute", AutofillInferred: "autofillInferred" });
|
|
100838
101032
|
inspectorBackend.registerEvent("Autofill.addressFormFilled", ["filledFields", "addressUi"]);
|
|
@@ -101239,7 +101433,8 @@ function registerCommands(inspectorBackend) {
|
|
|
101239
101433
|
inspectorBackend.registerCommand("EventBreakpoints.removeInstrumentationBreakpoint", [{ "name": "eventName", "type": "string", "optional": false, "description": "Instrumentation name to stop on.", "typeRef": null }], [], "Removes breakpoint on particular native event.");
|
|
101240
101434
|
inspectorBackend.registerCommand("EventBreakpoints.disable", [], [], "Removes all breakpoints");
|
|
101241
101435
|
inspectorBackend.registerEnum("Extensions.StorageArea", { Session: "session", Local: "local", Sync: "sync", Managed: "managed" });
|
|
101242
|
-
inspectorBackend.registerCommand("Extensions.
|
|
101436
|
+
inspectorBackend.registerCommand("Extensions.triggerAction", [{ "name": "id", "type": "string", "optional": false, "description": "Extension id.", "typeRef": null }, { "name": "targetId", "type": "string", "optional": false, "description": "A tab target ID to trigger the default extension action on.", "typeRef": null }], [], "Runs an extension default action. Available if the client is connected using the --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging flag is set.");
|
|
101437
|
+
inspectorBackend.registerCommand("Extensions.loadUnpacked", [{ "name": "path", "type": "string", "optional": false, "description": "Absolute file path.", "typeRef": null }, { "name": "enableInIncognito", "type": "boolean", "optional": true, "description": "Enable the extension in incognito", "typeRef": null }], ["id"], "Installs an unpacked extension from the filesystem similar to --load-extension CLI flags. Returns extension ID once the extension has been installed. Available if the client is connected using the --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging flag is set.");
|
|
101243
101438
|
inspectorBackend.registerCommand("Extensions.uninstall", [{ "name": "id", "type": "string", "optional": false, "description": "Extension id.", "typeRef": null }], [], "Uninstalls an unpacked extension (others not supported) from the profile. Available if the client is connected using the --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging.");
|
|
101244
101439
|
inspectorBackend.registerCommand("Extensions.getStorageItems", [{ "name": "id", "type": "string", "optional": false, "description": "ID of extension.", "typeRef": null }, { "name": "storageArea", "type": "string", "optional": false, "description": "StorageArea to retrieve data from.", "typeRef": "Extensions.StorageArea" }, { "name": "keys", "type": "array", "optional": true, "description": "Keys to retrieve.", "typeRef": "string" }], ["data"], "Gets data from extension storage in the given `storageArea`. If `keys` is specified, these are used to filter the result.");
|
|
101245
101440
|
inspectorBackend.registerCommand("Extensions.removeStorageItems", [{ "name": "id", "type": "string", "optional": false, "description": "ID of extension.", "typeRef": null }, { "name": "storageArea", "type": "string", "optional": false, "description": "StorageArea to remove data from.", "typeRef": "Extensions.StorageArea" }, { "name": "keys", "type": "array", "optional": false, "description": "Keys to remove.", "typeRef": "string" }], [], "Removes `keys` from extension storage in the given `storageArea`.");
|
|
@@ -101408,7 +101603,7 @@ function registerCommands(inspectorBackend) {
|
|
|
101408
101603
|
inspectorBackend.registerEnum("Network.RequestReferrerPolicy", { UnsafeUrl: "unsafe-url", NoReferrerWhenDowngrade: "no-referrer-when-downgrade", NoReferrer: "no-referrer", Origin: "origin", OriginWhenCrossOrigin: "origin-when-cross-origin", SameOrigin: "same-origin", StrictOrigin: "strict-origin", StrictOriginWhenCrossOrigin: "strict-origin-when-cross-origin" });
|
|
101409
101604
|
inspectorBackend.registerEnum("Network.CertificateTransparencyCompliance", { Unknown: "unknown", NotCompliant: "not-compliant", Compliant: "compliant" });
|
|
101410
101605
|
inspectorBackend.registerEnum("Network.BlockedReason", { Other: "other", Csp: "csp", MixedContent: "mixed-content", Origin: "origin", Inspector: "inspector", Integrity: "integrity", SubresourceFilter: "subresource-filter", ContentType: "content-type", CoepFrameResourceNeedsCoepHeader: "coep-frame-resource-needs-coep-header", CoopSandboxedIframeCannotNavigateToCoopPage: "coop-sandboxed-iframe-cannot-navigate-to-coop-page", CorpNotSameOrigin: "corp-not-same-origin", CorpNotSameOriginAfterDefaultedToSameOriginByCoep: "corp-not-same-origin-after-defaulted-to-same-origin-by-coep", CorpNotSameOriginAfterDefaultedToSameOriginByDip: "corp-not-same-origin-after-defaulted-to-same-origin-by-dip", CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip: "corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip", CorpNotSameSite: "corp-not-same-site", SriMessageSignatureMismatch: "sri-message-signature-mismatch" });
|
|
101411
|
-
inspectorBackend.registerEnum("Network.CorsError", { DisallowedByMode: "DisallowedByMode", InvalidResponse: "InvalidResponse", WildcardOriginNotAllowed: "WildcardOriginNotAllowed", MissingAllowOriginHeader: "MissingAllowOriginHeader", MultipleAllowOriginValues: "MultipleAllowOriginValues", InvalidAllowOriginValue: "InvalidAllowOriginValue", AllowOriginMismatch: "AllowOriginMismatch", InvalidAllowCredentials: "InvalidAllowCredentials", CorsDisabledScheme: "CorsDisabledScheme", PreflightInvalidStatus: "PreflightInvalidStatus", PreflightDisallowedRedirect: "PreflightDisallowedRedirect", PreflightWildcardOriginNotAllowed: "PreflightWildcardOriginNotAllowed", PreflightMissingAllowOriginHeader: "PreflightMissingAllowOriginHeader", PreflightMultipleAllowOriginValues: "PreflightMultipleAllowOriginValues", PreflightInvalidAllowOriginValue: "PreflightInvalidAllowOriginValue", PreflightAllowOriginMismatch: "PreflightAllowOriginMismatch", PreflightInvalidAllowCredentials: "PreflightInvalidAllowCredentials", PreflightMissingAllowExternal: "PreflightMissingAllowExternal", PreflightInvalidAllowExternal: "PreflightInvalidAllowExternal", InvalidAllowMethodsPreflightResponse: "InvalidAllowMethodsPreflightResponse", InvalidAllowHeadersPreflightResponse: "InvalidAllowHeadersPreflightResponse", MethodDisallowedByPreflightResponse: "MethodDisallowedByPreflightResponse", HeaderDisallowedByPreflightResponse: "HeaderDisallowedByPreflightResponse", RedirectContainsCredentials: "RedirectContainsCredentials",
|
|
101606
|
+
inspectorBackend.registerEnum("Network.CorsError", { DisallowedByMode: "DisallowedByMode", InvalidResponse: "InvalidResponse", WildcardOriginNotAllowed: "WildcardOriginNotAllowed", MissingAllowOriginHeader: "MissingAllowOriginHeader", MultipleAllowOriginValues: "MultipleAllowOriginValues", InvalidAllowOriginValue: "InvalidAllowOriginValue", AllowOriginMismatch: "AllowOriginMismatch", InvalidAllowCredentials: "InvalidAllowCredentials", CorsDisabledScheme: "CorsDisabledScheme", PreflightInvalidStatus: "PreflightInvalidStatus", PreflightDisallowedRedirect: "PreflightDisallowedRedirect", PreflightWildcardOriginNotAllowed: "PreflightWildcardOriginNotAllowed", PreflightMissingAllowOriginHeader: "PreflightMissingAllowOriginHeader", PreflightMultipleAllowOriginValues: "PreflightMultipleAllowOriginValues", PreflightInvalidAllowOriginValue: "PreflightInvalidAllowOriginValue", PreflightAllowOriginMismatch: "PreflightAllowOriginMismatch", PreflightInvalidAllowCredentials: "PreflightInvalidAllowCredentials", PreflightMissingAllowExternal: "PreflightMissingAllowExternal", PreflightInvalidAllowExternal: "PreflightInvalidAllowExternal", InvalidAllowMethodsPreflightResponse: "InvalidAllowMethodsPreflightResponse", InvalidAllowHeadersPreflightResponse: "InvalidAllowHeadersPreflightResponse", MethodDisallowedByPreflightResponse: "MethodDisallowedByPreflightResponse", HeaderDisallowedByPreflightResponse: "HeaderDisallowedByPreflightResponse", RedirectContainsCredentials: "RedirectContainsCredentials", InsecureLocalNetwork: "InsecureLocalNetwork", InvalidLocalNetworkAccess: "InvalidLocalNetworkAccess", NoCorsRedirectModeNotFollow: "NoCorsRedirectModeNotFollow", LocalNetworkAccessPermissionDenied: "LocalNetworkAccessPermissionDenied" });
|
|
101412
101607
|
inspectorBackend.registerEnum("Network.ServiceWorkerResponseSource", { CacheStorage: "cache-storage", HttpCache: "http-cache", FallbackCode: "fallback-code", Network: "network" });
|
|
101413
101608
|
inspectorBackend.registerEnum("Network.TrustTokenParamsRefreshPolicy", { UseCached: "UseCached", Refresh: "Refresh" });
|
|
101414
101609
|
inspectorBackend.registerEnum("Network.TrustTokenOperationType", { Issuance: "Issuance", Redemption: "Redemption", Signing: "Signing" });
|
|
@@ -101424,7 +101619,7 @@ function registerCommands(inspectorBackend) {
|
|
|
101424
101619
|
inspectorBackend.registerEnum("Network.SignedExchangeErrorField", { SignatureSig: "signatureSig", SignatureIntegrity: "signatureIntegrity", SignatureCertUrl: "signatureCertUrl", SignatureCertSha256: "signatureCertSha256", SignatureValidityUrl: "signatureValidityUrl", SignatureTimestamps: "signatureTimestamps" });
|
|
101425
101620
|
inspectorBackend.registerEnum("Network.ContentEncoding", { Deflate: "deflate", Gzip: "gzip", Br: "br", Zstd: "zstd" });
|
|
101426
101621
|
inspectorBackend.registerEnum("Network.DirectSocketDnsQueryType", { Ipv4: "ipv4", Ipv6: "ipv6" });
|
|
101427
|
-
inspectorBackend.registerEnum("Network.
|
|
101622
|
+
inspectorBackend.registerEnum("Network.LocalNetworkAccessRequestPolicy", { Allow: "Allow", BlockFromInsecureToMorePrivate: "BlockFromInsecureToMorePrivate", WarnFromInsecureToMorePrivate: "WarnFromInsecureToMorePrivate", PermissionBlock: "PermissionBlock", PermissionWarn: "PermissionWarn" });
|
|
101428
101623
|
inspectorBackend.registerEnum("Network.IPAddressSpace", { Loopback: "Loopback", Local: "Local", Public: "Public", Unknown: "Unknown" });
|
|
101429
101624
|
inspectorBackend.registerEnum("Network.CrossOriginOpenerPolicyValue", { SameOrigin: "SameOrigin", SameOriginAllowPopups: "SameOriginAllowPopups", RestrictProperties: "RestrictProperties", UnsafeNone: "UnsafeNone", SameOriginPlusCoep: "SameOriginPlusCoep", RestrictPropertiesPlusCoep: "RestrictPropertiesPlusCoep", NoopenerAllowPopups: "NoopenerAllowPopups" });
|
|
101430
101625
|
inspectorBackend.registerEnum("Network.CrossOriginEmbedderPolicyValue", { None: "None", Credentialless: "Credentialless", RequireCorp: "RequireCorp" });
|
|
@@ -101554,7 +101749,7 @@ function registerCommands(inspectorBackend) {
|
|
|
101554
101749
|
inspectorBackend.registerType("Network.DirectUDPSocketOptions", [{ "name": "remoteAddr", "type": "string", "optional": true, "description": "", "typeRef": null }, { "name": "remotePort", "type": "number", "optional": true, "description": "Unsigned int 16.", "typeRef": null }, { "name": "localAddr", "type": "string", "optional": true, "description": "", "typeRef": null }, { "name": "localPort", "type": "number", "optional": true, "description": "Unsigned int 16.", "typeRef": null }, { "name": "dnsQueryType", "type": "string", "optional": true, "description": "", "typeRef": "Network.DirectSocketDnsQueryType" }, { "name": "sendBufferSize", "type": "number", "optional": true, "description": "Expected to be unsigned integer.", "typeRef": null }, { "name": "receiveBufferSize", "type": "number", "optional": true, "description": "Expected to be unsigned integer.", "typeRef": null }, { "name": "multicastLoopback", "type": "boolean", "optional": true, "description": "", "typeRef": null }, { "name": "multicastTimeToLive", "type": "number", "optional": true, "description": "Unsigned int 8.", "typeRef": null }, { "name": "multicastAllowAddressSharing", "type": "boolean", "optional": true, "description": "", "typeRef": null }]);
|
|
101555
101750
|
inspectorBackend.registerType("Network.DirectUDPMessage", [{ "name": "data", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "remoteAddr", "type": "string", "optional": true, "description": "Null for connected mode.", "typeRef": null }, { "name": "remotePort", "type": "number", "optional": true, "description": "Null for connected mode. Expected to be unsigned integer.", "typeRef": null }]);
|
|
101556
101751
|
inspectorBackend.registerType("Network.ConnectTiming", [{ "name": "requestTime", "type": "number", "optional": false, "description": "Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime. Matches ResourceTiming's requestTime for the same request (but not for redirected requests).", "typeRef": null }]);
|
|
101557
|
-
inspectorBackend.registerType("Network.ClientSecurityState", [{ "name": "initiatorIsSecureContext", "type": "boolean", "optional": false, "description": "", "typeRef": null }, { "name": "initiatorIPAddressSpace", "type": "string", "optional": false, "description": "", "typeRef": "Network.IPAddressSpace" }, { "name": "
|
|
101752
|
+
inspectorBackend.registerType("Network.ClientSecurityState", [{ "name": "initiatorIsSecureContext", "type": "boolean", "optional": false, "description": "", "typeRef": null }, { "name": "initiatorIPAddressSpace", "type": "string", "optional": false, "description": "", "typeRef": "Network.IPAddressSpace" }, { "name": "localNetworkAccessRequestPolicy", "type": "string", "optional": false, "description": "", "typeRef": "Network.LocalNetworkAccessRequestPolicy" }]);
|
|
101558
101753
|
inspectorBackend.registerType("Network.CrossOriginOpenerPolicyStatus", [{ "name": "value", "type": "string", "optional": false, "description": "", "typeRef": "Network.CrossOriginOpenerPolicyValue" }, { "name": "reportOnlyValue", "type": "string", "optional": false, "description": "", "typeRef": "Network.CrossOriginOpenerPolicyValue" }, { "name": "reportingEndpoint", "type": "string", "optional": true, "description": "", "typeRef": null }, { "name": "reportOnlyReportingEndpoint", "type": "string", "optional": true, "description": "", "typeRef": null }]);
|
|
101559
101754
|
inspectorBackend.registerType("Network.CrossOriginEmbedderPolicyStatus", [{ "name": "value", "type": "string", "optional": false, "description": "", "typeRef": "Network.CrossOriginEmbedderPolicyValue" }, { "name": "reportOnlyValue", "type": "string", "optional": false, "description": "", "typeRef": "Network.CrossOriginEmbedderPolicyValue" }, { "name": "reportingEndpoint", "type": "string", "optional": true, "description": "", "typeRef": null }, { "name": "reportOnlyReportingEndpoint", "type": "string", "optional": true, "description": "", "typeRef": null }]);
|
|
101560
101755
|
inspectorBackend.registerType("Network.ContentSecurityPolicyStatus", [{ "name": "effectiveDirectives", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "isEnforced", "type": "boolean", "optional": false, "description": "", "typeRef": null }, { "name": "source", "type": "string", "optional": false, "description": "", "typeRef": "Network.ContentSecurityPolicySource" }]);
|
|
@@ -101580,6 +101775,8 @@ function registerCommands(inspectorBackend) {
|
|
|
101580
101775
|
inspectorBackend.registerEvent("Overlay.inspectNodeRequested", ["backendNodeId"]);
|
|
101581
101776
|
inspectorBackend.registerEvent("Overlay.nodeHighlightRequested", ["nodeId"]);
|
|
101582
101777
|
inspectorBackend.registerEvent("Overlay.screenshotRequested", ["viewport"]);
|
|
101778
|
+
inspectorBackend.registerEvent("Overlay.inspectPanelShowRequested", ["backendNodeId"]);
|
|
101779
|
+
inspectorBackend.registerEvent("Overlay.inspectedElementWindowRestored", ["backendNodeId"]);
|
|
101583
101780
|
inspectorBackend.registerEvent("Overlay.inspectModeCanceled", []);
|
|
101584
101781
|
inspectorBackend.registerCommand("Overlay.disable", [], [], "Disables domain notifications.");
|
|
101585
101782
|
inspectorBackend.registerCommand("Overlay.enable", [], [], "Enables domain notifications.");
|
|
@@ -101601,6 +101798,7 @@ function registerCommands(inspectorBackend) {
|
|
|
101601
101798
|
inspectorBackend.registerCommand("Overlay.setShowFlexOverlays", [{ "name": "flexNodeHighlightConfigs", "type": "array", "optional": false, "description": "An array of node identifiers and descriptors for the highlight appearance.", "typeRef": "Overlay.FlexNodeHighlightConfig" }], [], "");
|
|
101602
101799
|
inspectorBackend.registerCommand("Overlay.setShowScrollSnapOverlays", [{ "name": "scrollSnapHighlightConfigs", "type": "array", "optional": false, "description": "An array of node identifiers and descriptors for the highlight appearance.", "typeRef": "Overlay.ScrollSnapHighlightConfig" }], [], "");
|
|
101603
101800
|
inspectorBackend.registerCommand("Overlay.setShowContainerQueryOverlays", [{ "name": "containerQueryHighlightConfigs", "type": "array", "optional": false, "description": "An array of node identifiers and descriptors for the highlight appearance.", "typeRef": "Overlay.ContainerQueryHighlightConfig" }], [], "");
|
|
101801
|
+
inspectorBackend.registerCommand("Overlay.setShowInspectedElementAnchor", [{ "name": "inspectedElementAnchorConfig", "type": "object", "optional": false, "description": "Node identifier for which to show an anchor for.", "typeRef": "Overlay.InspectedElementAnchorConfig" }], [], "");
|
|
101604
101802
|
inspectorBackend.registerCommand("Overlay.setShowPaintRects", [{ "name": "result", "type": "boolean", "optional": false, "description": "True for showing paint rectangles", "typeRef": null }], [], "Requests that backend shows paint rectangles");
|
|
101605
101803
|
inspectorBackend.registerCommand("Overlay.setShowLayoutShiftRegions", [{ "name": "result", "type": "boolean", "optional": false, "description": "True for showing layout shift regions", "typeRef": null }], [], "Requests that backend shows layout shift regions");
|
|
101606
101804
|
inspectorBackend.registerCommand("Overlay.setShowScrollBottleneckRects", [{ "name": "show", "type": "boolean", "optional": false, "description": "True for showing scroll bottleneck rects", "typeRef": null }], [], "Requests that backend shows scroll bottleneck rects");
|
|
@@ -101627,6 +101825,7 @@ function registerCommands(inspectorBackend) {
|
|
|
101627
101825
|
inspectorBackend.registerType("Overlay.ContainerQueryContainerHighlightConfig", [{ "name": "containerBorder", "type": "object", "optional": true, "description": "The style of the container border.", "typeRef": "Overlay.LineStyle" }, { "name": "descendantBorder", "type": "object", "optional": true, "description": "The style of the descendants' borders.", "typeRef": "Overlay.LineStyle" }]);
|
|
101628
101826
|
inspectorBackend.registerType("Overlay.IsolatedElementHighlightConfig", [{ "name": "isolationModeHighlightConfig", "type": "object", "optional": false, "description": "A descriptor for the highlight appearance of an element in isolation mode.", "typeRef": "Overlay.IsolationModeHighlightConfig" }, { "name": "nodeId", "type": "number", "optional": false, "description": "Identifier of the isolated element to highlight.", "typeRef": "DOM.NodeId" }]);
|
|
101629
101827
|
inspectorBackend.registerType("Overlay.IsolationModeHighlightConfig", [{ "name": "resizerColor", "type": "object", "optional": true, "description": "The fill color of the resizers (default: transparent).", "typeRef": "DOM.RGBA" }, { "name": "resizerHandleColor", "type": "object", "optional": true, "description": "The fill color for resizer handles (default: transparent).", "typeRef": "DOM.RGBA" }, { "name": "maskColor", "type": "object", "optional": true, "description": "The fill color for the mask covering non-isolated elements (default: transparent).", "typeRef": "DOM.RGBA" }]);
|
|
101828
|
+
inspectorBackend.registerType("Overlay.InspectedElementAnchorConfig", [{ "name": "nodeId", "type": "number", "optional": true, "description": "Identifier of the node to highlight.", "typeRef": "DOM.NodeId" }, { "name": "backendNodeId", "type": "number", "optional": true, "description": "Identifier of the backend node to highlight.", "typeRef": "DOM.BackendNodeId" }]);
|
|
101630
101829
|
inspectorBackend.registerEnum("PWA.DisplayMode", { Standalone: "standalone", Browser: "browser" });
|
|
101631
101830
|
inspectorBackend.registerCommand("PWA.getOsAppState", [{ "name": "manifestId", "type": "string", "optional": false, "description": "The id from the webapp's manifest file, commonly it's the url of the site installing the webapp. See https://web.dev/learn/pwa/web-app-manifest.", "typeRef": null }], ["badgeCount", "fileHandlers"], "Returns the following OS state for the given manifest id.");
|
|
101632
101831
|
inspectorBackend.registerCommand("PWA.install", [{ "name": "manifestId", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "installUrlOrBundleUrl", "type": "string", "optional": true, "description": "The location of the app or bundle overriding the one derived from the manifestId.", "typeRef": null }], [], "Installs the given manifest identity, optionally using the given installUrlOrBundleUrl IWA-specific install description: manifestId corresponds to isolated-app:// + web_package::SignedWebBundleId File installation mode: The installUrlOrBundleUrl can be either file:// or http(s):// pointing to a signed web bundle (.swbn). In this case SignedWebBundleId must correspond to The .swbn file's signing key. Dev proxy installation mode: installUrlOrBundleUrl must be http(s):// that serves dev mode IWA. web_package::SignedWebBundleId must be of type dev proxy. The advantage of dev proxy mode is that all changes to IWA automatically will be reflected in the running app without reinstallation. To generate bundle id for proxy mode: 1. Generate 32 random bytes. 2. Add a specific suffix at the end following the documentation https://github.com/WICG/isolated-web-apps/blob/main/Scheme.md#suffix 3. Encode the entire sequence using Base32 without padding. If Chrome is not in IWA dev mode, the installation will fail, regardless of the state of the allowlist.");
|
|
@@ -101653,7 +101852,7 @@ function registerCommands(inspectorBackend) {
|
|
|
101653
101852
|
inspectorBackend.registerEnum("Page.ClientNavigationDisposition", { CurrentTab: "currentTab", NewTab: "newTab", NewWindow: "newWindow", Download: "download" });
|
|
101654
101853
|
inspectorBackend.registerEnum("Page.ReferrerPolicy", { NoReferrer: "noReferrer", NoReferrerWhenDowngrade: "noReferrerWhenDowngrade", Origin: "origin", OriginWhenCrossOrigin: "originWhenCrossOrigin", SameOrigin: "sameOrigin", StrictOrigin: "strictOrigin", StrictOriginWhenCrossOrigin: "strictOriginWhenCrossOrigin", UnsafeUrl: "unsafeUrl" });
|
|
101655
101854
|
inspectorBackend.registerEnum("Page.NavigationType", { Navigation: "Navigation", BackForwardCacheRestore: "BackForwardCacheRestore" });
|
|
101656
|
-
inspectorBackend.registerEnum("Page.BackForwardCacheNotRestoredReason", { NotPrimaryMainFrame: "NotPrimaryMainFrame", BackForwardCacheDisabled: "BackForwardCacheDisabled", RelatedActiveContentsExist: "RelatedActiveContentsExist", HTTPStatusNotOK: "HTTPStatusNotOK", SchemeNotHTTPOrHTTPS: "SchemeNotHTTPOrHTTPS", Loading: "Loading", WasGrantedMediaAccess: "WasGrantedMediaAccess", DisableForRenderFrameHostCalled: "DisableForRenderFrameHostCalled", DomainNotAllowed: "DomainNotAllowed", HTTPMethodNotGET: "HTTPMethodNotGET", SubframeIsNavigating: "SubframeIsNavigating", Timeout: "Timeout", CacheLimit: "CacheLimit", JavaScriptExecution: "JavaScriptExecution", RendererProcessKilled: "RendererProcessKilled", RendererProcessCrashed: "RendererProcessCrashed", SchedulerTrackedFeatureUsed: "SchedulerTrackedFeatureUsed", ConflictingBrowsingInstance: "ConflictingBrowsingInstance", CacheFlushed: "CacheFlushed", ServiceWorkerVersionActivation: "ServiceWorkerVersionActivation", SessionRestored: "SessionRestored", ServiceWorkerPostMessage: "ServiceWorkerPostMessage", EnteredBackForwardCacheBeforeServiceWorkerHostAdded: "EnteredBackForwardCacheBeforeServiceWorkerHostAdded", RenderFrameHostReused_SameSite: "RenderFrameHostReused_SameSite", RenderFrameHostReused_CrossSite: "RenderFrameHostReused_CrossSite", ServiceWorkerClaim: "ServiceWorkerClaim", IgnoreEventAndEvict: "IgnoreEventAndEvict", HaveInnerContents: "HaveInnerContents", TimeoutPuttingInCache: "TimeoutPuttingInCache", BackForwardCacheDisabledByLowMemory: "BackForwardCacheDisabledByLowMemory", BackForwardCacheDisabledByCommandLine: "BackForwardCacheDisabledByCommandLine", NetworkRequestDatAPIpeDrainedAsBytesConsumer: "NetworkRequestDatapipeDrainedAsBytesConsumer", NetworkRequestRedirected: "NetworkRequestRedirected", NetworkRequestTimeout: "NetworkRequestTimeout", NetworkExceedsBufferLimit: "NetworkExceedsBufferLimit", NavigationCancelledWhileRestoring: "NavigationCancelledWhileRestoring", NotMostRecentNavigationEntry: "NotMostRecentNavigationEntry", BackForwardCacheDisabledForPrerender: "BackForwardCacheDisabledForPrerender", UserAgentOverrideDiffers: "UserAgentOverrideDiffers", ForegroundCacheLimit: "ForegroundCacheLimit", BrowsingInstanceNotSwapped: "BrowsingInstanceNotSwapped", BackForwardCacheDisabledForDelegate: "BackForwardCacheDisabledForDelegate", UnloadHandlerExistsInMainFrame: "UnloadHandlerExistsInMainFrame", UnloadHandlerExistsInSubFrame: "UnloadHandlerExistsInSubFrame", ServiceWorkerUnregistration: "ServiceWorkerUnregistration", CacheControlNoStore: "CacheControlNoStore", CacheControlNoStoreCookieModified: "CacheControlNoStoreCookieModified", CacheControlNoStoreHTTPOnlyCookieModified: "CacheControlNoStoreHTTPOnlyCookieModified", NoResponseHead: "NoResponseHead", Unknown: "Unknown", ActivationNavigationsDisallowedForBug1234857: "ActivationNavigationsDisallowedForBug1234857", ErrorDocument: "ErrorDocument", FencedFramesEmbedder: "FencedFramesEmbedder", CookieDisabled: "CookieDisabled", HTTPAuthRequired: "HTTPAuthRequired", CookieFlushed: "CookieFlushed", BroadcastChannelOnMessage: "BroadcastChannelOnMessage", WebViewSettingsChanged: "WebViewSettingsChanged", WebViewJavaScriptObjectChanged: "WebViewJavaScriptObjectChanged", WebViewMessageListenerInjected: "WebViewMessageListenerInjected", WebViewSafeBrowsingAllowlistChanged: "WebViewSafeBrowsingAllowlistChanged", WebViewDocumentStartJavascriptChanged: "WebViewDocumentStartJavascriptChanged", WebSocket: "WebSocket", WebTransport: "WebTransport", WebRTC: "WebRTC", MainResourceHasCacheControlNoStore: "MainResourceHasCacheControlNoStore", MainResourceHasCacheControlNoCache: "MainResourceHasCacheControlNoCache", SubresourceHasCacheControlNoStore: "SubresourceHasCacheControlNoStore", SubresourceHasCacheControlNoCache: "SubresourceHasCacheControlNoCache", ContainsPlugins: "ContainsPlugins", DocumentLoaded: "DocumentLoaded", OutstandingNetworkRequestOthers: "OutstandingNetworkRequestOthers", RequestedMIDIPermission: "RequestedMIDIPermission", RequestedAudioCapturePermission: "RequestedAudioCapturePermission", RequestedVideoCapturePermission: "RequestedVideoCapturePermission", RequestedBackForwardCacheBlockedSensors: "RequestedBackForwardCacheBlockedSensors", RequestedBackgroundWorkPermission: "RequestedBackgroundWorkPermission", BroadcastChannel: "BroadcastChannel", WebXR: "WebXR", SharedWorker: "SharedWorker", SharedWorkerMessage: "SharedWorkerMessage", SharedWorkerWithNoActiveClient: "SharedWorkerWithNoActiveClient", WebLocks: "WebLocks", WebHID: "WebHID", WebBluetooth: "WebBluetooth", WebShare: "WebShare", RequestedStorageAccessGrant: "RequestedStorageAccessGrant", WebNfc: "WebNfc", OutstandingNetworkRequestFetch: "OutstandingNetworkRequestFetch", OutstandingNetworkRequestXHR: "OutstandingNetworkRequestXHR", AppBanner: "AppBanner", Printing: "Printing", WebDatabase: "WebDatabase", PictureInPicture: "PictureInPicture", SpeechRecognizer: "SpeechRecognizer", IdleManager: "IdleManager", PaymentManager: "PaymentManager", SpeechSynthesis: "SpeechSynthesis", KeyboardLock: "KeyboardLock", WebOTPService: "WebOTPService", OutstandingNetworkRequestDirectSocket: "OutstandingNetworkRequestDirectSocket", InjectedJavascript: "InjectedJavascript", InjectedStyleSheet: "InjectedStyleSheet", KeepaliveRequest: "KeepaliveRequest", IndexedDBEvent: "IndexedDBEvent", Dummy: "Dummy", JsNetworkRequestReceivedCacheControlNoStoreResource: "JsNetworkRequestReceivedCacheControlNoStoreResource", WebRTCUsedWithCCNS: "WebRTCUsedWithCCNS", WebTransportUsedWithCCNS: "WebTransportUsedWithCCNS", WebSocketUsedWithCCNS: "WebSocketUsedWithCCNS", SmartCard: "SmartCard", LiveMediaStreamTrack: "LiveMediaStreamTrack", UnloadHandler: "UnloadHandler", ParserAborted: "ParserAborted", ContentSecurityHandler: "ContentSecurityHandler", ContentWebAuthenticationAPI: "ContentWebAuthenticationAPI", ContentFileChooser: "ContentFileChooser", ContentSerial: "ContentSerial", ContentFileSystemAccess: "ContentFileSystemAccess", ContentMediaDevicesDispatcherHost: "ContentMediaDevicesDispatcherHost", ContentWebBluetooth: "ContentWebBluetooth", ContentWebUSB: "ContentWebUSB", ContentMediaSessionService: "ContentMediaSessionService", ContentScreenReader: "ContentScreenReader", ContentDiscarded: "ContentDiscarded", EmbedderPopupBlockerTabHelper: "EmbedderPopupBlockerTabHelper", EmbedderSafeBrowsingTriggeredPopupBlocker: "EmbedderSafeBrowsingTriggeredPopupBlocker", EmbedderSafeBrowsingThreatDetails: "EmbedderSafeBrowsingThreatDetails", EmbedderAppBannerManager: "EmbedderAppBannerManager", EmbedderDomDistillerViewerSource: "EmbedderDomDistillerViewerSource", EmbedderDomDistillerSelfDeletingRequestDelegate: "EmbedderDomDistillerSelfDeletingRequestDelegate", EmbedderOomInterventionTabHelper: "EmbedderOomInterventionTabHelper", EmbedderOfflinePage: "EmbedderOfflinePage", EmbedderChromePasswordManagerClientBindCredentialManager: "EmbedderChromePasswordManagerClientBindCredentialManager", EmbedderPermissionRequestManager: "EmbedderPermissionRequestManager", EmbedderModalDialog: "EmbedderModalDialog", EmbedderExtensions: "EmbedderExtensions", EmbedderExtensionMessaging: "EmbedderExtensionMessaging", EmbedderExtensionMessagingForOpenPort: "EmbedderExtensionMessagingForOpenPort", EmbedderExtensionSentMessageToCachedFrame: "EmbedderExtensionSentMessageToCachedFrame", RequestedByWebViewClient: "RequestedByWebViewClient", PostMessageByWebViewClient: "PostMessageByWebViewClient", CacheControlNoStoreDeviceBoundSessionTerminated: "CacheControlNoStoreDeviceBoundSessionTerminated", CacheLimitPrunedOnModerateMemoryPressure: "CacheLimitPrunedOnModerateMemoryPressure", CacheLimitPrunedOnCriticalMemoryPressure: "CacheLimitPrunedOnCriticalMemoryPressure" });
|
|
101855
|
+
inspectorBackend.registerEnum("Page.BackForwardCacheNotRestoredReason", { NotPrimaryMainFrame: "NotPrimaryMainFrame", BackForwardCacheDisabled: "BackForwardCacheDisabled", RelatedActiveContentsExist: "RelatedActiveContentsExist", HTTPStatusNotOK: "HTTPStatusNotOK", SchemeNotHTTPOrHTTPS: "SchemeNotHTTPOrHTTPS", Loading: "Loading", WasGrantedMediaAccess: "WasGrantedMediaAccess", DisableForRenderFrameHostCalled: "DisableForRenderFrameHostCalled", DomainNotAllowed: "DomainNotAllowed", HTTPMethodNotGET: "HTTPMethodNotGET", SubframeIsNavigating: "SubframeIsNavigating", Timeout: "Timeout", CacheLimit: "CacheLimit", JavaScriptExecution: "JavaScriptExecution", RendererProcessKilled: "RendererProcessKilled", RendererProcessCrashed: "RendererProcessCrashed", SchedulerTrackedFeatureUsed: "SchedulerTrackedFeatureUsed", ConflictingBrowsingInstance: "ConflictingBrowsingInstance", CacheFlushed: "CacheFlushed", ServiceWorkerVersionActivation: "ServiceWorkerVersionActivation", SessionRestored: "SessionRestored", ServiceWorkerPostMessage: "ServiceWorkerPostMessage", EnteredBackForwardCacheBeforeServiceWorkerHostAdded: "EnteredBackForwardCacheBeforeServiceWorkerHostAdded", RenderFrameHostReused_SameSite: "RenderFrameHostReused_SameSite", RenderFrameHostReused_CrossSite: "RenderFrameHostReused_CrossSite", ServiceWorkerClaim: "ServiceWorkerClaim", IgnoreEventAndEvict: "IgnoreEventAndEvict", HaveInnerContents: "HaveInnerContents", TimeoutPuttingInCache: "TimeoutPuttingInCache", BackForwardCacheDisabledByLowMemory: "BackForwardCacheDisabledByLowMemory", BackForwardCacheDisabledByCommandLine: "BackForwardCacheDisabledByCommandLine", NetworkRequestDatAPIpeDrainedAsBytesConsumer: "NetworkRequestDatapipeDrainedAsBytesConsumer", NetworkRequestRedirected: "NetworkRequestRedirected", NetworkRequestTimeout: "NetworkRequestTimeout", NetworkExceedsBufferLimit: "NetworkExceedsBufferLimit", NavigationCancelledWhileRestoring: "NavigationCancelledWhileRestoring", NotMostRecentNavigationEntry: "NotMostRecentNavigationEntry", BackForwardCacheDisabledForPrerender: "BackForwardCacheDisabledForPrerender", UserAgentOverrideDiffers: "UserAgentOverrideDiffers", ForegroundCacheLimit: "ForegroundCacheLimit", BrowsingInstanceNotSwapped: "BrowsingInstanceNotSwapped", BackForwardCacheDisabledForDelegate: "BackForwardCacheDisabledForDelegate", UnloadHandlerExistsInMainFrame: "UnloadHandlerExistsInMainFrame", UnloadHandlerExistsInSubFrame: "UnloadHandlerExistsInSubFrame", ServiceWorkerUnregistration: "ServiceWorkerUnregistration", CacheControlNoStore: "CacheControlNoStore", CacheControlNoStoreCookieModified: "CacheControlNoStoreCookieModified", CacheControlNoStoreHTTPOnlyCookieModified: "CacheControlNoStoreHTTPOnlyCookieModified", NoResponseHead: "NoResponseHead", Unknown: "Unknown", ActivationNavigationsDisallowedForBug1234857: "ActivationNavigationsDisallowedForBug1234857", ErrorDocument: "ErrorDocument", FencedFramesEmbedder: "FencedFramesEmbedder", CookieDisabled: "CookieDisabled", HTTPAuthRequired: "HTTPAuthRequired", CookieFlushed: "CookieFlushed", BroadcastChannelOnMessage: "BroadcastChannelOnMessage", WebViewSettingsChanged: "WebViewSettingsChanged", WebViewJavaScriptObjectChanged: "WebViewJavaScriptObjectChanged", WebViewMessageListenerInjected: "WebViewMessageListenerInjected", WebViewSafeBrowsingAllowlistChanged: "WebViewSafeBrowsingAllowlistChanged", WebViewDocumentStartJavascriptChanged: "WebViewDocumentStartJavascriptChanged", WebSocket: "WebSocket", WebTransport: "WebTransport", WebRTC: "WebRTC", MainResourceHasCacheControlNoStore: "MainResourceHasCacheControlNoStore", MainResourceHasCacheControlNoCache: "MainResourceHasCacheControlNoCache", SubresourceHasCacheControlNoStore: "SubresourceHasCacheControlNoStore", SubresourceHasCacheControlNoCache: "SubresourceHasCacheControlNoCache", ContainsPlugins: "ContainsPlugins", DocumentLoaded: "DocumentLoaded", OutstandingNetworkRequestOthers: "OutstandingNetworkRequestOthers", RequestedMIDIPermission: "RequestedMIDIPermission", RequestedAudioCapturePermission: "RequestedAudioCapturePermission", RequestedVideoCapturePermission: "RequestedVideoCapturePermission", RequestedBackForwardCacheBlockedSensors: "RequestedBackForwardCacheBlockedSensors", RequestedBackgroundWorkPermission: "RequestedBackgroundWorkPermission", BroadcastChannel: "BroadcastChannel", WebXR: "WebXR", SharedWorker: "SharedWorker", SharedWorkerMessage: "SharedWorkerMessage", SharedWorkerWithNoActiveClient: "SharedWorkerWithNoActiveClient", WebLocks: "WebLocks", WebLocksContention: "WebLocksContention", WebHID: "WebHID", WebBluetooth: "WebBluetooth", WebShare: "WebShare", RequestedStorageAccessGrant: "RequestedStorageAccessGrant", WebNfc: "WebNfc", OutstandingNetworkRequestFetch: "OutstandingNetworkRequestFetch", OutstandingNetworkRequestXHR: "OutstandingNetworkRequestXHR", AppBanner: "AppBanner", Printing: "Printing", WebDatabase: "WebDatabase", PictureInPicture: "PictureInPicture", SpeechRecognizer: "SpeechRecognizer", IdleManager: "IdleManager", PaymentManager: "PaymentManager", SpeechSynthesis: "SpeechSynthesis", KeyboardLock: "KeyboardLock", WebOTPService: "WebOTPService", OutstandingNetworkRequestDirectSocket: "OutstandingNetworkRequestDirectSocket", InjectedJavascript: "InjectedJavascript", InjectedStyleSheet: "InjectedStyleSheet", KeepaliveRequest: "KeepaliveRequest", IndexedDBEvent: "IndexedDBEvent", Dummy: "Dummy", JsNetworkRequestReceivedCacheControlNoStoreResource: "JsNetworkRequestReceivedCacheControlNoStoreResource", WebRTCUsedWithCCNS: "WebRTCUsedWithCCNS", WebTransportUsedWithCCNS: "WebTransportUsedWithCCNS", WebSocketUsedWithCCNS: "WebSocketUsedWithCCNS", SmartCard: "SmartCard", LiveMediaStreamTrack: "LiveMediaStreamTrack", UnloadHandler: "UnloadHandler", ParserAborted: "ParserAborted", ContentSecurityHandler: "ContentSecurityHandler", ContentWebAuthenticationAPI: "ContentWebAuthenticationAPI", ContentFileChooser: "ContentFileChooser", ContentSerial: "ContentSerial", ContentFileSystemAccess: "ContentFileSystemAccess", ContentMediaDevicesDispatcherHost: "ContentMediaDevicesDispatcherHost", ContentWebBluetooth: "ContentWebBluetooth", ContentWebUSB: "ContentWebUSB", ContentMediaSessionService: "ContentMediaSessionService", ContentScreenReader: "ContentScreenReader", ContentDiscarded: "ContentDiscarded", EmbedderPopupBlockerTabHelper: "EmbedderPopupBlockerTabHelper", EmbedderSafeBrowsingTriggeredPopupBlocker: "EmbedderSafeBrowsingTriggeredPopupBlocker", EmbedderSafeBrowsingThreatDetails: "EmbedderSafeBrowsingThreatDetails", EmbedderAppBannerManager: "EmbedderAppBannerManager", EmbedderDomDistillerViewerSource: "EmbedderDomDistillerViewerSource", EmbedderDomDistillerSelfDeletingRequestDelegate: "EmbedderDomDistillerSelfDeletingRequestDelegate", EmbedderOomInterventionTabHelper: "EmbedderOomInterventionTabHelper", EmbedderOfflinePage: "EmbedderOfflinePage", EmbedderChromePasswordManagerClientBindCredentialManager: "EmbedderChromePasswordManagerClientBindCredentialManager", EmbedderPermissionRequestManager: "EmbedderPermissionRequestManager", EmbedderModalDialog: "EmbedderModalDialog", EmbedderExtensions: "EmbedderExtensions", EmbedderExtensionMessaging: "EmbedderExtensionMessaging", EmbedderExtensionMessagingForOpenPort: "EmbedderExtensionMessagingForOpenPort", EmbedderExtensionSentMessageToCachedFrame: "EmbedderExtensionSentMessageToCachedFrame", RequestedByWebViewClient: "RequestedByWebViewClient", PostMessageByWebViewClient: "PostMessageByWebViewClient", CacheControlNoStoreDeviceBoundSessionTerminated: "CacheControlNoStoreDeviceBoundSessionTerminated", CacheLimitPrunedOnModerateMemoryPressure: "CacheLimitPrunedOnModerateMemoryPressure", CacheLimitPrunedOnCriticalMemoryPressure: "CacheLimitPrunedOnCriticalMemoryPressure" });
|
|
101657
101856
|
inspectorBackend.registerEnum("Page.BackForwardCacheNotRestoredReasonType", { SupportPending: "SupportPending", PageSupportNeeded: "PageSupportNeeded", Circumstantial: "Circumstantial" });
|
|
101658
101857
|
inspectorBackend.registerEvent("Page.domContentEventFired", ["timestamp"]);
|
|
101659
101858
|
inspectorBackend.registerEnum("Page.FileChooserOpenedEventMode", { SelectSingle: "selectSingle", SelectMultiple: "selectMultiple" });
|
|
@@ -101867,6 +102066,41 @@ function registerCommands(inspectorBackend) {
|
|
|
101867
102066
|
inspectorBackend.registerType("ServiceWorker.ServiceWorkerRegistration", [{ "name": "registrationId", "type": "string", "optional": false, "description": "", "typeRef": "ServiceWorker.RegistrationID" }, { "name": "scopeURL", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "isDeleted", "type": "boolean", "optional": false, "description": "", "typeRef": null }]);
|
|
101868
102067
|
inspectorBackend.registerType("ServiceWorker.ServiceWorkerVersion", [{ "name": "versionId", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "registrationId", "type": "string", "optional": false, "description": "", "typeRef": "ServiceWorker.RegistrationID" }, { "name": "scriptURL", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "runningStatus", "type": "string", "optional": false, "description": "", "typeRef": "ServiceWorker.ServiceWorkerVersionRunningStatus" }, { "name": "status", "type": "string", "optional": false, "description": "", "typeRef": "ServiceWorker.ServiceWorkerVersionStatus" }, { "name": "scriptLastModified", "type": "number", "optional": true, "description": "The Last-Modified header value of the main script.", "typeRef": null }, { "name": "scriptResponseTime", "type": "number", "optional": true, "description": "The time at which the response headers of the main script were received from the server. For cached script it is the last time the cache entry was validated.", "typeRef": null }, { "name": "controlledClients", "type": "array", "optional": true, "description": "", "typeRef": "Target.TargetID" }, { "name": "targetId", "type": "string", "optional": true, "description": "", "typeRef": "Target.TargetID" }, { "name": "routerRules", "type": "string", "optional": true, "description": "", "typeRef": null }]);
|
|
101869
102068
|
inspectorBackend.registerType("ServiceWorker.ServiceWorkerErrorMessage", [{ "name": "errorMessage", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "registrationId", "type": "string", "optional": false, "description": "", "typeRef": "ServiceWorker.RegistrationID" }, { "name": "versionId", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "sourceURL", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "lineNumber", "type": "number", "optional": false, "description": "", "typeRef": null }, { "name": "columnNumber", "type": "number", "optional": false, "description": "", "typeRef": null }]);
|
|
102069
|
+
inspectorBackend.registerEnum("SmartCardEmulation.ResultCode", { Success: "success", RemovedCard: "removed-card", ResetCard: "reset-card", UnpoweredCard: "unpowered-card", UnresponsiveCard: "unresponsive-card", UnsupportedCard: "unsupported-card", ReaderUnavailable: "reader-unavailable", SharingViolation: "sharing-violation", NotTransacted: "not-transacted", NoSmartcard: "no-smartcard", ProtoMismatch: "proto-mismatch", SystemCancelled: "system-cancelled", NotReady: "not-ready", Cancelled: "cancelled", InsufficientBuffer: "insufficient-buffer", InvalidHandle: "invalid-handle", InvalidParameter: "invalid-parameter", InvalidValue: "invalid-value", NoMemory: "no-memory", Timeout: "timeout", UnknownReader: "unknown-reader", UnsupportedFeature: "unsupported-feature", NoReadersAvailable: "no-readers-available", ServiceStopped: "service-stopped", NoService: "no-service", CommError: "comm-error", InternalError: "internal-error", ServerTooBusy: "server-too-busy", Unexpected: "unexpected", Shutdown: "shutdown", UnknownCard: "unknown-card", Unknown: "unknown" });
|
|
102070
|
+
inspectorBackend.registerEnum("SmartCardEmulation.ShareMode", { Shared: "shared", Exclusive: "exclusive", Direct: "direct" });
|
|
102071
|
+
inspectorBackend.registerEnum("SmartCardEmulation.Disposition", { LeaveCard: "leave-card", ResetCard: "reset-card", UnpowerCard: "unpower-card", EjectCard: "eject-card" });
|
|
102072
|
+
inspectorBackend.registerEnum("SmartCardEmulation.ConnectionState", { Absent: "absent", Present: "present", Swallowed: "swallowed", Powered: "powered", Negotiable: "negotiable", Specific: "specific" });
|
|
102073
|
+
inspectorBackend.registerEnum("SmartCardEmulation.Protocol", { T0: "t0", T1: "t1", Raw: "raw" });
|
|
102074
|
+
inspectorBackend.registerEvent("SmartCardEmulation.establishContextRequested", ["requestId"]);
|
|
102075
|
+
inspectorBackend.registerEvent("SmartCardEmulation.releaseContextRequested", ["requestId", "contextId"]);
|
|
102076
|
+
inspectorBackend.registerEvent("SmartCardEmulation.listReadersRequested", ["requestId", "contextId"]);
|
|
102077
|
+
inspectorBackend.registerEvent("SmartCardEmulation.getStatusChangeRequested", ["requestId", "contextId", "readerStates", "timeout"]);
|
|
102078
|
+
inspectorBackend.registerEvent("SmartCardEmulation.cancelRequested", ["requestId", "contextId"]);
|
|
102079
|
+
inspectorBackend.registerEvent("SmartCardEmulation.connectRequested", ["requestId", "contextId", "reader", "shareMode", "preferredProtocols"]);
|
|
102080
|
+
inspectorBackend.registerEvent("SmartCardEmulation.disconnectRequested", ["requestId", "handle", "disposition"]);
|
|
102081
|
+
inspectorBackend.registerEvent("SmartCardEmulation.transmitRequested", ["requestId", "handle", "data", "protocol"]);
|
|
102082
|
+
inspectorBackend.registerEvent("SmartCardEmulation.controlRequested", ["requestId", "handle", "controlCode", "data"]);
|
|
102083
|
+
inspectorBackend.registerEvent("SmartCardEmulation.getAttribRequested", ["requestId", "handle", "attribId"]);
|
|
102084
|
+
inspectorBackend.registerEvent("SmartCardEmulation.setAttribRequested", ["requestId", "handle", "attribId", "data"]);
|
|
102085
|
+
inspectorBackend.registerEvent("SmartCardEmulation.statusRequested", ["requestId", "handle"]);
|
|
102086
|
+
inspectorBackend.registerEvent("SmartCardEmulation.beginTransactionRequested", ["requestId", "handle"]);
|
|
102087
|
+
inspectorBackend.registerEvent("SmartCardEmulation.endTransactionRequested", ["requestId", "handle", "disposition"]);
|
|
102088
|
+
inspectorBackend.registerCommand("SmartCardEmulation.enable", [], [], "Enables the |SmartCardEmulation| domain.");
|
|
102089
|
+
inspectorBackend.registerCommand("SmartCardEmulation.disable", [], [], "Disables the |SmartCardEmulation| domain.");
|
|
102090
|
+
inspectorBackend.registerCommand("SmartCardEmulation.reportEstablishContextResult", [{ "name": "requestId", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "contextId", "type": "number", "optional": false, "description": "", "typeRef": null }], [], "Reports the successful result of a |SCardEstablishContext| call. This maps to: PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext");
|
|
102091
|
+
inspectorBackend.registerCommand("SmartCardEmulation.reportReleaseContextResult", [{ "name": "requestId", "type": "string", "optional": false, "description": "", "typeRef": null }], [], "Reports the successful result of a |SCardReleaseContext| call. This maps to: PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext");
|
|
102092
|
+
inspectorBackend.registerCommand("SmartCardEmulation.reportListReadersResult", [{ "name": "requestId", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "readers", "type": "array", "optional": false, "description": "", "typeRef": "string" }], [], "Reports the successful result of a |SCardListReaders| call. This maps to: PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa");
|
|
102093
|
+
inspectorBackend.registerCommand("SmartCardEmulation.reportGetStatusChangeResult", [{ "name": "requestId", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "readerStates", "type": "array", "optional": false, "description": "", "typeRef": "SmartCardEmulation.ReaderStateOut" }], [], "Reports the successful result of a |SCardGetStatusChange| call. This maps to: PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea");
|
|
102094
|
+
inspectorBackend.registerCommand("SmartCardEmulation.reportBeginTransactionResult", [{ "name": "requestId", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "handle", "type": "number", "optional": false, "description": "", "typeRef": null }], [], "Reports the result of a |SCardBeginTransaction| call. On success, this creates a new transaction object. This maps to: PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction");
|
|
102095
|
+
inspectorBackend.registerCommand("SmartCardEmulation.reportPlainResult", [{ "name": "requestId", "type": "string", "optional": false, "description": "", "typeRef": null }], [], "Reports the successful result of a call that returns only a result code. Used for: |SCardCancel|, |SCardDisconnect|, |SCardSetAttrib|, |SCardEndTransaction|. This maps to: 1. SCardCancel PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel 2. SCardDisconnect PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect 3. SCardSetAttrib PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib 4. SCardEndTransaction PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction");
|
|
102096
|
+
inspectorBackend.registerCommand("SmartCardEmulation.reportConnectResult", [{ "name": "requestId", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "handle", "type": "number", "optional": false, "description": "", "typeRef": null }, { "name": "activeProtocol", "type": "string", "optional": true, "description": "", "typeRef": "SmartCardEmulation.Protocol" }], [], "Reports the successful result of a |SCardConnect| call. This maps to: PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta");
|
|
102097
|
+
inspectorBackend.registerCommand("SmartCardEmulation.reportDataResult", [{ "name": "requestId", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "data", "type": "string", "optional": false, "description": "", "typeRef": null }], [], "Reports the successful result of a call that sends back data on success. Used for |SCardTransmit|, |SCardControl|, and |SCardGetAttrib|. This maps to: 1. SCardTransmit PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit 2. SCardControl PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol 3. SCardGetAttrib PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib");
|
|
102098
|
+
inspectorBackend.registerCommand("SmartCardEmulation.reportStatusResult", [{ "name": "requestId", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "readerName", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "state", "type": "string", "optional": false, "description": "", "typeRef": "SmartCardEmulation.ConnectionState" }, { "name": "atr", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "protocol", "type": "string", "optional": true, "description": "", "typeRef": "SmartCardEmulation.Protocol" }], [], "Reports the successful result of a |SCardStatus| call. This maps to: PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa");
|
|
102099
|
+
inspectorBackend.registerCommand("SmartCardEmulation.reportError", [{ "name": "requestId", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "resultCode", "type": "string", "optional": false, "description": "", "typeRef": "SmartCardEmulation.ResultCode" }], [], "Reports an error result for the given request.");
|
|
102100
|
+
inspectorBackend.registerType("SmartCardEmulation.ReaderStateFlags", [{ "name": "unaware", "type": "boolean", "optional": true, "description": "", "typeRef": null }, { "name": "ignore", "type": "boolean", "optional": true, "description": "", "typeRef": null }, { "name": "changed", "type": "boolean", "optional": true, "description": "", "typeRef": null }, { "name": "unknown", "type": "boolean", "optional": true, "description": "", "typeRef": null }, { "name": "unavailable", "type": "boolean", "optional": true, "description": "", "typeRef": null }, { "name": "empty", "type": "boolean", "optional": true, "description": "", "typeRef": null }, { "name": "present", "type": "boolean", "optional": true, "description": "", "typeRef": null }, { "name": "exclusive", "type": "boolean", "optional": true, "description": "", "typeRef": null }, { "name": "inuse", "type": "boolean", "optional": true, "description": "", "typeRef": null }, { "name": "mute", "type": "boolean", "optional": true, "description": "", "typeRef": null }, { "name": "unpowered", "type": "boolean", "optional": true, "description": "", "typeRef": null }]);
|
|
102101
|
+
inspectorBackend.registerType("SmartCardEmulation.ProtocolSet", [{ "name": "t0", "type": "boolean", "optional": true, "description": "", "typeRef": null }, { "name": "t1", "type": "boolean", "optional": true, "description": "", "typeRef": null }, { "name": "raw", "type": "boolean", "optional": true, "description": "", "typeRef": null }]);
|
|
102102
|
+
inspectorBackend.registerType("SmartCardEmulation.ReaderStateIn", [{ "name": "reader", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "currentState", "type": "object", "optional": false, "description": "", "typeRef": "SmartCardEmulation.ReaderStateFlags" }, { "name": "currentInsertionCount", "type": "number", "optional": false, "description": "", "typeRef": null }]);
|
|
102103
|
+
inspectorBackend.registerType("SmartCardEmulation.ReaderStateOut", [{ "name": "reader", "type": "string", "optional": false, "description": "", "typeRef": null }, { "name": "eventState", "type": "object", "optional": false, "description": "", "typeRef": "SmartCardEmulation.ReaderStateFlags" }, { "name": "eventCount", "type": "number", "optional": false, "description": "", "typeRef": null }, { "name": "atr", "type": "string", "optional": false, "description": "", "typeRef": null }]);
|
|
101870
102104
|
inspectorBackend.registerEnum("Storage.StorageType", { Cookies: "cookies", File_systems: "file_systems", Indexeddb: "indexeddb", Local_storage: "local_storage", Shader_cache: "shader_cache", Websql: "websql", Service_workers: "service_workers", Cache_storage: "cache_storage", Interest_groups: "interest_groups", Shared_storage: "shared_storage", Storage_buckets: "storage_buckets", All: "all", Other: "other" });
|
|
101871
102105
|
inspectorBackend.registerEnum("Storage.InterestGroupAccessType", { Join: "join", Leave: "leave", Update: "update", Loaded: "loaded", Bid: "bid", Win: "win", AdditionalBid: "additionalBid", AdditionalBidWin: "additionalBidWin", TopLevelBid: "topLevelBid", TopLevelAdditionalBid: "topLevelAdditionalBid", Clear: "clear" });
|
|
101872
102106
|
inspectorBackend.registerEnum("Storage.InterestGroupAuctionEventType", { Started: "started", ConfigResolved: "configResolved" });
|
|
@@ -105146,7 +105380,7 @@ var IssueCreated;
|
|
|
105146
105380
|
IssueCreated[IssueCreated["SharedArrayBufferIssue::TransferIssue"] = 36] = "SharedArrayBufferIssue::TransferIssue";
|
|
105147
105381
|
IssueCreated[IssueCreated["SharedArrayBufferIssue::CreationIssue"] = 37] = "SharedArrayBufferIssue::CreationIssue";
|
|
105148
105382
|
IssueCreated[IssueCreated["LowTextContrastIssue"] = 41] = "LowTextContrastIssue";
|
|
105149
|
-
IssueCreated[IssueCreated["CorsIssue::
|
|
105383
|
+
IssueCreated[IssueCreated["CorsIssue::InsecureLocalNetwork"] = 42] = "CorsIssue::InsecureLocalNetwork";
|
|
105150
105384
|
IssueCreated[IssueCreated["CorsIssue::InvalidHeaders"] = 44] = "CorsIssue::InvalidHeaders";
|
|
105151
105385
|
IssueCreated[IssueCreated["CorsIssue::WildcardOriginWithCredentials"] = 45] = "CorsIssue::WildcardOriginWithCredentials";
|
|
105152
105386
|
IssueCreated[IssueCreated["CorsIssue::PreflightResponseInvalid"] = 46] = "CorsIssue::PreflightResponseInvalid";
|
|
@@ -105165,7 +105399,6 @@ var IssueCreated;
|
|
|
105165
105399
|
IssueCreated[IssueCreated["DeprecationIssue"] = 60] = "DeprecationIssue";
|
|
105166
105400
|
IssueCreated[IssueCreated["ClientHintIssue::MetaTagAllowListInvalidOrigin"] = 61] = "ClientHintIssue::MetaTagAllowListInvalidOrigin";
|
|
105167
105401
|
IssueCreated[IssueCreated["ClientHintIssue::MetaTagModifiedHTML"] = 62] = "ClientHintIssue::MetaTagModifiedHTML";
|
|
105168
|
-
IssueCreated[IssueCreated["CorsIssue::PreflightAllowPrivateNetworkError"] = 63] = "CorsIssue::PreflightAllowPrivateNetworkError";
|
|
105169
105402
|
IssueCreated[IssueCreated["GenericIssue::CrossOriginPortalPostMessageError"] = 64] = "GenericIssue::CrossOriginPortalPostMessageError";
|
|
105170
105403
|
IssueCreated[IssueCreated["GenericIssue::FormLabelForNameError"] = 65] = "GenericIssue::FormLabelForNameError";
|
|
105171
105404
|
IssueCreated[IssueCreated["GenericIssue::FormDuplicateIdForInputError"] = 66] = "GenericIssue::FormDuplicateIdForInputError";
|
|
@@ -105180,10 +105413,6 @@ var IssueCreated;
|
|
|
105180
105413
|
IssueCreated[IssueCreated["GenericIssue::FormInputHasWrongButWellIntendedAutocompleteValueError"] = 75] = "GenericIssue::FormInputHasWrongButWellIntendedAutocompleteValueError";
|
|
105181
105414
|
IssueCreated[IssueCreated["StylesheetLoadingIssue::LateImportRule"] = 76] = "StylesheetLoadingIssue::LateImportRule";
|
|
105182
105415
|
IssueCreated[IssueCreated["StylesheetLoadingIssue::RequestFailed"] = 77] = "StylesheetLoadingIssue::RequestFailed";
|
|
105183
|
-
IssueCreated[IssueCreated["CorsIssue::PreflightMissingPrivateNetworkAccessId"] = 78] = "CorsIssue::PreflightMissingPrivateNetworkAccessId";
|
|
105184
|
-
IssueCreated[IssueCreated["CorsIssue::PreflightMissingPrivateNetworkAccessName"] = 79] = "CorsIssue::PreflightMissingPrivateNetworkAccessName";
|
|
105185
|
-
IssueCreated[IssueCreated["CorsIssue::PrivateNetworkAccessPermissionUnavailable"] = 80] = "CorsIssue::PrivateNetworkAccessPermissionUnavailable";
|
|
105186
|
-
IssueCreated[IssueCreated["CorsIssue::PrivateNetworkAccessPermissionDenied"] = 81] = "CorsIssue::PrivateNetworkAccessPermissionDenied";
|
|
105187
105416
|
IssueCreated[IssueCreated["CookieIssue::WarnThirdPartyPhaseout::ReadCookie"] = 82] = "CookieIssue::WarnThirdPartyPhaseout::ReadCookie";
|
|
105188
105417
|
IssueCreated[IssueCreated["CookieIssue::WarnThirdPartyPhaseout::SetCookie"] = 83] = "CookieIssue::WarnThirdPartyPhaseout::SetCookie";
|
|
105189
105418
|
IssueCreated[IssueCreated["CookieIssue::ExcludeThirdPartyPhaseout::ReadCookie"] = 84] = "CookieIssue::ExcludeThirdPartyPhaseout::ReadCookie";
|
|
@@ -105216,7 +105445,8 @@ var IssueCreated;
|
|
|
105216
105445
|
IssueCreated[IssueCreated["CorsIssue::LocalNetworkAccessPermissionDenied"] = 111] = "CorsIssue::LocalNetworkAccessPermissionDenied";
|
|
105217
105446
|
IssueCreated[IssueCreated["SRIMessageSignatureIssue::ValidationFailedIntegrityMismatch"] = 112] = "SRIMessageSignatureIssue::ValidationFailedIntegrityMismatch";
|
|
105218
105447
|
IssueCreated[IssueCreated["ElementAccessibilityIssue::InteractiveContentSummaryDescendant"] = 113] = "ElementAccessibilityIssue::InteractiveContentSummaryDescendant";
|
|
105219
|
-
IssueCreated[IssueCreated["
|
|
105448
|
+
IssueCreated[IssueCreated["CorsIssue::InvalidLocalNetworkAccess"] = 114] = "CorsIssue::InvalidLocalNetworkAccess";
|
|
105449
|
+
IssueCreated[IssueCreated["MAX_VALUE"] = 115] = "MAX_VALUE";
|
|
105220
105450
|
})(IssueCreated || (IssueCreated = {}));
|
|
105221
105451
|
var Language;
|
|
105222
105452
|
(function (Language) {
|
|
@@ -105845,7 +106075,7 @@ const generatedProperties = [
|
|
|
105845
106075
|
"font-variation-settings",
|
|
105846
106076
|
"font-weight",
|
|
105847
106077
|
"forced-color-adjust",
|
|
105848
|
-
"
|
|
106078
|
+
"frame-sizing",
|
|
105849
106079
|
"grid-auto-columns",
|
|
105850
106080
|
"grid-auto-flow",
|
|
105851
106081
|
"grid-auto-rows",
|
|
@@ -105864,6 +106094,7 @@ const generatedProperties = [
|
|
|
105864
106094
|
"hyphenate-character",
|
|
105865
106095
|
"hyphenate-limit-chars",
|
|
105866
106096
|
"hyphens",
|
|
106097
|
+
"image-animation",
|
|
105867
106098
|
"image-orientation",
|
|
105868
106099
|
"image-rendering",
|
|
105869
106100
|
"inherits",
|
|
@@ -105899,6 +106130,7 @@ const generatedProperties = [
|
|
|
105899
106130
|
"margin-left",
|
|
105900
106131
|
"margin-right",
|
|
105901
106132
|
"margin-top",
|
|
106133
|
+
"margin-trim",
|
|
105902
106134
|
"marker-end",
|
|
105903
106135
|
"marker-mid",
|
|
105904
106136
|
"marker-start",
|
|
@@ -106004,6 +106236,7 @@ const generatedProperties = [
|
|
|
106004
106236
|
"ruby-align",
|
|
106005
106237
|
"ruby-overhang",
|
|
106006
106238
|
"ruby-position",
|
|
106239
|
+
"rule-overlap",
|
|
106007
106240
|
"rx",
|
|
106008
106241
|
"ry",
|
|
106009
106242
|
"scale",
|
|
@@ -106091,10 +106324,10 @@ const generatedProperties = [
|
|
|
106091
106324
|
"text-wrap-mode",
|
|
106092
106325
|
"text-wrap-style",
|
|
106093
106326
|
"timeline-scope",
|
|
106327
|
+
"timeline-trigger-activation-range-end",
|
|
106328
|
+
"timeline-trigger-activation-range-start",
|
|
106094
106329
|
"timeline-trigger-active-range-end",
|
|
106095
106330
|
"timeline-trigger-active-range-start",
|
|
106096
|
-
"timeline-trigger-entry-range-end",
|
|
106097
|
-
"timeline-trigger-entry-range-start",
|
|
106098
106331
|
"timeline-trigger-name",
|
|
106099
106332
|
"timeline-trigger-source",
|
|
106100
106333
|
"top",
|
|
@@ -107069,8 +107302,7 @@ const generatedProperties = [
|
|
|
107069
107302
|
"inherited": false,
|
|
107070
107303
|
"keywords": [
|
|
107071
107304
|
"none",
|
|
107072
|
-
"
|
|
107073
|
-
"spanning-item",
|
|
107305
|
+
"normal",
|
|
107074
107306
|
"intersection"
|
|
107075
107307
|
],
|
|
107076
107308
|
"name": "column-rule-break"
|
|
@@ -107943,6 +108175,16 @@ const generatedProperties = [
|
|
|
107943
108175
|
],
|
|
107944
108176
|
"name": "forced-color-adjust"
|
|
107945
108177
|
},
|
|
108178
|
+
{
|
|
108179
|
+
"keywords": [
|
|
108180
|
+
"auto",
|
|
108181
|
+
"content-width",
|
|
108182
|
+
"content-height",
|
|
108183
|
+
"content-block-size",
|
|
108184
|
+
"content-inline-size"
|
|
108185
|
+
],
|
|
108186
|
+
"name": "frame-sizing"
|
|
108187
|
+
},
|
|
107946
108188
|
{
|
|
107947
108189
|
"longhands": [
|
|
107948
108190
|
"row-gap",
|
|
@@ -107950,14 +108192,6 @@ const generatedProperties = [
|
|
|
107950
108192
|
],
|
|
107951
108193
|
"name": "gap"
|
|
107952
108194
|
},
|
|
107953
|
-
{
|
|
107954
|
-
"inherited": false,
|
|
107955
|
-
"keywords": [
|
|
107956
|
-
"row-over-column",
|
|
107957
|
-
"column-over-row"
|
|
107958
|
-
],
|
|
107959
|
-
"name": "gap-rule-overlap"
|
|
107960
|
-
},
|
|
107961
108195
|
{
|
|
107962
108196
|
"longhands": [
|
|
107963
108197
|
"grid-template-rows",
|
|
@@ -108024,6 +108258,7 @@ const generatedProperties = [
|
|
|
108024
108258
|
"longhands": [
|
|
108025
108259
|
"grid-template-areas",
|
|
108026
108260
|
"grid-template-columns",
|
|
108261
|
+
"grid-template-rows",
|
|
108027
108262
|
"grid-lanes-direction"
|
|
108028
108263
|
],
|
|
108029
108264
|
"name": "grid-lanes"
|
|
@@ -108125,6 +108360,15 @@ const generatedProperties = [
|
|
|
108125
108360
|
],
|
|
108126
108361
|
"name": "hyphens"
|
|
108127
108362
|
},
|
|
108363
|
+
{
|
|
108364
|
+
"inherited": true,
|
|
108365
|
+
"keywords": [
|
|
108366
|
+
"normal",
|
|
108367
|
+
"running",
|
|
108368
|
+
"paused"
|
|
108369
|
+
],
|
|
108370
|
+
"name": "image-animation"
|
|
108371
|
+
},
|
|
108128
108372
|
{
|
|
108129
108373
|
"inherited": true,
|
|
108130
108374
|
"name": "image-orientation"
|
|
@@ -108398,6 +108642,9 @@ const generatedProperties = [
|
|
|
108398
108642
|
],
|
|
108399
108643
|
"name": "margin-top"
|
|
108400
108644
|
},
|
|
108645
|
+
{
|
|
108646
|
+
"name": "margin-trim"
|
|
108647
|
+
},
|
|
108401
108648
|
{
|
|
108402
108649
|
"inherited": true,
|
|
108403
108650
|
"longhands": [
|
|
@@ -108993,7 +109240,9 @@ const generatedProperties = [
|
|
|
108993
109240
|
"none",
|
|
108994
109241
|
"flip-block",
|
|
108995
109242
|
"flip-inline",
|
|
108996
|
-
"flip-start"
|
|
109243
|
+
"flip-start",
|
|
109244
|
+
"flip-x",
|
|
109245
|
+
"flip-y"
|
|
108997
109246
|
],
|
|
108998
109247
|
"name": "position-try-fallbacks"
|
|
108999
109248
|
},
|
|
@@ -109099,8 +109348,7 @@ const generatedProperties = [
|
|
|
109099
109348
|
"inherited": false,
|
|
109100
109349
|
"keywords": [
|
|
109101
109350
|
"none",
|
|
109102
|
-
"
|
|
109103
|
-
"spanning-item",
|
|
109351
|
+
"normal",
|
|
109104
109352
|
"intersection"
|
|
109105
109353
|
],
|
|
109106
109354
|
"name": "row-rule-break"
|
|
@@ -109264,6 +109512,14 @@ const generatedProperties = [
|
|
|
109264
109512
|
],
|
|
109265
109513
|
"name": "rule-interior-inset"
|
|
109266
109514
|
},
|
|
109515
|
+
{
|
|
109516
|
+
"inherited": false,
|
|
109517
|
+
"keywords": [
|
|
109518
|
+
"row-over-column",
|
|
109519
|
+
"column-over-row"
|
|
109520
|
+
],
|
|
109521
|
+
"name": "rule-overlap"
|
|
109522
|
+
},
|
|
109267
109523
|
{
|
|
109268
109524
|
"longhands": [
|
|
109269
109525
|
"column-rule-style",
|
|
@@ -109271,6 +109527,13 @@ const generatedProperties = [
|
|
|
109271
109527
|
],
|
|
109272
109528
|
"name": "rule-style"
|
|
109273
109529
|
},
|
|
109530
|
+
{
|
|
109531
|
+
"longhands": [
|
|
109532
|
+
"column-rule-visibility-items",
|
|
109533
|
+
"row-rule-visibility-items"
|
|
109534
|
+
],
|
|
109535
|
+
"name": "rule-visibility-items"
|
|
109536
|
+
},
|
|
109274
109537
|
{
|
|
109275
109538
|
"longhands": [
|
|
109276
109539
|
"column-rule-width",
|
|
@@ -109921,8 +110184,8 @@ const generatedProperties = [
|
|
|
109921
110184
|
"longhands": [
|
|
109922
110185
|
"timeline-trigger-name",
|
|
109923
110186
|
"timeline-trigger-source",
|
|
109924
|
-
"timeline-trigger-
|
|
109925
|
-
"timeline-trigger-
|
|
110187
|
+
"timeline-trigger-activation-range-start",
|
|
110188
|
+
"timeline-trigger-activation-range-end",
|
|
109926
110189
|
"timeline-trigger-active-range-start",
|
|
109927
110190
|
"timeline-trigger-active-range-end"
|
|
109928
110191
|
],
|
|
@@ -109930,29 +110193,29 @@ const generatedProperties = [
|
|
|
109930
110193
|
},
|
|
109931
110194
|
{
|
|
109932
110195
|
"longhands": [
|
|
109933
|
-
"timeline-trigger-
|
|
109934
|
-
"timeline-trigger-
|
|
110196
|
+
"timeline-trigger-activation-range-start",
|
|
110197
|
+
"timeline-trigger-activation-range-end"
|
|
109935
110198
|
],
|
|
109936
|
-
"name": "timeline-trigger-
|
|
110199
|
+
"name": "timeline-trigger-activation-range"
|
|
109937
110200
|
},
|
|
109938
110201
|
{
|
|
109939
|
-
"name": "timeline-trigger-
|
|
110202
|
+
"name": "timeline-trigger-activation-range-end"
|
|
109940
110203
|
},
|
|
109941
110204
|
{
|
|
109942
|
-
"name": "timeline-trigger-
|
|
110205
|
+
"name": "timeline-trigger-activation-range-start"
|
|
109943
110206
|
},
|
|
109944
110207
|
{
|
|
109945
110208
|
"longhands": [
|
|
109946
|
-
"timeline-trigger-
|
|
109947
|
-
"timeline-trigger-
|
|
110209
|
+
"timeline-trigger-active-range-start",
|
|
110210
|
+
"timeline-trigger-active-range-end"
|
|
109948
110211
|
],
|
|
109949
|
-
"name": "timeline-trigger-
|
|
110212
|
+
"name": "timeline-trigger-active-range"
|
|
109950
110213
|
},
|
|
109951
110214
|
{
|
|
109952
|
-
"name": "timeline-trigger-
|
|
110215
|
+
"name": "timeline-trigger-active-range-end"
|
|
109953
110216
|
},
|
|
109954
110217
|
{
|
|
109955
|
-
"name": "timeline-trigger-
|
|
110218
|
+
"name": "timeline-trigger-active-range-start"
|
|
109956
110219
|
},
|
|
109957
110220
|
{
|
|
109958
110221
|
"name": "timeline-trigger-name"
|
|
@@ -110845,8 +111108,7 @@ const generatedPropertyValues = {
|
|
|
110845
111108
|
"column-rule-break": {
|
|
110846
111109
|
"values": [
|
|
110847
111110
|
"none",
|
|
110848
|
-
"
|
|
110849
|
-
"spanning-item",
|
|
111111
|
+
"normal",
|
|
110850
111112
|
"intersection"
|
|
110851
111113
|
]
|
|
110852
111114
|
},
|
|
@@ -111373,10 +111635,13 @@ const generatedPropertyValues = {
|
|
|
111373
111635
|
"preserve-parent-color"
|
|
111374
111636
|
]
|
|
111375
111637
|
},
|
|
111376
|
-
"
|
|
111638
|
+
"frame-sizing": {
|
|
111377
111639
|
"values": [
|
|
111378
|
-
"
|
|
111379
|
-
"
|
|
111640
|
+
"auto",
|
|
111641
|
+
"content-width",
|
|
111642
|
+
"content-height",
|
|
111643
|
+
"content-block-size",
|
|
111644
|
+
"content-inline-size"
|
|
111380
111645
|
]
|
|
111381
111646
|
},
|
|
111382
111647
|
"grid-auto-columns": {
|
|
@@ -111469,6 +111734,13 @@ const generatedPropertyValues = {
|
|
|
111469
111734
|
"auto"
|
|
111470
111735
|
]
|
|
111471
111736
|
},
|
|
111737
|
+
"image-animation": {
|
|
111738
|
+
"values": [
|
|
111739
|
+
"normal",
|
|
111740
|
+
"running",
|
|
111741
|
+
"paused"
|
|
111742
|
+
]
|
|
111743
|
+
},
|
|
111472
111744
|
"image-rendering": {
|
|
111473
111745
|
"values": [
|
|
111474
111746
|
"auto",
|
|
@@ -111902,7 +112174,9 @@ const generatedPropertyValues = {
|
|
|
111902
112174
|
"none",
|
|
111903
112175
|
"flip-block",
|
|
111904
112176
|
"flip-inline",
|
|
111905
|
-
"flip-start"
|
|
112177
|
+
"flip-start",
|
|
112178
|
+
"flip-x",
|
|
112179
|
+
"flip-y"
|
|
111906
112180
|
]
|
|
111907
112181
|
},
|
|
111908
112182
|
"position-try-order": {
|
|
@@ -111967,8 +112241,7 @@ const generatedPropertyValues = {
|
|
|
111967
112241
|
"row-rule-break": {
|
|
111968
112242
|
"values": [
|
|
111969
112243
|
"none",
|
|
111970
|
-
"
|
|
111971
|
-
"spanning-item",
|
|
112244
|
+
"normal",
|
|
111972
112245
|
"intersection"
|
|
111973
112246
|
]
|
|
111974
112247
|
},
|
|
@@ -112025,6 +112298,12 @@ const generatedPropertyValues = {
|
|
|
112025
112298
|
"under"
|
|
112026
112299
|
]
|
|
112027
112300
|
},
|
|
112301
|
+
"rule-overlap": {
|
|
112302
|
+
"values": [
|
|
112303
|
+
"row-over-column",
|
|
112304
|
+
"column-over-row"
|
|
112305
|
+
]
|
|
112306
|
+
},
|
|
112028
112307
|
"rx": {
|
|
112029
112308
|
"values": [
|
|
112030
112309
|
"auto"
|
|
@@ -118069,6 +118348,10 @@ class CSSMatchedStyles {
|
|
|
118069
118348
|
const domCascade = this.#styleToDOMCascade.get(property.ownerStyle);
|
|
118070
118349
|
return domCascade ? domCascade.propertyState(property) : null;
|
|
118071
118350
|
}
|
|
118351
|
+
isPropertyOverriddenByAnimation(property) {
|
|
118352
|
+
const domCascade = this.#styleToDOMCascade.get(property.ownerStyle);
|
|
118353
|
+
return domCascade?.isPropertyOverriddenByAnimation(property) ?? false;
|
|
118354
|
+
}
|
|
118072
118355
|
resetActiveProperties() {
|
|
118073
118356
|
assertNotNullOrUndefined(this.#mainDOMCascade);
|
|
118074
118357
|
assertNotNullOrUndefined(this.#pseudoDOMCascades);
|
|
@@ -118119,6 +118402,7 @@ class NodeCascade {
|
|
|
118119
118402
|
styles;
|
|
118120
118403
|
#isInherited;
|
|
118121
118404
|
propertiesState = new Map();
|
|
118405
|
+
propertiesOverriddenByAnimation = new Set();
|
|
118122
118406
|
activeProperties = new Map();
|
|
118123
118407
|
#node;
|
|
118124
118408
|
constructor(matchedStyles, styles, node, isInherited, isHighlightPseudoCascade = false) {
|
|
@@ -118130,6 +118414,7 @@ class NodeCascade {
|
|
|
118130
118414
|
}
|
|
118131
118415
|
computeActiveProperties() {
|
|
118132
118416
|
this.propertiesState.clear();
|
|
118417
|
+
this.propertiesOverriddenByAnimation.clear();
|
|
118133
118418
|
this.activeProperties.clear();
|
|
118134
118419
|
for (let i = this.styles.length - 1; i >= 0; i--) {
|
|
118135
118420
|
const style = this.styles[i];
|
|
@@ -118214,6 +118499,10 @@ class NodeCascade {
|
|
|
118214
118499
|
}
|
|
118215
118500
|
if (activeProperty) {
|
|
118216
118501
|
this.propertiesState.set(activeProperty, "Overloaded" );
|
|
118502
|
+
if (propertyWithHigherSpecificity.ownerStyle.type === Type$3.Animation ||
|
|
118503
|
+
propertyWithHigherSpecificity.ownerStyle.type === Type$3.Transition) {
|
|
118504
|
+
this.propertiesOverriddenByAnimation.add(activeProperty);
|
|
118505
|
+
}
|
|
118217
118506
|
}
|
|
118218
118507
|
this.propertiesState.set(propertyWithHigherSpecificity, "Active" );
|
|
118219
118508
|
this.activeProperties.set(canonicalName, propertyWithHigherSpecificity);
|
|
@@ -118294,6 +118583,7 @@ function* forEach(array, startAfter) {
|
|
|
118294
118583
|
}
|
|
118295
118584
|
class DOMInheritanceCascade {
|
|
118296
118585
|
#propertiesState = new Map();
|
|
118586
|
+
#propertiesOverriddenByAnimation = new Set();
|
|
118297
118587
|
#availableCSSVariables = new Map();
|
|
118298
118588
|
#computedCSSVariables = new Map();
|
|
118299
118589
|
#styleToNodeCascade = new Map();
|
|
@@ -118604,9 +118894,14 @@ class DOMInheritanceCascade {
|
|
|
118604
118894
|
this.ensureInitialized();
|
|
118605
118895
|
return this.#propertiesState.get(property) || null;
|
|
118606
118896
|
}
|
|
118897
|
+
isPropertyOverriddenByAnimation(property) {
|
|
118898
|
+
this.ensureInitialized();
|
|
118899
|
+
return this.#propertiesOverriddenByAnimation.has(property);
|
|
118900
|
+
}
|
|
118607
118901
|
reset() {
|
|
118608
118902
|
this.#initialized = false;
|
|
118609
118903
|
this.#propertiesState.clear();
|
|
118904
|
+
this.#propertiesOverriddenByAnimation.clear();
|
|
118610
118905
|
this.#availableCSSVariables.clear();
|
|
118611
118906
|
this.#computedCSSVariables.clear();
|
|
118612
118907
|
}
|
|
@@ -118621,11 +118916,20 @@ class DOMInheritanceCascade {
|
|
|
118621
118916
|
for (const [property, state] of nodeCascade.propertiesState) {
|
|
118622
118917
|
if (state === "Overloaded" ) {
|
|
118623
118918
|
this.#propertiesState.set(property, "Overloaded" );
|
|
118919
|
+
if (nodeCascade.propertiesOverriddenByAnimation.has(property)) {
|
|
118920
|
+
this.#propertiesOverriddenByAnimation.add(property);
|
|
118921
|
+
}
|
|
118624
118922
|
continue;
|
|
118625
118923
|
}
|
|
118626
118924
|
const canonicalName = cssMetadata().canonicalPropertyName(property.name);
|
|
118627
118925
|
if (activeProperties.has(canonicalName)) {
|
|
118628
118926
|
this.#propertiesState.set(property, "Overloaded" );
|
|
118927
|
+
const activeProperty = activeProperties.get(canonicalName);
|
|
118928
|
+
if (activeProperty &&
|
|
118929
|
+
(activeProperty.ownerStyle.type === Type$3.Animation ||
|
|
118930
|
+
activeProperty.ownerStyle.type === Type$3.Transition)) {
|
|
118931
|
+
this.#propertiesOverriddenByAnimation.add(property);
|
|
118932
|
+
}
|
|
118629
118933
|
continue;
|
|
118630
118934
|
}
|
|
118631
118935
|
activeProperties.set(canonicalName, property);
|
|
@@ -120210,6 +120514,7 @@ class NetworkRequest extends ObjectWrapper {
|
|
|
120210
120514
|
#exemptedResponseCookies = [];
|
|
120211
120515
|
#responseCookiesPartitionKey = null;
|
|
120212
120516
|
#responseCookiesPartitionKeyOpaque = null;
|
|
120517
|
+
#deviceBoundSessionUsages = [];
|
|
120213
120518
|
#siteHasCookieInOtherPartition = false;
|
|
120214
120519
|
localizedFailDescription = null;
|
|
120215
120520
|
#url;
|
|
@@ -121163,6 +121468,7 @@ class NetworkRequest extends ObjectWrapper {
|
|
|
121163
121468
|
this.setRequestHeaders(extraRequestInfo.requestHeaders);
|
|
121164
121469
|
this.#hasExtraRequestInfo = true;
|
|
121165
121470
|
this.setRequestHeadersText('');
|
|
121471
|
+
this.#deviceBoundSessionUsages = extraRequestInfo.deviceBoundSessionUsages || [];
|
|
121166
121472
|
this.#clientSecurityState = extraRequestInfo.clientSecurityState;
|
|
121167
121473
|
this.#appliedNetworkConditionsId = extraRequestInfo.appliedNetworkConditionsId;
|
|
121168
121474
|
if (extraRequestInfo.connectTiming) {
|
|
@@ -121174,6 +121480,9 @@ class NetworkRequest extends ObjectWrapper {
|
|
|
121174
121480
|
setAppliedNetworkConditions(appliedNetworkConditionsId) {
|
|
121175
121481
|
this.#appliedNetworkConditionsId = appliedNetworkConditionsId;
|
|
121176
121482
|
}
|
|
121483
|
+
getDeviceBoundSessionUsages() {
|
|
121484
|
+
return this.#deviceBoundSessionUsages;
|
|
121485
|
+
}
|
|
121177
121486
|
hasExtraRequestInfo() {
|
|
121178
121487
|
return this.#hasExtraRequestInfo;
|
|
121179
121488
|
}
|
|
@@ -121859,13 +122168,6 @@ class NetworkManager extends SDKModel {
|
|
|
121859
122168
|
if (Settings.instance().moduleSetting('cache-disabled').get()) {
|
|
121860
122169
|
void this.#networkAgent.invoke_setCacheDisabled({ cacheDisabled: true });
|
|
121861
122170
|
}
|
|
121862
|
-
if (hostConfig.devToolsPrivacyUI?.enabled &&
|
|
121863
|
-
hostConfig.thirdPartyCookieControls?.managedBlockThirdPartyCookies !== true &&
|
|
121864
|
-
(Settings.instance().createSetting('cookie-control-override-enabled', undefined).get() ||
|
|
121865
|
-
Settings.instance().createSetting('grace-period-mitigation-disabled', undefined).get() ||
|
|
121866
|
-
Settings.instance().createSetting('heuristic-mitigation-disabled', undefined).get())) {
|
|
121867
|
-
this.cookieControlFlagsSettingChanged();
|
|
121868
|
-
}
|
|
121869
122171
|
void this.#networkAgent.invoke_enable({
|
|
121870
122172
|
maxPostDataSize: MAX_EAGER_POST_REQUEST_BODY_LENGTH,
|
|
121871
122173
|
enableDurableMessages: hostConfig.devToolsEnableDurableMessages?.enabled,
|
|
@@ -121882,15 +122184,6 @@ class NetworkManager extends SDKModel {
|
|
|
121882
122184
|
Settings.instance()
|
|
121883
122185
|
.moduleSetting('cache-disabled')
|
|
121884
122186
|
.addChangeListener(this.cacheDisabledSettingChanged, this);
|
|
121885
|
-
Settings.instance()
|
|
121886
|
-
.createSetting('cookie-control-override-enabled', undefined)
|
|
121887
|
-
.addChangeListener(this.cookieControlFlagsSettingChanged, this);
|
|
121888
|
-
Settings.instance()
|
|
121889
|
-
.createSetting('grace-period-mitigation-disabled', undefined)
|
|
121890
|
-
.addChangeListener(this.cookieControlFlagsSettingChanged, this);
|
|
121891
|
-
Settings.instance()
|
|
121892
|
-
.createSetting('heuristic-mitigation-disabled', undefined)
|
|
121893
|
-
.addChangeListener(this.cookieControlFlagsSettingChanged, this);
|
|
121894
122187
|
}
|
|
121895
122188
|
static forRequest(request) {
|
|
121896
122189
|
return requestToManagerMap.get(request) || null;
|
|
@@ -122019,20 +122312,6 @@ class NetworkManager extends SDKModel {
|
|
|
122019
122312
|
cacheDisabledSettingChanged({ data: enabled }) {
|
|
122020
122313
|
void this.#networkAgent.invoke_setCacheDisabled({ cacheDisabled: enabled });
|
|
122021
122314
|
}
|
|
122022
|
-
cookieControlFlagsSettingChanged() {
|
|
122023
|
-
const overridesEnabled = Boolean(Settings.instance().createSetting('cookie-control-override-enabled', undefined).get());
|
|
122024
|
-
const gracePeriodEnabled = overridesEnabled ?
|
|
122025
|
-
Boolean(Settings.instance().createSetting('grace-period-mitigation-disabled', undefined).get()) :
|
|
122026
|
-
false;
|
|
122027
|
-
const heuristicEnabled = overridesEnabled ?
|
|
122028
|
-
Boolean(Settings.instance().createSetting('heuristic-mitigation-disabled', undefined).get()) :
|
|
122029
|
-
false;
|
|
122030
|
-
void this.#networkAgent.invoke_setCookieControls({
|
|
122031
|
-
enableThirdPartyCookieRestriction: overridesEnabled,
|
|
122032
|
-
disableThirdPartyCookieMetadata: gracePeriodEnabled,
|
|
122033
|
-
disableThirdPartyCookieHeuristics: heuristicEnabled,
|
|
122034
|
-
});
|
|
122035
|
-
}
|
|
122036
122315
|
dispose() {
|
|
122037
122316
|
Settings.instance()
|
|
122038
122317
|
.moduleSetting('cache-disabled')
|
|
@@ -122484,7 +122763,7 @@ class NetworkDispatcher {
|
|
|
122484
122763
|
}
|
|
122485
122764
|
requestIntercepted({}) {
|
|
122486
122765
|
}
|
|
122487
|
-
requestWillBeSentExtraInfo({ requestId, associatedCookies, headers, clientSecurityState, connectTiming, siteHasCookieInOtherPartition, appliedNetworkConditionsId }) {
|
|
122766
|
+
requestWillBeSentExtraInfo({ requestId, associatedCookies, headers, deviceBoundSessionUsages, clientSecurityState, connectTiming, siteHasCookieInOtherPartition, appliedNetworkConditionsId }) {
|
|
122488
122767
|
const blockedRequestCookies = [];
|
|
122489
122768
|
const includedRequestCookies = [];
|
|
122490
122769
|
for (const { blockedReasons, exemptionReason, cookie } of associatedCookies) {
|
|
@@ -122499,6 +122778,7 @@ class NetworkDispatcher {
|
|
|
122499
122778
|
blockedRequestCookies,
|
|
122500
122779
|
includedRequestCookies,
|
|
122501
122780
|
requestHeaders: this.headersMapToHeadersArray(headers),
|
|
122781
|
+
deviceBoundSessionUsages,
|
|
122502
122782
|
clientSecurityState,
|
|
122503
122783
|
connectTiming,
|
|
122504
122784
|
siteHasCookieInOtherPartition,
|
|
@@ -124108,14 +124388,19 @@ function decode(sourceMap, options = DEFAULT_DECODE_OPTIONS) {
|
|
|
124108
124388
|
return decodeMap(sourceMap, opts);
|
|
124109
124389
|
}
|
|
124110
124390
|
function decodeMap(sourceMap, options) {
|
|
124111
|
-
if (!sourceMap.scopes || !sourceMap.names)
|
|
124112
|
-
return { scopes: [], ranges: [] };
|
|
124391
|
+
if (!sourceMap.scopes || !sourceMap.names) {
|
|
124392
|
+
return { scopes: [], ranges: [], hasVariableAndBindingInfo: false };
|
|
124393
|
+
}
|
|
124113
124394
|
return new Decoder(sourceMap.scopes, sourceMap.names, options).decode();
|
|
124114
124395
|
}
|
|
124115
124396
|
function decodeIndexMap(sourceMap, options) {
|
|
124116
|
-
const scopeInfo = {
|
|
124397
|
+
const scopeInfo = {
|
|
124398
|
+
scopes: [],
|
|
124399
|
+
ranges: [],
|
|
124400
|
+
hasVariableAndBindingInfo: false,
|
|
124401
|
+
};
|
|
124117
124402
|
for (const section of sourceMap.sections) {
|
|
124118
|
-
const { scopes, ranges } = decode(section.map, {
|
|
124403
|
+
const { scopes, ranges, hasVariableAndBindingInfo } = decode(section.map, {
|
|
124119
124404
|
...options,
|
|
124120
124405
|
generatedOffset: section.offset,
|
|
124121
124406
|
});
|
|
@@ -124123,6 +124408,7 @@ function decodeIndexMap(sourceMap, options) {
|
|
|
124123
124408
|
scopeInfo.scopes.push(scope);
|
|
124124
124409
|
for (const range of ranges)
|
|
124125
124410
|
scopeInfo.ranges.push(range);
|
|
124411
|
+
scopeInfo.hasVariableAndBindingInfo ||= hasVariableAndBindingInfo;
|
|
124126
124412
|
}
|
|
124127
124413
|
return scopeInfo;
|
|
124128
124414
|
}
|
|
@@ -124150,6 +124436,8 @@ class Decoder {
|
|
|
124150
124436
|
#rangeStack = [];
|
|
124151
124437
|
#flatOriginalScopes = [];
|
|
124152
124438
|
#subRangeBindingsForRange = new Map();
|
|
124439
|
+
#seenOriginalScopeVariables = false;
|
|
124440
|
+
#seenGeneratedRangeBindings = false;
|
|
124153
124441
|
constructor(scopes, names, options) {
|
|
124154
124442
|
this.#encodedScopes = scopes;
|
|
124155
124443
|
this.#names = names;
|
|
@@ -124187,6 +124475,7 @@ class Decoder {
|
|
|
124187
124475
|
variableIdxs.push(iter.nextSignedVLQ());
|
|
124188
124476
|
}
|
|
124189
124477
|
this.#handleOriginalScopeVariablesItem(variableIdxs);
|
|
124478
|
+
this.#seenOriginalScopeVariables = true;
|
|
124190
124479
|
break;
|
|
124191
124480
|
}
|
|
124192
124481
|
case 2 : {
|
|
@@ -124229,6 +124518,7 @@ class Decoder {
|
|
|
124229
124518
|
valueIdxs.push(iter.nextUnsignedVLQ());
|
|
124230
124519
|
}
|
|
124231
124520
|
this.#handleGeneratedRangeBindingsItem(valueIdxs);
|
|
124521
|
+
this.#seenGeneratedRangeBindings = true;
|
|
124232
124522
|
break;
|
|
124233
124523
|
}
|
|
124234
124524
|
case 7 : {
|
|
@@ -124242,6 +124532,7 @@ class Decoder {
|
|
|
124242
124532
|
]);
|
|
124243
124533
|
}
|
|
124244
124534
|
this.#recordGeneratedSubRangeBindingItem(variableIndex, bindings);
|
|
124535
|
+
this.#seenGeneratedRangeBindings = true;
|
|
124245
124536
|
break;
|
|
124246
124537
|
}
|
|
124247
124538
|
case 8 : {
|
|
@@ -124268,10 +124559,17 @@ class Decoder {
|
|
|
124268
124559
|
if (this.#rangeStack.length > 0) {
|
|
124269
124560
|
this.#throwInStrictMode("Encountered GENERATED_RANGE_START without matching END!");
|
|
124270
124561
|
}
|
|
124271
|
-
const info = {
|
|
124562
|
+
const info = {
|
|
124563
|
+
scopes: this.#scopes,
|
|
124564
|
+
ranges: this.#ranges,
|
|
124565
|
+
hasVariableAndBindingInfo: this.#seenOriginalScopeVariables &&
|
|
124566
|
+
this.#seenGeneratedRangeBindings,
|
|
124567
|
+
};
|
|
124272
124568
|
this.#scopes = [];
|
|
124273
124569
|
this.#ranges = [];
|
|
124274
124570
|
this.#flatOriginalScopes = [];
|
|
124571
|
+
this.#seenOriginalScopeVariables = false;
|
|
124572
|
+
this.#seenGeneratedRangeBindings = false;
|
|
124275
124573
|
return info;
|
|
124276
124574
|
}
|
|
124277
124575
|
#throwInStrictMode(message) {
|
|
@@ -125107,7 +125405,8 @@ class SourceMapScopesInfo {
|
|
|
125107
125405
|
return Boolean(this.#originalScopes[sourceIdx]);
|
|
125108
125406
|
}
|
|
125109
125407
|
isEmpty() {
|
|
125110
|
-
|
|
125408
|
+
const noScopes = this.#originalScopes.every(scope => scope === null);
|
|
125409
|
+
return noScopes && !this.#generatedRanges.length;
|
|
125111
125410
|
}
|
|
125112
125411
|
addOriginalScopesAtIndex(sourceIdx, scope) {
|
|
125113
125412
|
if (!this.#originalScopes[sourceIdx]) {
|
|
@@ -128235,6 +128534,10 @@ class OverlayModel extends SDKModel {
|
|
|
128235
128534
|
async hasStyleSheetText(url) {
|
|
128236
128535
|
return await this.#windowControls.initializeStyleSheetText(url);
|
|
128237
128536
|
}
|
|
128537
|
+
inspectPanelShowRequested(_event) {
|
|
128538
|
+
}
|
|
128539
|
+
inspectedElementWindowRestored(_event) {
|
|
128540
|
+
}
|
|
128238
128541
|
}
|
|
128239
128542
|
class WindowControls {
|
|
128240
128543
|
#cssModel;
|
|
@@ -128451,7 +128754,13 @@ class HeapProfilerModel extends SDKModel {
|
|
|
128451
128754
|
return Boolean(response.getError());
|
|
128452
128755
|
}
|
|
128453
128756
|
async takeHeapSnapshot(heapSnapshotOptions) {
|
|
128454
|
-
await
|
|
128757
|
+
await TargetManager.instance().suspendAllTargets('heap-snapshot');
|
|
128758
|
+
try {
|
|
128759
|
+
await this.#heapProfilerAgent.invoke_takeHeapSnapshot(heapSnapshotOptions);
|
|
128760
|
+
}
|
|
128761
|
+
finally {
|
|
128762
|
+
await TargetManager.instance().resumeAllTargets();
|
|
128763
|
+
}
|
|
128455
128764
|
}
|
|
128456
128765
|
async startTrackingHeapObjects(recordAllocationStacks) {
|
|
128457
128766
|
const response = await this.#heapProfilerAgent.invoke_startTrackingHeapObjects({ trackAllocations: recordAllocationStacks });
|
|
@@ -132247,7 +132556,6 @@ class DebuggerModel extends SDKModel {
|
|
|
132247
132556
|
#skipAllPausesTimeout = 0;
|
|
132248
132557
|
#beforePausedCallback = null;
|
|
132249
132558
|
#computeAutoStepRangesCallback = null;
|
|
132250
|
-
#expandCallFramesCallback = null;
|
|
132251
132559
|
evaluateOnCallFrameCallback = null;
|
|
132252
132560
|
#synchronizeBreakpointsCallback = null;
|
|
132253
132561
|
#breakpointResolvedEventTarget = new ObjectWrapper();
|
|
@@ -132605,9 +132913,6 @@ class DebuggerModel extends SDKModel {
|
|
|
132605
132913
|
setBeforePausedCallback(callback) {
|
|
132606
132914
|
this.#beforePausedCallback = callback;
|
|
132607
132915
|
}
|
|
132608
|
-
setExpandCallFramesCallback(callback) {
|
|
132609
|
-
this.#expandCallFramesCallback = callback;
|
|
132610
|
-
}
|
|
132611
132916
|
setEvaluateOnCallFrameCallback(callback) {
|
|
132612
132917
|
this.evaluateOnCallFrameCallback = callback;
|
|
132613
132918
|
}
|
|
@@ -132624,7 +132929,6 @@ class DebuggerModel extends SDKModel {
|
|
|
132624
132929
|
return;
|
|
132625
132930
|
}
|
|
132626
132931
|
const pausedDetails = new DebuggerPausedDetails(this, callFrames, reason, auxData, breakpointIds, asyncStackTrace, asyncStackTraceId);
|
|
132627
|
-
await this.#expandCallFrames(pausedDetails);
|
|
132628
132932
|
if (this.continueToLocationCallback) {
|
|
132629
132933
|
const callback = this.continueToLocationCallback;
|
|
132630
132934
|
this.continueToLocationCallback = null;
|
|
@@ -132644,11 +132948,6 @@ class DebuggerModel extends SDKModel {
|
|
|
132644
132948
|
fireEvent('DevTools.DebuggerPaused');
|
|
132645
132949
|
}
|
|
132646
132950
|
}
|
|
132647
|
-
async #expandCallFrames(pausedDetails) {
|
|
132648
|
-
if (this.#expandCallFramesCallback) {
|
|
132649
|
-
pausedDetails.callFrames = await this.#expandCallFramesCallback.call(null, pausedDetails.callFrames);
|
|
132650
|
-
}
|
|
132651
|
-
}
|
|
132652
132951
|
resumedScript() {
|
|
132653
132952
|
this.resetDebuggerPausedDetails();
|
|
132654
132953
|
this.dispatchEventToListeners(Events$5.DebuggerResumed, this);
|
|
@@ -132684,10 +132983,6 @@ class DebuggerModel extends SDKModel {
|
|
|
132684
132983
|
this.#sourceMapManager.attachSourceMap(script, script.sourceURL, script.sourceMapURL);
|
|
132685
132984
|
}
|
|
132686
132985
|
async setDebugInfoURL(script, _externalURL) {
|
|
132687
|
-
if (this.#expandCallFramesCallback && this.#debuggerPausedDetails) {
|
|
132688
|
-
this.#debuggerPausedDetails.callFrames =
|
|
132689
|
-
await this.#expandCallFramesCallback.call(null, this.#debuggerPausedDetails.callFrames);
|
|
132690
|
-
}
|
|
132691
132986
|
this.dispatchEventToListeners(Events$5.DebugInfoAttached, script);
|
|
132692
132987
|
}
|
|
132693
132988
|
executionContextDestroyed(executionContext) {
|
|
@@ -133010,7 +133305,6 @@ class CallFrame {
|
|
|
133010
133305
|
functionName;
|
|
133011
133306
|
#functionLocation;
|
|
133012
133307
|
#returnValue;
|
|
133013
|
-
missingDebugInfoDetails;
|
|
133014
133308
|
exception;
|
|
133015
133309
|
canBeRestarted;
|
|
133016
133310
|
constructor(debuggerModel, script, payload, inlineFrameIndex, functionName, exception = null) {
|
|
@@ -133022,7 +133316,6 @@ class CallFrame {
|
|
|
133022
133316
|
this.#localScope = null;
|
|
133023
133317
|
this.inlineFrameIndex = inlineFrameIndex || 0;
|
|
133024
133318
|
this.functionName = functionName ?? payload.functionName;
|
|
133025
|
-
this.missingDebugInfoDetails = null;
|
|
133026
133319
|
this.canBeRestarted = Boolean(payload.canBeRestarted);
|
|
133027
133320
|
this.exception = exception;
|
|
133028
133321
|
for (let i = 0; i < payload.scopeChain.length; ++i) {
|
|
@@ -135033,7 +135326,6 @@ class ConsoleMessage {
|
|
|
135033
135326
|
#exceptionId = undefined;
|
|
135034
135327
|
#affectedResources;
|
|
135035
135328
|
category;
|
|
135036
|
-
isCookieReportIssue = false;
|
|
135037
135329
|
stackFrameWithBreakpoint = null;
|
|
135038
135330
|
#originatingBreakpointType = null;
|
|
135039
135331
|
constructor(runtimeModel, source, level, messageText, details) {
|
|
@@ -135053,7 +135345,6 @@ class ConsoleMessage {
|
|
|
135053
135345
|
this.workerId = details?.workerId;
|
|
135054
135346
|
this.#affectedResources = details?.affectedResources;
|
|
135055
135347
|
this.category = details?.category;
|
|
135056
|
-
this.isCookieReportIssue = Boolean(details?.isCookieReportIssue);
|
|
135057
135348
|
if (!this.#executionContextId && this.#runtimeModel) {
|
|
135058
135349
|
if (this.scriptId) {
|
|
135059
135350
|
this.#executionContextId = this.#runtimeModel.executionContextIdForScriptId(this.scriptId);
|
|
@@ -137865,28 +138156,20 @@ class DebuggableFrameImpl {
|
|
|
137865
138156
|
// Copyright 2025 The Chromium Authors
|
|
137866
138157
|
class DebuggableFrameFlavor {
|
|
137867
138158
|
static #last;
|
|
137868
|
-
|
|
137869
|
-
uiSourceCode;
|
|
137870
|
-
name;
|
|
137871
|
-
line;
|
|
137872
|
-
column;
|
|
137873
|
-
missingDebugInfo;
|
|
137874
|
-
sdkFrame;
|
|
138159
|
+
frame;
|
|
137875
138160
|
constructor(frame) {
|
|
137876
|
-
this.
|
|
137877
|
-
|
|
137878
|
-
|
|
137879
|
-
this.
|
|
137880
|
-
this.column = frame.column;
|
|
137881
|
-
this.missingDebugInfo = frame.missingDebugInfo;
|
|
137882
|
-
this.sdkFrame = frame.sdkFrame;
|
|
138161
|
+
this.frame = frame;
|
|
138162
|
+
}
|
|
138163
|
+
get sdkFrame() {
|
|
138164
|
+
return this.frame.sdkFrame;
|
|
137883
138165
|
}
|
|
137884
138166
|
static for(frame) {
|
|
137885
138167
|
function equals(a, b) {
|
|
137886
138168
|
return a.url === b.url && a.uiSourceCode === b.uiSourceCode && a.name === b.name && a.line === b.line &&
|
|
137887
|
-
a.column === b.column && a.sdkFrame === b.sdkFrame
|
|
138169
|
+
a.column === b.column && a.sdkFrame === b.sdkFrame &&
|
|
138170
|
+
JSON.stringify(a.missingDebugInfo) === JSON.stringify(b.missingDebugInfo);
|
|
137888
138171
|
}
|
|
137889
|
-
if (!DebuggableFrameFlavor.#last || !equals(DebuggableFrameFlavor.#last, frame)) {
|
|
138172
|
+
if (!DebuggableFrameFlavor.#last || !equals(DebuggableFrameFlavor.#last.frame, frame)) {
|
|
137890
138173
|
DebuggableFrameFlavor.#last = new DebuggableFrameFlavor(frame);
|
|
137891
138174
|
}
|
|
137892
138175
|
return DebuggableFrameFlavor.#last;
|
|
@@ -140654,8 +140937,6 @@ const UIStrings$L = {
|
|
|
140654
140937
|
loadedDebugSymbolsForButDidnt: '[{PH1}] Loaded debug symbols for {PH2}, but didn\'t find any source files',
|
|
140655
140938
|
loadedDebugSymbolsForFound: '[{PH1}] Loaded debug symbols for {PH2}, found {PH3} source file(s)',
|
|
140656
140939
|
failedToLoadDebugSymbolsFor: '[{PH1}] Failed to load debug symbols for {PH2} ({PH3})',
|
|
140657
|
-
failedToLoadDebugSymbolsForFunction: 'No debug information for function "{PH1}"',
|
|
140658
|
-
debugSymbolsIncomplete: 'The debug information for function {PH1} is incomplete',
|
|
140659
140940
|
};
|
|
140660
140941
|
const str_$K = registerUIStrings('models/bindings/DebuggerLanguagePlugins.ts', UIStrings$L);
|
|
140661
140942
|
const i18nString$x = getLocalizedString.bind(undefined, str_$K);
|
|
@@ -140991,44 +141272,18 @@ class DebuggerLanguagePluginManager {
|
|
|
140991
141272
|
callFrameForStopId(stopId) {
|
|
140992
141273
|
return this.callFrameByStopId.get(stopId);
|
|
140993
141274
|
}
|
|
140994
|
-
expandCallFrames(callFrames) {
|
|
140995
|
-
return Promise
|
|
140996
|
-
.all(callFrames.map(async (callFrame) => {
|
|
140997
|
-
const functionInfo = await this.getFunctionInfo(callFrame.script, callFrame.location());
|
|
140998
|
-
if (functionInfo) {
|
|
140999
|
-
if ('frames' in functionInfo && functionInfo.frames.length) {
|
|
141000
|
-
return functionInfo.frames.map(({ name }, index) => callFrame.createVirtualCallFrame(index, name));
|
|
141001
|
-
}
|
|
141002
|
-
if ('missingSymbolFiles' in functionInfo && functionInfo.missingSymbolFiles.length) {
|
|
141003
|
-
const resources = functionInfo.missingSymbolFiles;
|
|
141004
|
-
const details = i18nString$x(UIStrings$L.debugSymbolsIncomplete, { PH1: callFrame.functionName });
|
|
141005
|
-
callFrame.missingDebugInfoDetails = { details, resources };
|
|
141006
|
-
}
|
|
141007
|
-
else {
|
|
141008
|
-
callFrame.missingDebugInfoDetails = {
|
|
141009
|
-
details: i18nString$x(UIStrings$L.failedToLoadDebugSymbolsForFunction, { PH1: callFrame.functionName }),
|
|
141010
|
-
resources: [],
|
|
141011
|
-
};
|
|
141012
|
-
}
|
|
141013
|
-
}
|
|
141014
|
-
return callFrame;
|
|
141015
|
-
}))
|
|
141016
|
-
.then(callFrames => callFrames.flat());
|
|
141017
|
-
}
|
|
141018
141275
|
modelAdded(debuggerModel) {
|
|
141019
141276
|
this.#debuggerModelToData.set(debuggerModel, new ModelData$1(debuggerModel, this.#workspace));
|
|
141020
141277
|
debuggerModel.addEventListener(Events$5.GlobalObjectCleared, this.globalObjectCleared, this);
|
|
141021
141278
|
debuggerModel.addEventListener(Events$5.ParsedScriptSource, this.parsedScriptSource, this);
|
|
141022
141279
|
debuggerModel.addEventListener(Events$5.DebuggerResumed, this.debuggerResumed, this);
|
|
141023
141280
|
debuggerModel.setEvaluateOnCallFrameCallback(this.evaluateOnCallFrame.bind(this));
|
|
141024
|
-
debuggerModel.setExpandCallFramesCallback(this.expandCallFrames.bind(this));
|
|
141025
141281
|
}
|
|
141026
141282
|
modelRemoved(debuggerModel) {
|
|
141027
141283
|
debuggerModel.removeEventListener(Events$5.GlobalObjectCleared, this.globalObjectCleared, this);
|
|
141028
141284
|
debuggerModel.removeEventListener(Events$5.ParsedScriptSource, this.parsedScriptSource, this);
|
|
141029
141285
|
debuggerModel.removeEventListener(Events$5.DebuggerResumed, this.debuggerResumed, this);
|
|
141030
141286
|
debuggerModel.setEvaluateOnCallFrameCallback(null);
|
|
141031
|
-
debuggerModel.setExpandCallFramesCallback(null);
|
|
141032
141287
|
const modelData = this.#debuggerModelToData.get(debuggerModel);
|
|
141033
141288
|
if (modelData) {
|
|
141034
141289
|
modelData.dispose();
|
|
@@ -141209,23 +141464,13 @@ class DebuggerLanguagePluginManager {
|
|
|
141209
141464
|
const framePromises = functionInfo.frames.map(async ({ name }, index) => {
|
|
141210
141465
|
const rawLocation = new Location$1(script.debuggerModel, script.scriptId, frame.lineNumber, frame.columnNumber, index);
|
|
141211
141466
|
const uiLocation = await this.rawLocationToUILocation(rawLocation);
|
|
141212
|
-
return
|
|
141213
|
-
uiSourceCode: uiLocation?.uiSourceCode,
|
|
141214
|
-
url: uiLocation ? undefined : frame.url,
|
|
141215
|
-
name,
|
|
141216
|
-
line: uiLocation?.lineNumber ?? frame.lineNumber,
|
|
141217
|
-
column: uiLocation?.columnNumber ?? frame.columnNumber,
|
|
141218
|
-
};
|
|
141467
|
+
return translatedFromUILocation(uiLocation, name, frame);
|
|
141219
141468
|
});
|
|
141220
141469
|
translatedFrames.push(await Promise.all(framePromises));
|
|
141221
141470
|
return true;
|
|
141222
141471
|
}
|
|
141223
|
-
const
|
|
141224
|
-
|
|
141225
|
-
name: frame.functionName,
|
|
141226
|
-
line: frame.lineNumber,
|
|
141227
|
-
column: frame.columnNumber,
|
|
141228
|
-
};
|
|
141472
|
+
const uiLocation = await this.#debuggerWorkspaceBinding.rawLocationToUILocation(new Location$1(script.debuggerModel, script.scriptId, frame.lineNumber, frame.columnNumber));
|
|
141473
|
+
const mappedFrame = translatedFromUILocation(uiLocation, frame.functionName, frame);
|
|
141229
141474
|
if ('missingSymbolFiles' in functionInfo && functionInfo.missingSymbolFiles.length) {
|
|
141230
141475
|
translatedFrames.push([{
|
|
141231
141476
|
...mappedFrame,
|
|
@@ -141244,6 +141489,24 @@ class DebuggerLanguagePluginManager {
|
|
|
141244
141489
|
}]);
|
|
141245
141490
|
}
|
|
141246
141491
|
return true;
|
|
141492
|
+
function translatedFromUILocation(uiLocation, name, fallback) {
|
|
141493
|
+
if (uiLocation) {
|
|
141494
|
+
return {
|
|
141495
|
+
uiSourceCode: uiLocation.uiSourceCode,
|
|
141496
|
+
url: undefined,
|
|
141497
|
+
name,
|
|
141498
|
+
line: uiLocation.lineNumber,
|
|
141499
|
+
column: uiLocation.columnNumber ?? -1,
|
|
141500
|
+
};
|
|
141501
|
+
}
|
|
141502
|
+
return {
|
|
141503
|
+
uiSourceCode: undefined,
|
|
141504
|
+
url: fallback.url,
|
|
141505
|
+
name: fallback.functionName,
|
|
141506
|
+
line: fallback.lineNumber,
|
|
141507
|
+
column: fallback.columnNumber,
|
|
141508
|
+
};
|
|
141509
|
+
}
|
|
141247
141510
|
}
|
|
141248
141511
|
scriptsForUISourceCode(uiSourceCode) {
|
|
141249
141512
|
for (const modelData of this.#debuggerModelToData.values()) {
|
|
@@ -141321,14 +141584,12 @@ class DebuggerLanguagePluginManager {
|
|
|
141321
141584
|
rawModuleHandle.scripts.push(script);
|
|
141322
141585
|
}
|
|
141323
141586
|
void rawModuleHandle.addRawModulePromise.then(sourceFileURLs => {
|
|
141324
|
-
if (
|
|
141325
|
-
|
|
141326
|
-
|
|
141327
|
-
|
|
141328
|
-
modelData.addSourceFiles(script, sourceFileURLs);
|
|
141329
|
-
void this.#debuggerWorkspaceBinding.updateLocations(script);
|
|
141330
|
-
}
|
|
141587
|
+
if (script.debuggerModel.scriptForId(script.scriptId) === script) {
|
|
141588
|
+
const modelData = this.#debuggerModelToData.get(script.debuggerModel);
|
|
141589
|
+
if (modelData && Array.isArray(sourceFileURLs)) {
|
|
141590
|
+
modelData.addSourceFiles(script, sourceFileURLs);
|
|
141331
141591
|
}
|
|
141592
|
+
void this.#debuggerWorkspaceBinding.updateLocations(script);
|
|
141332
141593
|
}
|
|
141333
141594
|
});
|
|
141334
141595
|
return;
|
|
@@ -142046,8 +142307,6 @@ class DebuggerWorkspaceBinding {
|
|
|
142046
142307
|
this.ignoreListManager = ignoreListManager;
|
|
142047
142308
|
this.workspace = workspace;
|
|
142048
142309
|
this.#debuggerModelToData = new Map();
|
|
142049
|
-
targetManager.addModelListener(DebuggerModel, Events$5.GlobalObjectCleared, this.globalObjectCleared, this);
|
|
142050
|
-
targetManager.addModelListener(DebuggerModel, Events$5.DebuggerResumed, this.debuggerResumed, this);
|
|
142051
142310
|
targetManager.observeModels(DebuggerModel, this);
|
|
142052
142311
|
this.ignoreListManager.addEventListener("IGNORED_SCRIPT_RANGES_UPDATED" , event => this.updateLocations(event.data));
|
|
142053
142312
|
this.#liveLocationPromises = new Set();
|
|
@@ -142172,21 +142431,6 @@ class DebuggerWorkspaceBinding {
|
|
|
142172
142431
|
this.recordLiveLocationChange(locationPromise);
|
|
142173
142432
|
return await locationPromise;
|
|
142174
142433
|
}
|
|
142175
|
-
async createCallFrameLiveLocation(location, updateDelegate, locationPool) {
|
|
142176
|
-
const script = location.script();
|
|
142177
|
-
if (!script) {
|
|
142178
|
-
return null;
|
|
142179
|
-
}
|
|
142180
|
-
const debuggerModel = location.debuggerModel;
|
|
142181
|
-
const liveLocationPromise = this.createLiveLocation(location, updateDelegate, locationPool);
|
|
142182
|
-
this.recordLiveLocationChange(liveLocationPromise);
|
|
142183
|
-
const liveLocation = await liveLocationPromise;
|
|
142184
|
-
if (!liveLocation) {
|
|
142185
|
-
return null;
|
|
142186
|
-
}
|
|
142187
|
-
this.registerCallFrameLiveLocation(debuggerModel, liveLocation);
|
|
142188
|
-
return liveLocation;
|
|
142189
|
-
}
|
|
142190
142434
|
async rawLocationToUILocation(rawLocation) {
|
|
142191
142435
|
const uiLocation = await this.pluginManager.rawLocationToUILocation(rawLocation);
|
|
142192
142436
|
if (uiLocation) {
|
|
@@ -142297,19 +142541,6 @@ class DebuggerWorkspaceBinding {
|
|
|
142297
142541
|
const scripts = this.pluginManager.scriptsForUISourceCode(uiSourceCode);
|
|
142298
142542
|
return scripts.every(script => script.isJavaScript());
|
|
142299
142543
|
}
|
|
142300
|
-
globalObjectCleared(event) {
|
|
142301
|
-
this.reset(event.data);
|
|
142302
|
-
}
|
|
142303
|
-
reset(debuggerModel) {
|
|
142304
|
-
const modelData = this.#debuggerModelToData.get(debuggerModel);
|
|
142305
|
-
if (!modelData) {
|
|
142306
|
-
return;
|
|
142307
|
-
}
|
|
142308
|
-
for (const location of modelData.callFrameLocations.values()) {
|
|
142309
|
-
this.removeLiveLocation(location);
|
|
142310
|
-
}
|
|
142311
|
-
modelData.callFrameLocations.clear();
|
|
142312
|
-
}
|
|
142313
142544
|
resetForTest(target) {
|
|
142314
142545
|
const debuggerModel = target.model(DebuggerModel);
|
|
142315
142546
|
const modelData = this.#debuggerModelToData.get(debuggerModel);
|
|
@@ -142317,22 +142548,12 @@ class DebuggerWorkspaceBinding {
|
|
|
142317
142548
|
modelData.getResourceScriptMapping().resetForTest();
|
|
142318
142549
|
}
|
|
142319
142550
|
}
|
|
142320
|
-
registerCallFrameLiveLocation(debuggerModel, location) {
|
|
142321
|
-
const modelData = this.#debuggerModelToData.get(debuggerModel);
|
|
142322
|
-
if (modelData) {
|
|
142323
|
-
const locations = modelData.callFrameLocations;
|
|
142324
|
-
locations.add(location);
|
|
142325
|
-
}
|
|
142326
|
-
}
|
|
142327
142551
|
removeLiveLocation(location) {
|
|
142328
142552
|
const modelData = this.#debuggerModelToData.get(location.rawLocation.debuggerModel);
|
|
142329
142553
|
if (modelData) {
|
|
142330
142554
|
modelData.disposeLocation(location);
|
|
142331
142555
|
}
|
|
142332
142556
|
}
|
|
142333
|
-
debuggerResumed(event) {
|
|
142334
|
-
this.reset(event.data);
|
|
142335
|
-
}
|
|
142336
142557
|
async shouldPause(debuggerPausedDetails, autoSteppingContext) {
|
|
142337
142558
|
const { callFrames: [frame] } = debuggerPausedDetails;
|
|
142338
142559
|
if (!frame) {
|
|
@@ -142377,7 +142598,6 @@ class DebuggerWorkspaceBinding {
|
|
|
142377
142598
|
class ModelData {
|
|
142378
142599
|
#debuggerModel;
|
|
142379
142600
|
#debuggerWorkspaceBinding;
|
|
142380
|
-
callFrameLocations;
|
|
142381
142601
|
#defaultMapping;
|
|
142382
142602
|
#resourceMapping;
|
|
142383
142603
|
#resourceScriptMapping;
|
|
@@ -142386,7 +142606,6 @@ class ModelData {
|
|
|
142386
142606
|
constructor(debuggerModel, debuggerWorkspaceBinding) {
|
|
142387
142607
|
this.#debuggerModel = debuggerModel;
|
|
142388
142608
|
this.#debuggerWorkspaceBinding = debuggerWorkspaceBinding;
|
|
142389
|
-
this.callFrameLocations = new Set();
|
|
142390
142609
|
const { workspace } = debuggerWorkspaceBinding.resourceMapping;
|
|
142391
142610
|
this.#defaultMapping = new DefaultScriptMapping(debuggerModel, workspace, debuggerWorkspaceBinding);
|
|
142392
142611
|
this.#resourceMapping = debuggerWorkspaceBinding.resourceMapping;
|
|
@@ -143365,6 +143584,12 @@ var foundation = /*#__PURE__*/Object.freeze({
|
|
|
143365
143584
|
Universe: Universe$1
|
|
143366
143585
|
});
|
|
143367
143586
|
|
|
143587
|
+
// Copyright 2020 The Chromium Authors
|
|
143588
|
+
|
|
143589
|
+
var protocol = /*#__PURE__*/Object.freeze({
|
|
143590
|
+
__proto__: null
|
|
143591
|
+
});
|
|
143592
|
+
|
|
143368
143593
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
143369
143594
|
var __commonJS = (cb, mod) => function __require() {
|
|
143370
143595
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
@@ -169379,7 +169604,6 @@ class CookieIssue extends Issue {
|
|
|
169379
169604
|
return new ConsoleMessage(issuesModel.target().model(RuntimeModel), FrontendMessageSource.ISSUE_PANEL, "warning" , UIStrings$h.consoleTpcdErrorMessage, {
|
|
169380
169605
|
url: this.details().request?.url,
|
|
169381
169606
|
affectedResources: { requestId: this.details().request?.requestId, issueId: this.issueId },
|
|
169382
|
-
isCookieReportIssue: true
|
|
169383
169607
|
});
|
|
169384
169608
|
}
|
|
169385
169609
|
return;
|
|
@@ -169603,7 +169827,6 @@ const issueDescriptions$6 = new Map([
|
|
|
169603
169827
|
// Copyright 2020 The Chromium Authors
|
|
169604
169828
|
const UIStrings$g = {
|
|
169605
169829
|
corsLocalNetworkAccess: 'Local Network Access',
|
|
169606
|
-
corsPrivateNetworkAccess: 'Private Network Access',
|
|
169607
169830
|
CORS: 'Cross-Origin Resource Sharing (`CORS`)',
|
|
169608
169831
|
};
|
|
169609
169832
|
const str_$f = registerUIStrings('models/issues_manager/CorsIssue.ts', UIStrings$g);
|
|
@@ -169646,12 +169869,12 @@ function getIssueCode$1(details) {
|
|
|
169646
169869
|
return "CorsIssue::PreflightMissingAllowExternal" ;
|
|
169647
169870
|
case "PreflightInvalidAllowExternal" :
|
|
169648
169871
|
return "CorsIssue::PreflightInvalidAllowExternal" ;
|
|
169649
|
-
case "
|
|
169650
|
-
return "CorsIssue::
|
|
169872
|
+
case "InsecureLocalNetwork" :
|
|
169873
|
+
return "CorsIssue::InsecureLocalNetwork" ;
|
|
169651
169874
|
case "NoCorsRedirectModeNotFollow" :
|
|
169652
169875
|
return "CorsIssue::NoCorsRedirectModeNotFollow" ;
|
|
169653
|
-
case "
|
|
169654
|
-
return "CorsIssue::
|
|
169876
|
+
case "InvalidLocalNetworkAccess" :
|
|
169877
|
+
return "CorsIssue::InvalidLocalNetworkAccess" ;
|
|
169655
169878
|
case "LocalNetworkAccessPermissionDenied" :
|
|
169656
169879
|
return "CorsIssue::LocalNetworkAccessPermissionDenied" ;
|
|
169657
169880
|
}
|
|
@@ -169665,12 +169888,12 @@ class CorsIssue extends Issue {
|
|
|
169665
169888
|
}
|
|
169666
169889
|
getDescription() {
|
|
169667
169890
|
switch (getIssueCode$1(this.details())) {
|
|
169668
|
-
case "CorsIssue::
|
|
169891
|
+
case "CorsIssue::InsecureLocalNetwork" :
|
|
169669
169892
|
return {
|
|
169670
169893
|
file: 'corsInsecurePrivateNetwork.md',
|
|
169671
169894
|
links: [{
|
|
169672
169895
|
link: 'https://developer.chrome.com/blog/private-network-access-update',
|
|
169673
|
-
linkTitle: i18nString$7(UIStrings$g.
|
|
169896
|
+
linkTitle: i18nString$7(UIStrings$g.corsLocalNetworkAccess),
|
|
169674
169897
|
}],
|
|
169675
169898
|
};
|
|
169676
169899
|
case "CorsIssue::InvalidHeaders" :
|
|
@@ -169771,7 +169994,7 @@ class CorsIssue extends Issue {
|
|
|
169771
169994
|
};
|
|
169772
169995
|
case "CorsIssue::PreflightMissingAllowExternal" :
|
|
169773
169996
|
case "CorsIssue::PreflightInvalidAllowExternal" :
|
|
169774
|
-
case "CorsIssue::
|
|
169997
|
+
case "CorsIssue::InvalidLocalNetworkAccess" :
|
|
169775
169998
|
return null;
|
|
169776
169999
|
}
|
|
169777
170000
|
}
|
|
@@ -169780,7 +170003,7 @@ class CorsIssue extends Issue {
|
|
|
169780
170003
|
}
|
|
169781
170004
|
getKind() {
|
|
169782
170005
|
if (this.details().isWarning &&
|
|
169783
|
-
this.details().corsErrorStatus.corsError === "
|
|
170006
|
+
this.details().corsErrorStatus.corsError === "InsecureLocalNetwork" ) {
|
|
169784
170007
|
return "BreakingChange" ;
|
|
169785
170008
|
}
|
|
169786
170009
|
return "PageError" ;
|
|
@@ -172296,7 +172519,6 @@ class IssuesManager extends ObjectWrapper {
|
|
|
172296
172519
|
#thirdPartyCookiePhaseoutIssueCount = new Map();
|
|
172297
172520
|
#issuesById = new Map();
|
|
172298
172521
|
#issuesByOutermostTarget = new Map();
|
|
172299
|
-
#thirdPartyCookiePhaseoutIssueMessageSent = false;
|
|
172300
172522
|
constructor(showThirdPartyIssuesSetting, hideIssueSetting) {
|
|
172301
172523
|
super();
|
|
172302
172524
|
this.showThirdPartyIssuesSetting = showThirdPartyIssuesSetting;
|
|
@@ -172371,7 +172593,6 @@ class IssuesManager extends ObjectWrapper {
|
|
|
172371
172593
|
}
|
|
172372
172594
|
#onIssueAddedEvent(event) {
|
|
172373
172595
|
const { issuesModel, inspectorIssue } = event.data;
|
|
172374
|
-
const isPrivacyUiEnabled = hostConfig.devToolsPrivacyUI?.enabled;
|
|
172375
172596
|
const issues = createIssuesFromProtocolIssue(issuesModel, inspectorIssue);
|
|
172376
172597
|
for (const issue of issues) {
|
|
172377
172598
|
this.addIssue(issuesModel, issue);
|
|
@@ -172379,13 +172600,7 @@ class IssuesManager extends ObjectWrapper {
|
|
|
172379
172600
|
if (!message) {
|
|
172380
172601
|
continue;
|
|
172381
172602
|
}
|
|
172382
|
-
|
|
172383
|
-
if (!is3rdPartyCookiePhaseoutIssue || !isPrivacyUiEnabled || !this.#thirdPartyCookiePhaseoutIssueMessageSent) {
|
|
172384
|
-
issuesModel.target().model(ConsoleModel)?.addMessage(message);
|
|
172385
|
-
}
|
|
172386
|
-
if (is3rdPartyCookiePhaseoutIssue && isPrivacyUiEnabled) {
|
|
172387
|
-
this.#thirdPartyCookiePhaseoutIssueMessageSent = true;
|
|
172388
|
-
}
|
|
172603
|
+
issuesModel.target().model(ConsoleModel)?.addMessage(message);
|
|
172389
172604
|
}
|
|
172390
172605
|
}
|
|
172391
172606
|
addIssue(issuesModel, issue) {
|
|
@@ -172485,7 +172700,6 @@ class IssuesManager extends ObjectWrapper {
|
|
|
172485
172700
|
this.#issuesById.clear();
|
|
172486
172701
|
this.#hiddenIssueCount.clear();
|
|
172487
172702
|
this.#thirdPartyCookiePhaseoutIssueCount.clear();
|
|
172488
|
-
this.#thirdPartyCookiePhaseoutIssueMessageSent = false;
|
|
172489
172703
|
const values = this.hideIssueSetting?.get();
|
|
172490
172704
|
for (const [key, issue] of this.#allIssues) {
|
|
172491
172705
|
if (this.#issueFilter(issue)) {
|
|
@@ -172535,6 +172749,7 @@ var mcp = /*#__PURE__*/Object.freeze({
|
|
|
172535
172749
|
Formatter: formatter,
|
|
172536
172750
|
Foundation: foundation,
|
|
172537
172751
|
I18n: i18n,
|
|
172752
|
+
IgnoreListManager: IgnoreListManager,
|
|
172538
172753
|
Issue: Issue,
|
|
172539
172754
|
IssueAggregator: IssueAggregator,
|
|
172540
172755
|
IssuesManager: IssuesManager,
|
|
@@ -172542,7 +172757,9 @@ var mcp = /*#__PURE__*/Object.freeze({
|
|
|
172542
172757
|
Marked: marked,
|
|
172543
172758
|
PerformanceInsightFormatter: PerformanceInsightFormatter,
|
|
172544
172759
|
PerformanceTraceFormatter: PerformanceTraceFormatter,
|
|
172760
|
+
Protocol: protocol,
|
|
172545
172761
|
ProtocolClient: protocol_client,
|
|
172762
|
+
RuntimeModel: RuntimeModel,
|
|
172546
172763
|
StackTrace: stack_trace,
|
|
172547
172764
|
Target: Target,
|
|
172548
172765
|
TargetManager: TargetManager,
|