mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-28 13:13:37 +08:00
This CL adds the APIs required for attaching a sourcemap to a resource via Extension APIs. This CL considers that the External Developer will subscribe to some of the existing Devtools Extension API (chrome.runtime.onConnect, port.OnMessage & inspectedWindow.onResourceAdded) This “subscribed“ extension, will be notified every time a resource is loaded. This includes images and any other resources This CL introduces: - APIs shape and implementation (attachSourceMapURL) - ExtensionServer implementation - ExtensionServer tests Full spec can be found here (Implementation): https://docs.google.com/document/d/1x9_MTMVr213ApruMK6ryc4JpPHahvOBlExP6sHkMv8Y/edit?pli=1 Bug: 364508694 Change-Id: I35a53b58fae1ba41b733bc4bcb8ed6b8022dad54 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6166854 Reviewed-by: Danil Somsikov <dsv@chromium.org> Commit-Queue: Vidal Diazleal <vidorteg@microsoft.com> Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>