Bug 1771381 - Use entries in TabAttributesInternal.set(). r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D147457
This commit is contained in:
Andrew McCreight 2022-05-27 13:15:11 +00:00
parent 68571ba6a4
commit adf4640fef

View File

@ -67,9 +67,9 @@ var TabAttributesInternal = {
}
// Set attributes.
for (let name in data) {
for (let [name, value] of Object.entries(data)) {
if (!ATTRIBUTES_TO_SKIP.has(name)) {
tab.setAttribute(name, data[name]);
tab.setAttribute(name, value);
}
}
},