summaryrefslogtreecommitdiffstats
path: root/toolkit/components/xulstore/XULStore.sys.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/xulstore/XULStore.sys.mjs')
-rw-r--r--toolkit/components/xulstore/XULStore.sys.mjs4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/components/xulstore/XULStore.sys.mjs b/toolkit/components/xulstore/XULStore.sys.mjs
index eb1965ec6d..f84cd57712 100644
--- a/toolkit/components/xulstore/XULStore.sys.mjs
+++ b/toolkit/components/xulstore/XULStore.sys.mjs
@@ -89,7 +89,7 @@ XULStore.prototype = {
this.readFile();
},
- observe(subject, topic, data) {
+ observe(subject, topic) {
this.writeFile();
if (topic == "profile-before-change") {
this._saveAllowed = false;
@@ -153,7 +153,7 @@ XULStore.prototype = {
}
const uri = node.ownerDocument.documentURI;
- const value = node.getAttribute(attr);
+ const value = node.getAttribute(attr) || "";
if (node.localName == "window") {
this.log("Persisting attributes to windows is handled by AppWindow.");