(from Waterfox Classic) Refactor addonId access in BasePrincipal and related files

This commit is contained in:
wuggy 2026-04-22 00:13:33 -07:00
commit 203d58a5cd
6 changed files with 26 additions and 13 deletions

View file

@ -1390,8 +1390,8 @@ TabActor.prototype = {
.outerWindowID;
}
// Collect the addonID from the document origin attributes.
let addonID = window.document.nodePrincipal.originAttributes.addonId;
// Collect the addonID from the document principal.
let addonID = window.document.nodePrincipal.addonId;
return {
id,