@paulirish/trace_engine 0.0.64 → 0.0.65

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.
Files changed (126) hide show
  1. package/.tmp/tsbuildinfo/tsconfig.tsbuildinfo +1 -1
  2. package/core/platform/StringUtilities.d.ts +1 -0
  3. package/core/platform/StringUtilities.js +4 -0
  4. package/core/platform/StringUtilities.js.map +1 -1
  5. package/core/platform/api/HostRuntime.d.ts +5 -3
  6. package/core/platform/api/HostRuntime.js.map +1 -1
  7. package/core/platform/browser/HostRuntime.js +13 -2
  8. package/core/platform/browser/HostRuntime.js.map +1 -1
  9. package/core/platform/node/HostRuntime.js +11 -2
  10. package/core/platform/node/HostRuntime.js.map +1 -1
  11. package/generated/protocol.d.ts +156 -30
  12. package/locales/af.json +37 -1
  13. package/locales/am.json +37 -1
  14. package/locales/ar.json +37 -1
  15. package/locales/as.json +37 -1
  16. package/locales/az.json +37 -1
  17. package/locales/be.json +37 -1
  18. package/locales/bg.json +37 -1
  19. package/locales/bn.json +37 -1
  20. package/locales/bs.json +37 -1
  21. package/locales/ca.json +37 -1
  22. package/locales/cs.json +37 -1
  23. package/locales/cy.json +37 -1
  24. package/locales/da.json +38 -2
  25. package/locales/de.json +37 -1
  26. package/locales/el.json +37 -1
  27. package/locales/en-GB.json +37 -1
  28. package/locales/en-US.json +12 -0
  29. package/locales/en-XL.json +12 -0
  30. package/locales/es-419.json +37 -1
  31. package/locales/es.json +37 -1
  32. package/locales/et.json +37 -1
  33. package/locales/eu.json +37 -1
  34. package/locales/fa.json +37 -1
  35. package/locales/fi.json +37 -1
  36. package/locales/fil.json +37 -1
  37. package/locales/fr-CA.json +37 -1
  38. package/locales/fr.json +37 -1
  39. package/locales/gl.json +37 -1
  40. package/locales/gu.json +37 -1
  41. package/locales/he.json +37 -1
  42. package/locales/hi.json +37 -1
  43. package/locales/hr.json +37 -1
  44. package/locales/hu.json +37 -1
  45. package/locales/hy.json +37 -1
  46. package/locales/id.json +37 -1
  47. package/locales/is.json +37 -1
  48. package/locales/it.json +37 -1
  49. package/locales/ja.json +37 -1
  50. package/locales/ka.json +37 -1
  51. package/locales/kk.json +37 -1
  52. package/locales/km.json +37 -1
  53. package/locales/kn.json +37 -1
  54. package/locales/ko.json +37 -1
  55. package/locales/ky.json +37 -1
  56. package/locales/lo.json +37 -1
  57. package/locales/lt.json +37 -1
  58. package/locales/lv.json +37 -1
  59. package/locales/mk.json +37 -1
  60. package/locales/ml.json +37 -1
  61. package/locales/mn.json +37 -1
  62. package/locales/mr.json +37 -1
  63. package/locales/ms.json +37 -1
  64. package/locales/my.json +37 -1
  65. package/locales/ne.json +37 -1
  66. package/locales/nl.json +37 -1
  67. package/locales/no.json +37 -1
  68. package/locales/or.json +37 -1
  69. package/locales/pa.json +37 -1
  70. package/locales/pl.json +37 -1
  71. package/locales/pt-PT.json +37 -1
  72. package/locales/pt.json +37 -1
  73. package/locales/ro.json +37 -1
  74. package/locales/ru.json +37 -1
  75. package/locales/si.json +37 -1
  76. package/locales/sk.json +37 -1
  77. package/locales/sl.json +37 -1
  78. package/locales/sq.json +37 -1
  79. package/locales/sr-Latn.json +37 -1
  80. package/locales/sr.json +37 -1
  81. package/locales/sv.json +37 -1
  82. package/locales/sw.json +37 -1
  83. package/locales/ta.json +37 -1
  84. package/locales/te.json +37 -1
  85. package/locales/th.json +37 -1
  86. package/locales/tr.json +37 -1
  87. package/locales/uk.json +37 -1
  88. package/locales/ur.json +37 -1
  89. package/locales/uz.json +37 -1
  90. package/locales/vi.json +37 -1
  91. package/locales/zh-HK.json +37 -1
  92. package/locales/zh-TW.json +37 -1
  93. package/locales/zh.json +37 -1
  94. package/locales/zu.json +37 -1
  95. package/models/cpu_profile/cpu_profile-tsconfig.json +0 -3
  96. package/models/trace/extras/TraceTree.js +21 -1
  97. package/models/trace/extras/TraceTree.js.map +1 -1
  98. package/models/trace/extras/extras-tsconfig.json +1 -4
  99. package/models/trace/handlers/FramesHandler.js +19 -13
  100. package/models/trace/handlers/FramesHandler.js.map +1 -1
  101. package/models/trace/handlers/handlers-tsconfig.json +0 -3
  102. package/models/trace/helpers/helpers-tsconfig.json +1 -4
  103. package/models/trace/insights/Common.d.ts +2 -1
  104. package/models/trace/insights/Common.js +11 -0
  105. package/models/trace/insights/Common.js.map +1 -1
  106. package/models/trace/insights/DuplicatedJavaScript.d.ts +4 -0
  107. package/models/trace/insights/DuplicatedJavaScript.js +4 -0
  108. package/models/trace/insights/DuplicatedJavaScript.js.map +1 -1
  109. package/models/trace/insights/FontDisplay.d.ts +4 -0
  110. package/models/trace/insights/FontDisplay.js +4 -0
  111. package/models/trace/insights/FontDisplay.js.map +1 -1
  112. package/models/trace/insights/LegacyJavaScript.d.ts +4 -0
  113. package/models/trace/insights/LegacyJavaScript.js +4 -0
  114. package/models/trace/insights/LegacyJavaScript.js.map +1 -1
  115. package/models/trace/insights/insights-tsconfig.json +1 -1
  116. package/models/trace/lantern/bundle-tsconfig.json +1 -1
  117. package/models/trace/lantern/core/NetworkAnalyzer.d.ts +4 -4
  118. package/models/trace/lantern/core/NetworkAnalyzer.js +15 -20
  119. package/models/trace/lantern/core/NetworkAnalyzer.js.map +1 -1
  120. package/models/trace/lantern/devtools_entrypoint-bundle-typescript-tsconfig.json +13 -1
  121. package/models/trace/trace-tsconfig.json +1 -13
  122. package/models/trace/types/File.d.ts +6 -1
  123. package/models/trace/types/File.js.map +1 -1
  124. package/models/trace/types/types-tsconfig.json +0 -3
  125. package/package.json +1 -1
  126. package/models/trace/lantern/lantern-tsconfig.json +0 -59
