chrome-devtools-frontend 1.0.1029692 → 1.0.1030457
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 +4 -0
- package/config/gni/devtools_image_files.gni +2 -0
- package/docs/workflows.md +1 -1
- package/front_end/Images/src/file-sync_icon.svg +62 -0
- package/front_end/Images/src/file_icon.svg +52 -0
- package/front_end/core/i18n/locales/en-US.json +6 -0
- package/front_end/core/i18n/locales/en-XL.json +6 -0
- package/front_end/models/issues_manager/AttributionReportingIssue.ts +11 -0
- package/front_end/models/issues_manager/DeprecationIssue.ts +5 -1
- package/front_end/models/issues_manager/descriptions/arInvalidEligibleHeader.md +19 -0
- package/front_end/panels/elements/CSSRuleValidator.ts +356 -21
- package/front_end/panels/elements/CSSRuleValidatorHelper.ts +34 -0
- package/front_end/panels/elements/StylePropertyTreeElement.ts +4 -24
- package/front_end/panels/elements/StylesSidebarPane.ts +31 -1
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +2 -0
- package/front_end/panels/network/components/RequestHeadersView.css +40 -8
- package/front_end/panels/network/components/RequestHeadersView.ts +123 -18
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +42 -3
- package/front_end/ui/components/data_grid/DataGrid.ts +15 -10
- package/front_end/ui/components/data_grid/DataGridController.ts +7 -0
- package/front_end/ui/legacy/TextPrompt.ts +1 -1
- package/package.json +6 -5
@@ -56,6 +56,8 @@ grd_files_release_sources = [
|
|
56
56
|
"front_end/Images/errorWave.svg",
|
57
57
|
"front_end/Images/error_icon.svg",
|
58
58
|
"front_end/Images/feedback_button_icon.svg",
|
59
|
+
"front_end/Images/file-sync_icon.svg",
|
60
|
+
"front_end/Images/file_icon.svg",
|
59
61
|
"front_end/Images/flex-direction-icon.svg",
|
60
62
|
"front_end/Images/flex-nowrap-icon.svg",
|
61
63
|
"front_end/Images/flex-wrap-icon.svg",
|
@@ -280,6 +282,7 @@ grd_files_release_sources = [
|
|
280
282
|
"front_end/models/issues_manager/descriptions/TwaHttpError.md",
|
281
283
|
"front_end/models/issues_manager/descriptions/TwaPageUnavailableOffline.md",
|
282
284
|
"front_end/models/issues_manager/descriptions/arInsecureContext.md",
|
285
|
+
"front_end/models/issues_manager/descriptions/arInvalidEligibleHeader.md",
|
283
286
|
"front_end/models/issues_manager/descriptions/arInvalidRegisterSourceHeader.md",
|
284
287
|
"front_end/models/issues_manager/descriptions/arInvalidRegisterTriggerHeader.md",
|
285
288
|
"front_end/models/issues_manager/descriptions/arPermissionPolicyDisabled.md",
|
@@ -937,6 +940,7 @@ grd_files_debug_sources = [
|
|
937
940
|
"front_end/panels/elements/AccessibilityTreeUtils.js",
|
938
941
|
"front_end/panels/elements/AccessibilityTreeView.js",
|
939
942
|
"front_end/panels/elements/CSSRuleValidator.js",
|
943
|
+
"front_end/panels/elements/CSSRuleValidatorHelper.js",
|
940
944
|
"front_end/panels/elements/ClassesPaneWidget.js",
|
941
945
|
"front_end/panels/elements/ColorSwatchPopoverIcon.js",
|
942
946
|
"front_end/panels/elements/ComputedStyleModel.js",
|
package/docs/workflows.md
CHANGED
@@ -64,7 +64,7 @@ This works with Chromium 79 or later.
|
|
64
64
|
|
65
65
|
Note that `$(realpath out/Default/gen/front_end)` expands to the absolute path to build artifacts for DevTools frontend.
|
66
66
|
|
67
|
-
Open DevTools via F12 on Windows/Linux or Cmd+Option+I on Mac.
|
67
|
+
Open DevTools via F12 or Ctrl+Shift+J on Windows/Linux or Cmd+Option+I on Mac.
|
68
68
|
|
69
69
|
If you get errors along the line of `Uncaught TypeError: Cannot read property 'setInspectedTabId'` you probably specified an incorrect path - the path has to be absolute. On Mac and Linux, the file url will start with __three__ slashes: `file:///Users/...`.
|
70
70
|
|
@@ -0,0 +1,62 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
3
|
+
|
4
|
+
<svg
|
5
|
+
width="11"
|
6
|
+
height="13"
|
7
|
+
viewBox="0 0 2.9104166 3.4395834"
|
8
|
+
version="1.1"
|
9
|
+
id="svg298"
|
10
|
+
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
|
11
|
+
sodipodi:docname="file-sync_icon.svg"
|
12
|
+
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
13
|
+
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
15
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
16
|
+
<sodipodi:namedview
|
17
|
+
id="namedview300"
|
18
|
+
pagecolor="#ffffff"
|
19
|
+
bordercolor="#666666"
|
20
|
+
borderopacity="1.0"
|
21
|
+
inkscape:pageshadow="2"
|
22
|
+
inkscape:pageopacity="0.0"
|
23
|
+
inkscape:pagecheckerboard="0"
|
24
|
+
inkscape:document-units="mm"
|
25
|
+
showgrid="false"
|
26
|
+
units="px"
|
27
|
+
inkscape:zoom="6.7736083"
|
28
|
+
inkscape:cx="-60.602855"
|
29
|
+
inkscape:cy="-53.737976"
|
30
|
+
inkscape:window-width="2028"
|
31
|
+
inkscape:window-height="1445"
|
32
|
+
inkscape:window-x="0"
|
33
|
+
inkscape:window-y="0"
|
34
|
+
inkscape:window-maximized="1"
|
35
|
+
inkscape:current-layer="layer1" />
|
36
|
+
<defs
|
37
|
+
id="defs295" />
|
38
|
+
<g
|
39
|
+
inkscape:label="Layer 1"
|
40
|
+
inkscape:groupmode="layer"
|
41
|
+
id="layer1">
|
42
|
+
<g
|
43
|
+
id="g4825"
|
44
|
+
transform="matrix(0.26458333,0,0,0.26458333,-0.26458331,-0.26458331)">
|
45
|
+
<g
|
46
|
+
id="g4829"
|
47
|
+
transform="translate(-76,-24)">
|
48
|
+
<circle
|
49
|
+
style="fill:#009802"
|
50
|
+
id="circle4831"
|
51
|
+
r="2.5"
|
52
|
+
cy="11.5"
|
53
|
+
cx="10.5"
|
54
|
+
transform="matrix(1.2,0,0,1.2,72.4,21.2)" />
|
55
|
+
<path
|
56
|
+
inkscape:connector-curvature="0"
|
57
|
+
id="path4833"
|
58
|
+
d="m 78,25 c -0.54399,0 -1,0.45026 -1,1 v 8 c 0,0.53973 0.44936,1 1,1 h 3.0312 c -0.02335,-0.1633 -0.03125,-0.33024 -0.03125,-0.5 0,-0.16976 0.0079,-0.3367 0.03125,-0.5 H 78 v -8 h 3 v 3 h 3 v 1.5 c 0.1633,-0.02335 0.33024,0 0.5,0 0.16976,0 0.3367,-0.02335 0.5,0 V 28 l -3,-3 z m 4,1 2,2 h -2 z" />
|
59
|
+
</g>
|
60
|
+
</g>
|
61
|
+
</g>
|
62
|
+
</svg>
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
3
|
+
|
4
|
+
<svg
|
5
|
+
width="12"
|
6
|
+
height="12"
|
7
|
+
viewBox="0 0 3.1749999 3.1750001"
|
8
|
+
version="1.1"
|
9
|
+
id="svg232"
|
10
|
+
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
|
11
|
+
sodipodi:docname="file_icon.svg"
|
12
|
+
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
13
|
+
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
15
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
16
|
+
<sodipodi:namedview
|
17
|
+
id="namedview234"
|
18
|
+
pagecolor="#ffffff"
|
19
|
+
bordercolor="#666666"
|
20
|
+
borderopacity="1.0"
|
21
|
+
inkscape:pageshadow="2"
|
22
|
+
inkscape:pageopacity="0.0"
|
23
|
+
inkscape:pagecheckerboard="0"
|
24
|
+
inkscape:document-units="mm"
|
25
|
+
showgrid="false"
|
26
|
+
units="px"
|
27
|
+
inkscape:zoom="16.687513"
|
28
|
+
inkscape:cx="-9.49812"
|
29
|
+
inkscape:cy="4.5543036"
|
30
|
+
inkscape:window-width="2028"
|
31
|
+
inkscape:window-height="1445"
|
32
|
+
inkscape:window-x="0"
|
33
|
+
inkscape:window-y="0"
|
34
|
+
inkscape:window-maximized="1"
|
35
|
+
inkscape:current-layer="layer1" />
|
36
|
+
<defs
|
37
|
+
id="defs229" />
|
38
|
+
<g
|
39
|
+
inkscape:label="Layer 1"
|
40
|
+
inkscape:groupmode="layer"
|
41
|
+
id="layer1">
|
42
|
+
<g
|
43
|
+
id="g4835"
|
44
|
+
transform="matrix(0.26458333,0,0,0.26458333,0.26459658,1.9999999e-8)">
|
45
|
+
<path
|
46
|
+
inkscape:connector-curvature="0"
|
47
|
+
id="path4839"
|
48
|
+
d="m 71.625,25.5 h -4.003 c -0.54399,0 -0.99703,0.44566 -0.99703,0.9954 v 8.0092 c 0,0.53973 0.44639,0.9954 0.99703,0.9954 h 6.0059 c 0.54399,0 0.99703,-0.44566 0.99703,-0.9954 V 28.5 l -3,-3 z m 0,1 2,2 h -2 z m -4,0 h 3 v 3 h 3 v 5 h -6 z"
|
49
|
+
transform="translate(-65.625,-24.5)" />
|
50
|
+
</g>
|
51
|
+
</g>
|
52
|
+
</svg>
|
@@ -4847,6 +4847,9 @@
|
|
4847
4847
|
"panels/elements/CSSRuleValidator.ts | ruleViolatedByParentElementRuleReason": {
|
4848
4848
|
"message": "Parent element has {REASON_RULE_CODE} rule, therefore this elements {AFFECTED_RULE_CODE} has no effect"
|
4849
4849
|
},
|
4850
|
+
"panels/elements/CSSRuleValidator.ts | ruleViolatedBySameElementRuleChangeSuggestion": {
|
4851
|
+
"message": "For this property to work, please change the {EXISTING_RULE} rule to {TARGET_RULE}"
|
4852
|
+
},
|
4850
4853
|
"panels/elements/CSSRuleValidator.ts | ruleViolatedBySameElementRuleFix": {
|
4851
4854
|
"message": "For this property to work, please remove or change the value of {REASON_RULE_CODE}"
|
4852
4855
|
},
|
@@ -6860,6 +6863,9 @@
|
|
6860
6863
|
"panels/network/components/RequestHeadersView.ts | general": {
|
6861
6864
|
"message": "General"
|
6862
6865
|
},
|
6866
|
+
"panels/network/components/RequestHeadersView.ts | headerOverrides": {
|
6867
|
+
"message": "Header overrides"
|
6868
|
+
},
|
6863
6869
|
"panels/network/components/RequestHeadersView.ts | learnMore": {
|
6864
6870
|
"message": "Learn more"
|
6865
6871
|
},
|
@@ -4847,6 +4847,9 @@
|
|
4847
4847
|
"panels/elements/CSSRuleValidator.ts | ruleViolatedByParentElementRuleReason": {
|
4848
4848
|
"message": "P̂ár̂én̂t́ êĺêḿêńt̂ h́âś {REASON_RULE_CODE} r̂úl̂é, t̂h́êŕêf́ôŕê t́ĥíŝ él̂ém̂én̂t́ŝ {AFFECTED_RULE_CODE} h́âś n̂ó êf́f̂éĉt́"
|
4849
4849
|
},
|
4850
|
+
"panels/elements/CSSRuleValidator.ts | ruleViolatedBySameElementRuleChangeSuggestion": {
|
4851
|
+
"message": "F̂ór̂ t́ĥíŝ ṕr̂óp̂ér̂t́ŷ t́ô ẃôŕk̂, ṕl̂éâśê ćĥán̂ǵê t́ĥé {EXISTING_RULE} r̂úl̂é t̂ó {TARGET_RULE}"
|
4852
|
+
},
|
4850
4853
|
"panels/elements/CSSRuleValidator.ts | ruleViolatedBySameElementRuleFix": {
|
4851
4854
|
"message": "F̂ór̂ t́ĥíŝ ṕr̂óp̂ér̂t́ŷ t́ô ẃôŕk̂, ṕl̂éâśê ŕêḿôv́ê ór̂ ćĥán̂ǵê t́ĥé v̂ál̂úê óf̂ {REASON_RULE_CODE}"
|
4852
4855
|
},
|
@@ -6860,6 +6863,9 @@
|
|
6860
6863
|
"panels/network/components/RequestHeadersView.ts | general": {
|
6861
6864
|
"message": "Ĝén̂ér̂ál̂"
|
6862
6865
|
},
|
6866
|
+
"panels/network/components/RequestHeadersView.ts | headerOverrides": {
|
6867
|
+
"message": "Ĥéâd́êŕ ôv́êŕr̂íd̂éŝ"
|
6868
|
+
},
|
6863
6869
|
"panels/network/components/RequestHeadersView.ts | learnMore": {
|
6864
6870
|
"message": "L̂éâŕn̂ ḿôŕê"
|
6865
6871
|
},
|
@@ -14,6 +14,7 @@ export const enum IssueCode {
|
|
14
14
|
InsecureContext = 'AttributionReportingIssue::InsecureContext',
|
15
15
|
InvalidRegisterSourceHeader = 'AttributionReportingIssue::InvalidRegisterSourceHeader',
|
16
16
|
InvalidRegisterTriggerHeader = 'AttributionReportingIssue::InvalidRegisterTriggerHeader',
|
17
|
+
InvalidEligibleHeader = 'AttributionReportingIssue::InvalidEligibleHeader',
|
17
18
|
// TODO(apaseltiner): Remove this once old issue types are removed from
|
18
19
|
// protocol.
|
19
20
|
Unknown = 'AttributionReportingIssue::Unknown',
|
@@ -31,6 +32,8 @@ function getIssueCode(details: Protocol.Audits.AttributionReportingIssueDetails)
|
|
31
32
|
return IssueCode.InvalidRegisterSourceHeader;
|
32
33
|
case Protocol.Audits.AttributionReportingIssueType.InvalidRegisterTriggerHeader:
|
33
34
|
return IssueCode.InvalidRegisterTriggerHeader;
|
35
|
+
case Protocol.Audits.AttributionReportingIssueType.InvalidEligibleHeader:
|
36
|
+
return IssueCode.InvalidEligibleHeader;
|
34
37
|
default:
|
35
38
|
return IssueCode.Unknown;
|
36
39
|
}
|
@@ -76,6 +79,14 @@ export class AttributionReportingIssue extends Issue<IssueCode> {
|
|
76
79
|
file: 'arInvalidRegisterTriggerHeader.md',
|
77
80
|
links: [],
|
78
81
|
};
|
82
|
+
case IssueCode.InvalidEligibleHeader:
|
83
|
+
return {
|
84
|
+
file: 'arInvalidEligibleHeader.md',
|
85
|
+
links: [{
|
86
|
+
link: 'https://tools.ietf.org/id/draft-ietf-httpbis-header-structure-15.html#rfc.section.4.2.2',
|
87
|
+
linkTitle: 'Structured Headers RFC',
|
88
|
+
}],
|
89
|
+
};
|
79
90
|
case IssueCode.Unknown:
|
80
91
|
return null;
|
81
92
|
}
|
@@ -291,7 +291,11 @@ const UIStrings = {
|
|
291
291
|
*/
|
292
292
|
xhrJSONEncodingDetection: 'UTF-16 is not supported by response json in `XMLHttpRequest`',
|
293
293
|
/**
|
294
|
-
* @description
|
294
|
+
* @description Warning displayed to developers. It is shown when
|
295
|
+
* the `XMLHttpRequest` API is used in a way that it slows down the page load
|
296
|
+
* of the next page. The `main thread` refers to an operating systems thread
|
297
|
+
* used to run most of the processing of HTML documents, so please use a
|
298
|
+
* consistent wording.
|
295
299
|
*/
|
296
300
|
xmlHttpRequestSynchronousInNonWorkerOutsideBeforeUnload:
|
297
301
|
'Synchronous `XMLHttpRequest` on the main thread is deprecated because of its detrimental effects to the end user\u2019s experience. For more help, check https://xhr.spec.whatwg.org/.',
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Ensure that the `Attribution-Reporting-Eligible` header is valid
|
2
|
+
|
3
|
+
This page sent a request containing an `Attribution-Reporting-Eligible` header,
|
4
|
+
but the header value was not a valid structured dictionary, causing any source
|
5
|
+
or trigger registration in the response to be ignored.
|
6
|
+
|
7
|
+
The header should contain a structured dictionary as follows:
|
8
|
+
|
9
|
+
To allow the response to register an event source:
|
10
|
+
`Attribution-Reporting-Eligible: event-source`
|
11
|
+
|
12
|
+
To allow the response to register a trigger:
|
13
|
+
`Attribution-Reporting-Eligible: trigger`
|
14
|
+
|
15
|
+
To allow the response to register an event source or a trigger:
|
16
|
+
`Attribution-Reporting-Eligible: event-source, trigger`
|
17
|
+
|
18
|
+
To prevent the response from registering anything:
|
19
|
+
`Attribution-Reporting-Eligible: `
|