From: Kohei Yoshino Date: Wed, 16 Jan 2019 16:09:14 +0000 (-0500) Subject: Bug 1520495 - Crash count table does not detect uplift links in Markdown comments X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b996053b63a0b75143315d5cfb7ce2b0313cbace;p=thirdparty%2Fbugzilla.git Bug 1520495 - Crash count table does not detect uplift links in Markdown comments --- diff --git a/extensions/BMO/web/js/firefox-crash-table.js b/extensions/BMO/web/js/firefox-crash-table.js index 3c07fb681..4a9d9fcbe 100644 --- a/extensions/BMO/web/js/firefox-crash-table.js +++ b/extensions/BMO/web/js/firefox-crash-table.js @@ -144,9 +144,9 @@ window.addEventListener('DOMContentLoaded', () => { const hgrevs = []; let isFirst = false; let currentCommentId = ""; - const aSelector = oldWay ? ".bz_comment_text > a" : ".comment-text > a"; + const aSelector = oldWay ? ".bz_comment_text > a" : ".comment-text > a, .comment-text > p:first-child > a"; document.querySelectorAll(aSelector).forEach(a => { - const parentId = a.parentNode.attributes.id; + const parentId = a.closest(oldWay ? '.bz_comment_text' : '.comment-text').id; let hasBugherderKw = false; let hasUpliftKw = false; if (parentId !== currentCommentId) {