diff --git a/accessible/src/atk/nsAccessibleWrap.cpp b/accessible/src/atk/nsAccessibleWrap.cpp index 0311f1c0c9d5..fb0b9e6ecec2 100644 --- a/accessible/src/atk/nsAccessibleWrap.cpp +++ b/accessible/src/atk/nsAccessibleWrap.cpp @@ -976,9 +976,11 @@ refRelationSetCB(AtkObject *aAtkObj) while ((tempAcc = rel.Next())) targets.AppendElement(nsAccessibleWrap::GetAtkObject(tempAcc)); - atkRelation = atk_relation_new(targets.Elements(), targets.Length(), atkType); - atk_relation_set_add(relation_set, atkRelation); - g_object_unref(atkRelation); + if (targets.Length()) { + atkRelation = atk_relation_new(targets.Elements(), targets.Length(), atkType); + atk_relation_set_add(relation_set, atkRelation); + g_object_unref(atkRelation); + } } return relation_set; diff --git a/browser/base/content/sanitize.js b/browser/base/content/sanitize.js index 0e8f3b73c2f4..54bf72f131c1 100644 --- a/browser/base/content/sanitize.js +++ b/browser/base/content/sanitize.js @@ -156,10 +156,9 @@ Sanitizer.prototype = { } // Clear plugin data. - let ph = Cc["@mozilla.org/plugin/host;1"].getService(Ci.nsIPluginHost); const phInterface = Ci.nsIPluginHost; const FLAG_CLEAR_ALL = phInterface.FLAG_CLEAR_ALL; - ph.QueryInterface(phInterface); + let ph = Cc["@mozilla.org/plugin/host;1"].getService(phInterface); // Determine age range in seconds. (-1 means clear all.) We don't know // that this.range[1] is actually now, so we compute age range based @@ -195,13 +194,13 @@ Sanitizer.prototype = { } catch (e) {} }, - + get canClear() { return true; } }, - + offlineApps: { clear: function () { diff --git a/browser/base/content/syncAddDevice.xul b/browser/base/content/syncAddDevice.xul index 2c4b36369308..0dfc8fd5eba5 100644 --- a/browser/base/content/syncAddDevice.xul +++ b/browser/base/content/syncAddDevice.xul @@ -120,20 +120,20 @@ label=" " onpageshow="gSyncAddDevice.onPageShow();"> - &addDevice.dialog.syncKey.label; + &addDevice.dialog.recoveryKey.label; - - &syncKeyBackup.description; + &recoveryKeyBackup.description;