chrome-devtools-frontend 1.0.971140 → 1.0.973253
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 +10 -8
- package/front_end/core/common/ParsedURL.ts +9 -3
- package/front_end/core/host/UserMetrics.ts +2 -1
- package/front_end/core/i18n/locales/en-US.json +24 -0
- package/front_end/core/i18n/locales/en-XL.json +24 -0
- package/front_end/core/sdk/CSSModel.ts +21 -0
- package/front_end/core/sdk/CSSStyleSheetHeader.ts +10 -10
- package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +6 -4
- package/front_end/core/sdk/DOMDebuggerModel.ts +4 -3
- package/front_end/core/sdk/DebuggerModel.ts +17 -16
- package/front_end/core/sdk/NetworkManager.ts +17 -9
- package/front_end/core/sdk/NetworkRequest.ts +18 -16
- package/front_end/core/sdk/Resource.ts +10 -10
- package/front_end/core/sdk/ResourceTreeModel.ts +16 -13
- package/front_end/core/sdk/Script.ts +10 -10
- package/front_end/core/sdk/SourceMap.ts +8 -6
- package/front_end/entrypoints/lighthouse_worker/{LighthouseService.ts → LighthouseWorkerService.ts} +69 -38
- package/front_end/entrypoints/lighthouse_worker/lighthouse_worker.ts +1 -1
- package/front_end/entrypoints/main/MainImpl.ts +5 -0
- package/front_end/generated/InspectorBackendCommands.js +14 -8
- package/front_end/generated/SupportedCSSProperties.js +2 -0
- package/front_end/generated/protocol-mapping.d.ts +5 -0
- package/front_end/generated/protocol-proxy-api.d.ts +5 -0
- package/front_end/generated/protocol.ts +20 -12
- package/front_end/models/bindings/BreakpointManager.ts +7 -5
- package/front_end/models/bindings/CSSWorkspaceBinding.ts +2 -16
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +2 -1
- package/front_end/models/bindings/ResourceMapping.ts +2 -1
- package/front_end/models/bindings/ResourceScriptMapping.ts +2 -1
- package/front_end/models/bindings/SASSSourceMapping.ts +4 -3
- package/front_end/models/bindings/StylesSourceMapping.ts +2 -1
- package/front_end/models/har/HARFormat.ts +4 -2
- package/front_end/models/har/Importer.ts +0 -1
- package/front_end/models/issues_manager/FederatedAuthRequestIssue.ts +12 -12
- package/front_end/models/issues_manager/descriptions/{federatedAuthRequestClientIdMetadataHttpNotFound.md → federatedAuthRequestClientMetadataHttpNotFound.md} +0 -0
- package/front_end/models/issues_manager/descriptions/{federatedAuthRequestClientIdMetadataInvalidResponse.md → federatedAuthRequestClientMetadataInvalidResponse.md} +0 -0
- package/front_end/models/issues_manager/descriptions/{federatedAuthRequestClientIdMetadataNoResponse.md → federatedAuthRequestClientMetadataNoResponse.md} +0 -0
- package/front_end/models/issues_manager/descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
- package/front_end/models/issues_manager/descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
- package/front_end/models/issues_manager/descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +5 -5
- package/front_end/models/persistence/IsolatedFileSystem.ts +10 -13
- package/front_end/models/persistence/PersistenceActions.ts +1 -4
- package/front_end/models/persistence/PlatformFileSystem.ts +3 -3
- package/front_end/{panels/sources/SourceMapNamesResolver.ts → models/source_map_scopes/NamesResolver.ts} +5 -5
- package/front_end/models/source_map_scopes/source_map_scopes.ts +7 -0
- package/front_end/models/text_utils/ContentProvider.ts +2 -1
- package/front_end/models/text_utils/StaticContentProvider.ts +7 -5
- package/front_end/models/workspace/UISourceCode.ts +7 -7
- package/front_end/models/workspace/WorkspaceImpl.ts +1 -3
- package/front_end/models/workspace_diff/WorkspaceDiff.ts +20 -8
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +3 -2
- package/front_end/panels/changes/ChangesView.ts +4 -4
- package/front_end/panels/console/ConsolePrompt.ts +25 -2
- package/front_end/panels/console/ConsoleViewMessage.ts +41 -8
- package/front_end/panels/coverage/CoverageModel.ts +1 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +0 -6
- package/front_end/panels/elements/StylesSidebarPane.ts +43 -33
- package/front_end/panels/elements/components/LayoutPane.ts +1 -1
- package/front_end/panels/issues/AffectedResourcesView.ts +1 -1
- package/front_end/panels/issues/AffectedSourcesView.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseController.ts +13 -2
- package/front_end/panels/lighthouse/LighthousePanel.ts +57 -8
- package/front_end/panels/lighthouse/LighthouseProtocolService.ts +94 -30
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +0 -5
- package/front_end/panels/lighthouse/LighthouseStartView.ts +6 -2
- package/front_end/panels/lighthouse/LighthouseStartViewFR.ts +61 -0
- package/front_end/panels/lighthouse/LighthouseTimespanView.ts +99 -0
- package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
- package/front_end/panels/profiler/CPUProfileView.ts +1 -1
- package/front_end/panels/profiler/HeapProfileView.ts +0 -2
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +0 -1
- package/front_end/panels/profiler/HeapSnapshotView.ts +2 -3
- package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +1 -1
- package/front_end/panels/sources/DebuggerPlugin.ts +5 -4
- package/front_end/panels/sources/NavigatorView.ts +5 -5
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +6 -3
- package/front_end/panels/sources/SourcesNavigator.ts +7 -1
- package/front_end/panels/sources/sources-legacy.ts +5 -3
- package/front_end/panels/sources/sources.ts +0 -2
- package/front_end/panels/timeline/TimelineUIUtils.ts +4 -47
- package/front_end/third_party/codemirror.next/bundle.ts +1 -1
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/json.js +2 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +28 -2
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +10 -10
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1047 -1158
- package/front_end/third_party/lighthouse/locales/en-US.json +7 -1
- package/front_end/third_party/lighthouse/locales/en-XL.json +7 -1
- package/front_end/third_party/lighthouse/report/bundle.d.ts +0 -3
- package/front_end/third_party/lighthouse/report/bundle.js +38 -24
- package/front_end/third_party/lighthouse/report-assets/report-generator.mjs +1 -1
- package/front_end/ui/components/expandable_list/expandableList.css +1 -1
- package/front_end/ui/components/text_editor/config.ts +1 -0
- package/front_end/ui/legacy/ViewManager.ts +2 -1
- package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.ts +7 -4
- package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +1 -1
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +2 -3
- package/front_end/ui/legacy/components/utils/Linkifier.ts +20 -59
- package/front_end/ui/legacy/tabbedPane.css +1 -0
- package/package.json +1 -1
- package/scripts/hosted_mode/server.js +13 -0
- package/front_end/models/issues_manager/descriptions/federatedAuthRequestWellKnownHttpNotFound.md +0 -1
- package/front_end/models/issues_manager/descriptions/federatedAuthRequestWellKnownInvalidResponse.md +0 -1
- package/front_end/models/issues_manager/descriptions/federatedAuthRequestWellKnownNoResponse.md +0 -1
@@ -310,9 +310,9 @@ grd_files_release_sources = [
|
|
310
310
|
"front_end/models/issues_manager/descriptions/federatedAuthRequestAccountsNoResponse.md",
|
311
311
|
"front_end/models/issues_manager/descriptions/federatedAuthRequestApprovalDeclined.md",
|
312
312
|
"front_end/models/issues_manager/descriptions/federatedAuthRequestCanceled.md",
|
313
|
-
"front_end/models/issues_manager/descriptions/
|
314
|
-
"front_end/models/issues_manager/descriptions/
|
315
|
-
"front_end/models/issues_manager/descriptions/
|
313
|
+
"front_end/models/issues_manager/descriptions/federatedAuthRequestClientMetadataHttpNotFound.md",
|
314
|
+
"front_end/models/issues_manager/descriptions/federatedAuthRequestClientMetadataInvalidResponse.md",
|
315
|
+
"front_end/models/issues_manager/descriptions/federatedAuthRequestClientMetadataNoResponse.md",
|
316
316
|
"front_end/models/issues_manager/descriptions/federatedAuthRequestErrorFetchingSignin.md",
|
317
317
|
"front_end/models/issues_manager/descriptions/federatedAuthRequestErrorIdToken.md",
|
318
318
|
"front_end/models/issues_manager/descriptions/federatedAuthRequestIdTokenHttpNotFound.md",
|
@@ -320,10 +320,10 @@ grd_files_release_sources = [
|
|
320
320
|
"front_end/models/issues_manager/descriptions/federatedAuthRequestIdTokenInvalidResponse.md",
|
321
321
|
"front_end/models/issues_manager/descriptions/federatedAuthRequestIdTokenNoResponse.md",
|
322
322
|
"front_end/models/issues_manager/descriptions/federatedAuthRequestInvalidSigninResponse.md",
|
323
|
+
"front_end/models/issues_manager/descriptions/federatedAuthRequestManifestHttpNotFound.md",
|
324
|
+
"front_end/models/issues_manager/descriptions/federatedAuthRequestManifestInvalidResponse.md",
|
325
|
+
"front_end/models/issues_manager/descriptions/federatedAuthRequestManifestNoResponse.md",
|
323
326
|
"front_end/models/issues_manager/descriptions/federatedAuthRequestTooManyRequests.md",
|
324
|
-
"front_end/models/issues_manager/descriptions/federatedAuthRequestWellKnownHttpNotFound.md",
|
325
|
-
"front_end/models/issues_manager/descriptions/federatedAuthRequestWellKnownInvalidResponse.md",
|
326
|
-
"front_end/models/issues_manager/descriptions/federatedAuthRequestWellKnownNoResponse.md",
|
327
327
|
"front_end/models/issues_manager/descriptions/genericCrossOriginPortalPostMessageError.md",
|
328
328
|
"front_end/models/issues_manager/descriptions/heavyAd.md",
|
329
329
|
"front_end/models/issues_manager/descriptions/mixedContent.md",
|
@@ -335,6 +335,7 @@ grd_files_release_sources = [
|
|
335
335
|
"front_end/models/persistence/persistence-legacy.js",
|
336
336
|
"front_end/models/persistence/persistence-meta.js",
|
337
337
|
"front_end/models/persistence/persistence.js",
|
338
|
+
"front_end/models/source_map_scopes/source_map_scopes.js",
|
338
339
|
"front_end/models/text_utils/text_utils-legacy.js",
|
339
340
|
"front_end/models/text_utils/text_utils.js",
|
340
341
|
"front_end/models/timeline_model/timeline_model-legacy.js",
|
@@ -671,7 +672,7 @@ grd_files_debug_sources = [
|
|
671
672
|
"front_end/entrypoints/inspector_main/RenderingOptions.js",
|
672
673
|
"front_end/entrypoints/inspector_main/nodeIcon.css.js",
|
673
674
|
"front_end/entrypoints/inspector_main/renderingOptions.css.js",
|
674
|
-
"front_end/entrypoints/lighthouse_worker/
|
675
|
+
"front_end/entrypoints/lighthouse_worker/LighthouseWorkerService.js",
|
675
676
|
"front_end/entrypoints/main/ExecutionContextSelector.js",
|
676
677
|
"front_end/entrypoints/main/MainImpl.js",
|
677
678
|
"front_end/entrypoints/main/SimpleApp.js",
|
@@ -761,6 +762,7 @@ grd_files_debug_sources = [
|
|
761
762
|
"front_end/models/persistence/WorkspaceSettingsTab.js",
|
762
763
|
"front_end/models/persistence/editFileSystemView.css.js",
|
763
764
|
"front_end/models/persistence/workspaceSettingsTab.css.js",
|
765
|
+
"front_end/models/source_map_scopes/NamesResolver.js",
|
764
766
|
"front_end/models/text_utils/ContentProvider.js",
|
765
767
|
"front_end/models/text_utils/StaticContentProvider.js",
|
766
768
|
"front_end/models/text_utils/Text.js",
|
@@ -1048,6 +1050,7 @@ grd_files_debug_sources = [
|
|
1048
1050
|
"front_end/panels/lighthouse/LighthouseStartView.js",
|
1049
1051
|
"front_end/panels/lighthouse/LighthouseStartViewFR.js",
|
1050
1052
|
"front_end/panels/lighthouse/LighthouseStatusView.js",
|
1053
|
+
"front_end/panels/lighthouse/LighthouseTimespanView.js",
|
1051
1054
|
"front_end/panels/lighthouse/RadioSetting.js",
|
1052
1055
|
"front_end/panels/lighthouse/lighthouseDialog.css.js",
|
1053
1056
|
"front_end/panels/lighthouse/lighthousePanel.css.js",
|
@@ -1215,7 +1218,6 @@ grd_files_debug_sources = [
|
|
1215
1218
|
"front_end/panels/sources/ScriptOriginPlugin.js",
|
1216
1219
|
"front_end/panels/sources/SearchSourcesView.js",
|
1217
1220
|
"front_end/panels/sources/SnippetsPlugin.js",
|
1218
|
-
"front_end/panels/sources/SourceMapNamesResolver.js",
|
1219
1221
|
"front_end/panels/sources/SourcesNavigator.js",
|
1220
1222
|
"front_end/panels/sources/SourcesPanel.js",
|
1221
1223
|
"front_end/panels/sources/SourcesSearchScope.js",
|
@@ -167,7 +167,7 @@ export class ParsedURL {
|
|
167
167
|
*/
|
168
168
|
static encodedFromParentPathAndName(parentPath: Platform.DevToolsPath.EncodedPathString, name: string):
|
169
169
|
Platform.DevToolsPath.EncodedPathString {
|
170
|
-
return parentPath
|
170
|
+
return ParsedURL.concatenate(parentPath, '/', encodeURIComponent(name));
|
171
171
|
}
|
172
172
|
|
173
173
|
/**
|
@@ -175,7 +175,7 @@ export class ParsedURL {
|
|
175
175
|
*/
|
176
176
|
static urlFromParentUrlAndName(parentUrl: Platform.DevToolsPath.UrlString, name: string):
|
177
177
|
Platform.DevToolsPath.UrlString {
|
178
|
-
return parentUrl
|
178
|
+
return ParsedURL.concatenate(parentUrl, '/', encodeURIComponent(name));
|
179
179
|
}
|
180
180
|
|
181
181
|
static encodedPathToRawPathString(encPath: Platform.DevToolsPath.EncodedPathString):
|
@@ -218,7 +218,13 @@ export class ParsedURL {
|
|
218
218
|
static substr<DevToolsPathType extends Platform.DevToolsPath.UrlString|Platform.DevToolsPath.RawPathString|
|
219
219
|
Platform.DevToolsPath.EncodedPathString>(
|
220
220
|
devToolsPath: DevToolsPathType, from: number, length?: number): DevToolsPathType {
|
221
|
-
return devToolsPath.substr(from, length) as
|
221
|
+
return devToolsPath.substr(from, length) as DevToolsPathType;
|
222
|
+
}
|
223
|
+
|
224
|
+
static concatenate<DevToolsPathType extends Platform.DevToolsPath.UrlString|Platform.DevToolsPath
|
225
|
+
.RawPathString|Platform.DevToolsPath.EncodedPathString>(
|
226
|
+
devToolsPath: DevToolsPathType, ...appendage: string[]): DevToolsPathType {
|
227
|
+
return devToolsPath.concat(...appendage) as DevToolsPathType;
|
222
228
|
}
|
223
229
|
|
224
230
|
static urlWithoutHash(url: string): string {
|
@@ -587,8 +587,9 @@ export enum DevtoolsExperiments {
|
|
587
587
|
'stylesPaneCSSChanges' = 55,
|
588
588
|
'headerOverrides' = 56,
|
589
589
|
'lighthousePanelFR' = 57,
|
590
|
+
'evaluateExpressionsWithSourceMaps' = 58,
|
590
591
|
// Increment this when new experiments are added.
|
591
|
-
'MaxValue' =
|
592
|
+
'MaxValue' = 59,
|
592
593
|
}
|
593
594
|
/* eslint-enable @typescript-eslint/naming-convention */
|
594
595
|
|
@@ -5819,6 +5819,9 @@
|
|
5819
5819
|
"panels/lighthouse/LighthouseController.ts | thereMayBeStoredDataAffectingSingular": {
|
5820
5820
|
"message": "There may be stored data affecting loading performance in this location: {PH1}. Audit this page in an incognito window to prevent those resources from affecting your scores."
|
5821
5821
|
},
|
5822
|
+
"panels/lighthouse/LighthouseController.ts | timespan": {
|
5823
|
+
"message": "Timespan"
|
5824
|
+
},
|
5822
5825
|
"panels/lighthouse/LighthouseController.ts | useLegacyNavigation": {
|
5823
5826
|
"message": "Audit the page using classic Lighthouse when in navigation mode."
|
5824
5827
|
},
|
@@ -5879,9 +5882,18 @@
|
|
5879
5882
|
"panels/lighthouse/LighthouseStartView.ts | learnMore": {
|
5880
5883
|
"message": "Learn more"
|
5881
5884
|
},
|
5885
|
+
"panels/lighthouse/LighthouseStartViewFR.ts | analyzeNavigation": {
|
5886
|
+
"message": "Analyze navigation"
|
5887
|
+
},
|
5888
|
+
"panels/lighthouse/LighthouseStartViewFR.ts | analyzeSnapshot": {
|
5889
|
+
"message": "Analyze snapshot"
|
5890
|
+
},
|
5882
5891
|
"panels/lighthouse/LighthouseStartViewFR.ts | mode": {
|
5883
5892
|
"message": "Mode"
|
5884
5893
|
},
|
5894
|
+
"panels/lighthouse/LighthouseStartViewFR.ts | startTimespan": {
|
5895
|
+
"message": "Start timespan"
|
5896
|
+
},
|
5885
5897
|
"panels/lighthouse/LighthouseStatusView.ts | ahSorryWeRanIntoAnError": {
|
5886
5898
|
"message": "Ah, sorry! We ran into an error."
|
5887
5899
|
},
|
@@ -5969,6 +5981,18 @@
|
|
5969
5981
|
"panels/lighthouse/LighthouseStatusView.ts | walmartSawAIncreaseInRevenueFor": {
|
5970
5982
|
"message": "Walmart saw a 1% increase in revenue for every 100ms improvement in page load [Source: WPO Stats]"
|
5971
5983
|
},
|
5984
|
+
"panels/lighthouse/LighthouseTimespanView.ts | cancel": {
|
5985
|
+
"message": "Cancel"
|
5986
|
+
},
|
5987
|
+
"panels/lighthouse/LighthouseTimespanView.ts | endTimespan": {
|
5988
|
+
"message": "End timespan"
|
5989
|
+
},
|
5990
|
+
"panels/lighthouse/LighthouseTimespanView.ts | timespanStarted": {
|
5991
|
+
"message": "Timespan started, interact with the page"
|
5992
|
+
},
|
5993
|
+
"panels/lighthouse/LighthouseTimespanView.ts | timespanStarting": {
|
5994
|
+
"message": "Timespan starting…"
|
5995
|
+
},
|
5972
5996
|
"panels/media/EventDisplayTable.ts | eventDisplay": {
|
5973
5997
|
"message": "Event display"
|
5974
5998
|
},
|
@@ -5819,6 +5819,9 @@
|
|
5819
5819
|
"panels/lighthouse/LighthouseController.ts | thereMayBeStoredDataAffectingSingular": {
|
5820
5820
|
"message": "T̂h́êŕê ḿâý b̂é ŝt́ôŕêd́ d̂át̂á âf́f̂éĉt́îńĝ ĺôád̂ín̂ǵ p̂ér̂f́ôŕm̂án̂ćê ín̂ t́ĥíŝ ĺôćât́îón̂: {PH1}. Áûd́ît́ t̂h́îś p̂áĝé îń âń îńĉóĝńît́ô ẃîńd̂óŵ t́ô ṕr̂év̂én̂t́ t̂h́ôśê ŕêśôúr̂ćêś f̂ŕôḿ âf́f̂éĉt́îńĝ ýôúr̂ śĉór̂éŝ."
|
5821
5821
|
},
|
5822
|
+
"panels/lighthouse/LighthouseController.ts | timespan": {
|
5823
|
+
"message": "T̂ím̂éŝṕâń"
|
5824
|
+
},
|
5822
5825
|
"panels/lighthouse/LighthouseController.ts | useLegacyNavigation": {
|
5823
5826
|
"message": "Âúd̂ít̂ t́ĥé p̂áĝé ûśîńĝ ćl̂áŝśîć L̂íĝh́t̂h́ôúŝé ŵh́êń îń n̂áv̂íĝát̂íôń m̂ód̂é."
|
5824
5827
|
},
|
@@ -5879,9 +5882,18 @@
|
|
5879
5882
|
"panels/lighthouse/LighthouseStartView.ts | learnMore": {
|
5880
5883
|
"message": "L̂éâŕn̂ ḿôŕê"
|
5881
5884
|
},
|
5885
|
+
"panels/lighthouse/LighthouseStartViewFR.ts | analyzeNavigation": {
|
5886
|
+
"message": "Âńâĺŷźê ńâv́îǵât́îón̂"
|
5887
|
+
},
|
5888
|
+
"panels/lighthouse/LighthouseStartViewFR.ts | analyzeSnapshot": {
|
5889
|
+
"message": "Âńâĺŷźê śn̂áp̂śĥót̂"
|
5890
|
+
},
|
5882
5891
|
"panels/lighthouse/LighthouseStartViewFR.ts | mode": {
|
5883
5892
|
"message": "M̂ód̂é"
|
5884
5893
|
},
|
5894
|
+
"panels/lighthouse/LighthouseStartViewFR.ts | startTimespan": {
|
5895
|
+
"message": "Ŝt́âŕt̂ t́îḿêśp̂án̂"
|
5896
|
+
},
|
5885
5897
|
"panels/lighthouse/LighthouseStatusView.ts | ahSorryWeRanIntoAnError": {
|
5886
5898
|
"message": "Âh́, ŝór̂ŕŷ! Ẃê ŕâń îńt̂ó âń êŕr̂ór̂."
|
5887
5899
|
},
|
@@ -5969,6 +5981,18 @@
|
|
5969
5981
|
"panels/lighthouse/LighthouseStatusView.ts | walmartSawAIncreaseInRevenueFor": {
|
5970
5982
|
"message": "Ŵál̂ḿâŕt̂ śâẃ â 1% ín̂ćr̂éâśê ín̂ ŕêv́êńûé f̂ór̂ év̂ér̂ý 100m̂ś îḿp̂ŕôv́êḿêńt̂ ín̂ ṕâǵê ĺôád̂ [Śôúr̂ćê: WPO Stats]"
|
5971
5983
|
},
|
5984
|
+
"panels/lighthouse/LighthouseTimespanView.ts | cancel": {
|
5985
|
+
"message": "Ĉán̂ćêĺ"
|
5986
|
+
},
|
5987
|
+
"panels/lighthouse/LighthouseTimespanView.ts | endTimespan": {
|
5988
|
+
"message": "Êńd̂ t́îḿêśp̂án̂"
|
5989
|
+
},
|
5990
|
+
"panels/lighthouse/LighthouseTimespanView.ts | timespanStarted": {
|
5991
|
+
"message": "T̂ím̂éŝṕâń ŝt́âŕt̂éd̂, ín̂t́êŕâćt̂ ẃît́ĥ t́ĥé p̂áĝé"
|
5992
|
+
},
|
5993
|
+
"panels/lighthouse/LighthouseTimespanView.ts | timespanStarting": {
|
5994
|
+
"message": "T̂ím̂éŝṕâń ŝt́âŕt̂ín̂ǵ…"
|
5995
|
+
},
|
5972
5996
|
"panels/media/EventDisplayTable.ts | eventDisplay": {
|
5973
5997
|
"message": "Êv́êńt̂ d́îśp̂ĺâý"
|
5974
5998
|
},
|
@@ -429,6 +429,27 @@ export class CSSModel extends SDKModel<EventTypes> {
|
|
429
429
|
}
|
430
430
|
}
|
431
431
|
|
432
|
+
async setSupportsText(
|
433
|
+
styleSheetId: Protocol.CSS.StyleSheetId, range: TextUtils.TextRange.TextRange,
|
434
|
+
newSupportsText: string): Promise<boolean> {
|
435
|
+
Host.userMetrics.actionTaken(Host.UserMetrics.Action.StyleRuleEdited);
|
436
|
+
|
437
|
+
try {
|
438
|
+
await this.ensureOriginalStyleSheetText(styleSheetId);
|
439
|
+
const {supports} = await this.agent.invoke_setSupportsText({styleSheetId, range, text: newSupportsText});
|
440
|
+
|
441
|
+
if (!supports) {
|
442
|
+
return false;
|
443
|
+
}
|
444
|
+
this.#domModel.markUndoableState();
|
445
|
+
const edit = new Edit(styleSheetId, range, newSupportsText, supports);
|
446
|
+
this.fireStyleSheetChanged(styleSheetId, edit);
|
447
|
+
return true;
|
448
|
+
} catch (e) {
|
449
|
+
return false;
|
450
|
+
}
|
451
|
+
}
|
452
|
+
|
432
453
|
async addRule(styleSheetId: Protocol.CSS.StyleSheetId, ruleText: string, ruleLocation: TextUtils.TextRange.TextRange):
|
433
454
|
Promise<CSSStyleRule|null> {
|
434
455
|
try {
|
@@ -5,6 +5,7 @@
|
|
5
5
|
import * as TextUtils from '../../models/text_utils/text_utils.js';
|
6
6
|
import * as Common from '../common/common.js';
|
7
7
|
import * as i18n from '../i18n/i18n.js';
|
8
|
+
import type * as Platform from '../platform/platform.js';
|
8
9
|
import type * as Protocol from '../../generated/protocol.js';
|
9
10
|
|
10
11
|
import type {CSSModel} from './CSSModel.js';
|
@@ -30,7 +31,7 @@ export class CSSStyleSheetHeader implements TextUtils.ContentProvider.ContentPro
|
|
30
31
|
#cssModelInternal: CSSModel;
|
31
32
|
id: Protocol.CSS.StyleSheetId;
|
32
33
|
frameId: Protocol.Page.FrameId;
|
33
|
-
sourceURL:
|
34
|
+
sourceURL: Platform.DevToolsPath.UrlString;
|
34
35
|
hasSourceURL: boolean;
|
35
36
|
origin: Protocol.CSS.StyleSheetOrigin;
|
36
37
|
title: string;
|
@@ -51,7 +52,7 @@ export class CSSStyleSheetHeader implements TextUtils.ContentProvider.ContentPro
|
|
51
52
|
this.#cssModelInternal = cssModel;
|
52
53
|
this.id = payload.styleSheetId;
|
53
54
|
this.frameId = payload.frameId;
|
54
|
-
this.sourceURL = payload.sourceURL;
|
55
|
+
this.sourceURL = payload.sourceURL as Platform.DevToolsPath.UrlString;
|
55
56
|
this.hasSourceURL = Boolean(payload.hasSourceURL);
|
56
57
|
this.origin = payload.origin;
|
57
58
|
this.title = payload.title;
|
@@ -102,19 +103,19 @@ export class CSSStyleSheetHeader implements TextUtils.ContentProvider.ContentPro
|
|
102
103
|
return this.isConstructed && this.sourceURL.length === 0;
|
103
104
|
}
|
104
105
|
|
105
|
-
resourceURL():
|
106
|
-
return this.isViaInspector() ? this.viaInspectorResourceURL() : this.sourceURL;
|
106
|
+
resourceURL(): Platform.DevToolsPath.UrlString {
|
107
|
+
return (this.isViaInspector() ? this.viaInspectorResourceURL() : this.sourceURL);
|
107
108
|
}
|
108
109
|
|
109
|
-
private viaInspectorResourceURL():
|
110
|
+
private viaInspectorResourceURL(): Platform.DevToolsPath.UrlString {
|
110
111
|
const model = this.#cssModelInternal.target().model(ResourceTreeModel);
|
111
112
|
console.assert(Boolean(model));
|
112
113
|
if (!model) {
|
113
|
-
return '';
|
114
|
+
return '' as Platform.DevToolsPath.UrlString;
|
114
115
|
}
|
115
116
|
const frame = model.frameForId(this.frameId);
|
116
117
|
if (!frame) {
|
117
|
-
return '';
|
118
|
+
return '' as Platform.DevToolsPath.UrlString;
|
118
119
|
}
|
119
120
|
console.assert(Boolean(frame));
|
120
121
|
const parsedURL = new Common.ParsedURL.ParsedURL(frame.url);
|
@@ -123,7 +124,7 @@ export class CSSStyleSheetHeader implements TextUtils.ContentProvider.ContentPro
|
|
123
124
|
fakeURL += '/';
|
124
125
|
}
|
125
126
|
fakeURL += 'inspector-stylesheet';
|
126
|
-
return fakeURL;
|
127
|
+
return fakeURL as Platform.DevToolsPath.UrlString;
|
127
128
|
}
|
128
129
|
|
129
130
|
lineNumberInSource(lineNumberInStyleSheet: number): number {
|
@@ -145,8 +146,7 @@ export class CSSStyleSheetHeader implements TextUtils.ContentProvider.ContentPro
|
|
145
146
|
return afterStart && beforeEnd;
|
146
147
|
}
|
147
148
|
|
148
|
-
|
149
|
-
contentURL(): string {
|
149
|
+
contentURL(): Platform.DevToolsPath.UrlString {
|
150
150
|
return this.resourceURL();
|
151
151
|
}
|
152
152
|
|
@@ -31,6 +31,7 @@
|
|
31
31
|
import * as TextUtils from '../../models/text_utils/text_utils.js';
|
32
32
|
import type * as Common from '../common/common.js';
|
33
33
|
import * as i18n from '../i18n/i18n.js';
|
34
|
+
import type * as Platform from '../platform/platform.js';
|
34
35
|
|
35
36
|
import type {PageResourceLoadInitiator} from './PageResourceLoader.js';
|
36
37
|
import {PageResourceLoader} from './PageResourceLoader.js';
|
@@ -48,18 +49,19 @@ const str_ = i18n.i18n.registerUIStrings('core/sdk/CompilerSourceMappingContentP
|
|
48
49
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
49
50
|
|
50
51
|
export class CompilerSourceMappingContentProvider implements TextUtils.ContentProvider.ContentProvider {
|
51
|
-
readonly #sourceURL:
|
52
|
+
readonly #sourceURL: Platform.DevToolsPath.UrlString;
|
52
53
|
readonly #contentTypeInternal: Common.ResourceType.ResourceType;
|
53
54
|
readonly #initiator: PageResourceLoadInitiator;
|
54
55
|
|
55
|
-
constructor(
|
56
|
+
constructor(
|
57
|
+
sourceURL: Platform.DevToolsPath.UrlString, contentType: Common.ResourceType.ResourceType,
|
58
|
+
initiator: PageResourceLoadInitiator) {
|
56
59
|
this.#sourceURL = sourceURL;
|
57
60
|
this.#contentTypeInternal = contentType;
|
58
61
|
this.#initiator = initiator;
|
59
62
|
}
|
60
63
|
|
61
|
-
|
62
|
-
contentURL(): string {
|
64
|
+
contentURL(): Platform.DevToolsPath.UrlString {
|
63
65
|
return this.#sourceURL;
|
64
66
|
}
|
65
67
|
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
import * as Common from '../common/common.js';
|
6
6
|
import * as i18n from '../i18n/i18n.js';
|
7
|
+
import type * as Platform from '../platform/platform.js';
|
7
8
|
import type * as ProtocolProxyApi from '../../generated/protocol-proxy-api.js';
|
8
9
|
import * as Protocol from '../../generated/protocol.js';
|
9
10
|
|
@@ -515,7 +516,7 @@ export class EventListener {
|
|
515
516
|
readonly #handlerInternal: RemoteObject|null;
|
516
517
|
readonly #originalHandlerInternal: RemoteObject|null;
|
517
518
|
readonly #locationInternal: Location;
|
518
|
-
readonly #sourceURLInternal:
|
519
|
+
readonly #sourceURLInternal: Platform.DevToolsPath.UrlString;
|
519
520
|
readonly #customRemoveFunction: RemoteObject|null;
|
520
521
|
#originInternal: string;
|
521
522
|
|
@@ -533,7 +534,7 @@ export class EventListener {
|
|
533
534
|
this.#originalHandlerInternal = originalHandler || handler;
|
534
535
|
this.#locationInternal = location;
|
535
536
|
const script = location.script();
|
536
|
-
this.#sourceURLInternal = script ? script.contentURL() : '';
|
537
|
+
this.#sourceURLInternal = script ? script.contentURL() : '' as Platform.DevToolsPath.UrlString;
|
537
538
|
this.#customRemoveFunction = customRemoveFunction;
|
538
539
|
this.#originInternal = origin || EventListener.Origin.Raw;
|
539
540
|
}
|
@@ -566,7 +567,7 @@ export class EventListener {
|
|
566
567
|
return this.#locationInternal;
|
567
568
|
}
|
568
569
|
|
569
|
-
sourceURL():
|
570
|
+
sourceURL(): Platform.DevToolsPath.UrlString {
|
570
571
|
return this.#sourceURLInternal;
|
571
572
|
}
|
572
573
|
|
@@ -418,14 +418,13 @@ export class DebuggerModel extends SDKModel<EventTypes> {
|
|
418
418
|
return this.agent.invoke_pauseOnAsyncCall({parentStackTraceId: parentStackTraceId});
|
419
419
|
}
|
420
420
|
|
421
|
-
async setBreakpointByURL(
|
422
|
-
|
421
|
+
async setBreakpointByURL(
|
422
|
+
url: Platform.DevToolsPath.UrlString, lineNumber: number, columnNumber?: number,
|
423
|
+
condition?: string): Promise<SetBreakpointResult> {
|
423
424
|
// Convert file url to node-js path.
|
424
425
|
let urlRegex;
|
425
426
|
if (this.target().type() === Type.Node && url.startsWith('file://')) {
|
426
|
-
|
427
|
-
const platformPath =
|
428
|
-
Common.ParsedURL.ParsedURL.urlToRawPathString(url as Platform.DevToolsPath.UrlString, Host.Platform.isWin());
|
427
|
+
const platformPath = Common.ParsedURL.ParsedURL.urlToRawPathString(url, Host.Platform.isWin());
|
429
428
|
urlRegex =
|
430
429
|
`${Platform.StringUtilities.escapeForRegExp(platformPath)}|${Platform.StringUtilities.escapeForRegExp(url)}`;
|
431
430
|
if (Host.Platform.isWin() && platformPath.match(/^.:\\/)) {
|
@@ -696,14 +695,14 @@ export class DebuggerModel extends SDKModel<EventTypes> {
|
|
696
695
|
}
|
697
696
|
|
698
697
|
parsedScriptSource(
|
699
|
-
scriptId: Protocol.Runtime.ScriptId, sourceURL:
|
700
|
-
endColumn: number,
|
698
|
+
scriptId: Protocol.Runtime.ScriptId, sourceURL: Platform.DevToolsPath.UrlString, startLine: number,
|
699
|
+
startColumn: number, endLine: number, endColumn: number,
|
701
700
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
702
701
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
703
702
|
executionContextId: number, hash: string, executionContextAuxData: any, isLiveEdit: boolean,
|
704
|
-
sourceMapURL:
|
705
|
-
isModule: boolean|null, originStackTrace: Protocol.Runtime.StackTrace|null,
|
706
|
-
scriptLanguage: string|null, debugSymbols: Protocol.Debugger.DebugSymbols|null,
|
703
|
+
sourceMapURL: Platform.DevToolsPath.UrlString|undefined, hasSourceURLComment: boolean, hasSyntaxError: boolean,
|
704
|
+
length: number, isModule: boolean|null, originStackTrace: Protocol.Runtime.StackTrace|null,
|
705
|
+
codeOffset: number|null, scriptLanguage: string|null, debugSymbols: Protocol.Debugger.DebugSymbols|null,
|
707
706
|
embedderName: string|null): Script {
|
708
707
|
const knownScript = this.#scriptsInternal.get(scriptId);
|
709
708
|
if (knownScript) {
|
@@ -740,7 +739,7 @@ export class DebuggerModel extends SDKModel<EventTypes> {
|
|
740
739
|
return script;
|
741
740
|
}
|
742
741
|
|
743
|
-
setSourceMapURL(script: Script, newSourceMapURL:
|
742
|
+
setSourceMapURL(script: Script, newSourceMapURL: Platform.DevToolsPath.UrlString): void {
|
744
743
|
let sourceMapId = DebuggerModel.sourceMapId(script.executionContextId, script.sourceURL, script.sourceMapURL);
|
745
744
|
if (sourceMapId && this.#sourceMapIdToScript.get(sourceMapId) === script) {
|
746
745
|
this.#sourceMapIdToScript.delete(sourceMapId);
|
@@ -1058,8 +1057,9 @@ class DebuggerDispatcher implements ProtocolProxyApi.DebuggerDispatcher {
|
|
1058
1057
|
return;
|
1059
1058
|
}
|
1060
1059
|
this.#debuggerModel.parsedScriptSource(
|
1061
|
-
scriptId, url, startLine, startColumn, endLine, endColumn,
|
1062
|
-
|
1060
|
+
scriptId, url as Platform.DevToolsPath.UrlString, startLine, startColumn, endLine, endColumn,
|
1061
|
+
executionContextId, hash, executionContextAuxData, Boolean(isLiveEdit),
|
1062
|
+
sourceMapURL as Platform.DevToolsPath.UrlString, Boolean(hasSourceURL), false, length || 0, isModule || null,
|
1063
1063
|
stackTrace || null, codeOffset || null, scriptLanguage || null, debugSymbols || null, embedderName || null);
|
1064
1064
|
}
|
1065
1065
|
|
@@ -1086,9 +1086,10 @@ class DebuggerDispatcher implements ProtocolProxyApi.DebuggerDispatcher {
|
|
1086
1086
|
return;
|
1087
1087
|
}
|
1088
1088
|
this.#debuggerModel.parsedScriptSource(
|
1089
|
-
scriptId, url, startLine, startColumn, endLine, endColumn,
|
1090
|
-
|
1091
|
-
|
1089
|
+
scriptId, url as Platform.DevToolsPath.UrlString, startLine, startColumn, endLine, endColumn,
|
1090
|
+
executionContextId, hash, executionContextAuxData, false, sourceMapURL as Platform.DevToolsPath.UrlString,
|
1091
|
+
Boolean(hasSourceURL), true, length || 0, isModule || null, stackTrace || null, codeOffset || null,
|
1092
|
+
scriptLanguage || null, null, embedderName || null);
|
1092
1093
|
}
|
1093
1094
|
|
1094
1095
|
breakpointResolved({breakpointId, location}: Protocol.Debugger.BreakpointResolvedEvent): void {
|
@@ -447,7 +447,7 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher {
|
|
447
447
|
|
448
448
|
private updateNetworkRequestWithResponse(networkRequest: NetworkRequest, response: Protocol.Network.Response): void {
|
449
449
|
if (response.url && networkRequest.url() !== response.url) {
|
450
|
-
networkRequest.setUrl(response.url);
|
450
|
+
networkRequest.setUrl(response.url as Platform.DevToolsPath.UrlString);
|
451
451
|
}
|
452
452
|
networkRequest.mimeType = (response.mimeType as MIME_TYPE);
|
453
453
|
if (!networkRequest.statusCode) {
|
@@ -588,10 +588,12 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher {
|
|
588
588
|
frameId,
|
589
589
|
});
|
590
590
|
}
|
591
|
-
networkRequest = this.appendRedirect(requestId, timestamp, request.url);
|
591
|
+
networkRequest = this.appendRedirect(requestId, timestamp, request.url as Platform.DevToolsPath.UrlString);
|
592
592
|
this.#manager.dispatchEventToListeners(Events.RequestRedirected, networkRequest);
|
593
593
|
} else {
|
594
|
-
networkRequest = NetworkRequest.create(
|
594
|
+
networkRequest = NetworkRequest.create(
|
595
|
+
requestId, request.url as Platform.DevToolsPath.UrlString, documentURL as Platform.DevToolsPath.UrlString,
|
596
|
+
frameId ?? null, loaderId, initiator);
|
595
597
|
requestToManagerMap.set(networkRequest, this.#manager);
|
596
598
|
}
|
597
599
|
networkRequest.hasNetworkData = true;
|
@@ -630,7 +632,7 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher {
|
|
630
632
|
const lastModifiedHeader = lowercaseHeaders['last-modified'];
|
631
633
|
// We missed the requestWillBeSent.
|
632
634
|
const eventData: RequestUpdateDroppedEventData = {
|
633
|
-
url: response.url,
|
635
|
+
url: response.url as Platform.DevToolsPath.UrlString,
|
634
636
|
frameId: frameId ?? null,
|
635
637
|
loaderId: loaderId,
|
636
638
|
resourceType: type,
|
@@ -716,7 +718,8 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher {
|
|
716
718
|
}
|
717
719
|
|
718
720
|
webSocketCreated({requestId, url: requestURL, initiator}: Protocol.Network.WebSocketCreatedEvent): void {
|
719
|
-
const networkRequest =
|
721
|
+
const networkRequest =
|
722
|
+
NetworkRequest.createForWebSocket(requestId, requestURL as Platform.DevToolsPath.UrlString, initiator);
|
720
723
|
requestToManagerMap.set(networkRequest, this.#manager);
|
721
724
|
networkRequest.setResourceType(Common.ResourceType.resourceTypes.WebSocket);
|
722
725
|
this.startNetworkRequest(networkRequest, null);
|
@@ -865,7 +868,9 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher {
|
|
865
868
|
return builder;
|
866
869
|
}
|
867
870
|
|
868
|
-
private appendRedirect(
|
871
|
+
private appendRedirect(
|
872
|
+
requestId: Protocol.Network.RequestId, time: number,
|
873
|
+
redirectURL: Platform.DevToolsPath.UrlString): NetworkRequest {
|
869
874
|
const originalNetworkRequest = this.#requestsById.get(requestId);
|
870
875
|
if (!originalNetworkRequest) {
|
871
876
|
throw new Error(`Could not find original network request for ${requestId}`);
|
@@ -968,7 +973,8 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher {
|
|
968
973
|
|
969
974
|
webTransportCreated({transportId, url: requestURL, timestamp: time, initiator}:
|
970
975
|
Protocol.Network.WebTransportCreatedEvent): void {
|
971
|
-
const networkRequest =
|
976
|
+
const networkRequest =
|
977
|
+
NetworkRequest.createForWebSocket(transportId, requestURL as Platform.DevToolsPath.UrlString, initiator);
|
972
978
|
networkRequest.hasNetworkData = true;
|
973
979
|
requestToManagerMap.set(networkRequest, this.#manager);
|
974
980
|
networkRequest.setResourceType(Common.ResourceType.resourceTypes.WebTransport);
|
@@ -1071,7 +1077,9 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher {
|
|
1071
1077
|
private createNetworkRequest(
|
1072
1078
|
requestId: Protocol.Network.RequestId, frameId: Protocol.Page.FrameId, loaderId: Protocol.Network.LoaderId,
|
1073
1079
|
url: string, documentURL: string, initiator: Protocol.Network.Initiator|null): NetworkRequest {
|
1074
|
-
const request = NetworkRequest.create(
|
1080
|
+
const request = NetworkRequest.create(
|
1081
|
+
requestId, url as Platform.DevToolsPath.UrlString, documentURL as Platform.DevToolsPath.UrlString, frameId,
|
1082
|
+
loaderId, initiator);
|
1075
1083
|
requestToManagerMap.set(request, this.#manager);
|
1076
1084
|
return request;
|
1077
1085
|
}
|
@@ -1723,7 +1731,7 @@ export interface InterceptionPattern {
|
|
1723
1731
|
export type RequestInterceptor = (request: InterceptedRequest) => Promise<void>;
|
1724
1732
|
|
1725
1733
|
export interface RequestUpdateDroppedEventData {
|
1726
|
-
url:
|
1734
|
+
url: Platform.DevToolsPath.UrlString;
|
1727
1735
|
frameId: Protocol.Page.FrameId|null;
|
1728
1736
|
loaderId: Protocol.Network.LoaderId;
|
1729
1737
|
resourceType: Protocol.Network.ResourceType;
|
@@ -204,7 +204,7 @@ export class NetworkRequest extends Common.ObjectWrapper.ObjectWrapper<EventType
|
|
204
204
|
TextUtils.ContentProvider.ContentProvider {
|
205
205
|
#requestIdInternal: string;
|
206
206
|
#backendRequestIdInternal?: Protocol.Network.RequestId;
|
207
|
-
readonly #documentURLInternal:
|
207
|
+
readonly #documentURLInternal: Platform.DevToolsPath.UrlString;
|
208
208
|
readonly #frameIdInternal: Protocol.Page.FrameId|null;
|
209
209
|
readonly #loaderIdInternal: Protocol.Network.LoaderId|null;
|
210
210
|
readonly #initiatorInternal: Protocol.Network.Initiator|null|undefined;
|
@@ -257,7 +257,7 @@ export class NetworkRequest extends Common.ObjectWrapper.ObjectWrapper<EventType
|
|
257
257
|
#includedRequestCookiesInternal: Cookie[];
|
258
258
|
#blockedResponseCookiesInternal: BlockedSetCookieWithReason[];
|
259
259
|
localizedFailDescription: string|null;
|
260
|
-
#urlInternal!:
|
260
|
+
#urlInternal!: Platform.DevToolsPath.UrlString;
|
261
261
|
#responseReceivedTimeInternal!: number;
|
262
262
|
#transferSizeInternal!: number;
|
263
263
|
#finishedInternal!: boolean;
|
@@ -293,9 +293,9 @@ export class NetworkRequest extends Common.ObjectWrapper.ObjectWrapper<EventType
|
|
293
293
|
#wasIntercepted: boolean;
|
294
294
|
|
295
295
|
private constructor(
|
296
|
-
requestId: string, backendRequestId: Protocol.Network.RequestId|undefined, url:
|
297
|
-
|
298
|
-
initiator: Protocol.Network.Initiator|null) {
|
296
|
+
requestId: string, backendRequestId: Protocol.Network.RequestId|undefined, url: Platform.DevToolsPath.UrlString,
|
297
|
+
documentURL: Platform.DevToolsPath.UrlString, frameId: Protocol.Page.FrameId|null,
|
298
|
+
loaderId: Protocol.Network.LoaderId|null, initiator: Protocol.Network.Initiator|null) {
|
299
299
|
super();
|
300
300
|
|
301
301
|
this.#requestIdInternal = requestId;
|
@@ -369,20 +369,23 @@ export class NetworkRequest extends Common.ObjectWrapper.ObjectWrapper<EventType
|
|
369
369
|
}
|
370
370
|
|
371
371
|
static create(
|
372
|
-
backendRequestId: Protocol.Network.RequestId, url:
|
373
|
-
|
374
|
-
initiator: Protocol.Network.Initiator|null): NetworkRequest {
|
372
|
+
backendRequestId: Protocol.Network.RequestId, url: Platform.DevToolsPath.UrlString,
|
373
|
+
documentURL: Platform.DevToolsPath.UrlString, frameId: Protocol.Page.FrameId|null,
|
374
|
+
loaderId: Protocol.Network.LoaderId|null, initiator: Protocol.Network.Initiator|null): NetworkRequest {
|
375
375
|
return new NetworkRequest(backendRequestId, backendRequestId, url, documentURL, frameId, loaderId, initiator);
|
376
376
|
}
|
377
377
|
|
378
378
|
static createForWebSocket(
|
379
|
-
backendRequestId: Protocol.Network.RequestId, requestURL:
|
379
|
+
backendRequestId: Protocol.Network.RequestId, requestURL: Platform.DevToolsPath.UrlString,
|
380
380
|
initiator?: Protocol.Network.Initiator): NetworkRequest {
|
381
|
-
return new NetworkRequest(
|
381
|
+
return new NetworkRequest(
|
382
|
+
backendRequestId, backendRequestId, requestURL, '' as Platform.DevToolsPath.UrlString, null, null,
|
383
|
+
initiator || null);
|
382
384
|
}
|
383
385
|
|
384
386
|
static createWithoutBackendRequest(
|
385
|
-
requestId: string, url:
|
387
|
+
requestId: string, url: Platform.DevToolsPath.UrlString, documentURL: Platform.DevToolsPath.UrlString,
|
388
|
+
initiator: Protocol.Network.Initiator|null): NetworkRequest {
|
386
389
|
return new NetworkRequest(requestId, undefined, url, documentURL, null, null, initiator);
|
387
390
|
}
|
388
391
|
|
@@ -406,7 +409,7 @@ export class NetworkRequest extends Common.ObjectWrapper.ObjectWrapper<EventType
|
|
406
409
|
return this.#backendRequestIdInternal;
|
407
410
|
}
|
408
411
|
|
409
|
-
url():
|
412
|
+
url(): Platform.DevToolsPath.UrlString {
|
410
413
|
return this.#urlInternal;
|
411
414
|
}
|
412
415
|
|
@@ -414,7 +417,7 @@ export class NetworkRequest extends Common.ObjectWrapper.ObjectWrapper<EventType
|
|
414
417
|
return this.#urlInternal.startsWith('blob:');
|
415
418
|
}
|
416
419
|
|
417
|
-
setUrl(x:
|
420
|
+
setUrl(x: Platform.DevToolsPath.UrlString): void {
|
418
421
|
if (this.#urlInternal === x) {
|
419
422
|
return;
|
420
423
|
}
|
@@ -427,7 +430,7 @@ export class NetworkRequest extends Common.ObjectWrapper.ObjectWrapper<EventType
|
|
427
430
|
this.#pathInternal = undefined;
|
428
431
|
}
|
429
432
|
|
430
|
-
get documentURL():
|
433
|
+
get documentURL(): Platform.DevToolsPath.UrlString {
|
431
434
|
return this.#documentURLInternal;
|
432
435
|
}
|
433
436
|
|
@@ -1186,8 +1189,7 @@ export class NetworkRequest extends Common.ObjectWrapper.ObjectWrapper<EventType
|
|
1186
1189
|
this.#contentDataProvider = dataProvider;
|
1187
1190
|
}
|
1188
1191
|
|
1189
|
-
|
1190
|
-
contentURL(): string {
|
1192
|
+
contentURL(): Platform.DevToolsPath.UrlString {
|
1191
1193
|
return this.#urlInternal;
|
1192
1194
|
}
|
1193
1195
|
|