chrome-devtools-frontend 1.0.1028166 → 1.0.1029692
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/config/gni/devtools_grd_files.gni +5 -5
- package/config/gni/devtools_image_files.gni +1 -0
- package/front_end/Images/src/clear-warning_icon.svg +99 -0
- package/front_end/core/common/WasmDisassembly.ts +6 -1
- package/front_end/core/host/ResourceLoader.ts +17 -3
- package/front_end/core/i18n/locales/en-US.json +15 -3
- package/front_end/core/i18n/locales/en-XL.json +15 -3
- package/front_end/core/sdk/NetworkManager.ts +3 -1
- package/front_end/core/sdk/Script.ts +39 -13
- package/front_end/generated/InspectorBackendCommands.js +9 -9
- package/front_end/generated/SupportedCSSProperties.js +2 -4
- package/front_end/generated/protocol.ts +48 -11
- package/front_end/models/bindings/ContentProviderBasedProject.ts +7 -1
- package/front_end/models/issues_manager/AttributionReportingIssue.ts +26 -36
- package/front_end/models/issues_manager/DeprecationIssue.ts +17 -2
- package/front_end/models/issues_manager/descriptions/arInsecureContext.md +7 -0
- package/front_end/models/issues_manager/descriptions/arInvalidRegisterSourceHeader.md +5 -0
- package/front_end/models/issues_manager/descriptions/arInvalidRegisterTriggerHeader.md +5 -0
- package/front_end/models/issues_manager/descriptions/arPermissionPolicyDisabled.md +7 -4
- package/front_end/models/issues_manager/descriptions/arUntrustworthyReportingOrigin.md +10 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +1 -1
- package/front_end/models/text_utils/ContentProvider.ts +9 -1
- package/front_end/panels/application/components/Prerender2.ts +12 -0
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +11 -42
- package/front_end/panels/network/components/RequestHeadersView.ts +86 -46
- package/front_end/panels/network/network-meta.ts +16 -0
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +41 -21
- package/front_end/panels/timeline/TimelineLoader.ts +2 -1
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +25 -7
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +22 -30
- package/front_end/ui/legacy/SplitWidget.ts +2 -0
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +9 -51
- package/package.json +1 -1
- package/front_end/models/issues_manager/descriptions/arAttributionSourceUntrustworthyFrameOrigin.md +0 -4
- package/front_end/models/issues_manager/descriptions/arAttributionSourceUntrustworthyOrigin.md +0 -5
- package/front_end/models/issues_manager/descriptions/arAttributionUntrustworthyFrameOrigin.md +0 -4
- package/front_end/models/issues_manager/descriptions/arAttributionUntrustworthyOrigin.md +0 -4
- package/front_end/models/issues_manager/descriptions/arInvalidHeader.md +0 -3
@@ -963,9 +963,11 @@ export namespace Audits {
|
|
963
963
|
|
964
964
|
export const enum AttributionReportingIssueType {
|
965
965
|
PermissionPolicyDisabled = 'PermissionPolicyDisabled',
|
966
|
-
|
967
|
-
|
966
|
+
UntrustworthyReportingOrigin = 'UntrustworthyReportingOrigin',
|
967
|
+
InsecureContext = 'InsecureContext',
|
968
968
|
InvalidHeader = 'InvalidHeader',
|
969
|
+
InvalidRegisterTriggerHeader = 'InvalidRegisterTriggerHeader',
|
970
|
+
InvalidEligibleHeader = 'InvalidEligibleHeader',
|
969
971
|
}
|
970
972
|
|
971
973
|
/**
|
@@ -974,7 +976,6 @@ export namespace Audits {
|
|
974
976
|
*/
|
975
977
|
export interface AttributionReportingIssueDetails {
|
976
978
|
violationType: AttributionReportingIssueType;
|
977
|
-
frame?: AffectedFrame;
|
978
979
|
request?: AffectedRequest;
|
979
980
|
violatingNodeId?: DOM.BackendNodeId;
|
980
981
|
invalidParameter?: string;
|
@@ -1049,6 +1050,7 @@ export namespace Audits {
|
|
1049
1050
|
ObsoleteWebRtcCipherSuite = 'ObsoleteWebRtcCipherSuite',
|
1050
1051
|
OpenWebDatabaseInsecureContext = 'OpenWebDatabaseInsecureContext',
|
1051
1052
|
OverflowVisibleOnReplacedElement = 'OverflowVisibleOnReplacedElement',
|
1053
|
+
PersistentQuotaType = 'PersistentQuotaType',
|
1052
1054
|
PictureSourceSrc = 'PictureSourceSrc',
|
1053
1055
|
PrefixedCancelAnimationFrame = 'PrefixedCancelAnimationFrame',
|
1054
1056
|
PrefixedRequestAnimationFrame = 'PrefixedRequestAnimationFrame',
|
@@ -5858,9 +5860,14 @@ export namespace IndexedDB {
|
|
5858
5860
|
|
5859
5861
|
export interface ClearObjectStoreRequest {
|
5860
5862
|
/**
|
5863
|
+
* At least and at most one of securityOrigin, storageKey must be specified.
|
5861
5864
|
* Security origin.
|
5862
5865
|
*/
|
5863
|
-
securityOrigin
|
5866
|
+
securityOrigin?: string;
|
5867
|
+
/**
|
5868
|
+
* Storage key.
|
5869
|
+
*/
|
5870
|
+
storageKey?: string;
|
5864
5871
|
/**
|
5865
5872
|
* Database name.
|
5866
5873
|
*/
|
@@ -5873,9 +5880,14 @@ export namespace IndexedDB {
|
|
5873
5880
|
|
5874
5881
|
export interface DeleteDatabaseRequest {
|
5875
5882
|
/**
|
5883
|
+
* At least and at most one of securityOrigin, storageKey must be specified.
|
5876
5884
|
* Security origin.
|
5877
5885
|
*/
|
5878
|
-
securityOrigin
|
5886
|
+
securityOrigin?: string;
|
5887
|
+
/**
|
5888
|
+
* Storage key.
|
5889
|
+
*/
|
5890
|
+
storageKey?: string;
|
5879
5891
|
/**
|
5880
5892
|
* Database name.
|
5881
5893
|
*/
|
@@ -5883,7 +5895,15 @@ export namespace IndexedDB {
|
|
5883
5895
|
}
|
5884
5896
|
|
5885
5897
|
export interface DeleteObjectStoreEntriesRequest {
|
5886
|
-
|
5898
|
+
/**
|
5899
|
+
* At least and at most one of securityOrigin, storageKey must be specified.
|
5900
|
+
* Security origin.
|
5901
|
+
*/
|
5902
|
+
securityOrigin?: string;
|
5903
|
+
/**
|
5904
|
+
* Storage key.
|
5905
|
+
*/
|
5906
|
+
storageKey?: string;
|
5887
5907
|
databaseName: string;
|
5888
5908
|
objectStoreName: string;
|
5889
5909
|
/**
|
@@ -5894,9 +5914,14 @@ export namespace IndexedDB {
|
|
5894
5914
|
|
5895
5915
|
export interface RequestDataRequest {
|
5896
5916
|
/**
|
5917
|
+
* At least and at most one of securityOrigin, storageKey must be specified.
|
5897
5918
|
* Security origin.
|
5898
5919
|
*/
|
5899
|
-
securityOrigin
|
5920
|
+
securityOrigin?: string;
|
5921
|
+
/**
|
5922
|
+
* Storage key.
|
5923
|
+
*/
|
5924
|
+
storageKey?: string;
|
5900
5925
|
/**
|
5901
5926
|
* Database name.
|
5902
5927
|
*/
|
@@ -5936,9 +5961,14 @@ export namespace IndexedDB {
|
|
5936
5961
|
|
5937
5962
|
export interface GetMetadataRequest {
|
5938
5963
|
/**
|
5964
|
+
* At least and at most one of securityOrigin, storageKey must be specified.
|
5939
5965
|
* Security origin.
|
5940
5966
|
*/
|
5941
|
-
securityOrigin
|
5967
|
+
securityOrigin?: string;
|
5968
|
+
/**
|
5969
|
+
* Storage key.
|
5970
|
+
*/
|
5971
|
+
storageKey?: string;
|
5942
5972
|
/**
|
5943
5973
|
* Database name.
|
5944
5974
|
*/
|
@@ -5964,9 +5994,14 @@ export namespace IndexedDB {
|
|
5964
5994
|
|
5965
5995
|
export interface RequestDatabaseRequest {
|
5966
5996
|
/**
|
5997
|
+
* At least and at most one of securityOrigin, storageKey must be specified.
|
5967
5998
|
* Security origin.
|
5968
5999
|
*/
|
5969
|
-
securityOrigin
|
6000
|
+
securityOrigin?: string;
|
6001
|
+
/**
|
6002
|
+
* Storage key.
|
6003
|
+
*/
|
6004
|
+
storageKey?: string;
|
5970
6005
|
/**
|
5971
6006
|
* Database name.
|
5972
6007
|
*/
|
@@ -11110,6 +11145,8 @@ export namespace Page {
|
|
11110
11145
|
EmbedderTriggeredAndSameOriginRedirected = 'EmbedderTriggeredAndSameOriginRedirected',
|
11111
11146
|
EmbedderTriggeredAndCrossOriginRedirected = 'EmbedderTriggeredAndCrossOriginRedirected',
|
11112
11147
|
EmbedderTriggeredAndDestroyed = 'EmbedderTriggeredAndDestroyed',
|
11148
|
+
MemoryLimitExceeded = 'MemoryLimitExceeded',
|
11149
|
+
FailToGetMemoryUsage = 'FailToGetMemoryUsage',
|
11113
11150
|
}
|
11114
11151
|
|
11115
11152
|
export interface AddScriptToEvaluateOnLoadRequest {
|
@@ -15154,8 +15191,8 @@ export namespace Debugger {
|
|
15154
15191
|
*/
|
15155
15192
|
totalNumberOfLines: integer;
|
15156
15193
|
/**
|
15157
|
-
* The offsets of all function bodies
|
15158
|
-
*
|
15194
|
+
* The offsets of all function bodies, in the format [start1, end1,
|
15195
|
+
* start2, end2, ...] where all ends are exclusive.
|
15159
15196
|
*/
|
15160
15197
|
functionBodyOffsets: integer[];
|
15161
15198
|
/**
|
@@ -68,7 +68,13 @@ export class ContentProviderBasedProject extends Workspace.Workspace.ProjectStor
|
|
68
68
|
try {
|
69
69
|
const [content, isEncoded] =
|
70
70
|
await Promise.all([contentProvider.requestContent(), contentProvider.contentEncoded()]);
|
71
|
-
|
71
|
+
const wasmDisassemblyInfo = 'wasmDisassemblyInfo' in content ? content.wasmDisassemblyInfo : undefined;
|
72
|
+
return {
|
73
|
+
content: content.content,
|
74
|
+
wasmDisassemblyInfo,
|
75
|
+
isEncoded,
|
76
|
+
error: 'error' in content && content.error || '',
|
77
|
+
};
|
72
78
|
} catch (err) {
|
73
79
|
// TODO(rob.paveza): CRBug 1013683 - Consider propagating exceptions full-stack
|
74
80
|
return {
|
@@ -10,25 +10,29 @@ import {type MarkdownIssueDescription} from './MarkdownIssueDescription.js';
|
|
10
10
|
|
11
11
|
export const enum IssueCode {
|
12
12
|
PermissionPolicyDisabled = 'AttributionReportingIssue::PermissionPolicyDisabled',
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
UntrustworthyReportingOrigin = 'AttributionReportingIssue::UntrustworthyReportingOrigin',
|
14
|
+
InsecureContext = 'AttributionReportingIssue::InsecureContext',
|
15
|
+
InvalidRegisterSourceHeader = 'AttributionReportingIssue::InvalidRegisterSourceHeader',
|
16
|
+
InvalidRegisterTriggerHeader = 'AttributionReportingIssue::InvalidRegisterTriggerHeader',
|
17
|
+
// TODO(apaseltiner): Remove this once old issue types are removed from
|
18
|
+
// protocol.
|
19
|
+
Unknown = 'AttributionReportingIssue::Unknown',
|
18
20
|
}
|
19
21
|
|
20
22
|
function getIssueCode(details: Protocol.Audits.AttributionReportingIssueDetails): IssueCode {
|
21
23
|
switch (details.violationType) {
|
22
24
|
case Protocol.Audits.AttributionReportingIssueType.PermissionPolicyDisabled:
|
23
25
|
return IssueCode.PermissionPolicyDisabled;
|
24
|
-
case Protocol.Audits.AttributionReportingIssueType.
|
25
|
-
return
|
26
|
-
|
27
|
-
|
28
|
-
return details.frame !== undefined ? IssueCode.AttributionUntrustworthyFrameOrigin :
|
29
|
-
IssueCode.AttributionUntrustworthyOrigin;
|
26
|
+
case Protocol.Audits.AttributionReportingIssueType.UntrustworthyReportingOrigin:
|
27
|
+
return IssueCode.UntrustworthyReportingOrigin;
|
28
|
+
case Protocol.Audits.AttributionReportingIssueType.InsecureContext:
|
29
|
+
return IssueCode.InsecureContext;
|
30
30
|
case Protocol.Audits.AttributionReportingIssueType.InvalidHeader:
|
31
|
-
return IssueCode.
|
31
|
+
return IssueCode.InvalidRegisterSourceHeader;
|
32
|
+
case Protocol.Audits.AttributionReportingIssueType.InvalidRegisterTriggerHeader:
|
33
|
+
return IssueCode.InvalidRegisterTriggerHeader;
|
34
|
+
default:
|
35
|
+
return IssueCode.Unknown;
|
32
36
|
}
|
33
37
|
}
|
34
38
|
|
@@ -52,42 +56,28 @@ export class AttributionReportingIssue extends Issue<IssueCode> {
|
|
52
56
|
file: 'arPermissionPolicyDisabled.md',
|
53
57
|
links: [],
|
54
58
|
};
|
55
|
-
case IssueCode.
|
59
|
+
case IssueCode.UntrustworthyReportingOrigin:
|
56
60
|
return {
|
57
|
-
file: '
|
61
|
+
file: 'arUntrustworthyReportingOrigin.md',
|
58
62
|
links: [],
|
59
63
|
};
|
60
|
-
case IssueCode.
|
64
|
+
case IssueCode.InsecureContext:
|
61
65
|
return {
|
62
|
-
file: '
|
63
|
-
links: [
|
64
|
-
{
|
65
|
-
link:
|
66
|
-
'https://developer.chrome.com/docs/privacy-sandbox/attribution-reporting-event-guide/#html-attribute-attributiondestination-required',
|
67
|
-
linkTitle: 'attributiondestination attribute',
|
68
|
-
},
|
69
|
-
{
|
70
|
-
link:
|
71
|
-
'https://developer.chrome.com/docs/privacy-sandbox/attribution-reporting-event-guide/#html-attribute-attributionreportto',
|
72
|
-
linkTitle: 'attributionreportto attribute',
|
73
|
-
},
|
74
|
-
],
|
75
|
-
};
|
76
|
-
case IssueCode.AttributionUntrustworthyFrameOrigin:
|
77
|
-
return {
|
78
|
-
file: 'arAttributionUntrustworthyFrameOrigin.md',
|
66
|
+
file: 'arInsecureContext.md',
|
79
67
|
links: [],
|
80
68
|
};
|
81
|
-
case IssueCode.
|
69
|
+
case IssueCode.InvalidRegisterSourceHeader:
|
82
70
|
return {
|
83
|
-
file: '
|
71
|
+
file: 'arInvalidRegisterSourceHeader.md',
|
84
72
|
links: [],
|
85
73
|
};
|
86
|
-
case IssueCode.
|
74
|
+
case IssueCode.InvalidRegisterTriggerHeader:
|
87
75
|
return {
|
88
|
-
file: '
|
76
|
+
file: 'arInvalidRegisterTriggerHeader.md',
|
89
77
|
links: [],
|
90
78
|
};
|
79
|
+
case IssueCode.Unknown:
|
80
|
+
return null;
|
91
81
|
}
|
92
82
|
}
|
93
83
|
|
@@ -27,9 +27,14 @@ const UIStrings = {
|
|
27
27
|
*/
|
28
28
|
title: 'Deprecated Feature Used',
|
29
29
|
|
30
|
-
// Store alphabetized messages per DeprecationIssueType in this block.
|
31
30
|
/**
|
32
|
-
* @description
|
31
|
+
* @description We show this warning when 1) an "authorization" header is
|
32
|
+
* attached to the request by scripts, 2) there is no "authorization" in
|
33
|
+
* the "access-control-allow-headers" header in the response, and 3) there
|
34
|
+
* is a wildcard symbol ("*") in the "access-control-allow-header" header
|
35
|
+
* in the response. This is allowed now, but we're planning to reject such
|
36
|
+
* responses and require responses to have an "access-control-allow-headers"
|
37
|
+
* containing "authorization".
|
33
38
|
*/
|
34
39
|
authorizationCoveredByWildcard:
|
35
40
|
'Authorization will not be covered by the wildcard symbol (*) in CORS `Access-Control-Allow-Headers` handling.',
|
@@ -181,6 +186,11 @@ const UIStrings = {
|
|
181
186
|
*/
|
182
187
|
openWebDatabaseInsecureContext:
|
183
188
|
'WebSQL in non-secure contexts is deprecated and will be removed in M107. Please use Web Storage or Indexed Database.',
|
189
|
+
/**
|
190
|
+
* @description Warning displayed to developers when persistent storage type is used to notify that storage type is deprecated.
|
191
|
+
*/
|
192
|
+
persistentQuotaType:
|
193
|
+
'`StorageType.persistent` is deprecated. Please use standardized `navigator.storage` instead.',
|
184
194
|
/**
|
185
195
|
* @description This issue indicates that a `<source>` element with a `<picture>` parent was using an `src` attribute, which is not valid and is ignored by the browser. The `srcset` attribute should be used instead.
|
186
196
|
*/
|
@@ -441,6 +451,11 @@ export class DeprecationIssue extends Issue {
|
|
441
451
|
feature = 5175124599767040;
|
442
452
|
milestone = 105;
|
443
453
|
break;
|
454
|
+
case Protocol.Audits.DeprecationIssueType.PersistentQuotaType:
|
455
|
+
messageFunction = i18nLazyString(UIStrings.persistentQuotaType);
|
456
|
+
feature = 5176235376246784;
|
457
|
+
milestone = 106;
|
458
|
+
break;
|
444
459
|
case Protocol.Audits.DeprecationIssueType.PictureSourceSrc:
|
445
460
|
messageFunction = i18nLazyString(UIStrings.pictureSourceSrc);
|
446
461
|
break;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Ensure that the attribution registration context is secure
|
2
|
+
|
3
|
+
This page tried to register a source or trigger using the Attribution Reporting
|
4
|
+
API but failed because the page that initiated the registration was not secure.
|
5
|
+
|
6
|
+
The registration context must use HTTPS unless it is `localhost` or
|
7
|
+
`127.0.0.1`.
|
@@ -1,6 +1,9 @@
|
|
1
|
-
# Ensure the
|
1
|
+
# Ensure that the `attribution-reporting` permission policy is enabled
|
2
2
|
|
3
|
-
This page
|
3
|
+
This page tried to use the Attribution Reporting API but failed because the
|
4
|
+
`attribution-reporting` permission policy is not enabled.
|
4
5
|
|
5
|
-
This API is enabled by default in the top-level context and in same-origin
|
6
|
-
be explicitly opted-in for cross-origin frames. Add the
|
6
|
+
This API is enabled by default in the top-level context and in same-origin
|
7
|
+
child frames, but must be explicitly opted-in for cross-origin frames. Add the
|
8
|
+
permission policy as follows:
|
9
|
+
`<iframe src="..." allow="attribution-reporting">`.
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Ensure that attribution reporting origins are trustworthy
|
2
|
+
|
3
|
+
This page tried to register a source or trigger using the Attribution Reporting
|
4
|
+
API but failed because the reporting origin was not potentially trustworthy.
|
5
|
+
|
6
|
+
The reporting origin is typically the server that sets the
|
7
|
+
`Attribution-Reporting-Register-Source` or
|
8
|
+
`Attribution-Reporting-Register-Trigger` header.
|
9
|
+
|
10
|
+
The reporting origin must use HTTPS unless it is `localhost` or `127.0.0.1`.
|
@@ -59,4 +59,12 @@ export const contentAsDataURL = function(
|
|
59
59
|
export type DeferredContent = {
|
60
60
|
content: string,
|
61
61
|
isEncoded: boolean,
|
62
|
-
}|{
|
62
|
+
}|{
|
63
|
+
content: '',
|
64
|
+
isEncoded: false,
|
65
|
+
wasmDisassemblyInfo: Common.WasmDisassembly.WasmDisassembly,
|
66
|
+
}|{
|
67
|
+
content: null,
|
68
|
+
error: string,
|
69
|
+
isEncoded: boolean,
|
70
|
+
};
|
@@ -144,6 +144,16 @@ const UIStrings = {
|
|
144
144
|
*/
|
145
145
|
EmbedderTriggeredAndDestroyed:
|
146
146
|
'Prerendering triggered by Chrome internal (e.g., Omnibox prerendering) is is destroyed in the destructor.',
|
147
|
+
|
148
|
+
/**
|
149
|
+
*@description Description text for Prerender2 cancellation status MemoryLimitExceeded.
|
150
|
+
*/
|
151
|
+
MemoryLimitExceeded: 'Memory limit exceeded',
|
152
|
+
|
153
|
+
/**
|
154
|
+
*@description Description text for Prerender2 cancellation status FailToGetMemoryUsage.
|
155
|
+
*/
|
156
|
+
FailToGetMemoryUsage: 'Fail to get memory usage',
|
147
157
|
};
|
148
158
|
|
149
159
|
const str_ = i18n.i18n.registerUIStrings('panels/application/components/Prerender2.ts', UIStrings);
|
@@ -185,4 +195,6 @@ export const Prerender2ReasonDescription = {
|
|
185
195
|
'EmbedderTriggeredAndCrossOriginRedirected':
|
186
196
|
{name: i18nLazyString(UIStrings.EmbedderTriggeredAndCrossOriginRedirected)},
|
187
197
|
'EmbedderTriggeredAndDestroyed': {name: i18nLazyString(UIStrings.EmbedderTriggeredAndDestroyed)},
|
198
|
+
'MemoryLimitExceeded': {name: i18nLazyString(UIStrings.MemoryLimitExceeded)},
|
199
|
+
'FailToGetMemoryUsage': {name: i18nLazyString(UIStrings.FailToGetMemoryUsage)},
|
188
200
|
};
|
@@ -14,11 +14,6 @@ const UIStrings = {
|
|
14
14
|
* @description Label for number of rows in the issue details table.
|
15
15
|
*/
|
16
16
|
nViolations: '{n, plural, =1 {# violation} other {# violations}}',
|
17
|
-
/**
|
18
|
-
* @description Noun, label for the column showing the associated frame in the issue details table.
|
19
|
-
* The associated frame can either be the "main frame" (or main window), or an HTML iframe.
|
20
|
-
*/
|
21
|
-
frame: 'Frame',
|
22
17
|
/**
|
23
18
|
* @description Noun, label for the column showing the associated HTML element in the issue details table.
|
24
19
|
*/
|
@@ -60,31 +55,18 @@ export class AttributionReportingIssueDetailsView extends AffectedResourcesView
|
|
60
55
|
issues: Iterable<IssuesManager.AttributionReportingIssue.AttributionReportingIssue>): void {
|
61
56
|
const header = document.createElement('tr');
|
62
57
|
switch (issueCode) {
|
63
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.
|
64
|
-
|
65
|
-
this.appendColumnTitle(header, i18nString(UIStrings.request));
|
66
|
-
this.appendColumnTitle(header, i18nString(UIStrings.untrustworthyOrigin));
|
67
|
-
break;
|
68
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.AttributionUntrustworthyOrigin:
|
58
|
+
case IssuesManager.AttributionReportingIssue.IssueCode.InvalidRegisterSourceHeader:
|
59
|
+
case IssuesManager.AttributionReportingIssue.IssueCode.InvalidRegisterTriggerHeader:
|
69
60
|
this.appendColumnTitle(header, i18nString(UIStrings.request));
|
70
|
-
this.appendColumnTitle(header, i18nString(UIStrings.
|
71
|
-
break;
|
72
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.AttributionSourceUntrustworthyFrameOrigin:
|
73
|
-
this.appendColumnTitle(header, i18nString(UIStrings.frame));
|
74
|
-
this.appendColumnTitle(header, i18nString(UIStrings.element));
|
75
|
-
this.appendColumnTitle(header, i18nString(UIStrings.untrustworthyOrigin));
|
61
|
+
this.appendColumnTitle(header, i18nString(UIStrings.invalidHeaderValue));
|
76
62
|
break;
|
77
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.
|
63
|
+
case IssuesManager.AttributionReportingIssue.IssueCode.InsecureContext:
|
64
|
+
case IssuesManager.AttributionReportingIssue.IssueCode.UntrustworthyReportingOrigin:
|
78
65
|
this.appendColumnTitle(header, i18nString(UIStrings.element));
|
79
|
-
this.appendColumnTitle(header, i18nString(UIStrings.untrustworthyOrigin));
|
80
|
-
break;
|
81
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.InvalidHeader:
|
82
|
-
this.appendColumnTitle(header, i18nString(UIStrings.frame));
|
83
66
|
this.appendColumnTitle(header, i18nString(UIStrings.request));
|
84
|
-
this.appendColumnTitle(header, i18nString(UIStrings.
|
67
|
+
this.appendColumnTitle(header, i18nString(UIStrings.untrustworthyOrigin));
|
85
68
|
break;
|
86
69
|
case IssuesManager.AttributionReportingIssue.IssueCode.PermissionPolicyDisabled:
|
87
|
-
this.appendColumnTitle(header, i18nString(UIStrings.frame));
|
88
70
|
this.appendColumnTitle(header, i18nString(UIStrings.element));
|
89
71
|
this.appendColumnTitle(header, i18nString(UIStrings.request));
|
90
72
|
break;
|
@@ -108,21 +90,18 @@ export class AttributionReportingIssueDetailsView extends AffectedResourcesView
|
|
108
90
|
const details = issue.issueDetails;
|
109
91
|
|
110
92
|
switch (issueCode) {
|
111
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.
|
112
|
-
|
113
|
-
this.appendIssueDetailCell(element, details.invalidParameter || '');
|
114
|
-
break;
|
115
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.AttributionUntrustworthyOrigin:
|
93
|
+
case IssuesManager.AttributionReportingIssue.IssueCode.InvalidRegisterSourceHeader:
|
94
|
+
case IssuesManager.AttributionReportingIssue.IssueCode.InvalidRegisterTriggerHeader:
|
116
95
|
this.#appendRequestOrEmptyCell(element, details.request);
|
117
96
|
this.appendIssueDetailCell(element, details.invalidParameter || '');
|
118
97
|
break;
|
119
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.
|
120
|
-
|
98
|
+
case IssuesManager.AttributionReportingIssue.IssueCode.InsecureContext:
|
99
|
+
case IssuesManager.AttributionReportingIssue.IssueCode.UntrustworthyReportingOrigin:
|
100
|
+
await this.#appendElementOrEmptyCell(element, issue);
|
121
101
|
this.#appendRequestOrEmptyCell(element, details.request);
|
122
102
|
this.appendIssueDetailCell(element, details.invalidParameter || '');
|
123
103
|
break;
|
124
104
|
case IssuesManager.AttributionReportingIssue.IssueCode.PermissionPolicyDisabled:
|
125
|
-
this.#appendFrameOrEmptyCell(element, issue);
|
126
105
|
await this.#appendElementOrEmptyCell(element, issue);
|
127
106
|
this.#appendRequestOrEmptyCell(element, details.request);
|
128
107
|
break;
|
@@ -131,16 +110,6 @@ export class AttributionReportingIssueDetailsView extends AffectedResourcesView
|
|
131
110
|
this.affectedResources.appendChild(element);
|
132
111
|
}
|
133
112
|
|
134
|
-
#appendFrameOrEmptyCell(
|
135
|
-
parent: HTMLElement, issue: IssuesManager.AttributionReportingIssue.AttributionReportingIssue): void {
|
136
|
-
const details = issue.issueDetails;
|
137
|
-
if (details.frame) {
|
138
|
-
parent.appendChild(this.createFrameCell(details.frame.frameId, issue.getCategory()));
|
139
|
-
} else {
|
140
|
-
this.appendIssueDetailCell(parent, '');
|
141
|
-
}
|
142
|
-
}
|
143
|
-
|
144
113
|
async #appendElementOrEmptyCell(
|
145
114
|
parent: HTMLElement, issue: IssuesManager.AttributionReportingIssue.AttributionReportingIssue): Promise<void> {
|
146
115
|
const details = issue.issueDetails;
|