Issue metadata
Sign in to add a comment
|
sourceMappingURL should be blockable by one of CSP directives |
||||||||||||||||||||||
Issue descriptionToday <script nonce="mytestnonce"> //# sourceMappingURL=http://localhost:8080/resources/dummy.txt </script> will be fetched if 1. devtools is opened 2. nonce matches (or the inline script is allowed via other means - i.e. via digest matching or via ) EXPECTED BEHAVIOR: There should be a 3rd condition above - CSP should allow the fetch (unclear if this should go via script-src and/or connect-src?) ACTUAL BEHAVIOR: CSP cannot be used to block the sourceMappingURL fetch
,
Nov 7 2016
,
Nov 7 2016
dgozman@: Would you be able to suggest how to hook up DevTools to CSP checks (i.e. calls to blink::ContentSecurityPolicy::allowConnectToSource method) so that DevTools won't fetch sourceMappingURL if the URI is blocked by CSP. Would you be able to confirm that sourceMappingURL will not be fetched unless DevTools is opened?
,
Nov 7 2016
,
Nov 8 2016
,
Nov 8 2016
I am not sure we should do anything in this case. It's not the page which fetches source map, it's DevTools which we trust. What is the usecase for restricting source map from being fetched?
,
Dec 1 2016
Closing per lack of feedback.
,
Mar 10 2017
This bug has been closed for more than 14 weeks. Removing security view restrictions. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by lukasza@chromium.org
, Nov 7 2016