chrome-devtools-frontend 1.0.1017091 → 1.0.1017408
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.
@@ -4892,12 +4892,6 @@
|
|
4892
4892
|
"panels/elements/ElementsTreeElement.ts | enableScrollSnap": {
|
4893
4893
|
"message": "Enable scroll-snap overlay"
|
4894
4894
|
},
|
4895
|
-
"panels/elements/ElementsTreeElement.ts | enterIsolationMode": {
|
4896
|
-
"message": "Enter Isolation Mode"
|
4897
|
-
},
|
4898
|
-
"panels/elements/ElementsTreeElement.ts | exitIsolationMode": {
|
4899
|
-
"message": "Exit Isolation Mode"
|
4900
|
-
},
|
4901
4895
|
"panels/elements/ElementsTreeElement.ts | expandRecursively": {
|
4902
4896
|
"message": "Expand recursively"
|
4903
4897
|
},
|
@@ -4892,12 +4892,6 @@
|
|
4892
4892
|
"panels/elements/ElementsTreeElement.ts | enableScrollSnap": {
|
4893
4893
|
"message": "Êńâb́l̂é ŝćr̂ól̂ĺ-ŝńâṕ ôv́êŕl̂áŷ"
|
4894
4894
|
},
|
4895
|
-
"panels/elements/ElementsTreeElement.ts | enterIsolationMode": {
|
4896
|
-
"message": "Êńt̂ér̂ Íŝól̂át̂íôń M̂ód̂é"
|
4897
|
-
},
|
4898
|
-
"panels/elements/ElementsTreeElement.ts | exitIsolationMode": {
|
4899
|
-
"message": "Êx́ît́ Îśôĺât́îón̂ Ḿôd́ê"
|
4900
|
-
},
|
4901
4895
|
"panels/elements/ElementsTreeElement.ts | expandRecursively": {
|
4902
4896
|
"message": "Êx́p̂án̂d́ r̂éĉúr̂śîv́êĺŷ"
|
4903
4897
|
},
|
@@ -181,7 +181,7 @@ export class TimelineModelImpl {
|
|
181
181
|
case RecordType.MarkLoad:
|
182
182
|
case RecordType.MarkLCPCandidate:
|
183
183
|
case RecordType.MarkLCPInvalidate:
|
184
|
-
return Boolean(event.args['data']['isMainFrame']);
|
184
|
+
return Boolean(event.args['data']['isOutermostMainFrame'] ?? event.args['data']['isMainFrame']);
|
185
185
|
default:
|
186
186
|
return false;
|
187
187
|
}
|
@@ -203,11 +203,13 @@ export class TimelineModelImpl {
|
|
203
203
|
}
|
204
204
|
|
205
205
|
isLCPCandidateEvent(event: SDK.TracingModel.Event): boolean {
|
206
|
-
return event.name === RecordType.MarkLCPCandidate &&
|
206
|
+
return event.name === RecordType.MarkLCPCandidate &&
|
207
|
+
Boolean(event.args['data']['isOutermostMainFrame'] ?? event.args['data']['isMainFrame']);
|
207
208
|
}
|
208
209
|
|
209
210
|
isLCPInvalidateEvent(event: SDK.TracingModel.Event): boolean {
|
210
|
-
return event.name === RecordType.MarkLCPInvalidate &&
|
211
|
+
return event.name === RecordType.MarkLCPInvalidate &&
|
212
|
+
Boolean(event.args['data']['isOutermostMainFrame'] ?? event.args['data']['isMainFrame']);
|
211
213
|
}
|
212
214
|
|
213
215
|
isFCPEvent(event: SDK.TracingModel.Event): boolean {
|
@@ -1133,7 +1135,7 @@ export class TimelineModelImpl {
|
|
1133
1135
|
break;
|
1134
1136
|
}
|
1135
1137
|
const frameId = TimelineModelImpl.eventFrameId(event);
|
1136
|
-
const
|
1138
|
+
const isOutermostMainFrame = Boolean(eventData['isOutermostMainFrame'] ?? eventData['isMainFrame']);
|
1137
1139
|
const pageFrame = frameId ? this.pageFrames.get(frameId) : null;
|
1138
1140
|
if (pageFrame) {
|
1139
1141
|
pageFrame.update(event.startTime, eventData);
|
@@ -1144,13 +1146,13 @@ export class TimelineModelImpl {
|
|
1144
1146
|
if (eventData['page'] && eventData['page'] !== this.legacyCurrentPage) {
|
1145
1147
|
return false;
|
1146
1148
|
}
|
1147
|
-
} else if (
|
1149
|
+
} else if (isOutermostMainFrame) {
|
1148
1150
|
return false;
|
1149
1151
|
} else if (!this.addPageFrame(event, eventData)) {
|
1150
1152
|
return false;
|
1151
1153
|
}
|
1152
1154
|
}
|
1153
|
-
if (
|
1155
|
+
if (isOutermostMainFrame && frameId) {
|
1154
1156
|
const frame = this.pageFrames.get(frameId);
|
1155
1157
|
if (frame) {
|
1156
1158
|
this.mainFrame = frame;
|
@@ -88,14 +88,6 @@ const UIStrings = {
|
|
88
88
|
*/
|
89
89
|
scrollIntoView: 'Scroll into view',
|
90
90
|
/**
|
91
|
-
*@description Text to enter Isolation Mode, a mode with focus on a single element and interactive resizing
|
92
|
-
*/
|
93
|
-
enterIsolationMode: 'Enter Isolation Mode',
|
94
|
-
/**
|
95
|
-
*@description Text to exit Isolation Mode, a mode with focus on a single element and interactive resizing
|
96
|
-
*/
|
97
|
-
exitIsolationMode: 'Exit Isolation Mode',
|
98
|
-
/**
|
99
91
|
*@description A context menu item in the Elements Tree Element of the Elements panel
|
100
92
|
*/
|
101
93
|
editText: 'Edit text',
|
@@ -682,17 +674,6 @@ export class ElementsTreeElement extends UI.TreeOutline.TreeElement {
|
|
682
674
|
contextMenu.viewSection().appendItem(i18nString(UIStrings.focus), async () => {
|
683
675
|
await this.nodeInternal.focus();
|
684
676
|
});
|
685
|
-
|
686
|
-
const overlayModel = this.nodeInternal.domModel().overlayModel();
|
687
|
-
if (overlayModel.isHighlightedIsolatedElementInPersistentOverlay(this.nodeInternal.id)) {
|
688
|
-
contextMenu.viewSection().appendItem(i18nString(UIStrings.exitIsolationMode), () => {
|
689
|
-
overlayModel.hideIsolatedElementInPersistentOverlay(this.nodeInternal.id);
|
690
|
-
});
|
691
|
-
} else {
|
692
|
-
contextMenu.viewSection().appendItem(i18nString(UIStrings.enterIsolationMode), () => {
|
693
|
-
overlayModel.highlightIsolatedElementInPersistentOverlay(this.nodeInternal.id);
|
694
|
-
});
|
695
|
-
}
|
696
677
|
}
|
697
678
|
|
698
679
|
populateScrollIntoView(contextMenu: UI.ContextMenu.ContextMenu): void {
|
package/package.json
CHANGED