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

Delta Between Two Patch Sets: templates/manifest.json.tmpl

Issue 29743581: Issue 6552 - Support arbitrary manifest values (Closed) Base URL: https://hg.adblockplus.org/buildtools/file/a3db4a1a49e8
Left Patch Set: Issue 6552 - Support arbitrary manifest values Created April 11, 2018, 9:42 a.m.
Right Patch Set: Created April 19, 2018, 11:42 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 "default_popup": {{browserAction.popup|json}}, 66 "default_popup": {{browserAction.popup|json}},
67 {%- endif %} 67 {%- endif %}
68 "default_title": "__MSG_name__" 68 "default_title": "__MSG_name__"
69 }, 69 },
70 {%- endif %} 70 {%- endif %}
71 71
72 {%- if icons %} 72 {%- if icons %}
73 "icons": {{icons|json}}, 73 "icons": {{icons|json}},
74 {%- endif %} 74 {%- endif %}
75 75
76 {%- if permissions %}
77 "permissions": {{permissions|json}},
78 {%- endif %}
79
80 {%- if optionalPermissions %}
81 "optional_permissions": {{optionalPermissions|json}},
82 {%- endif %}
83
84 {%- if backgroundScripts %} 76 {%- if backgroundScripts %}
85 "background": { 77 "background": {
86 "scripts": {{backgroundScripts|json}}, 78 "scripts": {{backgroundScripts|json}},
87 "persistent": true 79 "persistent": true
88 }, 80 },
89 {%- endif %} 81 {%- endif %}
90 82
91 {%- if metadata.has_option('general', 'options') %} 83 {%- if metadata.has_option('general', 'options') %}
92 {%- if type != 'edge' %} 84 {%- if type != 'edge' %}
93 "options_ui": { 85 "options_ui": {
94 "page": {{metadata.get('general', 'options')|json}}, 86 "page": {{metadata.get('general', 'options')|json}},
95 "open_in_tab": true 87 "open_in_tab": true
96 }, 88 },
97 {%- else %} 89 {%- else %}
98 "options_page": {{metadata.get('general', 'options')|json}}, 90 "options_page": {{metadata.get('general', 'options')|json}},
99 {%- endif %} 91 {%- endif %}
100 {%- endif %} 92 {%- endif %}
101 93
102 {%- if metadata.has_option('general', 'devtools') %}
103 "devtools_page": {{metadata.get('general', 'devtools')|json}},
104 {%- endif %}
105
106 {%- if contentScripts %} 94 {%- if contentScripts %}
107 "content_scripts": {{contentScripts|json}}, 95 "content_scripts": {{contentScripts|json}},
108 {%- endif %} 96 {%- endif %}
109 97
110 {%- if webAccessible %}
111 "web_accessible_resources": {{webAccessible|json}},
112 {%- endif %}
113
114 {%- if externallyConnectable %}
115 "externally_connectable": {
116 {% for key in externallyConnectable %}
117 "{{key}}": {{externallyConnectable[key]|json}}{%- if not loop.last -%},{ %- endif -%}
118 {% endfor %}
119 },
120 {%- endif %}
121
122 {%- if metadata.has_option('general', 'managedStorageSchema') %}
123 "storage": {
124 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}}
125 },
126 {%- endif %}
127
128 {%- if metadata.has_option('general', 'contentSecurityPolicy') %}
129 "content_security_policy": {{metadata.get('general', 'contentSecurityPolicy')| json}},
130 {%- endif %}
131
132 "_dummy": false 98 "_dummy": false
133 } 99 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld