Looks like this code is from October, in bug 1947324 - I imagine the regressor here may be incorrect and there's a more recent change that tripped this, but not sure which. Maybe one of the patches in bug 1993474?
Bug 2002990 Comment 1 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Looks like this code is from October, in bug 1947324 - unsure if that introduced the issue or if there's a more recent change that tripped this, but not sure which. Maybe one of the patches in bug 1993474?