Fix resource lookups in inspector stylesheet
The method ResourceStyleSheetText was using stylesheet's href attribute to look up resources stored in the resource_container_. It only worked when the href attribute and the FinalURL() were the same because FinalURL() is used to store resources in the resource_container_. This CL changes ResourceStyleSheetText to use FinalURL() when looking up resources. FinalURL() is the actual URL where stylesheet was loaded from (e.g., after redirects). Fixed: 1128360 Change-Id: Ib2dff7d2c86af582a857493a73f3f9fe27307e36 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2414213Reviewed-by:Sigurd Schneider <sigurds@chromium.org> Reviewed-by:
Peter Marshall <petermarshall@chromium.org> Commit-Queue: Alex Rudenko <alexrudenko@chromium.org> Cr-Commit-Position: refs/heads/master@{#808267}
Showing
Please register or sign in to comment