Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: templates/manifest.json.tmpl

Issue 29496582: Issue 5448 - Add content_security_policy to the manifest.json for Chrome-extensions (Closed)
Patch Set: Created July 24, 2017, 1:48 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* This Source Code Form is subject to the terms of the Mozilla Public 1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 4
5 { 5 {
6 "manifest_version": 2, 6 "manifest_version": 2,
7 {%- if releaseBuild %} 7 {%- if releaseBuild %}
8 "name": "__MSG_name__", 8 "name": "__MSG_name__",
9 {%- else %} 9 {%- else %}
10 "name": "__MSG_name_devbuild__", 10 "name": "__MSG_name_devbuild__",
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 {%- if webAccessible %} 110 {%- if webAccessible %}
111 "web_accessible_resources": {{webAccessible|json}}, 111 "web_accessible_resources": {{webAccessible|json}},
112 {%- endif %} 112 {%- endif %}
113 113
114 {%- if metadata.has_option('general', 'managedStorageSchema') %} 114 {%- if metadata.has_option('general', 'managedStorageSchema') %}
115 "storage": { 115 "storage": {
116 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}} 116 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}}
117 }, 117 },
118 {%- endif %} 118 {%- endif %}
119 119
120 {%- if metadata.has_option('general', 'contentSecurityPolicy') %}
121 "content_security_policy": {{metadata.get('general', 'contentSecurityPolicy')| json}},
122 {%- endif %}
123
120 "_dummy": false 124 "_dummy": false
121 } 125 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld