chrome-devtools-frontend 1.0.973645 → 1.0.975056
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 +3 -0
- package/config/gni/devtools_image_files.gni +2 -0
- package/front_end/Images/src/triangle-collapsed.svg +1 -0
- package/front_end/Images/src/triangle-expanded.svg +1 -0
- package/front_end/core/common/ParsedURL.ts +9 -9
- package/front_end/core/i18n/locales/af.json +74 -29
- package/front_end/core/i18n/locales/am.json +74 -29
- package/front_end/core/i18n/locales/ar.json +74 -29
- package/front_end/core/i18n/locales/as.json +74 -29
- package/front_end/core/i18n/locales/az.json +74 -29
- package/front_end/core/i18n/locales/be.json +74 -29
- package/front_end/core/i18n/locales/bg.json +74 -29
- package/front_end/core/i18n/locales/bn.json +74 -29
- package/front_end/core/i18n/locales/bs.json +75 -30
- package/front_end/core/i18n/locales/ca.json +74 -29
- package/front_end/core/i18n/locales/cs.json +74 -29
- package/front_end/core/i18n/locales/cy.json +74 -29
- package/front_end/core/i18n/locales/da.json +74 -29
- package/front_end/core/i18n/locales/de.json +76 -31
- package/front_end/core/i18n/locales/el.json +76 -31
- package/front_end/core/i18n/locales/en-GB.json +74 -29
- package/front_end/core/i18n/locales/es-419.json +74 -29
- package/front_end/core/i18n/locales/es.json +74 -29
- package/front_end/core/i18n/locales/et.json +74 -29
- package/front_end/core/i18n/locales/eu.json +76 -31
- package/front_end/core/i18n/locales/fa.json +74 -29
- package/front_end/core/i18n/locales/fi.json +75 -30
- package/front_end/core/i18n/locales/fil.json +74 -29
- package/front_end/core/i18n/locales/fr-CA.json +74 -29
- package/front_end/core/i18n/locales/fr.json +74 -29
- package/front_end/core/i18n/locales/gl.json +81 -36
- package/front_end/core/i18n/locales/gu.json +74 -29
- package/front_end/core/i18n/locales/he.json +74 -29
- package/front_end/core/i18n/locales/hi.json +74 -29
- package/front_end/core/i18n/locales/hr.json +74 -29
- package/front_end/core/i18n/locales/hu.json +74 -29
- package/front_end/core/i18n/locales/hy.json +74 -29
- package/front_end/core/i18n/locales/id.json +74 -29
- package/front_end/core/i18n/locales/is.json +74 -29
- package/front_end/core/i18n/locales/it.json +74 -29
- package/front_end/core/i18n/locales/ja.json +74 -29
- package/front_end/core/i18n/locales/ka.json +74 -29
- package/front_end/core/i18n/locales/kk.json +74 -29
- package/front_end/core/i18n/locales/km.json +74 -29
- package/front_end/core/i18n/locales/kn.json +74 -29
- package/front_end/core/i18n/locales/ko.json +74 -29
- package/front_end/core/i18n/locales/ky.json +74 -29
- package/front_end/core/i18n/locales/lo.json +74 -29
- package/front_end/core/i18n/locales/lt.json +74 -29
- package/front_end/core/i18n/locales/lv.json +74 -29
- package/front_end/core/i18n/locales/mk.json +75 -30
- package/front_end/core/i18n/locales/ml.json +74 -29
- package/front_end/core/i18n/locales/mn.json +74 -29
- package/front_end/core/i18n/locales/mr.json +74 -29
- package/front_end/core/i18n/locales/ms.json +74 -29
- package/front_end/core/i18n/locales/my.json +74 -29
- package/front_end/core/i18n/locales/ne.json +74 -29
- package/front_end/core/i18n/locales/nl.json +74 -29
- package/front_end/core/i18n/locales/no.json +74 -29
- package/front_end/core/i18n/locales/or.json +75 -30
- package/front_end/core/i18n/locales/pa.json +74 -29
- package/front_end/core/i18n/locales/pl.json +74 -29
- package/front_end/core/i18n/locales/pt-PT.json +74 -29
- package/front_end/core/i18n/locales/pt.json +74 -29
- package/front_end/core/i18n/locales/ro.json +74 -29
- package/front_end/core/i18n/locales/ru.json +78 -33
- package/front_end/core/i18n/locales/si.json +74 -29
- package/front_end/core/i18n/locales/sk.json +74 -29
- package/front_end/core/i18n/locales/sl.json +74 -29
- package/front_end/core/i18n/locales/sq.json +74 -29
- package/front_end/core/i18n/locales/sr-Latn.json +74 -29
- package/front_end/core/i18n/locales/sr.json +74 -29
- package/front_end/core/i18n/locales/sv.json +74 -29
- package/front_end/core/i18n/locales/sw.json +74 -29
- package/front_end/core/i18n/locales/ta.json +74 -29
- package/front_end/core/i18n/locales/te.json +75 -30
- package/front_end/core/i18n/locales/th.json +74 -29
- package/front_end/core/i18n/locales/tr.json +74 -29
- package/front_end/core/i18n/locales/uk.json +74 -29
- package/front_end/core/i18n/locales/ur.json +74 -29
- package/front_end/core/i18n/locales/uz.json +74 -29
- package/front_end/core/i18n/locales/vi.json +74 -29
- package/front_end/core/i18n/locales/zh-HK.json +74 -29
- package/front_end/core/i18n/locales/zh-TW.json +74 -29
- package/front_end/core/i18n/locales/zh.json +74 -29
- package/front_end/core/i18n/locales/zu.json +74 -29
- package/front_end/core/sdk/DOMModel.ts +7 -7
- package/front_end/core/sdk/ResourceTreeModel.ts +1 -1
- package/front_end/core/sdk/SourceMap.ts +45 -38
- package/front_end/core/sdk/SourceMapManager.ts +2 -2
- package/front_end/core/sdk/Target.ts +5 -4
- package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +3 -0
- package/front_end/entrypoints/formatter_worker/Substitute.ts +536 -0
- package/front_end/entrypoints/formatter_worker/formatter_worker.ts +2 -0
- package/front_end/entrypoints/node_app/NodeMain.ts +2 -1
- package/front_end/generated/InspectorBackendCommands.js +11 -9
- package/front_end/generated/protocol-mapping.d.ts +13 -0
- package/front_end/generated/protocol-proxy-api.d.ts +15 -0
- package/front_end/generated/protocol.ts +65 -9
- package/front_end/models/bindings/CompilerScriptMapping.ts +3 -2
- package/front_end/models/bindings/SASSSourceMapping.ts +1 -1
- package/front_end/models/formatter/SourceFormatter.ts +1 -1
- package/front_end/models/issues_manager/IssuesManager.ts +6 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +87 -19
- package/front_end/models/text_utils/StaticContentProvider.ts +4 -4
- package/front_end/models/workspace/UISourceCode.ts +8 -1
- package/front_end/panels/application/AppManifestView.ts +10 -4
- package/front_end/panels/application/DOMStorageItemsView.ts +2 -1
- package/front_end/panels/application/InterestGroupTreeElement.ts +3 -0
- package/front_end/panels/application/components/InterestGroupAccessGrid.ts +11 -0
- package/front_end/panels/console/ConsolePrompt.ts +9 -4
- package/front_end/panels/console/ErrorStackParser.ts +5 -1
- package/front_end/panels/elements/StylesSidebarPane.ts +2 -1
- package/front_end/panels/network/BinaryResourceView.ts +4 -1
- package/front_end/panels/network/RequestTimingView.ts +12 -2
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +3 -2
- package/front_end/panels/sources/SourcesView.ts +51 -0
- package/front_end/panels/timeline/timelineStatusDialog.css +1 -0
- package/front_end/third_party/acorn/estree-legacy.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/README.md +15 -22
- package/front_end/third_party/puppeteer/package/cjs-entry-core.js +1 -1
- package/front_end/third_party/puppeteer/package/cjs-entry.js +1 -1
- package/front_end/third_party/puppeteer/package/install.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js +46 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js +11 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectionTransport.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.js +336 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js +4 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +9 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +11 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js +13 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-node.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-node.js +16 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-node.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +25 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts +5 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +35 -21
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts +5 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js +12 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +46 -13
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +11 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectionTransport.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js +336 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js +4 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +9 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +11 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +13 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.js +16 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +25 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts +5 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +35 -21
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts +5 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +12 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +32 -18
- package/front_end/third_party/puppeteer/package/package.json +36 -35
- package/front_end/ui/components/text_editor/config.ts +17 -1
- package/front_end/ui/components/text_editor/cursor_tooltip.ts +2 -1
- package/front_end/ui/components/text_editor/javascript.ts +10 -3
- package/front_end/ui/components/text_prompt/TextPrompt.ts +9 -8
- package/front_end/ui/components/text_prompt/textPrompt.css +1 -6
- package/front_end/ui/legacy/TabbedPane.ts +3 -0
- package/front_end/ui/legacy/Toolbar.ts +25 -13
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +17 -3
- package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.ts +8 -8
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +1 -1
- package/package.json +1 -1
- package/scripts/build/assert_third_party_readmes.py +1 -1
@@ -1002,15 +1002,15 @@ export class DOMNodeShortcut {
|
|
1002
1002
|
export class DOMDocument extends DOMNode {
|
1003
1003
|
body: DOMNode|null;
|
1004
1004
|
documentElement: DOMNode|null;
|
1005
|
-
documentURL:
|
1006
|
-
baseURL:
|
1005
|
+
documentURL: Platform.DevToolsPath.UrlString;
|
1006
|
+
baseURL: Platform.DevToolsPath.UrlString;
|
1007
1007
|
constructor(domModel: DOMModel, payload: Protocol.DOM.Node) {
|
1008
1008
|
super(domModel);
|
1009
1009
|
this.body = null;
|
1010
1010
|
this.documentElement = null;
|
1011
1011
|
this.init(this, false, payload);
|
1012
|
-
this.documentURL = payload.documentURL || '';
|
1013
|
-
this.baseURL = payload.baseURL || '';
|
1012
|
+
this.documentURL = (payload.documentURL || '') as Platform.DevToolsPath.UrlString;
|
1013
|
+
this.baseURL = (payload.baseURL || '') as Platform.DevToolsPath.UrlString;
|
1014
1014
|
}
|
1015
1015
|
}
|
1016
1016
|
|
@@ -1243,10 +1243,10 @@ export class DOMModel extends SDKModel<EventTypes> {
|
|
1243
1243
|
|
1244
1244
|
documentUpdated(): void {
|
1245
1245
|
// If we have this.#pendingDocumentRequestPromise in flight,
|
1246
|
-
//
|
1247
|
-
const documentWasRequested = this.#
|
1246
|
+
// it will contain most recent result.
|
1247
|
+
const documentWasRequested = this.#pendingDocumentRequestPromise;
|
1248
1248
|
this.setDocument(null);
|
1249
|
-
if (this.parentModel() && documentWasRequested) {
|
1249
|
+
if (this.parentModel() && !documentWasRequested) {
|
1250
1250
|
void this.requestDocument();
|
1251
1251
|
}
|
1252
1252
|
}
|
@@ -140,7 +140,7 @@ export class ResourceTreeModel extends SDKModel<EventTypes> {
|
|
140
140
|
if (mainFramePayload && mainFramePayload.frame.url !== ':') {
|
141
141
|
this.dispatchEventToListeners(Events.WillLoadCachedResources);
|
142
142
|
this.addFramesRecursively(null, mainFramePayload);
|
143
|
-
this.target().setInspectedURL(mainFramePayload.frame.url);
|
143
|
+
this.target().setInspectedURL(mainFramePayload.frame.url as Platform.DevToolsPath.UrlString);
|
144
144
|
}
|
145
145
|
this.#cachedResourcesProcessed = true;
|
146
146
|
const runtimeModel = this.target().model(RuntimeModel);
|
@@ -32,8 +32,6 @@
|
|
32
32
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
33
33
|
*/
|
34
34
|
|
35
|
-
// TODO(crbug.com/1253323): Casts to UrlString will be removed from this file when migration to branded types is complete.
|
36
|
-
|
37
35
|
import * as TextUtils from '../../models/text_utils/text_utils.js';
|
38
36
|
import * as Common from '../common/common.js';
|
39
37
|
import * as i18n from '../i18n/i18n.js';
|
@@ -61,15 +59,17 @@ const str_ = i18n.i18n.registerUIStrings('core/sdk/SourceMap.ts', UIStrings);
|
|
61
59
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
62
60
|
|
63
61
|
export interface SourceMap {
|
64
|
-
compiledURL():
|
65
|
-
url():
|
66
|
-
sourceURLs():
|
67
|
-
sourceContentProvider(sourceURL:
|
62
|
+
compiledURL(): Platform.DevToolsPath.UrlString;
|
63
|
+
url(): Platform.DevToolsPath.UrlString;
|
64
|
+
sourceURLs(): Platform.DevToolsPath.UrlString[];
|
65
|
+
sourceContentProvider(sourceURL: Platform.DevToolsPath.UrlString, contentType: Common.ResourceType.ResourceType):
|
68
66
|
TextUtils.ContentProvider.ContentProvider;
|
69
|
-
embeddedContentByURL(sourceURL:
|
67
|
+
embeddedContentByURL(sourceURL: Platform.DevToolsPath.UrlString): string|null;
|
70
68
|
findEntry(lineNumber: number, columnNumber: number): SourceMapEntry|null;
|
71
|
-
findReverseRanges(sourceURL:
|
72
|
-
|
69
|
+
findReverseRanges(sourceURL: Platform.DevToolsPath.UrlString, lineNumber: number, columnNumber: number):
|
70
|
+
TextUtils.TextRange.TextRange[];
|
71
|
+
sourceLineMapping(sourceURL: Platform.DevToolsPath.UrlString, lineNumber: number, columnNumber: number):
|
72
|
+
SourceMapEntry|null;
|
73
73
|
mappings(): SourceMapEntry[];
|
74
74
|
mapsOrigin(): boolean;
|
75
75
|
}
|
@@ -77,10 +77,10 @@ export interface SourceMap {
|
|
77
77
|
export class SourceMapV3 {
|
78
78
|
version!: number;
|
79
79
|
file!: string|undefined;
|
80
|
-
sources!:
|
80
|
+
sources!: Platform.DevToolsPath.UrlString[];
|
81
81
|
sections!: Section[]|undefined;
|
82
82
|
mappings!: string;
|
83
|
-
sourceRoot!:
|
83
|
+
sourceRoot!: Platform.DevToolsPath.UrlString|undefined;
|
84
84
|
names!: string[]|undefined;
|
85
85
|
sourcesContent!: string|undefined;
|
86
86
|
constructor() {
|
@@ -105,13 +105,13 @@ export class Offset {
|
|
105
105
|
export class SourceMapEntry {
|
106
106
|
lineNumber: number;
|
107
107
|
columnNumber: number;
|
108
|
-
sourceURL:
|
108
|
+
sourceURL: Platform.DevToolsPath.UrlString|undefined;
|
109
109
|
sourceLineNumber: number;
|
110
110
|
sourceColumnNumber: number;
|
111
111
|
name: string|undefined;
|
112
112
|
|
113
113
|
constructor(
|
114
|
-
lineNumber: number, columnNumber: number, sourceURL?:
|
114
|
+
lineNumber: number, columnNumber: number, sourceURL?: Platform.DevToolsPath.UrlString, sourceLineNumber?: number,
|
115
115
|
sourceColumnNumber?: number, name?: string) {
|
116
116
|
this.lineNumber = lineNumber;
|
117
117
|
this.columnNumber = columnNumber;
|
@@ -136,14 +136,14 @@ for (let i = 0; i < base64Digits.length; ++i) {
|
|
136
136
|
base64Map.set(base64Digits.charAt(i), i);
|
137
137
|
}
|
138
138
|
|
139
|
-
const sourceMapToSourceList = new WeakMap<SourceMapV3,
|
139
|
+
const sourceMapToSourceList = new WeakMap<SourceMapV3, Platform.DevToolsPath.UrlString[]>();
|
140
140
|
|
141
141
|
export class TextSourceMap implements SourceMap {
|
142
142
|
readonly #initiator: PageResourceLoadInitiator;
|
143
143
|
#json: SourceMapV3|null;
|
144
|
-
readonly #compiledURLInternal:
|
145
|
-
readonly #sourceMappingURL:
|
146
|
-
readonly #baseURL:
|
144
|
+
readonly #compiledURLInternal: Platform.DevToolsPath.UrlString;
|
145
|
+
readonly #sourceMappingURL: Platform.DevToolsPath.UrlString;
|
146
|
+
readonly #baseURL: Platform.DevToolsPath.UrlString;
|
147
147
|
#mappingsInternal: SourceMapEntry[]|null;
|
148
148
|
readonly #sourceInfos: Map<Platform.DevToolsPath.UrlString, TextSourceMap.SourceInfo>;
|
149
149
|
|
@@ -152,12 +152,13 @@ export class TextSourceMap implements SourceMap {
|
|
152
152
|
* for format description.
|
153
153
|
*/
|
154
154
|
constructor(
|
155
|
-
compiledURL:
|
155
|
+
compiledURL: Platform.DevToolsPath.UrlString, sourceMappingURL: Platform.DevToolsPath.UrlString,
|
156
|
+
payload: SourceMapV3, initiator: PageResourceLoadInitiator) {
|
156
157
|
this.#initiator = initiator;
|
157
158
|
this.#json = payload;
|
158
159
|
this.#compiledURLInternal = compiledURL;
|
159
160
|
this.#sourceMappingURL = sourceMappingURL;
|
160
|
-
this.#baseURL = sourceMappingURL.startsWith('data:') ? compiledURL : sourceMappingURL;
|
161
|
+
this.#baseURL = (sourceMappingURL.startsWith('data:') ? compiledURL : sourceMappingURL);
|
161
162
|
|
162
163
|
this.#mappingsInternal = null;
|
163
164
|
this.#sourceInfos = new Map();
|
@@ -174,8 +175,9 @@ export class TextSourceMap implements SourceMap {
|
|
174
175
|
/**
|
175
176
|
* @throws {!Error}
|
176
177
|
*/
|
177
|
-
static async load(
|
178
|
-
|
178
|
+
static async load(
|
179
|
+
sourceMapURL: Platform.DevToolsPath.UrlString, compiledURL: Platform.DevToolsPath.UrlString,
|
180
|
+
initiator: PageResourceLoadInitiator): Promise<TextSourceMap> {
|
179
181
|
let updatedContent;
|
180
182
|
try {
|
181
183
|
const {content} = await PageResourceLoader.instance().loadResource(sourceMapURL, initiator);
|
@@ -195,11 +197,11 @@ export class TextSourceMap implements SourceMap {
|
|
195
197
|
}
|
196
198
|
}
|
197
199
|
|
198
|
-
compiledURL():
|
200
|
+
compiledURL(): Platform.DevToolsPath.UrlString {
|
199
201
|
return this.#compiledURLInternal;
|
200
202
|
}
|
201
203
|
|
202
|
-
url():
|
204
|
+
url(): Platform.DevToolsPath.UrlString {
|
203
205
|
return this.#sourceMappingURL;
|
204
206
|
}
|
205
207
|
|
@@ -216,8 +218,8 @@ export class TextSourceMap implements SourceMap {
|
|
216
218
|
return new CompilerSourceMappingContentProvider(sourceURL, contentType, this.#initiator);
|
217
219
|
}
|
218
220
|
|
219
|
-
embeddedContentByURL(sourceURL:
|
220
|
-
const entry = this.#sourceInfos.get(sourceURL
|
221
|
+
embeddedContentByURL(sourceURL: Platform.DevToolsPath.UrlString): string|null {
|
222
|
+
const entry = this.#sourceInfos.get(sourceURL);
|
221
223
|
if (!entry) {
|
222
224
|
return null;
|
223
225
|
}
|
@@ -231,7 +233,8 @@ export class TextSourceMap implements SourceMap {
|
|
231
233
|
return index ? mappings[index - 1] : null;
|
232
234
|
}
|
233
235
|
|
234
|
-
sourceLineMapping(sourceURL:
|
236
|
+
sourceLineMapping(sourceURL: Platform.DevToolsPath.UrlString, lineNumber: number, columnNumber: number):
|
237
|
+
SourceMapEntry|null {
|
235
238
|
const mappings = this.mappings();
|
236
239
|
const reverseMappings = this.reversedMappings(sourceURL);
|
237
240
|
const first = Platform.ArrayUtilities.lowerBound(reverseMappings, lineNumber, lineComparator);
|
@@ -253,7 +256,8 @@ export class TextSourceMap implements SourceMap {
|
|
253
256
|
}
|
254
257
|
}
|
255
258
|
|
256
|
-
private findReverseIndices(sourceURL:
|
259
|
+
private findReverseIndices(sourceURL: Platform.DevToolsPath.UrlString, lineNumber: number, columnNumber: number):
|
260
|
+
number[] {
|
257
261
|
const mappings = this.mappings();
|
258
262
|
const reverseMappings = this.reversedMappings(sourceURL);
|
259
263
|
const endIndex = Platform.ArrayUtilities.upperBound(
|
@@ -271,12 +275,14 @@ export class TextSourceMap implements SourceMap {
|
|
271
275
|
return reverseMappings.slice(startIndex, endIndex);
|
272
276
|
}
|
273
277
|
|
274
|
-
findReverseEntries(sourceURL:
|
278
|
+
findReverseEntries(sourceURL: Platform.DevToolsPath.UrlString, lineNumber: number, columnNumber: number):
|
279
|
+
SourceMapEntry[] {
|
275
280
|
const mappings = this.mappings();
|
276
281
|
return this.findReverseIndices(sourceURL, lineNumber, columnNumber).map(i => mappings[i]);
|
277
282
|
}
|
278
283
|
|
279
|
-
findReverseRanges(sourceURL:
|
284
|
+
findReverseRanges(sourceURL: Platform.DevToolsPath.UrlString, lineNumber: number, columnNumber: number):
|
285
|
+
TextUtils.TextRange.TextRange[] {
|
280
286
|
const mappings = this.mappings();
|
281
287
|
const indices = this.findReverseIndices(sourceURL, lineNumber, columnNumber);
|
282
288
|
const ranges: TextUtils.TextRange.TextRange[] = [];
|
@@ -308,8 +314,8 @@ export class TextSourceMap implements SourceMap {
|
|
308
314
|
return this.#mappingsInternal;
|
309
315
|
}
|
310
316
|
|
311
|
-
private reversedMappings(sourceURL:
|
312
|
-
const info = this.#sourceInfos.get(sourceURL
|
317
|
+
private reversedMappings(sourceURL: Platform.DevToolsPath.UrlString): number[] {
|
318
|
+
const info = this.#sourceInfos.get(sourceURL);
|
313
319
|
if (!info) {
|
314
320
|
return [];
|
315
321
|
}
|
@@ -354,9 +360,9 @@ export class TextSourceMap implements SourceMap {
|
|
354
360
|
|
355
361
|
private parseSources(sourceMap: SourceMapV3): void {
|
356
362
|
const sourcesList = [];
|
357
|
-
let sourceRoot = sourceMap.sourceRoot || '';
|
363
|
+
let sourceRoot = sourceMap.sourceRoot || '' as Platform.DevToolsPath.UrlString;
|
358
364
|
if (sourceRoot && !sourceRoot.endsWith('/')) {
|
359
|
-
sourceRoot
|
365
|
+
sourceRoot = Common.ParsedURL.ParsedURL.concatenate(sourceRoot, '/');
|
360
366
|
}
|
361
367
|
for (let i = 0; i < sourceMap.sources.length; ++i) {
|
362
368
|
let href = sourceMap.sources[i];
|
@@ -366,14 +372,14 @@ export class TextSourceMap implements SourceMap {
|
|
366
372
|
// be meaningful or useful if the source URL is already absolute though. In this
|
367
373
|
// case, use the source URL as is without prepending the sourceRoot.
|
368
374
|
if (Common.ParsedURL.ParsedURL.isRelativeURL(href)) {
|
369
|
-
href = sourceRoot
|
375
|
+
href = Common.ParsedURL.ParsedURL.concatenate(sourceRoot, href);
|
370
376
|
}
|
371
377
|
let url = Common.ParsedURL.ParsedURL.completeURL(this.#baseURL, href) || href;
|
372
378
|
const source = sourceMap.sourcesContent && sourceMap.sourcesContent[i];
|
373
379
|
if (url === this.#compiledURLInternal && source) {
|
374
|
-
url
|
380
|
+
url = Common.ParsedURL.ParsedURL.concatenate(url, '? [sm]');
|
375
381
|
}
|
376
|
-
this.#sourceInfos.set(url
|
382
|
+
this.#sourceInfos.set(url, new TextSourceMap.SourceInfo(source || null, null));
|
377
383
|
sourcesList.push(url);
|
378
384
|
}
|
379
385
|
sourceMapToSourceList.set(sourceMap, sourcesList);
|
@@ -393,7 +399,7 @@ export class TextSourceMap implements SourceMap {
|
|
393
399
|
const sources = sourceMapToSourceList.get(map);
|
394
400
|
const names = map.names || [];
|
395
401
|
const stringCharIterator = new TextSourceMap.StringCharIterator(map.mappings);
|
396
|
-
let sourceURL:
|
402
|
+
let sourceURL: Platform.DevToolsPath.UrlString|undefined = sources && sources[sourceIndex];
|
397
403
|
|
398
404
|
while (true) {
|
399
405
|
if (stringCharIterator.peek() === ',') {
|
@@ -461,7 +467,8 @@ export class TextSourceMap implements SourceMap {
|
|
461
467
|
return negative ? -result : result;
|
462
468
|
}
|
463
469
|
|
464
|
-
reverseMapTextRange(url:
|
470
|
+
reverseMapTextRange(url: Platform.DevToolsPath.UrlString, textRange: TextUtils.TextRange.TextRange):
|
471
|
+
TextUtils.TextRange.TextRange|null {
|
465
472
|
function comparator(
|
466
473
|
position: {
|
467
474
|
lineNumber: number,
|
@@ -110,8 +110,8 @@ export class SourceMapManager<T extends FrameAssociated> extends Common.ObjectWr
|
|
110
110
|
}
|
111
111
|
|
112
112
|
private resolveRelativeURLs(sourceURL: string, sourceMapURL: string): {
|
113
|
-
sourceURL:
|
114
|
-
sourceMapURL:
|
113
|
+
sourceURL: Platform.DevToolsPath.UrlString,
|
114
|
+
sourceMapURL: Platform.DevToolsPath.UrlString,
|
115
115
|
sourceMapId: string,
|
116
116
|
}|null {
|
117
117
|
// |#sourceURL| can be a random string, but is generally an absolute path.
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
import * as Common from '../common/common.js';
|
6
6
|
import * as Host from '../host/host.js';
|
7
|
+
import type * as Platform from '../platform/platform.js';
|
7
8
|
import * as ProtocolClient from '../protocol_client/protocol_client.js';
|
8
9
|
import type * as Protocol from '../../generated/protocol.js';
|
9
10
|
import type {TargetManager} from './TargetManager.js';
|
@@ -12,7 +13,7 @@ import {SDKModel} from './SDKModel.js';
|
|
12
13
|
export class Target extends ProtocolClient.InspectorBackend.TargetBase {
|
13
14
|
readonly #targetManagerInternal: TargetManager;
|
14
15
|
#nameInternal: string;
|
15
|
-
#inspectedURLInternal:
|
16
|
+
#inspectedURLInternal: Platform.DevToolsPath.UrlString;
|
16
17
|
#inspectedURLName: string;
|
17
18
|
readonly #capabilitiesMask: number;
|
18
19
|
#typeInternal: Type;
|
@@ -31,7 +32,7 @@ export class Target extends ProtocolClient.InspectorBackend.TargetBase {
|
|
31
32
|
super(needsNodeJSPatching, parentTarget, sessionId, connection);
|
32
33
|
this.#targetManagerInternal = targetManager;
|
33
34
|
this.#nameInternal = name;
|
34
|
-
this.#inspectedURLInternal = '';
|
35
|
+
this.#inspectedURLInternal = '' as Platform.DevToolsPath.UrlString;
|
35
36
|
this.#inspectedURLName = '';
|
36
37
|
this.#capabilitiesMask = 0;
|
37
38
|
switch (type) {
|
@@ -165,11 +166,11 @@ export class Target extends ProtocolClient.InspectorBackend.TargetBase {
|
|
165
166
|
return this.#modelByConstructor;
|
166
167
|
}
|
167
168
|
|
168
|
-
inspectedURL():
|
169
|
+
inspectedURL(): Platform.DevToolsPath.UrlString {
|
169
170
|
return this.#inspectedURLInternal;
|
170
171
|
}
|
171
172
|
|
172
|
-
setInspectedURL(inspectedURL:
|
173
|
+
setInspectedURL(inspectedURL: Platform.DevToolsPath.UrlString): void {
|
173
174
|
this.#inspectedURLInternal = inspectedURL;
|
174
175
|
const parsedURL = Common.ParsedURL.ParsedURL.fromString(inspectedURL);
|
175
176
|
this.#inspectedURLName = parsedURL ? parsedURL.lastPathComponentWithFragment() : '#' + this.#idInternal;
|
@@ -42,6 +42,7 @@ import {HTMLFormatter} from './HTMLFormatter.js';
|
|
42
42
|
import {IdentityFormatter} from './IdentityFormatter.js';
|
43
43
|
import {JavaScriptFormatter} from './JavaScriptFormatter.js';
|
44
44
|
import {JSONFormatter} from './JSONFormatter.js';
|
45
|
+
import {computeSubstitution, applySubstitution} from './Substitute.js';
|
45
46
|
|
46
47
|
export interface Chunk {
|
47
48
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
@@ -304,3 +305,5 @@ export function argumentsList(content: string): string[] {
|
|
304
305
|
console.error = (): undefined => undefined;
|
305
306
|
}
|
306
307
|
})();
|
308
|
+
|
309
|
+
export {applySubstitution, computeSubstitution};
|