chrome-devtools-frontend 1.0.1531367 → 1.0.1532228
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/AUTHORS +2 -0
- package/front_end/core/protocol_client/InspectorBackend.ts +15 -6
- package/front_end/core/protocol_client/protocol_client.ts +0 -10
- package/front_end/generated/ARIAProperties.js +1301 -174
- package/front_end/generated/Deprecation.ts +7 -0
- package/front_end/generated/InspectorBackendCommands.js +1 -0
- package/front_end/generated/protocol-mapping.d.ts +4 -0
- package/front_end/generated/protocol-proxy-api.d.ts +5 -0
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.snapshot.txt +1 -1
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.ts +1 -1
- package/front_end/models/issues_manager/AttributionReportingIssue.ts +4 -3
- package/front_end/models/issues_manager/BounceTrackingIssue.ts +4 -3
- package/front_end/models/issues_manager/ClientHintIssue.ts +4 -3
- package/front_end/models/issues_manager/ContentSecurityPolicyIssue.ts +4 -3
- package/front_end/models/issues_manager/CookieDeprecationMetadataIssue.ts +5 -3
- package/front_end/models/issues_manager/CookieIssue.ts +4 -4
- package/front_end/models/issues_manager/CorsIssue.ts +3 -3
- package/front_end/models/issues_manager/CrossOriginEmbedderPolicyIssue.ts +2 -1
- package/front_end/models/issues_manager/DeprecationIssue.ts +4 -3
- package/front_end/models/issues_manager/ElementAccessibilityIssue.ts +4 -3
- package/front_end/models/issues_manager/FederatedAuthRequestIssue.ts +4 -3
- package/front_end/models/issues_manager/GenericIssue.ts +3 -3
- package/front_end/models/issues_manager/HeavyAdIssue.ts +3 -3
- package/front_end/models/issues_manager/IssuesManager.ts +3 -3
- package/front_end/models/issues_manager/LowTextContrastIssue.ts +5 -3
- package/front_end/models/issues_manager/MixedContentIssue.ts +4 -3
- package/front_end/models/issues_manager/PartitioningBlobURLIssue.ts +5 -3
- package/front_end/models/issues_manager/PropertyRuleIssue.ts +4 -3
- package/front_end/models/issues_manager/QuirksModeIssue.ts +4 -3
- package/front_end/models/issues_manager/SRIMessageSignatureIssue.ts +5 -3
- package/front_end/models/issues_manager/SharedArrayBufferIssue.ts +5 -3
- package/front_end/models/issues_manager/SharedDictionaryIssue.ts +5 -3
- package/front_end/models/issues_manager/StylesheetLoadingIssue.ts +5 -3
- package/front_end/models/issues_manager/UnencodedDigestIssue.ts +5 -3
- package/front_end/models/issues_manager/UserReidentificationIssue.ts +4 -3
- package/front_end/models/javascript_metadata/NativeFunctions.js +1 -1
- package/front_end/models/trace/insights/ForcedReflow.ts +1 -1
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +16 -3
- package/front_end/panels/network/{BlockedURLsPane.ts → RequestConditionsDrawer.ts} +34 -17
- package/front_end/panels/network/network-meta.ts +33 -9
- package/front_end/panels/network/network.ts +3 -3
- package/front_end/panels/recorder/components/stepView.css +2 -2
- package/front_end/panels/sources/SourcesSearchScope.ts +5 -0
- package/front_end/panels/timeline/components/insights/ForcedReflow.ts +2 -2
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +31 -5
- package/front_end/ui/legacy/components/utils/TargetDetachedDialog.ts +3 -0
- package/package.json +1 -1
- /package/front_end/panels/network/{blockedURLsPane.css → requestConditionsDrawer.css} +0 -0
package/AUTHORS
CHANGED
|
@@ -65,6 +65,7 @@ Marijn Haverbeke <marijnh@gmail.com>
|
|
|
65
65
|
Max 😎 Coplan <mchcopl@gmail.com>
|
|
66
66
|
Michael Brüning <michael.bruning@qt.io>
|
|
67
67
|
Michael Rienstra <mrienstra@gmail.com>
|
|
68
|
+
Mostafa Aboalkasim <mostafa.aboalkasim.offical@gmail.com>
|
|
68
69
|
Muhammad Mahad <mahadtxt@gmail.com>
|
|
69
70
|
Naoto Ono <onoto1998@gmail.com>
|
|
70
71
|
Paras Awasthi <awasthiparas6@gmail.com>
|
|
@@ -93,6 +94,7 @@ Tony Kostowny <tonykostowny@gmail.com>
|
|
|
93
94
|
Toshiaki Tanaka <zokutyou2@gmail.com>
|
|
94
95
|
Tushar Singh <tusharvickey1999@gmail.com>
|
|
95
96
|
Varun Varada <varuncvarada@gmail.com>
|
|
97
|
+
Vishwa Kalubowila <vishwa.kalubowila@codimite.com>
|
|
96
98
|
Vitali Zaidman <vzaidman@gmail.com>
|
|
97
99
|
Will Hernandez <w.hernandez.code@gmail.com>
|
|
98
100
|
Yeol Park <peary2@gmail.com>
|
|
@@ -2,6 +2,7 @@
|
|
|
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
|
|
|
5
|
+
import * as InspectorBackendCommands from '../../generated/InspectorBackendCommands.js';
|
|
5
6
|
import type * as ProtocolProxyApi from '../../generated/protocol-proxy-api.js';
|
|
6
7
|
import type * as Protocol from '../../generated/protocol.js';
|
|
7
8
|
import type * as Platform from '../platform/platform.js';
|
|
@@ -78,6 +79,15 @@ export class InspectorBackend {
|
|
|
78
79
|
readonly typeMap = new Map<QualifiedName, CommandParameter[]>();
|
|
79
80
|
readonly enumMap = new Map<QualifiedName, Record<string, string>>();
|
|
80
81
|
|
|
82
|
+
constructor() {
|
|
83
|
+
// Create the global here because registering commands will involve putting
|
|
84
|
+
// items onto the global.
|
|
85
|
+
// @ts-expect-error Global namespace instantiation
|
|
86
|
+
globalThis.Protocol ||= {};
|
|
87
|
+
|
|
88
|
+
InspectorBackendCommands.registerCommands(this);
|
|
89
|
+
}
|
|
90
|
+
|
|
81
91
|
private getOrCreateEventParameterNamesForDomain(domain: ProtocolDomainName): EventParameterNames {
|
|
82
92
|
let map = this.#eventParameterNamesForDomain.get(domain);
|
|
83
93
|
if (!map) {
|
|
@@ -367,9 +377,8 @@ export class SessionRouter {
|
|
|
367
377
|
const sessionId = messageObject.sessionId || '';
|
|
368
378
|
const session = this.#sessions.get(sessionId);
|
|
369
379
|
if (!session) {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
}
|
|
380
|
+
// In the DevTools MCP case, we may share the transport with puppeteer so we silently
|
|
381
|
+
// ignore unknown sessions.
|
|
373
382
|
return;
|
|
374
383
|
}
|
|
375
384
|
|
|
@@ -492,12 +501,12 @@ export class TargetBase {
|
|
|
492
501
|
this.needsNodeJSPatching = needsNodeJSPatching;
|
|
493
502
|
this.sessionId = sessionId;
|
|
494
503
|
|
|
495
|
-
if (
|
|
496
|
-
throw new Error('
|
|
504
|
+
if (parentTarget && !sessionId) {
|
|
505
|
+
throw new Error('Specifying a parent target requires a session ID');
|
|
497
506
|
}
|
|
498
507
|
|
|
499
508
|
let router: SessionRouter;
|
|
500
|
-
if (
|
|
509
|
+
if (parentTarget && parentTarget.#router) {
|
|
501
510
|
router = parentTarget.#router;
|
|
502
511
|
} else if (connection) {
|
|
503
512
|
router = new SessionRouter(connection);
|
|
@@ -2,8 +2,6 @@
|
|
|
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
|
|
|
5
|
-
import * as InspectorBackendCommands from '../../generated/InspectorBackendCommands.js';
|
|
6
|
-
|
|
7
5
|
import * as InspectorBackend from './InspectorBackend.js';
|
|
8
6
|
import * as NodeURL from './NodeURL.js';
|
|
9
7
|
|
|
@@ -11,11 +9,3 @@ export {
|
|
|
11
9
|
InspectorBackend,
|
|
12
10
|
NodeURL,
|
|
13
11
|
};
|
|
14
|
-
|
|
15
|
-
// Create the global here because registering commands will involve putting
|
|
16
|
-
// items onto the global.
|
|
17
|
-
// @ts-expect-error Global namespace instantiation
|
|
18
|
-
globalThis.Protocol = globalThis.Protocol || {};
|
|
19
|
-
|
|
20
|
-
// FIXME: This instance of InspectorBackend should not be a side effect of importing this module.
|
|
21
|
-
InspectorBackendCommands.registerCommands(InspectorBackend.inspectorBackend);
|