Attachment #8551436: patch for bug #1046297

View | Details | Raw Unified | Return to bug 1046297
Collapse All | Expand All

(-)a/browser/base/content/abouthome/aboutHome.js (-1 / +1 lines)
Line     Link Here 
 Lines 141-157   0P/y6/7299z+H4QrdGsoib8JAAAAAElFTkSuQmCC Link Here 
141
//   * add a <span/> for it in aboutHome.xhtml
141
//   * add a <span/> for it in aboutHome.xhtml
142
//   * add an entry here in the proper ordering (based on spans)
142
//   * add an entry here in the proper ordering (based on spans)
143
// The <a/> part of the snippet will be linked to the corresponding url.
143
// The <a/> part of the snippet will be linked to the corresponding url.
144
const DEFAULT_SNIPPETS_URLS = [
144
const DEFAULT_SNIPPETS_URLS = [
145
  "https://www.mozilla.org/firefox/features/?utm_source=snippet&utm_medium=snippet&utm_campaign=default+feature+snippet"
145
  "https://www.mozilla.org/firefox/features/?utm_source=snippet&utm_medium=snippet&utm_campaign=default+feature+snippet"
146
, "https://addons.mozilla.org/firefox/?utm_source=snippet&utm_medium=snippet&utm_campaign=addons"
146
, "https://addons.mozilla.org/firefox/?utm_source=snippet&utm_medium=snippet&utm_campaign=addons"
147
];
147
];
148
148
149
const SNIPPETS_UPDATE_INTERVAL_MS = 86400000; // 1 Day.
149
const SNIPPETS_UPDATE_INTERVAL_MS = 14400000; // 4 hours.
150
150
151
// IndexedDB storage constants.
151
// IndexedDB storage constants.
152
const DATABASE_NAME = "abouthome";
152
const DATABASE_NAME = "abouthome";
153
const DATABASE_VERSION = 1;
153
const DATABASE_VERSION = 1;
154
const DATABASE_STORAGE = "persistent";
154
const DATABASE_STORAGE = "persistent";
155
const SNIPPETS_OBJECTSTORE_NAME = "snippets";
155
const SNIPPETS_OBJECTSTORE_NAME = "snippets";
156
156
157
// This global tracks if the page has been set up before, to prevent double inits
157
// This global tracks if the page has been set up before, to prevent double inits

Return to bug 1046297