From 201c90be033ef7209c78f09e30b54e384762fa76 Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Mon, 8 Apr 2019 16:54:29 -0400 Subject: [PATCH] Bug 1542882 - Don't do image preview on security bugs --- extensions/BugModal/web/comments.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/BugModal/web/comments.js b/extensions/BugModal/web/comments.js index 359612916..ed9c91bf7 100644 --- a/extensions/BugModal/web/comments.js +++ b/extensions/BugModal/web/comments.js @@ -523,9 +523,10 @@ Bugzilla.BugModal.Comments = class Comments { * @see https://developer.mozilla.org/en-US/docs/Web/API/Network_Information_API */ prepare_inline_attachments() { - // Check the connectivity, API support, user setting and sensitive keywords + // Check the connectivity, API support, user setting, bug security and sensitive keywords if ((navigator.connection && navigator.connection.type === 'cellular') || typeof IntersectionObserver !== 'function' || !BUGZILLA.user.settings.inline_attachments || + BUGZILLA.bug_secure || BUGZILLA.bug_keywords.split(', ').find(keyword => keyword.match(/^(hang|assertion|crash)$/))) { return; } -- 2.47.3