Include source URL in source map cache key
It's not safe to cache source map object by just source map URL, because source map is always constructed with and associated with specific source URL, too, so reusing same source map object for various source URLs can end up resolving invalid locations, pointing to the first source URL it was constructed with. This change creates an aggregate source map ID, similar to the one in SDK.DebuggerModel, by concatenating source URL, ":" and source map URL. Such ID can then be used for caching and tracking purposes. There are more things that could be simplified here, but for now tried to make this change minimal and pretty much 1:1 replacement. Also removed obsolete applySourceMapEdit which doesn't seem to be used anywhere. Bug: 1012360 Change-Id: I131927a9f960526ba01412a39f22f036b1023caf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1848697 Commit-Queue: Ingvar Stepanyan <rreverser@google.com> Auto-Submit: Ingvar Stepanyan <rreverser@google.com> Reviewed-by:Yang Guo <yangguo@chromium.org> Reviewed-by:
Mathias Bynens <mathias@chromium.org> Reviewed-by:
Tim van der Lippe <tvanderlippe@chromium.org> Cr-Commit-Position: refs/heads/master@{#705070}
Showing
This diff is collapsed.
Please register or sign in to comment