diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-02-21 19:59:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-21 19:59:53 +0100 |
commit | d435e0a5b0e07c145f929457313d8d7738f42b14 (patch) | |
tree | 7ed248a0637b8fcf09380658ad731a0a79cbe600 /template/en/default/bug | |
parent | c0d4e47a7b543ab406eeee414ae9baf228b43ce4 (diff) | |
download | bugzilla-d435e0a5b0e07c145f929457313d8d7738f42b14.tar.gz bugzilla-d435e0a5b0e07c145f929457313d8d7738f42b14.tar.xz |
Bug 1439797 - Enable reporting-only CSP by default
Diffstat (limited to 'template/en/default/bug')
-rw-r--r-- | template/en/default/bug/comments.html.tmpl | 8 | ||||
-rw-r--r-- | template/en/default/bug/create/create-guided.html.tmpl | 4 | ||||
-rw-r--r-- | template/en/default/bug/create/create.html.tmpl | 8 | ||||
-rw-r--r-- | template/en/default/bug/edit.html.tmpl | 12 | ||||
-rw-r--r-- | template/en/default/bug/field.html.tmpl | 12 | ||||
-rw-r--r-- | template/en/default/bug/knob.html.tmpl | 2 | ||||
-rw-r--r-- | template/en/default/bug/summarize-time.html.tmpl | 2 |
7 files changed, 24 insertions, 24 deletions
diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index 2346983b2..7af08efde 100644 --- a/template/en/default/bug/comments.html.tmpl +++ b/template/en/default/bug/comments.html.tmpl @@ -25,7 +25,7 @@ <script src="[% 'js/comments.js' FILTER version %]"> </script> -<script> +<script [% script_nonce FILTER none %]> <!-- /* Adds the reply text to the 'comment' textarea */ function replyToComment(id, real_id, name) { @@ -191,13 +191,13 @@ [% IF comment.collapsed %] </span> [% END %] - <script> + <script [% script_nonce FILTER none %]> addCollapseLink([% comment.count %], [% comment.collapsed FILTER js %], 'Toggle comment display'); </script> </span> [% ELSIF comment.collapsed %] <span class="bz_comment_actions"> - <script> + <script [% script_nonce FILTER none %]> addCollapseLink([% comment.count %], [% comment.collapsed FILTER js %], 'Toggle comment display'); </script> </span> @@ -270,7 +270,7 @@ [% " bz_default_hidden" UNLESS comment.tags.size %]"> <span id="ct_[% comment.count %]"> [% IF comment.tags.size %] - <script> + <script [% script_nonce FILTER none %]> YAHOO.bugzilla.commentTagging.showTags([% comment.id FILTER none %], [% comment.count FILTER none %], [ [% FOREACH tag = comment.tags %] diff --git a/template/en/default/bug/create/create-guided.html.tmpl b/template/en/default/bug/create/create-guided.html.tmpl index 9420f1330..a1c2c2e08 100644 --- a/template/en/default/bug/create/create-guided.html.tmpl +++ b/template/en/default/bug/create/create-guided.html.tmpl @@ -41,7 +41,7 @@ [% tablecolour = "#FFFFCC" %] [%# This script displays the descriptions for selected components. %] -<script> +<script [% script_nonce FILTER none %]> var descriptions = [ [% FOREACH c = product.components %] '[% c.description FILTER js %]', @@ -181,7 +181,7 @@ function PutDescription() { <td valign="top" width="100%"> <div id="description" style="color: green; margin-left: 10px; height: 5em; overflow: auto;"> - <script> + <script [% script_nonce FILTER none %]> if ((document.getElementById) && (document.body.innerHTML)) { document.write("\ Select a component to see its description here."); diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index 567c58d58..3185374e5 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -40,7 +40,7 @@ onload = "init();" %] -<script> +<script [% script_nonce FILTER none %]> <!-- function init() { @@ -217,7 +217,7 @@ TUI_hide_default('attachment_text_field'); <input type="button" id="expert_fields_controller" value="Hide Advanced Fields" onClick="toggleAdvancedFields()"> [%# Show the link if the browser supports JS %] - <script> + <script [% script_nonce FILTER none %]> YAHOO.util.Dom.removeClass('expert_fields_controller', 'bz_default_hidden'); </script> @@ -276,7 +276,7 @@ TUI_hide_default('attachment_text_field'); [%- END %] </select> - <script> + <script [% script_nonce FILTER none %]> <!-- [%+ INCLUDE "bug/field-events.js.tmpl" field = bug_fields.component, product = product %] @@ -492,7 +492,7 @@ TUI_hide_default('attachment_text_field'); <th>Possible<br>Duplicates:</th> <td colspan="3"> <div id="possible_duplicates"></div> - <script> + <script [% script_nonce FILTER none %]> var dt_columns = [ { key: "id", label: "[% field_descs.bug_id FILTER js %]", formatter: YAHOO.bugzilla.dupTable.formatBugLink }, diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 84a20b97e..b424d5542 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -49,7 +49,7 @@ </div> [% END %] [% IF user.id %] - <script> + <script [% script_nonce FILTER none %]> YAHOO.bugzilla.commentTagging.init([% user.can_tag_comments ? 'true' : 'false' %]); YAHOO.bugzilla.commentTagging.min_len = [% constants.MIN_COMMENT_TAG_LENGTH FILTER js %]; YAHOO.bugzilla.commentTagging.max_len = [% constants.MAX_COMMENT_TAG_LENGTH FILTER js %]; @@ -64,7 +64,7 @@ [% END %] [% END %] -<script> +<script [% script_nonce FILTER none %]> <!-- [% IF user.is_timetracker %] var fRemainingTime = [% bug.remaining_time %]; // holds the original value @@ -300,7 +300,7 @@ </table> </div> </div> - <script> + <script [% script_nonce FILTER none %]> hideAliasAndSummary('[% bug.short_desc FILTER js %]', '[% bug.alias FILTER js %]'); </script> [% END %] @@ -591,7 +591,7 @@ [%# BMO - hook for adding mentors %] [% Hook.process("after_people", "bug/edit.html.tmpl") %] - <script> + <script [% script_nonce FILTER none %]> assignToDefaultOnChange(['product', 'component'], '[% bug.component_obj.default_assignee.login FILTER js %]', '[% bug.component_obj.default_qa_contact.login FILTER js %]'); @@ -998,7 +998,7 @@ [% IF !bug_flags_set %]<em>None yet set</em>[% END %] (<a href="#" id="bz_flags_more_action">[% IF !bug_flags_set %]set[% ELSE %]more[% END %] flags</a>) </span> - <script> + <script [% script_nonce FILTER none %]> YAHOO.util.Dom.removeClass('bz_flags_more_container', 'bz_default_hidden'); var table = YAHOO.util.Dom.get("flags"); var rows = YAHOO.util.Dom.getElementsByClassName('bz_flag_type', 'tbody', table); @@ -1248,7 +1248,7 @@ [% BLOCK summon_comment_box %] <div id="comment_top_hat"> - <script> + <script [% script_nonce FILTER none %]> function summonCommentBox() { var commentbox = document.getElementById('add_comment'); document.getElementById('comment_top_hat').appendChild(commentbox); diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index b9bee6de3..1d6048cdd 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -74,7 +74,7 @@ <div id="con_calendar_[% field.name FILTER html %]"></div> - <script> + <script [% script_nonce FILTER none %]> createCalendar('[% field.name FILTER js %]') </script> [% CASE constants.FIELD_TYPE_BUG_ID %] @@ -91,7 +91,7 @@ <span id="[% field.name FILTER html %]_edit_container" class="edit_me bz_default_hidden"> (<a href="#" id="[% field.name FILTER html %]_edit_action">edit</a>) </span> - <script> + <script [% script_nonce FILTER none %]> hideEditableField('[% field.name FILTER js %]_edit_container', '[% field.name FILTER js %]_input_area', '[% field.name FILTER js %]_edit_action', @@ -175,7 +175,7 @@ <input type="hidden" name="defined_[% field.name FILTER html %]"> [% END %] - <script> + <script [% script_nonce FILTER none %]> <!-- initHidingOptionsForIE('[% field.name FILTER js %]'); [%+ INCLUDE "bug/field-events.js.tmpl" @@ -197,7 +197,7 @@ id = field.name name = field.name minrows = 4 maxrows = 8 cols = 60 defaultcontent = value mandatory = field.is_mandatory %] </div> - <script> + <script [% script_nonce FILTER none %]> hideEditableField('[% field.name FILTER js %]_edit_container', '[% field.name FILTER js %]_input', '[% field.name FILTER js %]_edit_action', @@ -230,7 +230,7 @@ [% IF !bug.id %]value="[% value FILTER html %]"[% END %]> </div> [% IF bug.id %] - <script> + <script [% script_nonce FILTER none %]> setupEditLink('[% field.name FILTER js %]'); </script> [% END %] @@ -241,7 +241,7 @@ name="[% field.name FILTER html %]" data-values="[% field.name FILTER html %]" value="[% value FILTER html %]"> - <script> + <script [% script_nonce FILTER none %]> if (typeof BUGZILLA.autocomplete_values === 'undefined') BUGZILLA.autocomplete_values = []; BUGZILLA.autocomplete_values['[% field.name FILTER js %]'] = [ diff --git a/template/en/default/bug/knob.html.tmpl b/template/en/default/bug/knob.html.tmpl index a0a5dc647..16aa160f6 100644 --- a/template/en/default/bug/knob.html.tmpl +++ b/template/en/default/bug/knob.html.tmpl @@ -70,7 +70,7 @@ [% END %] </div> -<script> +<script [% script_nonce FILTER none %]> var close_status_array = [ [% FOREACH status = bug.choices.bug_status %] [% NEXT IF status.is_open %] diff --git a/template/en/default/bug/summarize-time.html.tmpl b/template/en/default/bug/summarize-time.html.tmpl index 120bd74ad..9f2742694 100644 --- a/template/en/default/bug/summarize-time.html.tmpl +++ b/template/en/default/bug/summarize-time.html.tmpl @@ -341,7 +341,7 @@ </tr></table> </form> -<script> +<script [% script_nonce FILTER none %]> <!-- createCalendar('start_date'); createCalendar('end_date'); |