diff --git a/services/sync/modules/type_records/tabs.js b/services/sync/modules/type_records/tabs.js index 4b4d1188c1b..187b5ef76f5 100644 --- a/services/sync/modules/type_records/tabs.js +++ b/services/sync/modules/type_records/tabs.js @@ -66,6 +66,15 @@ TabSetRecord.prototype = { addTab: function TabSetRecord_addTab(title, urlHistory, lastUsed) { if (!this.cleartext.tabs) this.cleartext.tabs = []; + if (!title) { + title = ""; + } + if (!lastUsed) { + lastUsed = 0; + } + if (!urlHistory || urlHistory.length == 0) { + return; + } this.cleartext.tabs.push( {title: title, urlHistory: urlHistory, lastUsed: lastUsed});