chrome-devtools-frontend 1.0.973446 → 1.0.974575
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 +2 -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/RemoteObject.ts +10 -2
- 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/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/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 +14 -1
- 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/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 +9 -7
- package/front_end/ui/components/text_editor/javascript.ts +18 -6
- 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
- package/scripts/build/ninja/README.md +11 -40
@@ -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
|
}
|
@@ -485,10 +485,18 @@ export class RemoteObjectImpl extends RemoteObject {
|
|
485
485
|
result.push(remoteProperty);
|
486
486
|
}
|
487
487
|
for (const property of privateProperties) {
|
488
|
-
const propertyValue =
|
489
|
-
this.runtimeModelInternal.createRemoteObject((property.value as Protocol.Runtime.RemoteObject));
|
488
|
+
const propertyValue = property.value ? this.runtimeModelInternal.createRemoteObject(property.value) : null;
|
490
489
|
const remoteProperty = new RemoteObjectProperty(
|
491
490
|
property.name, propertyValue, true, true, true, false, undefined, false, undefined, true);
|
491
|
+
|
492
|
+
if (typeof property.value === 'undefined') {
|
493
|
+
if (property.get && property.get.type !== 'undefined') {
|
494
|
+
remoteProperty.getter = this.runtimeModelInternal.createRemoteObject(property.get);
|
495
|
+
}
|
496
|
+
if (property.set && property.set.type !== 'undefined') {
|
497
|
+
remoteProperty.setter = this.runtimeModelInternal.createRemoteObject(property.set);
|
498
|
+
}
|
499
|
+
}
|
492
500
|
result.push(remoteProperty);
|
493
501
|
}
|
494
502
|
|
@@ -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;
|
@@ -6,6 +6,7 @@ import type * as Common from '../../core/common/common.js';
|
|
6
6
|
import * as Host from '../../core/host/host.js';
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
8
8
|
import * as Components from '../../ui/legacy/components/utils/utils.js';
|
9
|
+
import type * as Platform from '../../core/platform/platform.js';
|
9
10
|
import type * as ProtocolProxyApi from '../../generated/protocol-proxy-api.js';
|
10
11
|
import type * as Protocol from '../../generated/protocol.js';
|
11
12
|
|
@@ -40,7 +41,7 @@ export class NodeMainImpl implements Common.Runnable.Runnable {
|
|
40
41
|
void SDK.Connections.initMainConnection(async () => {
|
41
42
|
const target = SDK.TargetManager.TargetManager.instance().createTarget(
|
42
43
|
'main', i18nString(UIStrings.main), SDK.Target.Type.Browser, null);
|
43
|
-
target.setInspectedURL('Node.js');
|
44
|
+
target.setInspectedURL('Node.js' as Platform.DevToolsPath.UrlString);
|
44
45
|
}, Components.TargetDetachedDialog.TargetDetachedDialog.webSocketConnectionLost);
|
45
46
|
}
|
46
47
|
}
|
@@ -113,11 +113,7 @@ export function registerCommands(inspectorBackend) {
|
|
113
113
|
['nodes']);
|
114
114
|
inspectorBackend.registerCommand(
|
115
115
|
'Accessibility.getFullAXTree',
|
116
|
-
[
|
117
|
-
{'name': 'depth', 'type': 'number', 'optional': true},
|
118
|
-
{'name': 'max_depth', 'type': 'number', 'optional': true},
|
119
|
-
{'name': 'frameId', 'type': 'string', 'optional': true}
|
120
|
-
],
|
116
|
+
[{'name': 'depth', 'type': 'number', 'optional': true}, {'name': 'frameId', 'type': 'string', 'optional': true}],
|
121
117
|
['nodes']);
|
122
118
|
inspectorBackend.registerCommand(
|
123
119
|
'Accessibility.getRootAXNode', [{'name': 'frameId', 'type': 'string', 'optional': true}], ['node']);
|
@@ -211,6 +207,7 @@ export function registerCommands(inspectorBackend) {
|
|
211
207
|
MixedContentWarning: 'MixedContentWarning'
|
212
208
|
});
|
213
209
|
inspectorBackend.registerEnum('Audits.MixedContentResourceType', {
|
210
|
+
AttributionSrc: 'AttributionSrc',
|
214
211
|
Audio: 'Audio',
|
215
212
|
Beacon: 'Beacon',
|
216
213
|
CSPReport: 'CSPReport',
|
@@ -520,6 +517,8 @@ export function registerCommands(inspectorBackend) {
|
|
520
517
|
'CSS.getPlatformFontsForNode', [{'name': 'nodeId', 'type': 'number', 'optional': false}], ['fonts']);
|
521
518
|
inspectorBackend.registerCommand(
|
522
519
|
'CSS.getStyleSheetText', [{'name': 'styleSheetId', 'type': 'string', 'optional': false}], ['text']);
|
520
|
+
inspectorBackend.registerCommand(
|
521
|
+
'CSS.getLayersForNode', [{'name': 'nodeId', 'type': 'number', 'optional': false}], ['rootLayer']);
|
523
522
|
inspectorBackend.registerCommand(
|
524
523
|
'CSS.trackComputedStyleUpdates', [{'name': 'propertiesToTrack', 'type': 'object', 'optional': false}], []);
|
525
524
|
inspectorBackend.registerCommand('CSS.takeComputedStyleUpdates', [], ['nodeIds']);
|
@@ -656,10 +655,11 @@ export function registerCommands(inspectorBackend) {
|
|
656
655
|
ScrollbarCorner: 'scrollbar-corner',
|
657
656
|
Resizer: 'resizer',
|
658
657
|
InputListButton: 'input-list-button',
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
658
|
+
PageTransition: 'page-transition',
|
659
|
+
PageTransitionContainer: 'page-transition-container',
|
660
|
+
PageTransitionImageWrapper: 'page-transition-image-wrapper',
|
661
|
+
PageTransitionOutgoingImage: 'page-transition-outgoing-image',
|
662
|
+
PageTransitionIncomingImage: 'page-transition-incoming-image'
|
663
663
|
});
|
664
664
|
inspectorBackend.registerEnum('DOM.ShadowRootType', {UserAgent: 'user-agent', Open: 'open', Closed: 'closed'});
|
665
665
|
inspectorBackend.registerEnum(
|
@@ -1153,6 +1153,8 @@ export function registerCommands(inspectorBackend) {
|
|
1153
1153
|
{'name': 'userAgentMetadata', 'type': 'object', 'optional': true}
|
1154
1154
|
],
|
1155
1155
|
[]);
|
1156
|
+
inspectorBackend.registerCommand(
|
1157
|
+
'Emulation.setAutomationOverride', [{'name': 'enabled', 'type': 'boolean', 'optional': false}], []);
|
1156
1158
|
|
1157
1159
|
// HeadlessExperimental.
|
1158
1160
|
inspectorBackend.registerEnum('HeadlessExperimental.ScreenshotParamsFormat', {Jpeg: 'jpeg', Png: 'png'});
|
@@ -976,6 +976,14 @@ export namespace ProtocolMapping {
|
|
976
976
|
*/
|
977
977
|
'CSS.getStyleSheetText':
|
978
978
|
{paramsType: [Protocol.CSS.GetStyleSheetTextRequest]; returnType: Protocol.CSS.GetStyleSheetTextResponse;};
|
979
|
+
/**
|
980
|
+
* Returns all layers parsed by the rendering engine for the tree scope of a node.
|
981
|
+
* Given a DOM element identified by nodeId, getLayersForNode returns the root
|
982
|
+
* layer for the nearest ancestor document or shadow root. The layer root contains
|
983
|
+
* the full layer tree for the tree scope and their ordering.
|
984
|
+
*/
|
985
|
+
'CSS.getLayersForNode':
|
986
|
+
{paramsType: [Protocol.CSS.GetLayersForNodeRequest]; returnType: Protocol.CSS.GetLayersForNodeResponse;};
|
979
987
|
/**
|
980
988
|
* Starts tracking the given computed styles for updates. The specified array of properties
|
981
989
|
* replaces the one previously specified. Pass empty array to disable tracking.
|
@@ -1593,6 +1601,11 @@ export namespace ProtocolMapping {
|
|
1593
1601
|
* Allows overriding user agent with the given string.
|
1594
1602
|
*/
|
1595
1603
|
'Emulation.setUserAgentOverride': {paramsType: [Protocol.Emulation.SetUserAgentOverrideRequest]; returnType: void;};
|
1604
|
+
/**
|
1605
|
+
* Allows overriding the automation flag.
|
1606
|
+
*/
|
1607
|
+
'Emulation.setAutomationOverride':
|
1608
|
+
{paramsType: [Protocol.Emulation.SetAutomationOverrideRequest]; returnType: void;};
|
1596
1609
|
/**
|
1597
1610
|
* Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a
|
1598
1611
|
* screenshot from the resulting frame. Requires that the target was created with enabled
|
@@ -592,6 +592,15 @@ declare namespace ProtocolProxyApi {
|
|
592
592
|
invoke_getStyleSheetText(params: Protocol.CSS.GetStyleSheetTextRequest):
|
593
593
|
Promise<Protocol.CSS.GetStyleSheetTextResponse>;
|
594
594
|
|
595
|
+
/**
|
596
|
+
* Returns all layers parsed by the rendering engine for the tree scope of a node.
|
597
|
+
* Given a DOM element identified by nodeId, getLayersForNode returns the root
|
598
|
+
* layer for the nearest ancestor document or shadow root. The layer root contains
|
599
|
+
* the full layer tree for the tree scope and their ordering.
|
600
|
+
*/
|
601
|
+
invoke_getLayersForNode(params: Protocol.CSS.GetLayersForNodeRequest):
|
602
|
+
Promise<Protocol.CSS.GetLayersForNodeResponse>;
|
603
|
+
|
595
604
|
/**
|
596
605
|
* Starts tracking the given computed styles for updates. The specified array of properties
|
597
606
|
* replaces the one previously specified. Pass empty array to disable tracking.
|
@@ -1468,6 +1477,12 @@ declare namespace ProtocolProxyApi {
|
|
1468
1477
|
*/
|
1469
1478
|
invoke_setUserAgentOverride(params: Protocol.Emulation.SetUserAgentOverrideRequest):
|
1470
1479
|
Promise<Protocol.ProtocolResponseWithError>;
|
1480
|
+
|
1481
|
+
/**
|
1482
|
+
* Allows overriding the automation flag.
|
1483
|
+
*/
|
1484
|
+
invoke_setAutomationOverride(params: Protocol.Emulation.SetAutomationOverrideRequest):
|
1485
|
+
Promise<Protocol.ProtocolResponseWithError>;
|
1471
1486
|
}
|
1472
1487
|
export interface EmulationDispatcher {
|
1473
1488
|
/**
|
@@ -307,10 +307,6 @@ export namespace Accessibility {
|
|
307
307
|
* If omitted, the full tree is returned.
|
308
308
|
*/
|
309
309
|
depth?: integer;
|
310
|
-
/**
|
311
|
-
* Deprecated. This parameter has been renamed to `depth`. If depth is not provided, max_depth will be used.
|
312
|
-
*/
|
313
|
-
max_depth?: integer;
|
314
310
|
/**
|
315
311
|
* The frame for whose document the AX tree should be retrieved.
|
316
312
|
* If omited, the root frame is used.
|
@@ -758,6 +754,7 @@ export namespace Audits {
|
|
758
754
|
}
|
759
755
|
|
760
756
|
export const enum MixedContentResourceType {
|
757
|
+
AttributionSrc = 'AttributionSrc',
|
761
758
|
Audio = 'Audio',
|
762
759
|
Beacon = 'Beacon',
|
763
760
|
CSPReport = 'CSPReport',
|
@@ -1059,7 +1056,7 @@ export namespace Audits {
|
|
1059
1056
|
/**
|
1060
1057
|
* Represents the failure reason when a federated authentication reason fails.
|
1061
1058
|
* Should be updated alongside RequestIdTokenStatus in
|
1062
|
-
* third_party/blink/public/mojom/
|
1059
|
+
* third_party/blink/public/mojom/devtools/inspector_issue.mojom to include
|
1063
1060
|
* all cases except for success.
|
1064
1061
|
*/
|
1065
1062
|
export const enum FederatedAuthRequestIssueReason {
|
@@ -1924,6 +1921,11 @@ export namespace CSS {
|
|
1924
1921
|
* The array enumerates @supports at-rules starting with the innermost one, going outwards.
|
1925
1922
|
*/
|
1926
1923
|
supports?: CSSSupports[];
|
1924
|
+
/**
|
1925
|
+
* Cascade layer array. Contains the layer hierarchy that this rule belongs to starting
|
1926
|
+
* with the innermost layer and going outwards.
|
1927
|
+
*/
|
1928
|
+
layers?: CSSLayer[];
|
1927
1929
|
}
|
1928
1930
|
|
1929
1931
|
/**
|
@@ -2185,6 +2187,44 @@ export namespace CSS {
|
|
2185
2187
|
styleSheetId?: StyleSheetId;
|
2186
2188
|
}
|
2187
2189
|
|
2190
|
+
/**
|
2191
|
+
* CSS Layer at-rule descriptor.
|
2192
|
+
*/
|
2193
|
+
export interface CSSLayer {
|
2194
|
+
/**
|
2195
|
+
* Layer name.
|
2196
|
+
*/
|
2197
|
+
text: string;
|
2198
|
+
/**
|
2199
|
+
* The associated rule header range in the enclosing stylesheet (if
|
2200
|
+
* available).
|
2201
|
+
*/
|
2202
|
+
range?: SourceRange;
|
2203
|
+
/**
|
2204
|
+
* Identifier of the stylesheet containing this object (if exists).
|
2205
|
+
*/
|
2206
|
+
styleSheetId?: StyleSheetId;
|
2207
|
+
}
|
2208
|
+
|
2209
|
+
/**
|
2210
|
+
* CSS Layer data.
|
2211
|
+
*/
|
2212
|
+
export interface CSSLayerData {
|
2213
|
+
/**
|
2214
|
+
* Layer name.
|
2215
|
+
*/
|
2216
|
+
name: string;
|
2217
|
+
/**
|
2218
|
+
* Direct sub-layers
|
2219
|
+
*/
|
2220
|
+
subLayers?: CSSLayerData[];
|
2221
|
+
/**
|
2222
|
+
* Layer order. The order determines the order of the layer in the cascade order.
|
2223
|
+
* A higher number has higher priority in the cascade order.
|
2224
|
+
*/
|
2225
|
+
order: number;
|
2226
|
+
}
|
2227
|
+
|
2188
2228
|
/**
|
2189
2229
|
* Information about amount of glyphs that were rendered with given font.
|
2190
2230
|
*/
|
@@ -2495,6 +2535,14 @@ export namespace CSS {
|
|
2495
2535
|
text: string;
|
2496
2536
|
}
|
2497
2537
|
|
2538
|
+
export interface GetLayersForNodeRequest {
|
2539
|
+
nodeId: DOM.NodeId;
|
2540
|
+
}
|
2541
|
+
|
2542
|
+
export interface GetLayersForNodeResponse extends ProtocolResponseWithError {
|
2543
|
+
rootLayer: CSSLayerData;
|
2544
|
+
}
|
2545
|
+
|
2498
2546
|
export interface TrackComputedStyleUpdatesRequest {
|
2499
2547
|
propertiesToTrack: CSSComputedStyleProperty[];
|
2500
2548
|
}
|
@@ -2951,10 +2999,11 @@ export namespace DOM {
|
|
2951
2999
|
ScrollbarCorner = 'scrollbar-corner',
|
2952
3000
|
Resizer = 'resizer',
|
2953
3001
|
InputListButton = 'input-list-button',
|
2954
|
-
|
2955
|
-
|
2956
|
-
|
2957
|
-
|
3002
|
+
PageTransition = 'page-transition',
|
3003
|
+
PageTransitionContainer = 'page-transition-container',
|
3004
|
+
PageTransitionImageWrapper = 'page-transition-image-wrapper',
|
3005
|
+
PageTransitionOutgoingImage = 'page-transition-outgoing-image',
|
3006
|
+
PageTransitionIncomingImage = 'page-transition-incoming-image',
|
2958
3007
|
}
|
2959
3008
|
|
2960
3009
|
/**
|
@@ -5351,6 +5400,13 @@ export namespace Emulation {
|
|
5351
5400
|
*/
|
5352
5401
|
userAgentMetadata?: UserAgentMetadata;
|
5353
5402
|
}
|
5403
|
+
|
5404
|
+
export interface SetAutomationOverrideRequest {
|
5405
|
+
/**
|
5406
|
+
* Whether the override should be enabled.
|
5407
|
+
*/
|
5408
|
+
enabled: boolean;
|
5409
|
+
}
|
5354
5410
|
}
|
5355
5411
|
|
5356
5412
|
/**
|
@@ -30,6 +30,7 @@
|
|
30
30
|
|
31
31
|
import * as Common from '../../core/common/common.js';
|
32
32
|
import * as SDK from '../../core/sdk/sdk.js';
|
33
|
+
import type * as Platform from '../../core/platform/platform.js';
|
33
34
|
import type * as Protocol from '../../generated/protocol.js';
|
34
35
|
import * as TextUtils from '../text_utils/text_utils.js';
|
35
36
|
import * as Workspace from '../workspace/workspace.js';
|
@@ -327,11 +328,11 @@ const uiSourceCodeToBinding = new WeakMap<Workspace.UISourceCode.UISourceCode, B
|
|
327
328
|
|
328
329
|
class Binding {
|
329
330
|
readonly #project: ContentProviderBasedProject;
|
330
|
-
readonly #url:
|
331
|
+
readonly #url: Platform.DevToolsPath.UrlString;
|
331
332
|
referringSourceMaps: SDK.SourceMap.SourceMap[];
|
332
333
|
uiSourceCode: Workspace.UISourceCode.UISourceCode|null;
|
333
334
|
|
334
|
-
constructor(project: ContentProviderBasedProject, url:
|
335
|
+
constructor(project: ContentProviderBasedProject, url: Platform.DevToolsPath.UrlString) {
|
335
336
|
this.#project = project;
|
336
337
|
this.#url = url;
|
337
338
|
|
@@ -79,7 +79,7 @@ export class SASSSourceMapping implements SourceMapping {
|
|
79
79
|
for (const sourceURL of sourceMap.sourceURLs()) {
|
80
80
|
let binding = bindings.get(sourceURL);
|
81
81
|
if (!binding) {
|
82
|
-
binding = new Binding(project, sourceURL
|
82
|
+
binding = new Binding(project, sourceURL);
|
83
83
|
bindings.set(sourceURL, binding);
|
84
84
|
}
|
85
85
|
binding.addSourceMap(sourceMap, header.frameId);
|
@@ -129,7 +129,7 @@ export class SourceFormatter {
|
|
129
129
|
let count = 0;
|
130
130
|
let suffix = '';
|
131
131
|
do {
|
132
|
-
formattedURL =
|
132
|
+
formattedURL = Common.ParsedURL.ParsedURL.concatenate(uiSourceCode.url(), ':formatted', suffix);
|
133
133
|
suffix = `:${count++}`;
|
134
134
|
} while (this.project.uiSourceCodeForURL(formattedURL));
|
135
135
|
const contentProvider = TextUtils.StaticContentProvider.StaticContentProvider.fromString(
|