Unfortunately this approach breaks internal pages like about:certerror, their principal has an about URI, e.g.: `about:certerror?e=nssBadCert&u=https%3A//expired.badssl.com/&c=UTF-8&d=%20 `
Bug 1813463 Comment 17 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Unfortunately this approach breaks internal pages like about:certerror, their principal has an about URI, e.g.: `about:certerror?e=nssBadCert&u=https%3A//expired.badssl.com/&c=UTF-8&d=%20 ` Curious we could get away with only using the principal URI for the about:blank case.