DescriptionPre-requisites needed before applying content-security-policy to the HTML options page. CSP is a second line of defense in case someone introduces an XSS in one of these pages.
The changes to jstemplate_builder are to allow the template scripts
to be served as resources where possible, and to return JS as well as
HTML in the one case where the script is to be dynamically generated.
The other changes are to combine the options javascript files into a
single large file resource and to serve it from under chrome://settings.
This satisfies the "no inline" rule and options.html can script src="" it.
I did put one file into the /shared directory, since it is a companion
to a piece of pre-existing template code alread in that directory.
TEST=chrome://settings page loads properly.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85322
Patch Set 1 #
Total comments: 6
Patch Set 2 : '' #Patch Set 3 : '' #Patch Set 4 : '' #Patch Set 5 : '' #
Total comments: 1
Patch Set 6 : '' #Patch Set 7 : '' #Patch Set 8 : '' #
Total comments: 5
Patch Set 9 : '' #Patch Set 10 : '' #
Messages
Total messages: 37 (0 generated)
|