@@ -1 +1 @@
1
- {"version":3,"file":"HostRuntime.js","sourceRoot":"","sources":["../../../../../../../front_end/core/platform/api/HostRuntime.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,yEAAyE;AACzE,6BAA6B","sourcesContent":["// Copyright 2025 The Chromium Authors\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Provides abstractions for host features that require different implementations depending\n * on whether DevTools runs in the browser or Node.js\n */\nexport interface HostRuntime {\n createWorker(url: string): Worker;\n workerScope: WorkerScope;\n}\n\n/**\n * Abstracts away the differences between browser web workers and Node.js worker threads.\n */\nexport interface Worker {\n postMessage(message: unknown, transfer?: WorkerTransferable[]): void;\n\n dispose(): void;\n terminate(immediately?: boolean): void;\n\n set onmessage(listener: (event: WorkerMessageEvent) => void);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n set onerror(listener: (event: any) => void);\n}\n\ntype WorkerMessagePort = typeof MessagePort.prototype;\n\n/**\n * Currently we only transfer MessagePorts to workers, but it's possible to add\n * more things (like ReadableStream) as long as it's present in all runtimes.\n */\nexport type WorkerTransferable = WorkerMessagePort;\n\n/**\n * Used by workers to communicate with their parent.\n */\nexport interface WorkerScope {\n postMessage(message: unknown): void;\n set onmessage(listener: (event: WorkerMessageEvent) => Promise<void>| void);\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport interface WorkerMessageEvent<T = any> {\n readonly data: T;\n ports: readonly WorkerMessagePort[];\n}\n"]}
1
+ {"version":3,"file":"HostRuntime.js","sourceRoot":"","sources":["../../../../../../../front_end/core/platform/api/HostRuntime.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,yEAAyE;AACzE,6BAA6B","sourcesContent":["// Copyright 2025 The Chromium Authors\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Provides abstractions for host features that require different implementations depending\n * on whether DevTools runs in the browser or Node.js\n */\nexport interface HostRuntime {\n createWorker(url: string): Worker;\n workerScope: WorkerScope;\n getOnLine(): boolean;\n getUserAgent(): string;\n getLocalStorage(): Storage|undefined;\n}\n\n/**\n * Abstracts away the differences between browser web workers and Node.js worker threads.\n */\nexport interface Worker {\n postMessage(message: unknown, transfer?: WorkerTransferable[]): void;\n\n dispose(): void;\n terminate(immediately?: boolean): void;\n\n set onmessage(listener: (event: WorkerMessageEvent) => void);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n set onerror(listener: (event: any) => void);\n}\n\nexport type WorkerMessagePort = typeof MessagePort.prototype;\n\n/**\n * Currently we only transfer MessagePorts to workers, but it's possible to add\n * more things (like ReadableStream) as long as it's present in all runtimes.\n */\nexport type WorkerTransferable = WorkerMessagePort;\n\n/**\n * Used by workers to communicate with their parent.\n */\nexport interface WorkerScope {\n postMessage(message: unknown, transfer?: WorkerTransferable[]): void;\n set onmessage(listener: (event: WorkerMessageEvent) => Promise<void>| void);\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport interface WorkerMessageEvent<T = any> {\n readonly data: T;\n ports: readonly WorkerMessagePort[];\n}\n"]}
@@ -2,8 +2,10 @@
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
  class WebWorkerScope {
5
- postMessage(message) {
6
- self.postMessage(message);
5
+ postMessage(message, transfer) {
6
+ // Type for frame.postMessage is conflicting here.
7
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
8
+ self.postMessage(message, transfer);
7
9
  }
8
10
  set onmessage(listener) {
9
11
  self.addEventListener('message', listener);
@@ -60,5 +62,14 @@ export const HOST_RUNTIME = {
60
62
  return new WebWorker(url);
61
63
  },
62
64
  workerScope: new WebWorkerScope(),
65
+ getOnLine() {
66
+ return navigator.onLine;
67
+ },
68
+ getUserAgent() {
69
+ return navigator.userAgent;
70
+ },
71
+ getLocalStorage() {
72
+ return 'localStorage' in globalThis ? globalThis.localStorage : undefined;
73
+ },
63
74
  };
64
75
  //# sourceMappingURL=HostRuntime.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HostRuntime.js","sourceRoot":"","sources":["../../../../../../../front_end/core/platform/browser/HostRuntime.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,yEAAyE;AACzE,6BAA6B;AAI7B,MAAM,cAAc;IAClB,WAAW,CAAC,OAAgB;QAC1B,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAC5B,CAAC;IAED,IAAI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,CAAC,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,SAAS,CAAC,WAAW,GAAG,KAAK;QAC3B,IAAI,WAAW,EAAE,CAAC;YAChB,IAAI,CAAC,oBAAoB,EAAE,CAAC,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC;QAC9D,CAAC;QACD,IAAI,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC;IAED,IAAI,SAAS,CAAC,QAA6D;QACzE,KAAK,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;YACrC,MAAM,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC9B,CAAC,CAAC,CAAC;IACL,CAAC;IAED,IAAI,OAAO,CAAC,QAAkC;QAC5C,KAAK,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;YACrC,MAAM,CAAC,OAAO,GAAG,QAAQ,CAAC;QAC5B,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,CAAC,MAAM,YAAY,GAAgC;IACvD,YAAY,CAAC,GAAW;QACtB,OAAO,IAAI,SAAS,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC;IACD,WAAW,EAAE,IAAI,cAAc,EAAE;CAClC,CAAC","sourcesContent":["// Copyright 2025 The Chromium Authors\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\nimport type * as Api from '../api/api.js';\n\nclass WebWorkerScope implements Api.HostRuntime.WorkerScope {\n postMessage(message: unknown): void {\n self.postMessage(message);\n }\n\n set onmessage(listener: (event: Api.HostRuntime.WorkerMessageEvent) => Promise<void>| void) {\n self.addEventListener('message', listener);\n }\n}\n\nclass WebWorker implements Api.HostRuntime.Worker {\n readonly #workerPromise: Promise<Worker>;\n #disposed?: boolean;\n #rejectWorkerPromise?: (error: Error) => void;\n\n constructor(workerLocation: string) {\n this.#workerPromise = new Promise((fulfill, reject) => {\n this.#rejectWorkerPromise = reject;\n const worker = new Worker(new URL(workerLocation), {type: 'module'});\n worker.onerror = event => {\n console.error(`Failed to load worker for ${workerLocation}:`, event);\n };\n worker.onmessage = (event: MessageEvent<unknown>) => {\n console.assert(event.data === 'workerReady');\n worker.onmessage = null;\n fulfill(worker);\n };\n });\n }\n\n postMessage(message: unknown, transfer?: Api.HostRuntime.WorkerTransferable[]): void {\n void this.#workerPromise.then(worker => {\n if (!this.#disposed) {\n worker.postMessage(message, transfer ?? []);\n }\n });\n }\n\n dispose(): void {\n this.#disposed = true;\n void this.#workerPromise.then(worker => worker.terminate());\n }\n\n terminate(immediately = false): void {\n if (immediately) {\n this.#rejectWorkerPromise?.(new Error('Worker terminated'));\n }\n this.dispose();\n }\n\n set onmessage(listener: (event: Api.HostRuntime.WorkerMessageEvent) => void) {\n void this.#workerPromise.then(worker => {\n worker.onmessage = listener;\n });\n }\n\n set onerror(listener: (event: unknown) => void) {\n void this.#workerPromise.then(worker => {\n worker.onerror = listener;\n });\n }\n}\n\nexport const HOST_RUNTIME: Api.HostRuntime.HostRuntime = {\n createWorker(url: string): Api.HostRuntime.Worker {\n return new WebWorker(url);\n },\n workerScope: new WebWorkerScope(),\n};\n"]}
1
+ {"version":3,"file":"HostRuntime.js","sourceRoot":"","sources":["../../../../../../../front_end/core/platform/browser/HostRuntime.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,yEAAyE;AACzE,6BAA6B;AAI7B,MAAM,cAAc;IAClB,WAAW,CAAC,OAAgB,EAAE,QAA+C;QAC3E,kDAAkD;QAClD,8DAA8D;QAC9D,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,QAAe,CAAC,CAAC;IAC7C,CAAC;IAED,IAAI,SAAS,CAAC,QAA4E;QACxF,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC7C,CAAC;CACF;AAED,MAAM,SAAS;IACJ,cAAc,CAAkB;IACzC,SAAS,CAAW;IACpB,oBAAoB,CAA0B;IAE9C,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CAAC,mBAAmB,CAAC,CAAC,CAAC;QAC9D,CAAC;QACD,IAAI,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC;IAED,IAAI,SAAS,CAAC,QAA6D;QACzE,KAAK,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;YACrC,MAAM,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC9B,CAAC,CAAC,CAAC;IACL,CAAC;IAED,IAAI,OAAO,CAAC,QAAkC;QAC5C,KAAK,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;YACrC,MAAM,CAAC,OAAO,GAAG,QAAQ,CAAC;QAC5B,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,CAAC,MAAM,YAAY,GAAgC;IACvD,YAAY,CAAC,GAAW;QACtB,OAAO,IAAI,SAAS,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC;IACD,WAAW,EAAE,IAAI,cAAc,EAAE;IACjC,SAAS;QACP,OAAO,SAAS,CAAC,MAAM,CAAC;IAC1B,CAAC;IACD,YAAY;QACV,OAAO,SAAS,CAAC,SAAS,CAAC;IAC7B,CAAC;IACD,eAAe;QAET,OAAO,cAAc,IAAI,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;IAC5E,CAAC;CACN,CAAC","sourcesContent":["// Copyright 2025 The Chromium Authors\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\nimport type * as Api from '../api/api.js';\n\nclass WebWorkerScope implements Api.HostRuntime.WorkerScope {\n postMessage(message: unknown, transfer?: Api.HostRuntime.WorkerTransferable[]): void {\n // Type for frame.postMessage is conflicting here.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n self.postMessage(message, transfer as any);\n }\n\n set onmessage(listener: (event: Api.HostRuntime.WorkerMessageEvent) => Promise<void>| void) {\n self.addEventListener('message', listener);\n }\n}\n\nclass WebWorker implements Api.HostRuntime.Worker {\n readonly #workerPromise: Promise<Worker>;\n #disposed?: boolean;\n #rejectWorkerPromise?: (error: Error) => void;\n\n constructor(workerLocation: string) {\n this.#workerPromise = new Promise((fulfill, reject) => {\n this.#rejectWorkerPromise = reject;\n const worker = new Worker(new URL(workerLocation), {type: 'module'});\n worker.onerror = event => {\n console.error(`Failed to load worker for ${workerLocation}:`, event);\n };\n worker.onmessage = (event: MessageEvent<unknown>) => {\n console.assert(event.data === 'workerReady');\n worker.onmessage = null;\n fulfill(worker);\n };\n });\n }\n\n postMessage(message: unknown, transfer?: Api.HostRuntime.WorkerTransferable[]): void {\n void this.#workerPromise.then(worker => {\n if (!this.#disposed) {\n worker.postMessage(message, transfer ?? []);\n }\n });\n }\n\n dispose(): void {\n this.#disposed = true;\n void this.#workerPromise.then(worker => worker.terminate());\n }\n\n terminate(immediately = false): void {\n if (immediately) {\n this.#rejectWorkerPromise?.(new Error('Worker terminated'));\n }\n this.dispose();\n }\n\n set onmessage(listener: (event: Api.HostRuntime.WorkerMessageEvent) => void) {\n void this.#workerPromise.then(worker => {\n worker.onmessage = listener;\n });\n }\n\n set onerror(listener: (event: unknown) => void) {\n void this.#workerPromise.then(worker => {\n worker.onerror = listener;\n });\n }\n}\n\nexport const HOST_RUNTIME: Api.HostRuntime.HostRuntime = {\n createWorker(url: string): Api.HostRuntime.Worker {\n return new WebWorker(url);\n },\n workerScope: new WebWorkerScope(),\n getOnLine(): boolean {\n return navigator.onLine;\n },\n getUserAgent(): string {\n return navigator.userAgent;\n },\n getLocalStorage(): Storage |\n undefined {\n return 'localStorage' in globalThis ? globalThis.localStorage : undefined;\n },\n};\n"]}
@@ -3,8 +3,8 @@
3
3
  // found in the LICENSE file.
4
4
  import * as WorkerThreads from 'node:worker_threads';
5
5
  class NodeWorkerScope {
6
- postMessage(message) {
7
- WorkerThreads.parentPort?.postMessage(message);
6
+ postMessage(message, transfer) {
7
+ WorkerThreads.parentPort?.postMessage(message, transfer);
8
8
  }
9
9
  set onmessage(listener) {
10
10
  WorkerThreads.parentPort?.addEventListener('message', msg => {
@@ -69,5 +69,14 @@ export const HOST_RUNTIME = {
69
69
  return new NodeWorker(url);
70
70
  },
71
71
  workerScope: new NodeWorkerScope(),
72
+ getOnLine() {
73
+ return true;
74
+ },
75
+ getUserAgent() {
76
+ return 'Node.js';
77
+ },
78
+ getLocalStorage() {
79
+ return undefined;
80
+ },
72
81
  };
73
82
  //# sourceMappingURL=HostRuntime.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HostRuntime.js","sourceRoot":"","sources":["../../../../../../../front_end/core/platform/node/HostRuntime.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,yEAAyE;AACzE,6BAA6B;AAE7B,OAAO,KAAK,aAAa,MAAM,qBAAqB,CAAC;AAIrD,MAAM,eAAe;IACnB,WAAW,CAAC,OAAgB;QAC1B,aAAa,CAAC,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC;IAED,IAAI,SAAS,CAAC,QAA6D;QACzE,aAAa,CAAC,UAAU,EAAE,gBAAgB,CAAC,SAAS,EAAE,GAAG,CAAC,EAAE;YAC1D,QAAQ,CAAC,GAAoD,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,UAAU;IACL,cAAc,CAAgC;IACvD,SAAS,GAAG,KAAK,CAAC;IAClB,oBAAoB,CAA0B;IAE9C,YAAY,GAAW;QACrB,IAAI,CAAC,cAAc,GAAG,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACpD,IAAI,CAAC,oBAAoB,GAAG,MAAM,CAAC;YACnC,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;YACtD,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,OAAgB,EAAE,EAAE;gBAC1C,IAAI,OAAO,KAAK,aAAa,EAAE,CAAC;oBAC9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,MAAM,CAAC,EAAE;YACrC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAY,EAAE,EAAE;gBAClC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;oBACpB,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,GAAG,KAAK,EAAC,CAAC,CAAC;gBACtC,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,CAAC,MAAM,YAAY,GAAgC;IACvD,YAAY,CAAC,GAAW;QACtB,OAAO,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC;IAC7B,CAAC;IACD,WAAW,EAAE,IAAI,eAAe,EAAE;CACnC,CAAC","sourcesContent":["// Copyright 2025 The Chromium Authors\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\nimport * as WorkerThreads from 'node:worker_threads';\n\nimport type * as Api from '../api/api.js';\n\nclass NodeWorkerScope implements Api.HostRuntime.WorkerScope {\n postMessage(message: unknown): void {\n WorkerThreads.parentPort?.postMessage(message);\n }\n\n set onmessage(listener: (event: Api.HostRuntime.WorkerMessageEvent) => void) {\n WorkerThreads.parentPort?.addEventListener('message', msg => {\n listener(msg as unknown as Api.HostRuntime.WorkerMessageEvent);\n });\n }\n}\n\nclass NodeWorker implements Api.HostRuntime.Worker {\n readonly #workerPromise: Promise<WorkerThreads.Worker>;\n #disposed = false;\n #rejectWorkerPromise?: (error: Error) => void;\n\n constructor(url: string) {\n this.#workerPromise = new Promise((resolve, reject) => {\n this.#rejectWorkerPromise = reject;\n const worker = new WorkerThreads.Worker(new URL(url));\n worker.once('message', (message: unknown) => {\n if (message === 'workerReady') {\n resolve(worker);\n }\n });\n worker.on('error', reject);\n });\n }\n\n postMessage(message: unknown, transfer?: Api.HostRuntime.WorkerTransferable[]): void {\n void this.#workerPromise.then(worker => {\n if (!this.#disposed) {\n worker.postMessage(message, transfer as unknown as WorkerThreads.Transferable[]);\n }\n });\n }\n\n dispose(): void {\n this.#disposed = true;\n void this.#workerPromise.then(worker => worker.terminate());\n }\n\n terminate(immediately?: boolean): void {\n if (immediately) {\n this.#rejectWorkerPromise?.(new Error('Worker terminated'));\n }\n this.dispose();\n }\n\n set onmessage(listener: (event: Api.HostRuntime.WorkerMessageEvent) => void) {\n void this.#workerPromise.then(worker => {\n worker.on('message', (data: unknown) => {\n if (!this.#disposed) {\n listener({data, ports: []});\n }\n });\n });\n }\n\n set onerror(listener: (event: unknown) => void) {\n void this.#workerPromise.then(worker => {\n worker.on('error', (error: Error) => {\n if (!this.#disposed) {\n listener({type: 'error', ...error});\n }\n });\n });\n }\n}\n\nexport const HOST_RUNTIME: Api.HostRuntime.HostRuntime = {\n createWorker(url: string): Api.HostRuntime.Worker {\n return new NodeWorker(url);\n },\n workerScope: new NodeWorkerScope(),\n};\n"]}
1
+ {"version":3,"file":"HostRuntime.js","sourceRoot":"","sources":["../../../../../../../front_end/core/platform/node/HostRuntime.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,yEAAyE;AACzE,6BAA6B;AAE7B,OAAO,KAAK,aAAa,MAAM,qBAAqB,CAAC;AAIrD,MAAM,eAAe;IACnB,WAAW,CAAC,OAAgB,EAAE,QAA+C;QAC3E,aAAa,CAAC,UAAU,EAAE,WAAW,CAAC,OAAO,EAAE,QAAmD,CAAC,CAAC;IACtG,CAAC;IAED,IAAI,SAAS,CAAC,QAA6D;QACzE,aAAa,CAAC,UAAU,EAAE,gBAAgB,CAAC,SAAS,EAAE,GAAG,CAAC,EAAE;YAC1D,QAAQ,CAAC,GAAoD,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,UAAU;IACL,cAAc,CAAgC;IACvD,SAAS,GAAG,KAAK,CAAC;IAClB,oBAAoB,CAA0B;IAE9C,YAAY,GAAW;QACrB,IAAI,CAAC,cAAc,GAAG,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EA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I,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;oBACpB,QAAQ,CAAC,EAAC,IAAI,EAAE,KAAK,EAAE,EAAE,EAAC,CAAC,CAAC;gBAC9B,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;IAED,IAAI,OAAO,CAAC,QAAkC;QAC5C,KAAK,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;YACrC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAY,EAAE,EAAE;gBAClC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;oBACpB,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,GAAG,KAAK,EAAC,CAAC,CAAC;gBACtC,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,CAAC,MAAM,YAAY,GAAgC;IACvD,YAAY,CAAC,GAAW;QACtB,OAAO,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC;IAC7B,CAAC;IACD,WAAW,EAAE,IAAI,eAAe,EAAE;IAClC,SAAS;QACP,OAAO,IAAI,CAAC;IACd,CAAC;IACD,YAAY;QACV,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,eAAe;QAET,OAAO,SAAS,CAAC;IACnB,CAAC;CACN,CAAC","sourcesContent":["// Copyright 2025 The Chromium Authors\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\nimport * as WorkerThreads from 'node:worker_threads';\n\nimport type * as Api from '../api/api.js';\n\nclass NodeWorkerScope implements Api.HostRuntime.WorkerScope {\n postMessage(message: unknown, transfer?: Api.HostRuntime.WorkerTransferable[]): void {\n WorkerThreads.parentPort?.postMessage(message, transfer as unknown as WorkerThreads.Transferable[]);\n }\n\n set onmessage(listener: (event: Api.HostRuntime.WorkerMessageEvent) => void) {\n WorkerThreads.parentPort?.addEventListener('message', msg => {\n listener(msg as unknown as Api.HostRuntime.WorkerMessageEvent);\n });\n }\n}\n\nclass NodeWorker implements Api.HostRuntime.Worker {\n readonly #workerPromise: Promise<WorkerThreads.Worker>;\n #disposed = false;\n #rejectWorkerPromise?: (error: Error) => void;\n\n constructor(url: string) {\n this.#workerPromise = new Promise((resolve, reject) => {\n this.#rejectWorkerPromise = reject;\n const worker = new WorkerThreads.Worker(new URL(url));\n worker.once('message', (message: unknown) => {\n if (message === 'workerReady') {\n resolve(worker);\n }\n });\n worker.on('error', reject);\n });\n }\n\n postMessage(message: unknown, transfer?: Api.HostRuntime.WorkerTransferable[]): void {\n void this.#workerPromise.then(worker => {\n if (!this.#disposed) {\n worker.postMessage(message, transfer as unknown as WorkerThreads.Transferable[]);\n }\n });\n }\n\n dispose(): void {\n this.#disposed = true;\n void this.#workerPromise.then(worker => worker.terminate());\n }\n\n terminate(immediately?: boolean): void {\n if (immediately) {\n this.#rejectWorkerPromise?.(new Error('Worker terminated'));\n }\n this.dispose();\n }\n\n set onmessage(listener: (event: Api.HostRuntime.WorkerMessageEvent) => void) {\n void this.#workerPromise.then(worker => {\n worker.on('message', (data: unknown) => {\n if (!this.#disposed) {\n listener({data, ports: []});\n }\n });\n });\n }\n\n set onerror(listener: (event: unknown) => void) {\n void this.#workerPromise.then(worker => {\n worker.on('error', (error: Error) => {\n if (!this.#disposed) {\n listener({type: 'error', ...error});\n }\n });\n });\n }\n}\n\nexport const HOST_RUNTIME: Api.HostRuntime.HostRuntime = {\n createWorker(url: string): Api.HostRuntime.Worker {\n return new NodeWorker(url);\n },\n workerScope: new NodeWorkerScope(),\n getOnLine(): boolean {\n return true;\n },\n getUserAgent(): string {\n return 'Node.js';\n },\n getLocalStorage(): Storage |\n undefined {\n return undefined;\n },\n};\n"]}
@@ -1014,6 +1014,7 @@ export declare namespace Audits {
1014
1014
  WriteErrorNonSecureContext = "WriteErrorNonSecureContext",
1015
1015
  WriteErrorNonStringIdField = "WriteErrorNonStringIdField",
1016
1016
  WriteErrorNonStringInMatchDestList = "WriteErrorNonStringInMatchDestList",
1017
+ WriteErrorInvalidMatchDestList = "WriteErrorInvalidMatchDestList",
1017
1018
  WriteErrorNonStringMatchField = "WriteErrorNonStringMatchField",
1018
1019
  WriteErrorNonTokenTypeField = "WriteErrorNonTokenTypeField",
1019
1020
  WriteErrorRequestAborted = "WriteErrorRequestAborted",
@@ -1042,7 +1043,11 @@ export declare namespace Audits {
1042
1043
  ValidationFailedSignatureExpired = "ValidationFailedSignatureExpired",
1043
1044
  ValidationFailedInvalidLength = "ValidationFailedInvalidLength",
1044
1045
  ValidationFailedSignatureMismatch = "ValidationFailedSignatureMismatch",
1045
- ValidationFailedIntegrityMismatch = "ValidationFailedIntegrityMismatch"
1046
+ ValidationFailedIntegrityMismatch = "ValidationFailedIntegrityMismatch",
1047
+ SignatureBaseUnknownDerivedComponent = "SignatureBaseUnknownDerivedComponent",
1048
+ SignatureBaseMissingHeader = "SignatureBaseMissingHeader",
1049
+ SignatureBaseInvalidUnencodedDigest = "SignatureBaseInvalidUnencodedDigest",
1050
+ SignatureBaseUnsupportedComponent = "SignatureBaseUnsupportedComponent"
1046
1051
  }
1047
1052
  const enum UnencodedDigestError {
1048
1053
  MalformedDictionary = "MalformedDictionary",
@@ -1121,10 +1126,15 @@ export declare namespace Audits {
1121
1126
  FormInputHasWrongButWellIntendedAutocompleteValueError = "FormInputHasWrongButWellIntendedAutocompleteValueError",
1122
1127
  ResponseWasBlockedByORB = "ResponseWasBlockedByORB",
1123
1128
  NavigationEntryMarkedSkippable = "NavigationEntryMarkedSkippable",
1129
+ BackUINavigationWouldSkipAd = "BackUINavigationWouldSkipAd",
1124
1130
  AutofillAndManualTextPolicyControlledFeaturesInfo = "AutofillAndManualTextPolicyControlledFeaturesInfo",
1125
1131
  AutofillPolicyControlledFeatureInfo = "AutofillPolicyControlledFeatureInfo",
1126
1132
  ManualTextPolicyControlledFeatureInfo = "ManualTextPolicyControlledFeatureInfo",
1127
- FormModelContextParameterMissingTitleAndDescription = "FormModelContextParameterMissingTitleAndDescription"
1133
+ FormModelContextParameterMissingTitleAndDescription = "FormModelContextParameterMissingTitleAndDescription",
1134
+ FormModelContextMissingToolName = "FormModelContextMissingToolName",
1135
+ FormModelContextMissingToolDescription = "FormModelContextMissingToolDescription",
1136
+ FormModelContextRequiredParameterMissingName = "FormModelContextRequiredParameterMissingName",
1137
+ FormModelContextParameterMissingName = "FormModelContextParameterMissingName"
1128
1138
  }
1129
1139
  /**
1130
1140
  * Depending on the concrete errorType, different properties are set.
@@ -1250,6 +1260,38 @@ export declare namespace Audits {
1250
1260
  InvalidAccountsResponse = "InvalidAccountsResponse",
1251
1261
  NoReturningUserFromFetchedAccounts = "NoReturningUserFromFetchedAccounts"
1252
1262
  }
1263
+ interface EmailVerificationRequestIssueDetails {
1264
+ emailVerificationRequestIssueReason: EmailVerificationRequestIssueReason;
1265
+ }
1266
+ /**
1267
+ * Represents the failure reason when an email verification request fails.
1268
+ * Should be updated alongside EmailVerificationRequestResult in
1269
+ * third_party/blink/public/mojom/devtools/inspector_issue.mojom.
1270
+ */
1271
+ const enum EmailVerificationRequestIssueReason {
1272
+ InvalidEmail = "InvalidEmail",
1273
+ DnsFetchFailed = "DnsFetchFailed",
1274
+ DnsInvalidRecord = "DnsInvalidRecord",
1275
+ WellKnownHttpNotFound = "WellKnownHttpNotFound",
1276
+ WellKnownNoResponse = "WellKnownNoResponse",
1277
+ WellKnownInvalidResponse = "WellKnownInvalidResponse",
1278
+ WellKnownListEmpty = "WellKnownListEmpty",
1279
+ WellKnownInvalidContentType = "WellKnownInvalidContentType",
1280
+ WellKnownMissingIssuanceEndpoint = "WellKnownMissingIssuanceEndpoint",
1281
+ WellKnownIssuanceEndpointCrossOrigin = "WellKnownIssuanceEndpointCrossOrigin",
1282
+ WellKnownUnsupportedSigningAlgorithm = "WellKnownUnsupportedSigningAlgorithm",
1283
+ TokenHttpNotFound = "TokenHttpNotFound",
1284
+ TokenNoResponse = "TokenNoResponse",
1285
+ TokenInvalidResponse = "TokenInvalidResponse",
1286
+ TokenInvalidContentType = "TokenInvalidContentType",
1287
+ TokenMalformedSdJwt = "TokenMalformedSdJwt",
1288
+ TokenInvalidSdJwt = "TokenInvalidSdJwt",
1289
+ KeyBindingSigningFailed = "KeyBindingSigningFailed",
1290
+ RpOriginIsOpaque = "RpOriginIsOpaque",
1291
+ WellKnownMissingAccountsEndpoint = "WellKnownMissingAccountsEndpoint",
1292
+ UserLoggedOut = "UserLoggedOut",
1293
+ WellKnownAccountsEndpointCrossOrigin = "WellKnownAccountsEndpointCrossOrigin"
1294
+ }
1253
1295
  /**
1254
1296
  * This issue tracks client hints related issues. It's used to deprecate old
1255
1297
  * features, encourage the use of new ones, and provide general guidance.
@@ -1474,7 +1516,8 @@ export declare namespace Audits {
1474
1516
  UserReidentificationIssue = "UserReidentificationIssue",
1475
1517
  PermissionElementIssue = "PermissionElementIssue",
1476
1518
  PerformanceIssue = "PerformanceIssue",
1477
- SelectivePermissionsInterventionIssue = "SelectivePermissionsInterventionIssue"
1519
+ SelectivePermissionsInterventionIssue = "SelectivePermissionsInterventionIssue",
1520
+ EmailVerificationRequestIssue = "EmailVerificationRequestIssue"
1478
1521
  }
1479
1522
  /**
1480
1523
  * This struct holds a list of optional fields with additional information
@@ -1514,6 +1557,7 @@ export declare namespace Audits {
1514
1557
  permissionElementIssueDetails?: PermissionElementIssueDetails;
1515
1558
  performanceIssueDetails?: PerformanceIssueDetails;
1516
1559
  selectivePermissionsInterventionIssueDetails?: SelectivePermissionsInterventionIssueDetails;
1560
+ emailVerificationRequestIssueDetails?: EmailVerificationRequestIssueDetails;
1517
1561
  }
1518
1562
  /**
1519
1563
  * A unique id for a DevTools inspector issue. Allows other entities (e.g.
@@ -3002,6 +3046,10 @@ export declare namespace CSS {
3002
3046
  interface CSSContainerQuery {
3003
3047
  /**
3004
3048
  * Container query text.
3049
+ * Contains the query part without the container name for a single query.
3050
+ * Deprecated in favor of conditionText which contains the full prelude
3051
+ * after @container.
3052
+ * @deprecated
3005
3053
  */
3006
3054
  text: string;
3007
3055
  /**
@@ -3033,6 +3081,10 @@ export declare namespace CSS {
3033
3081
  * true if the query contains anchored() queries.
3034
3082
  */
3035
3083
  queriesAnchored?: boolean;
3084
+ /**
3085
+ * CSSContainerRule.conditionText
3086
+ */
3087
+ conditionText: string;
3036
3088
  }
3037
3089
  /**
3038
3090
  * CSS Supports at-rule descriptor.
@@ -3304,7 +3356,8 @@ export declare namespace CSS {
3304
3356
  const enum CSSAtRuleType {
3305
3357
  FontFace = "font-face",
3306
3358
  FontFeatureValues = "font-feature-values",
3307
- FontPaletteValues = "font-palette-values"
3359
+ FontPaletteValues = "font-palette-values",
3360
+ CounterStyle = "counter-style"
3308
3361
  }
3309
3362
  const enum CSSAtRuleSubsection {
3310
3363
  Swash = "swash",
@@ -3831,6 +3884,17 @@ export declare namespace CSS {
3831
3884
  */
3832
3885
  containerQuery: CSSContainerQuery;
3833
3886
  }
3887
+ interface SetContainerQueryConditionTextRequest {
3888
+ styleSheetId: DOM.StyleSheetId;
3889
+ range: SourceRange;
3890
+ text: string;
3891
+ }
3892
+ interface SetContainerQueryConditionTextResponse extends ProtocolResponseWithError {
3893
+ /**
3894
+ * The resulting CSS container query rule after modification.
3895
+ */
3896
+ containerQuery: CSSContainerQuery;
3897
+ }
3834
3898
  interface SetSupportsTextRequest {
3835
3899
  styleSheetId: DOM.StyleSheetId;
3836
3900
  range: SourceRange;
@@ -4246,7 +4310,7 @@ export declare namespace DOM {
4246
4310
  After = "after",
4247
4311
  ExpandIcon = "expand-icon",
4248
4312
  PickerIcon = "picker-icon",
4249
- InterestHint = "interest-hint",
4313
+ InterestButton = "interest-button",
4250
4314
  Marker = "marker",
4251
4315
  Backdrop = "backdrop",
4252
4316
  Column = "column",
@@ -6794,11 +6858,6 @@ export declare namespace Emulation {
6794
6858
  source: PressureSource;
6795
6859
  state: PressureState;
6796
6860
  }
6797
- interface SetPressureDataOverrideRequest {
6798
- source: PressureSource;
6799
- state: PressureState;
6800
- ownContributionEstimate?: number;
6801
- }
6802
6861
  interface SetIdleOverrideRequest {
6803
6862
  /**
6804
6863
  * Mock isUserActive
@@ -10542,6 +10601,10 @@ export declare namespace Network {
10542
10601
  * WebRTC packetReordering feature.
10543
10602
  */
10544
10603
  packetReordering?: boolean;
10604
+ /**
10605
+ * True to emulate internet disconnection.
10606
+ */
10607
+ offline?: boolean;
10545
10608
  }
10546
10609
  interface BlockPattern {
10547
10610
  /**
@@ -10938,6 +11001,7 @@ export declare namespace Network {
10938
11001
  Success = "Success",
10939
11002
  KeyError = "KeyError",
10940
11003
  SigningError = "SigningError",
11004
+ TransientSigningError = "TransientSigningError",
10941
11005
  ServerRequestedTermination = "ServerRequestedTermination",
10942
11006
  InvalidSessionId = "InvalidSessionId",
10943
11007
  InvalidChallenge = "InvalidChallenge",
@@ -11002,7 +11066,8 @@ export declare namespace Network {
11002
11066
  InvalidConfigJson = "InvalidConfigJson",
11003
11067
  InvalidFederatedSessionProviderFailedToRestoreKey = "InvalidFederatedSessionProviderFailedToRestoreKey",
11004
11068
  FailedToUnwrapKey = "FailedToUnwrapKey",
11005
- SessionDeletedDuringRefresh = "SessionDeletedDuringRefresh"
11069
+ SessionDeletedDuringRefresh = "SessionDeletedDuringRefresh",
11070
+ CrossOriginRegistrationSiteNotIncluded = "CrossOriginRegistrationSiteNotIncluded"
11006
11071
  }
11007
11072
  /**
11008
11073
  * Details about a failed device bound session network request.
@@ -11053,7 +11118,9 @@ export declare namespace Network {
11053
11118
  ServerError = "ServerError",
11054
11119
  RefreshQuotaExceeded = "RefreshQuotaExceeded",
11055
11120
  FatalError = "FatalError",
11056
- SigningQuotaExceeded = "SigningQuotaExceeded"
11121
+ SigningQuotaExceeded = "SigningQuotaExceeded",
11122
+ RefreshedAsWaiter = "RefreshedAsWaiter",
11123
+ TransientSigningError = "TransientSigningError"
11057
11124
  }
11058
11125
  /**
11059
11126
  * Session event details specific to refresh.
@@ -11090,7 +11157,8 @@ export declare namespace Network {
11090
11157
  ClearBrowsingData = "ClearBrowsingData",
11091
11158
  ServerRequested = "ServerRequested",
11092
11159
  InvalidSessionParams = "InvalidSessionParams",
11093
- RefreshFatalError = "RefreshFatalError"
11160
+ RefreshFatalError = "RefreshFatalError",
11161
+ DevTools = "DevTools"
11094
11162
  }
11095
11163
  /**
11096
11164
  * Session event details specific to termination.
@@ -11269,9 +11337,15 @@ export declare namespace Network {
11269
11337
  }
11270
11338
  interface EmulateNetworkConditionsByRuleRequest {
11271
11339
  /**
11272
- * True to emulate internet disconnection.
11340
+ * True to emulate internet disconnection. Deprecated, use the offline property in matchedNetworkConditions
11341
+ * or emulateOfflineServiceWorker instead.
11342
+ * @deprecated
11273
11343
  */
11274
- offline: boolean;
11344
+ offline?: boolean;
11345
+ /**
11346
+ * True to emulate offline service worker.
11347
+ */
11348
+ emulateOfflineServiceWorker?: boolean;
11275
11349
  /**
11276
11350
  * Configure conditions for matching requests. If multiple entries match a request, the first entry wins. Global
11277
11351
  * conditions can be configured by leaving the urlPattern for the conditions empty. These global conditions are
@@ -11623,6 +11697,9 @@ export declare namespace Network {
11623
11697
  */
11624
11698
  enable: boolean;
11625
11699
  }
11700
+ interface DeleteDeviceBoundSessionRequest {
11701
+ key: DeviceBoundSessionKey;
11702
+ }
11626
11703
  interface FetchSchemefulSiteRequest {
11627
11704
  /**
11628
11705
  * The URL origin.
@@ -11658,14 +11735,6 @@ export declare namespace Network {
11658
11735
  * Whether 3pc restriction is enabled.
11659
11736
  */
11660
11737
  enableThirdPartyCookieRestriction: boolean;
11661
- /**
11662
- * Whether 3pc grace period exception should be enabled; false by default.
11663
- */
11664
- disableThirdPartyCookieMetadata: boolean;
11665
- /**
11666
- * Whether 3pc heuristics exceptions should be enabled; false by default.
11667
- */
11668
- disableThirdPartyCookieHeuristics: boolean;
11669
11738
  }
11670
11739
  /**
11671
11740
  * Fired when data chunk was received over the network.
@@ -13446,6 +13515,7 @@ export declare namespace Page {
13446
13515
  SubApps = "sub-apps",
13447
13516
  Summarizer = "summarizer",
13448
13517
  SyncXhr = "sync-xhr",
13518
+ Tools = "tools",
13449
13519
  Translator = "translator",
13450
13520
  Unload = "unload",
13451
13521
  Usb = "usb",
@@ -14272,6 +14342,7 @@ export declare namespace Page {
14272
14342
  EmbedderExtensionMessaging = "EmbedderExtensionMessaging",
14273
14343
  EmbedderExtensionMessagingForOpenPort = "EmbedderExtensionMessagingForOpenPort",
14274
14344
  EmbedderExtensionSentMessageToCachedFrame = "EmbedderExtensionSentMessageToCachedFrame",
14345
+ EmbedderExtensionFrame = "EmbedderExtensionFrame",
14275
14346
  RequestedByWebViewClient = "RequestedByWebViewClient",
14276
14347
  PostMessageByWebViewClient = "PostMessageByWebViewClient",
14277
14348
  CacheControlNoStoreDeviceBoundSessionTerminated = "CacheControlNoStoreDeviceBoundSessionTerminated",
@@ -15809,7 +15880,8 @@ export declare namespace Preload {
15809
15880
  PrerenderFailedDuringPrefetch = "PrerenderFailedDuringPrefetch",
15810
15881
  BrowsingDataRemoved = "BrowsingDataRemoved",
15811
15882
  PrerenderHostReused = "PrerenderHostReused",
15812
- FormSubmitWhenPrerendering = "FormSubmitWhenPrerendering"
15883
+ FormSubmitWhenPrerendering = "FormSubmitWhenPrerendering",
15884
+ CrossDocumentRestart = "CrossDocumentRestart"
15813
15885
  }
15814
15886
  /**
15815
15887
  * Preloading status values, see also PreloadingTriggeringOutcome. This
@@ -17630,6 +17702,10 @@ export declare namespace Target {
17630
17702
  * Whether the target has an attached client.
17631
17703
  */
17632
17704
  attached: boolean;
17705
+ /**
17706
+ * Id of the parent target, if any. For example, "iframe" target may have a "page" parent.
17707
+ */
17708
+ parentId?: TargetID;
17633
17709
  /**
17634
17710
  * Opener target Id
17635
17711
  */
@@ -17643,7 +17719,8 @@ export declare namespace Target {
17643
17719
  */
17644
17720
  openerFrameId?: Page.FrameId;
17645
17721
  /**
17646
- * Id of the parent frame, only present for the "iframe" targets.
17722
+ * Id of the parent frame, present for "iframe" and "worker" targets. For nested workers,
17723
+ * this is the "ancestor" frame that created the first worker in the nested chain.
17647
17724
  */
17648
17725
  parentFrameId?: Page.FrameId;
17649
17726
  browserContextId?: Browser.BrowserContextID;
@@ -17652,6 +17729,11 @@ export declare namespace Target {
17652
17729
  * the type of "page", this may be set to "prerender".
17653
17730
  */
17654
17731
  subtype?: string;
17732
+ /**
17733
+ * Embedder-specific target metadata. This is only set for targets of
17734
+ * type "tab".
17735
+ */
17736
+ embedderData?: any;
17655
17737
  }
17656
17738
  /**
17657
17739
  * A filter used by target query/discovery/auto-attach operations.
@@ -17954,8 +18036,8 @@ export declare namespace Target {
17954
18036
  targetId: TargetID;
17955
18037
  /**
17956
18038
  * The id of the panel we want DevTools to open initially. Currently
17957
- * supported panels are elements, console, network, sources, resources
17958
- * and performance.
18039
+ * supported panels are elements, console, network, sources, resources,
18040
+ * timeline, chrome-recorder, heap-profiler, lighthouse, and security.
17959
18041
  */
17960
18042
  panelId?: string;
17961
18043
  }
@@ -18789,6 +18871,10 @@ export declare namespace WebMCP {
18789
18871
  * A hint indicating that the tool does not modify any state.
18790
18872
  */
18791
18873
  readOnly?: boolean;
18874
+ /**
18875
+ * A hint indicating that the tool output may contain untrusted content, ex: UGC, 3rd party data.
18876
+ */
18877
+ untrustedContent?: boolean;
18792
18878
  /**
18793
18879
  * If the declarative tool was declared with the autosubmit attribute.
18794
18880
  */
@@ -18798,7 +18884,7 @@ export declare namespace WebMCP {
18798
18884
  * Represents the status of a tool invocation.
18799
18885
  */
18800
18886
  const enum InvocationStatus {
18801
- Success = "Success",
18887
+ Completed = "Completed",
18802
18888
  Canceled = "Canceled",
18803
18889
  Error = "Error"
18804
18890
  }
@@ -18835,6 +18921,45 @@ export declare namespace WebMCP {
18835
18921
  */
18836
18922
  stackTrace?: Runtime.StackTrace;
18837
18923
  }
18924
+ /**
18925
+ * Definition of a tool that was removed.
18926
+ */
18927
+ interface RemovedTool {
18928
+ /**
18929
+ * Tool name.
18930
+ */
18931
+ name: string;
18932
+ /**
18933
+ * Frame identifier associated with the tool registration.
18934
+ */
18935
+ frameId: Page.FrameId;
18936
+ }
18937
+ interface InvokeToolRequest {
18938
+ /**
18939
+ * Frame in which to invoke the tool.
18940
+ */
18941
+ frameId: Page.FrameId;
18942
+ /**
18943
+ * Name of the tool to invoke.
18944
+ */
18945
+ toolName: string;
18946
+ /**
18947
+ * Input parameters for the tool, matching the tool's inputSchema.
18948
+ */
18949
+ input: any;
18950
+ }
18951
+ interface InvokeToolResponse extends ProtocolResponseWithError {
18952
+ /**
18953
+ * Unique identifier for this invocation. Response is sent before tool events.
18954
+ */
18955
+ invocationId: string;
18956
+ }
18957
+ interface CancelInvocationRequest {
18958
+ /**
18959
+ * Invocation identifier to cancel.
18960
+ */
18961
+ invocationId: string;
18962
+ }
18838
18963
  /**
18839
18964
  * Event fired when new tools are added.
18840
18965
  */
@@ -18851,7 +18976,7 @@ export declare namespace WebMCP {
18851
18976
  /**
18852
18977
  * Array of tools that were removed.
18853
18978
  */
18854
- tools: Tool[];
18979
+ tools: RemovedTool[];
18855
18980
  }
18856
18981
  /**
18857
18982
  * Event fired when a tool invocation starts.
@@ -18887,7 +19012,8 @@ export declare namespace WebMCP {
18887
19012
  */
18888
19013
  status: InvocationStatus;
18889
19014
  /**
18890
- * Output or error delivered as delivered to the agent. Missing if `status` is anything other than Success.
19015
+ * Output or error delivered as delivered to the agent. Missing if `status` is anything other than Completed.
19016
+ * Note: The output is untrusted and poses a prompt injection risk. Clients should treat this as potentially malicious user input.
18891
19017
  */
18892
19018
  output?: any;
18893
19019
  /**
package/locales/af.json CHANGED
@@ -35,6 +35,12 @@
35
35
  "generated/Deprecation.ts | DataUrlInSvgUse": {
36
36
  "message": "Steundienste vir data: URL\u2019e in SVGUseElement is opgeskort en dit sal in die toekoms verwyder word."
37
37
  },
38
+ "generated/Deprecation.ts | DocumentCreateEventKeyboardEvents": {
39
+ "message": "document.createEvent('KeyboardEvents') is opgeskort en sal verwyder word. Gebruik eerder new KeyboardEvent()."
40
+ },
41
+ "generated/Deprecation.ts | DocumentCreateEventTransitionEvent": {
42
+ "message": "document.createEvent('TransitionEvent') is opgeskort en sal verwyder word. Gebruik eerder new TransitionEvent()."
43
+ },
38
44
  "generated/Deprecation.ts | ExampleBrowserProcessDeprecation": {
39
45
  "message": "Dit is \u2019n voorbeeld om die kode te wys wat vereis word vir \u2019n opskorting wat deur \u2019n blaaierproses aangegee word."
40
46
  },
@@ -146,6 +152,9 @@
146
152
  "generated/Deprecation.ts | PrefixedVideoSupportsFullscreen": {
147
153
  "message": "HTMLVideoElement.webkitSupportsFullscreen is opgeskort. Gebruik pleks daarvan Document.fullscreenEnabled."
148
154
  },
155
+ "generated/Deprecation.ts | PreventSvgFilterPaint": {
156
+ "message": "SVG-filters kan nie op kruisoorsprong-i-rame, beperkte i-rame (bv. sandbox) of inproppe toegepas word nie."
157
+ },
149
158
  "generated/Deprecation.ts | RTCConstraintEnableDtlsSrtpFalse": {
150
159
  "message": "Die beperking DtlsSrtpKeyAgreement is verwyder. Jy het \u2019n false-waarde vir hierdie beperking gespesifiseer, wat ge\u00efnterpreteer word as \u2019n poging om die verwyderde SDES key negotiation-metode te gebruik. Hierdie funksie is verwyder. Gebruik pleks daarvan \u2019n diens wat DTLS key negotiation steun."
151
160
  },
@@ -254,6 +263,30 @@
254
263
  "models/trace/insights/Cache.ts | title": {
255
264
  "message": "Gebruik doeltreffende kasgeheueleeftye"
256
265
  },
266
+ "models/trace/insights/CharacterSet.ts | description": {
267
+ "message": "\u2019n Karakterenkoderingverklaring word vereis. Dit kan gedoen word met \u2019n metakarakterstelmerker in die eerste 1\u00a0024 grepe van die HTML of in die Content-Type-HTTP-antwoordopskrif. [Meer inligting oor verklaring van die karakterenkodering](https://developer.chrome.com/docs/insights/charset/)."
268
+ },
269
+ "models/trace/insights/CharacterSet.ts | failedHttpHeader": {
270
+ "message": "Verklaar nie karakterstel in HTTP-opskrif nie"
271
+ },
272
+ "models/trace/insights/CharacterSet.ts | failedMetaCharsetLate": {
273
+ "message": "Verklaar karakterstel met gebruik van \u2019n metamerker n\u00e1 die eerste 1\u00a0024 grepe"
274
+ },
275
+ "models/trace/insights/CharacterSet.ts | failedMetaCharsetMissing": {
276
+ "message": "Verklaar nie karakterstel met \u2019n metamerker nie"
277
+ },
278
+ "models/trace/insights/CharacterSet.ts | failedMetaCharsetUnknown": {
279
+ "message": "Kon nie metakarakterstelverklaring uit spoor bepaal nie"
280
+ },
281
+ "models/trace/insights/CharacterSet.ts | passingHttpHeader": {
282
+ "message": "Verklaar karakterstel in HTTP-opskrif"
283
+ },
284
+ "models/trace/insights/CharacterSet.ts | passingMetaCharsetEarly": {
285
+ "message": "Verklaar karakterstel met \u2019n metamerker in die eerste 1\u00a0024 grepe"
286
+ },
287
+ "models/trace/insights/CharacterSet.ts | title": {
288
+ "message": "Verklaar \u2019n karakterenkodering"
289
+ },
257
290
  "models/trace/insights/DOMSize.ts | description": {
258
291
  "message": "\u2019n Groot DOM kan die duur van stylberekeninge en uitleghervloei verleng, wat die reaksie van die bladsy be\u00efnvloed. \u2019n Groot DOM sal ook meer geheue gebruik. [Vind uit hoe om \u2019n buitensporige DOM-grootte te vermy](https://developer.chrome.com/docs/performance/insights/dom-size)."
259
292
  },
@@ -461,8 +494,11 @@
461
494
  "models/trace/insights/LCPDiscovery.ts | fetchPriorityShouldBeApplied": {
462
495
  "message": "fetchpriority=high moet toegepas word"
463
496
  },
497
+ "models/trace/insights/LCPDiscovery.ts | fetchPriorityShouldBeAppliedToImagePreload": {
498
+ "message": "fetchpriority=high moet op die prentvooraflaaiversoek toegepas word"
499
+ },
464
500
  "models/trace/insights/LCPDiscovery.ts | lazyLoadNotApplied": {
465
- "message": "trae laaiproses nie toegepas nie"
501
+ "message": "LCP-hulpbronne moet nie loading=lazy gebruik nie"
466
502
  },
467
503
  "models/trace/insights/LCPDiscovery.ts | lcpLoadDelay": {
468
504
  "message": "LCP-prent het {PH1} n\u00e1 die vroegste beginpunt gelaai."