Maybe check `document.baseURI`?
Bug 1977136 Comment 7 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Maybe check `document.baseURI`? Thanks for investigating this further!