Skip to content

Prepare for bug 1979014 - Make a few XUL attributes simpler #3

@onemen

Description

@onemen

Bug 1979014 lands on Firefox 143
it will change how persisted attribute are used

you need to modify Overlays.mjs

for (const id of this.persistedIDs.values()) {
const element = this.document.getElementById(id);
if (element) {
const attrNames = xulStore.getAttributeEnumerator(this.location, id);
while (attrNames.hasMore()) {
const attrName = attrNames.getNext();
const attrValue = xulStore.getValue(this.location, id, attrName);
if (attrName == "selectedIndex" && element.localName == "deck") {
this._decksToResolve.set(element, attrValue);
} else if (
(element != this.document.documentElement ||
!["height", "screenX", "screenY", "sizemode", "width"].includes(
attrName)) &&
element.getAttribute(attrName) != attrValue.toString()
) {
element.setAttribute(attrName, attrValue);
}
}
}
}

see onemen/TabMixPlus@4e19e14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions