From b996053b63a0b75143315d5cfb7ce2b0313cbace Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Wed, 16 Jan 2019 11:09:14 -0500 Subject: [PATCH] Bug 1520495 - Crash count table does not detect uplift links in Markdown comments --- extensions/BMO/web/js/firefox-crash-table.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.47.3