We handle this similarly to pasting into a prompt() dialog, so I refactored that logic into a new ContentAnalysisUtils and call it from both places. Also drive-by cleanup of BUG_COMPONENT for a few Content Analysis moz.build's Differential Revision: https://phabricator.services.mozilla.com/D244818