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: NOCHANGE rebase against current master (30b4e987f025) Created April 18, 2018, 2:35 p.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 extra %}
77 {%- for k, v in extra.items() %}
78 "{{k}}":{{v|json}},
79 {%- endfor %}
80 {%- endif %}
81
82 {%- if backgroundScripts %} 76 {%- if backgroundScripts %}
83 "background": { 77 "background": {
84 "scripts": {{backgroundScripts|json}}, 78 "scripts": {{backgroundScripts|json}},
85 "persistent": true 79 "persistent": true
86 }, 80 },
87 {%- endif %} 81 {%- endif %}
88 82
89 {%- if metadata.has_option('general', 'options') %} 83 {%- if metadata.has_option('general', 'options') %}
90 {%- if type != 'edge' %} 84 {%- if type != 'edge' %}
91 "options_ui": { 85 "options_ui": {
92 "page": {{metadata.get('general', 'options')|json}}, 86 "page": {{metadata.get('general', 'options')|json}},
93 "open_in_tab": true 87 "open_in_tab": true
94 }, 88 },
95 {%- else %} 89 {%- else %}
96 "options_page": {{metadata.get('general', 'options')|json}}, 90 "options_page": {{metadata.get('general', 'options')|json}},
97 {%- endif %} 91 {%- endif %}
98 {%- endif %} 92 {%- endif %}
99 93
100 {%- if metadata.has_option('general', 'devtools') %}
101 "devtools_page": {{metadata.get('general', 'devtools')|json}},
102 {%- endif %}
103
104 {%- if contentScripts %} 94 {%- if contentScripts %}
105 "content_scripts": {{contentScripts|json}}, 95 "content_scripts": {{contentScripts|json}},
106 {%- endif %} 96 {%- endif %}
107 97
108 {%- if metadata.has_option('general', 'managedStorageSchema') %}
109 "storage": {
110 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}}
111 },
112 {%- endif %}
113
114 {%- if metadata.has_option('general', 'contentSecurityPolicy') %}
115 "content_security_policy": {{metadata.get('general', 'contentSecurityPolicy')| json}},
116 {%- endif %}
117
118 "_dummy": false 98 "_dummy": false
119 } 99 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld