Skip to content

Chrome DevTools for coding agents

chore(deps-dev): bump chrome-devtools-frontend from 1.0.1661063 to 1.0.1664619 in the bundled-devtools group across 1 directory (#2386)

dependabot[bot]e2c19fed80fc
diff --git a/package-lock.json b/package-lock.json
index c0072333..e93aa48d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -30,7 +30,7 @@
"@types/yargs": "^17.0.33",
"@typescript-eslint/eslint-plugin": "^8.43.0",
"@typescript-eslint/parser": "^8.43.0",
- "chrome-devtools-frontend": "1.0.1661063",
+ "chrome-devtools-frontend": "1.0.1666631",
"core-js": "3.49.0",
"debug": "4.4.3",
"eslint": "^9.35.0",
@@ -3195,9 +3195,9 @@
}
},
"node_modules/chrome-devtools-frontend": {
- "version": "1.0.1661063",
- "resolved": "https://registry.npmjs.org/chrome-devtools-frontend/-/chrome-devtools-frontend-1.0.1661063.tgz",
- "integrity": "sha512-2kxlX+/GjeFCcKmvHmkY+z2S8Ioi6o1CZvzDVuq+l+sFDL4hajzbpX0l4L9lfZB0NSIkv2urdC/9D7cLnaDf/g==",
+ "version": "1.0.1666631",
+ "resolved": "https://registry.npmjs.org/chrome-devtools-frontend/-/chrome-devtools-frontend-1.0.1666631.tgz",
+ "integrity": "sha512-5QgjEe/GcGvBlPqBpwQbgAlfaeEes4+MpsH8DqpbhKGZAXJJzKjfvqjh8Ef9k1pTTlbRJwnDIgRVK/+QGK4Vzw==",
"dev": true,
"license": "BSD-3-Clause"
},
diff --git a/package.json b/package.json
index 96e51a80..6bea1b2e 100644
--- a/package.json
+++ b/package.json
@@ -50,6 +50,7 @@
"homepage": "https://github.com/ChromeDevTools/chrome-devtools-mcp#readme",
"mcpName": "io.github.ChromeDevTools/chrome-devtools-mcp",
"devDependencies": {
+ "@blackwell-systems/gcf": "^2.2.2",
"@eslint/js": "^9.35.0",
"@google/genai": "^2.0.1",
"@modelcontextprotocol/sdk": "1.29.0",
@@ -57,7 +58,6 @@
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@stylistic/eslint-plugin": "^5.4.0",
- "@blackwell-systems/gcf": "^2.2.2",
"@toon-format/toon": "^2.2.0",
"@types/debug": "^4.1.12",
"@types/filesystem": "^0.0.36",
@@ -67,7 +67,7 @@
"@types/yargs": "^17.0.33",
"@typescript-eslint/eslint-plugin": "^8.43.0",
"@typescript-eslint/parser": "^8.43.0",
- "chrome-devtools-frontend": "1.0.1661063",
+ "chrome-devtools-frontend": "1.0.1666631",
"core-js": "3.49.0",
"debug": "4.4.3",
"eslint": "^9.35.0",
@@ -87,8 +87,8 @@
"yargs": "18.0.0"
},
"peerDependencies": {
- "@toon-format/toon": "^2.2.0",
- "@blackwell-systems/gcf": "^2.2.2"
+ "@blackwell-systems/gcf": "^2.2.2",
+ "@toon-format/toon": "^2.2.0"
},
"peerDependenciesMeta": {
"@toon-format/toon": {
diff --git a/scripts/prepare.ts b/scripts/prepare.ts
index 0a51226d..1f05cf4c 100644
--- a/scripts/prepare.ts
+++ b/scripts/prepare.ts
@@ -56,6 +56,25 @@ async function main() {
console.log('Clean up of chrome-devtools-frontend complete.');
removeConflictingGlobalDeclaration();
+ mockAiAssistanceFiles();
+}
+
+function mockAiAssistanceFiles(): void {
+ const patchAgentPath = resolve(
+ projectRoot,
+ 'node_modules/chrome-devtools-frontend/front_end/models/ai_assistance/agents/PatchAgent.ts',
+ );
+ writeFileSync(patchAgentPath, 'export class PatchAgent {}', 'utf-8');
+
+ const skillRegistryPath = resolve(
+ projectRoot,
+ 'node_modules/chrome-devtools-frontend/front_end/models/ai_assistance/skills/SkillRegistry.ts',
+ );
+ const skillRegistryContent = `export class SkillRegistry {}
+export const SKILLS: any = { styling: {}, network: {}, accessibility: {} };
+`;
+ writeFileSync(skillRegistryPath, skillRegistryContent, 'utf-8');
+ console.log('Successfully mocked AI assistance files.');
}
void main();
diff --git a/src/HeapSnapshotManager.ts b/src/HeapSnapshotManager.ts
index 949e6c85..0a10ed92 100644
--- a/src/HeapSnapshotManager.ts
+++ b/src/HeapSnapshotManager.ts
@@ -358,6 +358,7 @@ export class HeapSnapshotManager {
() => {
/* noop */
},
+ DevTools.Common.Console.Console.instance(),
import.meta.resolve('./third_party/devtools-heap-snapshot-worker.js'),
);
diff --git a/tests/McpResponse.test.js.snapshot b/tests/McpResponse.test.js.snapshot
index 71b69648..c98dc5e2 100644
--- a/tests/McpResponse.test.js.snapshot
+++ b/tests/McpResponse.test.js.snapshot
@@ -820,7 +820,7 @@ Available insights:
example question: What can I do to reduce my LCP discovery time?
example question: Why is LCP discovery time important?
- insight name: RenderBlocking
- description: Requests are blocking the page's initial render, which may delay LCP. [Deferring or inlining](https://developer.chrome.com/docs/performance/insights/render-blocking) can move these network requests out of the critical path.
+ description: Requests are blocking the page’s initial render, which may delay LCP. [Deferring or inlining](https://developer.chrome.com/docs/performance/insights/render-blocking) can move these network requests out of the critical path.
relevant trace bounds: {min: 122411037528µs, max: 122411053852µs}
example question: Show me the most impactful render-blocking requests that I should focus on
example question: How can I reduce the number of render-blocking requests?
@@ -832,7 +832,7 @@ Available insights:
example question: How do I decrease the initial loading time of my page?
example question: Did anything slow down the request for this document?
- insight name: ThirdParties
- description: 3rd party code can significantly impact load performance. [Reduce and defer loading of 3rd party code](https://developer.chrome.com/docs/performance/insights/third-parties) to prioritize your page's content.
+ description: 3rd party code can significantly impact load performance. [Reduce and defer loading of 3rd party code](https://developer.chrome.com/docs/performance/insights/third-parties) to prioritize your page’s content.
relevant trace bounds: {min: 122411037881µs, max: 122416229595µs}
example question: Which third parties are having the largest impact on my page performance?
- insight name: CharacterSet
@@ -900,7 +900,7 @@ The order of headers corresponds to an internal fixed list. If a header is not p
`;
exports[`McpResponse network pagination > trace summaries > includes the trace summary text and structured data 2`] = `
-"## Summary of Performance trace findings:\\nURL: https://web.dev/\\nTrace bounds: {min: 122410994891µs, max: 122416385853µs}\\nCPU throttling: none\\nNetwork throttling: none\\n\\n# Available insight sets\\n\\nThe following is a list of insight sets. An insight set covers a specific part of the trace, split by navigations. The insights within each insight set are specific to that part of the trace. Be sure to consider the insight set id and bounds when calling functions. If no specific insight set or navigation is mentioned, assume the user is referring to the first one.\\n\\n## insight set id: NAVIGATION_0\\n\\nURL: https://web.dev/\\nBounds: {min: 122410996889µs, max: 122416385853µs}\\nMetrics (lab / observed):\\n - LCP: 129 ms, event: (eventKey: r-6063, ts: 122411126100), nodeId: 7\\n - LCP breakdown:\\n - TTFB: 8 ms, bounds: {min: 122410996889µs, max: 122411004828µs}\\n - Load delay: 33 ms, bounds: {min: 122411004828µs, max: 122411037986µs}\\n - Load duration: 15 ms, bounds: {min: 122411037986µs, max: 122411052690µs}\\n - Render delay: 73 ms, bounds: {min: 122411052690µs, max: 122411126100µs}\\n - CLS: 0.00\\nMetrics (field / real users): n/a – no data for this page in CrUX\\nAvailable insights:\\n - insight name: LCPBreakdown\\n description: Each [subpart has specific improvement strategies](https://developer.chrome.com/docs/performance/insights/lcp-breakdown). Ideally, most of the LCP time should be spent on loading the resources, not within delays.\\n relevant trace bounds: {min: 122410996889µs, max: 122411126100µs}\\n example question: Help me optimize my LCP score\\n example question: Which LCP subpart was most problematic?\\n example question: What can I do to reduce the LCP time for this page load?\\n - insight name: LCPDiscovery\\n description: [Optimize LCP](https://developer.chrome.com/docs/performance/insights/lcp-discovery) by making the LCP image discoverable from the HTML immediately, and avoiding lazy-loading\\n relevant trace bounds: {min: 122411004828µs, max: 122411055039µs}\\n example question: Suggest fixes to reduce my LCP\\n example question: What can I do to reduce my LCP discovery time?\\n example question: Why is LCP discovery time important?\\n - insight name: RenderBlocking\\n description: Requests are blocking the page's initial render, which may delay LCP. [Deferring or inlining](https://developer.chrome.com/docs/performance/insights/render-blocking) can move these network requests out of the critical path.\\n relevant trace bounds: {min: 122411037528µs, max: 122411053852µs}\\n example question: Show me the most impactful render-blocking requests that I should focus on\\n example question: How can I reduce the number of render-blocking requests?\\n - insight name: DocumentLatency\\n description: Your first network request is the most important. [Reduce its latency](https://developer.chrome.com/docs/performance/insights/document-latency) by avoiding redirects, ensuring a fast server response, and enabling text compression.\\n relevant trace bounds: {min: 122410998910µs, max: 122411043781µs}\\n estimated metric savings: FCP 0 ms, LCP 0 ms\\n estimated wasted bytes: 77.1 kB\\n example question: How do I decrease the initial loading time of my page?\\n example question: Did anything slow down the request for this document?\\n - insight name: ThirdParties\\n description: 3rd party code can significantly impact load performance. [Reduce and defer loading of 3rd party code](https://developer.chrome.com/docs/performance/insights/third-parties) to prioritize your page's content.\\n relevant trace bounds: {min: 122411037881µs, max: 122416229595µs}\\n example question: Which third parties are having the largest impact on my page performance?\\n - insight name: CharacterSet\\n description: A character encoding declaration is required. It can be done with a meta charset tag in the first 1024 bytes of the HTML or in the Content-Type HTTP response header. [Learn more about declaring the character encoding](https://developer.chrome.com/docs/insights/charset/).\\n relevant trace bounds: {min: 122410998910µs, max: 122411043781µs}\\n example question: How do I declare a character encoding for my page?\\n\\n## Details on call tree & network request formats:\\nInformation on performance traces may contain main thread activity represented as call frames and network requests.\\n\\nEach call frame is presented in the following format:\\n\\n'id;eventKey;name;duration;selfTime;urlIndex;childRange;[line];[column];[S]'\\n\\nKey definitions:\\n\\n* id: A unique numerical identifier for the call frame. Never mention this id in the output to the user.\\n* eventKey: String that uniquely identifies this event in the flame chart.\\n* name: A concise string describing the call frame (e.g., 'Evaluate Script', 'render', 'fetchData').\\n* duration: The total execution time of the call frame, including its children.\\n* selfTime: The time spent directly within the call frame, excluding its children's execution.\\n* urlIndex: Index referencing the \\"All URLs\\" list. Empty if no specific script URL is associated.\\n* childRange: Specifies the direct children of this node using their IDs. If empty ('' or 'S' at the end), the node has no children. If a single number (e.g., '4'), the node has one child with that ID. If in the format 'firstId-lastId' (e.g., '4-5'), it indicates a consecutive range of child IDs from 'firstId' to 'lastId', inclusive.\\n* line: An optional field for a call frame's line number. This is where the function is defined.\\n* column: An optional field for a call frame's column number. This is where the function is defined.\\n* S: _Optional_. The letter 'S' terminates the line if that call frame was selected by the user.\\n\\nExample Call Tree:\\n\\n1;r-123;main;500;100;0;1;;\\n2;r-124;update;200;50;;3;0;1;\\n3;p-49575-15428179-2834-374;animate;150;20;0;4-5;0;1;S\\n4;p-49575-15428179-3505-1162;calculatePosition;80;80;0;1;;\\n5;p-49575-15428179-5391-2767;applyStyles;50;50;0;1;;\\n\\n\\nNetwork requests are formatted like this:\\n\`urlIndex;eventKey;queuedTime;requestSentTime;downloadCompleteTime;processingCompleteTime;totalDuration;downloadDuration;mainThreadProcessingDuration;statusCode;mimeType;priority;initialPriority;finalPriority;renderBlocking;protocol;fromServiceWorker;initiators;redirects:[[redirectUrlIndex|startTime|duration]];responseHeaders:[header1Value|header2Value|...]\`\\n\\n- \`urlIndex\`: Numerical index for the request's URL, referencing the \\"All URLs\\" list.\\n- \`eventKey\`: String that uniquely identifies this request's trace event.\\nTimings (all in milliseconds, relative to navigation start):\\n- \`queuedTime\`: When the request was queued.\\n- \`requestSentTime\`: When the request was sent.\\n- \`downloadCompleteTime\`: When the download completed.\\n- \`processingCompleteTime\`: When main thread processing finished.\\nDurations (all in milliseconds):\\n- \`totalDuration\`: Total time from the request being queued until its main thread processing completed.\\n- \`downloadDuration\`: Time spent actively downloading the resource.\\n- \`mainThreadProcessingDuration\`: Time spent on the main thread after the download completed.\\n- \`statusCode\`: The HTTP status code of the response (e.g., 200, 404).\\n- \`mimeType\`: The MIME type of the resource (e.g., \\"text/html\\", \\"application/javascript\\").\\n- \`priority\`: The final network request priority (e.g., \\"VeryHigh\\", \\"Low\\").\\n- \`initialPriority\`: The initial network request priority.\\n- \`finalPriority\`: The final network request priority (redundant if \`priority\` is always final, but kept for clarity if \`initialPriority\` and \`priority\` differ).\\n- \`renderBlocking\`: 't' if the request was render-blocking, 'f' otherwise.\\n- \`protocol\`: The network protocol used (e.g., \\"h2\\", \\"http/1.1\\").\\n- \`fromServiceWorker\`: 't' if the request was served from a service worker, 'f' otherwise.\\n- \`initiators\`: A list (separated by ,) of URL indices for the initiator chain of this request. Listed in order starting from the root request to the request that directly loaded this one. This represents the network dependencies necessary to load this request. If there is no initiator, this is empty.\\n- \`redirects\`: A comma-separated list of redirects, enclosed in square brackets. Each redirect is formatted as\\n\`[redirectUrlIndex|startTime|duration]\`, where: \`redirectUrlIndex\`: Numerical index for the redirect's URL. \`startTime\`: The start time of the redirect in milliseconds, relative to navigation start. \`duration\`: The duration of the redirect in milliseconds.\\n- \`responseHeaders\`: A list (separated by '|') of values for specific, pre-defined response headers, enclosed in square brackets.\\nThe order of headers corresponds to an internal fixed list. If a header is not present, its value will be empty.\\n"
+"## Summary of Performance trace findings:\\nURL: https://web.dev/\\nTrace bounds: {min: 122410994891µs, max: 122416385853µs}\\nCPU throttling: none\\nNetwork throttling: none\\n\\n# Available insight sets\\n\\nThe following is a list of insight sets. An insight set covers a specific part of the trace, split by navigations. The insights within each insight set are specific to that part of the trace. Be sure to consider the insight set id and bounds when calling functions. If no specific insight set or navigation is mentioned, assume the user is referring to the first one.\\n\\n## insight set id: NAVIGATION_0\\n\\nURL: https://web.dev/\\nBounds: {min: 122410996889µs, max: 122416385853µs}\\nMetrics (lab / observed):\\n - LCP: 129 ms, event: (eventKey: r-6063, ts: 122411126100), nodeId: 7\\n - LCP breakdown:\\n - TTFB: 8 ms, bounds: {min: 122410996889µs, max: 122411004828µs}\\n - Load delay: 33 ms, bounds: {min: 122411004828µs, max: 122411037986µs}\\n - Load duration: 15 ms, bounds: {min: 122411037986µs, max: 122411052690µs}\\n - Render delay: 73 ms, bounds: {min: 122411052690µs, max: 122411126100µs}\\n - CLS: 0.00\\nMetrics (field / real users): n/a – no data for this page in CrUX\\nAvailable insights:\\n - insight name: LCPBreakdown\\n description: Each [subpart has specific improvement strategies](https://developer.chrome.com/docs/performance/insights/lcp-breakdown). Ideally, most of the LCP time should be spent on loading the resources, not within delays.\\n relevant trace bounds: {min: 122410996889µs, max: 122411126100µs}\\n example question: Help me optimize my LCP score\\n example question: Which LCP subpart was most problematic?\\n example question: What can I do to reduce the LCP time for this page load?\\n - insight name: LCPDiscovery\\n description: [Optimize LCP](https://developer.chrome.com/docs/performance/insights/lcp-discovery) by making the LCP image discoverable from the HTML immediately, and avoiding lazy-loading\\n relevant trace bounds: {min: 122411004828µs, max: 122411055039µs}\\n example question: Suggest fixes to reduce my LCP\\n example question: What can I do to reduce my LCP discovery time?\\n example question: Why is LCP discovery time important?\\n - insight name: RenderBlocking\\n description: Requests are blocking the page’s initial render, which may delay LCP. [Deferring or inlining](https://developer.chrome.com/docs/performance/insights/render-blocking) can move these network requests out of the critical path.\\n relevant trace bounds: {min: 122411037528µs, max: 122411053852µs}\\n example question: Show me the most impactful render-blocking requests that I should focus on\\n example question: How can I reduce the number of render-blocking requests?\\n - insight name: DocumentLatency\\n description: Your first network request is the most important. [Reduce its latency](https://developer.chrome.com/docs/performance/insights/document-latency) by avoiding redirects, ensuring a fast server response, and enabling text compression.\\n relevant trace bounds: {min: 122410998910µs, max: 122411043781µs}\\n estimated metric savings: FCP 0 ms, LCP 0 ms\\n estimated wasted bytes: 77.1 kB\\n example question: How do I decrease the initial loading time of my page?\\n example question: Did anything slow down the request for this document?\\n - insight name: ThirdParties\\n description: 3rd party code can significantly impact load performance. [Reduce and defer loading of 3rd party code](https://developer.chrome.com/docs/performance/insights/third-parties) to prioritize your page’s content.\\n relevant trace bounds: {min: 122411037881µs, max: 122416229595µs}\\n example question: Which third parties are having the largest impact on my page performance?\\n - insight name: CharacterSet\\n description: A character encoding declaration is required. It can be done with a meta charset tag in the first 1024 bytes of the HTML or in the Content-Type HTTP response header. [Learn more about declaring the character encoding](https://developer.chrome.com/docs/insights/charset/).\\n relevant trace bounds: {min: 122410998910µs, max: 122411043781µs}\\n example question: How do I declare a character encoding for my page?\\n\\n## Details on call tree & network request formats:\\nInformation on performance traces may contain main thread activity represented as call frames and network requests.\\n\\nEach call frame is presented in the following format:\\n\\n'id;eventKey;name;duration;selfTime;urlIndex;childRange;[line];[column];[S]'\\n\\nKey definitions:\\n\\n* id: A unique numerical identifier for the call frame. Never mention this id in the output to the user.\\n* eventKey: String that uniquely identifies this event in the flame chart.\\n* name: A concise string describing the call frame (e.g., 'Evaluate Script', 'render', 'fetchData').\\n* duration: The total execution time of the call frame, including its children.\\n* selfTime: The time spent directly within the call frame, excluding its children's execution.\\n* urlIndex: Index referencing the \\"All URLs\\" list. Empty if no specific script URL is associated.\\n* childRange: Specifies the direct children of this node using their IDs. If empty ('' or 'S' at the end), the node has no children. If a single number (e.g., '4'), the node has one child with that ID. If in the format 'firstId-lastId' (e.g., '4-5'), it indicates a consecutive range of child IDs from 'firstId' to 'lastId', inclusive.\\n* line: An optional field for a call frame's line number. This is where the function is defined.\\n* column: An optional field for a call frame's column number. This is where the function is defined.\\n* S: _Optional_. The letter 'S' terminates the line if that call frame was selected by the user.\\n\\nExample Call Tree:\\n\\n1;r-123;main;500;100;0;1;;\\n2;r-124;update;200;50;;3;0;1;\\n3;p-49575-15428179-2834-374;animate;150;20;0;4-5;0;1;S\\n4;p-49575-15428179-3505-1162;calculatePosition;80;80;0;1;;\\n5;p-49575-15428179-5391-2767;applyStyles;50;50;0;1;;\\n\\n\\nNetwork requests are formatted like this:\\n\`urlIndex;eventKey;queuedTime;requestSentTime;downloadCompleteTime;processingCompleteTime;totalDuration;downloadDuration;mainThreadProcessingDuration;statusCode;mimeType;priority;initialPriority;finalPriority;renderBlocking;protocol;fromServiceWorker;initiators;redirects:[[redirectUrlIndex|startTime|duration]];responseHeaders:[header1Value|header2Value|...]\`\\n\\n- \`urlIndex\`: Numerical index for the request's URL, referencing the \\"All URLs\\" list.\\n- \`eventKey\`: String that uniquely identifies this request's trace event.\\nTimings (all in milliseconds, relative to navigation start):\\n- \`queuedTime\`: When the request was queued.\\n- \`requestSentTime\`: When the request was sent.\\n- \`downloadCompleteTime\`: When the download completed.\\n- \`processingCompleteTime\`: When main thread processing finished.\\nDurations (all in milliseconds):\\n- \`totalDuration\`: Total time from the request being queued until its main thread processing completed.\\n- \`downloadDuration\`: Time spent actively downloading the resource.\\n- \`mainThreadProcessingDuration\`: Time spent on the main thread after the download completed.\\n- \`statusCode\`: The HTTP status code of the response (e.g., 200, 404).\\n- \`mimeType\`: The MIME type of the resource (e.g., \\"text/html\\", \\"application/javascript\\").\\n- \`priority\`: The final network request priority (e.g., \\"VeryHigh\\", \\"Low\\").\\n- \`initialPriority\`: The initial network request priority.\\n- \`finalPriority\`: The final network request priority (redundant if \`priority\` is always final, but kept for clarity if \`initialPriority\` and \`priority\` differ).\\n- \`renderBlocking\`: 't' if the request was render-blocking, 'f' otherwise.\\n- \`protocol\`: The network protocol used (e.g., \\"h2\\", \\"http/1.1\\").\\n- \`fromServiceWorker\`: 't' if the request was served from a service worker, 'f' otherwise.\\n- \`initiators\`: A list (separated by ,) of URL indices for the initiator chain of this request. Listed in order starting from the root request to the request that directly loaded this one. This represents the network dependencies necessary to load this request. If there is no initiator, this is empty.\\n- \`redirects\`: A comma-separated list of redirects, enclosed in square brackets. Each redirect is formatted as\\n\`[redirectUrlIndex|startTime|duration]\`, where: \`redirectUrlIndex\`: Numerical index for the redirect's URL. \`startTime\`: The start time of the redirect in milliseconds, relative to navigation start. \`duration\`: The duration of the redirect in milliseconds.\\n- \`responseHeaders\`: A list (separated by '|') of values for specific, pre-defined response headers, enclosed in square brackets.\\nThe order of headers corresponds to an internal fixed list. If a header is not present, its value will be empty.\\n"
`;
exports[`McpResponse network pagination > trace summaries > includes the trace summary text and structured data 3`] = `
diff --git a/tests/tools/console.test.js.snapshot b/tests/tools/console.test.js.snapshot
index d443a7d8..9a51ce5c 100644
--- a/tests/tools/console.test.js.snapshot
+++ b/tests/tools/console.test.js.snapshot
@@ -100,9 +100,9 @@ Note: line and column numbers use 1-based indexing
exports[`console > get_console_message > issues type > gets issue details with node id parsing 1`] = `
ID: 1
-Message: issue> An element doesn't have an autocomplete attribute
+Message: issue> An element doesn’t have an autocomplete attribute
-A form field has an \`id\` or \`name\` attribute that the browser's autofill recognizes. However, it doesn't have an \`autocomplete\` attribute assigned. This might prevent the browser from correctly autofilling the form.
+A form field has an \`id\` or \`name\` attribute that the browser’s autofill recognizes. However, it doesn’t have an \`autocomplete\` attribute assigned. This might stop the browser from correctly autofilling the form.
To fix this issue, provide an \`autocomplete\` attribute.
Learn more:
@@ -115,11 +115,11 @@ exports[`console > get_console_message > issues type > gets issue details with r
ID: <ID>
Message: issue> Ensure CORS response header values are valid
-A cross-origin resource sharing (CORS) request was blocked because of invalid or missing response headers of the request or the associated [preflight request](issueCorsPreflightRequest).
+A Cross-Origin Resource Sharing (CORS) request was blocked because of invalid or missing response headers of the request or the associated [preflight request](issueCorsPreflightRequest).
-To fix this issue, ensure the response to the CORS request and/or the associated [preflight request](issueCorsPreflightRequest) are not missing headers and use valid header values.
+To fix this issue, ensure the response to the CORS request and/or the associated [preflight request](issueCorsPreflightRequest) aren’t missing headers and use valid header values.
-Note that if an opaque response is sufficient, the request's mode can be set to \`no-cors\` to fetch the resource with CORS disabled; that way CORS headers are not required but the response content is inaccessible (opaque).
+Note that if an opaque response is sufficient, the request’s mode can be set to \`no-cors\` to fetch the resource with CORS disabled; that way CORS headers aren’t required but the response content is inaccessible (opaque).
Learn more:
[Cross-Origin Resource Sharing (CORS)](https://web.dev/cross-origin-resource-sharing)
### Affected resources
diff --git a/tests/tools/console.test.ts b/tests/tools/console.test.ts
index f8ed73a5..0fc9e57e 100644
--- a/tests/tools/console.test.ts
+++ b/tests/tools/console.test.ts
@@ -225,7 +225,7 @@ describe('console', () => {
const textContent = getTextContent(formattedResponse.content[0]);
assert.ok(
textContent.includes(
- `msgid=1 [issue] An element doesn't have an autocomplete attribute (count: 1)`,
+ `msgid=1 [issue] An element doesn’t have an autocomplete attribute (count: 1)`,
),
);
});
@@ -255,7 +255,7 @@ describe('console', () => {
const textContent = getTextContent(formattedResponse.content[0]);
assert.ok(
textContent.includes(
- `msgid=1 [issue] An element doesn't have an autocomplete attribute (count: 1)`,
+ `msgid=1 [issue] An element doesn’t have an autocomplete attribute (count: 1)`,
),
);
}
@@ -275,7 +275,7 @@ describe('console', () => {
const textContent = getTextContent(formattedResponse.content[0]);
assert.ok(
textContent.includes(
- `msgid=2 [issue] An element doesn't have an autocomplete attribute (count: 1)`,
+ `msgid=2 [issue] An element doesn’t have an autocomplete attribute (count: 1)`,
),
);
}
diff --git a/tests/trace-processing/parse.test.js.snapshot b/tests/trace-processing/parse.test.js.snapshot
index 55efe54f..bf59cc4f 100644
--- a/tests/trace-processing/parse.test.js.snapshot
+++ b/tests/trace-processing/parse.test.js.snapshot
@@ -36,7 +36,7 @@ Available insights:
example question: What can I do to reduce my LCP discovery time?
example question: Why is LCP discovery time important?
- insight name: RenderBlocking
- description: Requests are blocking the page's initial render, which may delay LCP. [Deferring or inlining](https://developer.chrome.com/docs/performance/insights/render-blocking) can move these network requests out of the critical path.
+ description: Requests are blocking the page’s initial render, which may delay LCP. [Deferring or inlining](https://developer.chrome.com/docs/performance/insights/render-blocking) can move these network requests out of the critical path.
relevant trace bounds: {min: 122411037528µs, max: 122411053852µs}
example question: Show me the most impactful render-blocking requests that I should focus on
example question: How can I reduce the number of render-blocking requests?
@@ -48,7 +48,7 @@ Available insights:
example question: How do I decrease the initial loading time of my page?
example question: Did anything slow down the request for this document?
- insight name: ThirdParties
- description: 3rd party code can significantly impact load performance. [Reduce and defer loading of 3rd party code](https://developer.chrome.com/docs/performance/insights/third-parties) to prioritize your page's content.
+ description: 3rd party code can significantly impact load performance. [Reduce and defer loading of 3rd party code](https://developer.chrome.com/docs/performance/insights/third-parties) to prioritize your page’s content.
relevant trace bounds: {min: 122411037881µs, max: 122416229595µs}
example question: Which third parties are having the largest impact on my page performance?
- insight name: CharacterSet
diff --git a/tsconfig.json b/tsconfig.json
index e0f6a535..7c3c6d19 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -33,17 +33,14 @@
"node_modules/chrome-devtools-frontend/front_end/core/protocol_client",
"node_modules/chrome-devtools-frontend/front_end/core/root",
"node_modules/chrome-devtools-frontend/front_end/core/sdk",
+ "node_modules/chrome-devtools-frontend/front_end/core/text_utils",
"node_modules/chrome-devtools-frontend/front_end/entrypoints/formatter_worker",
"node_modules/chrome-devtools-frontend/front_end/entrypoints/heap_snapshot_worker",
"node_modules/chrome-devtools-frontend/front_end/foundation/foundation.ts",
"node_modules/chrome-devtools-frontend/front_end/foundation/Universe.ts",
"node_modules/chrome-devtools-frontend/front_end/generated",
"node_modules/chrome-devtools-frontend/front_end/legacy/legacy-defs.d.ts",
- "node_modules/chrome-devtools-frontend/front_end/models/ai_assistance/data_formatters/NetworkRequestFormatter.ts",
- "node_modules/chrome-devtools-frontend/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.ts",
- "node_modules/chrome-devtools-frontend/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts",
- "node_modules/chrome-devtools-frontend/front_end/models/ai_assistance/data_formatters/UnitFormatters.ts",
- "node_modules/chrome-devtools-frontend/front_end/models/ai_assistance/performance",
+ "node_modules/chrome-devtools-frontend/front_end/models/ai_assistance/**/*.ts",
"node_modules/chrome-devtools-frontend/front_end/models/annotations",
"node_modules/chrome-devtools-frontend/front_end/models/autofill_manager",
"node_modules/chrome-devtools-frontend/front_end/models/bindings",
@@ -67,6 +64,8 @@
"node_modules/chrome-devtools-frontend/front_end/models/text_utils",
"node_modules/chrome-devtools-frontend/front_end/models/trace_source_maps_resolver",
"node_modules/chrome-devtools-frontend/front_end/models/trace",
+ "node_modules/chrome-devtools-frontend/front_end/models/badges",
+ "node_modules/chrome-devtools-frontend/front_end/services/tracing",
"node_modules/chrome-devtools-frontend/front_end/models/workspace",
"node_modules/chrome-devtools-frontend/front_end/models/workspace_diff",
"node_modules/chrome-devtools-frontend/front_end/panels/issues/IssueAggregator.ts",