author Marco Castelluccio <mar.castelluccio@studenti.unina.it>
Wed, 17 Jul 2013 10:00:15 -0400
changeset 146493 f91d3bfa77064cbb9ed9653e3de298a229123dfb
parent 116587 5ce71981e005a52d4cb0b831ad3db9284f2fb356
child 150991 4a6b9390ff5a2a8de95d91bbc1e8d44d75c91375
permissions -rw-r--r--
Bug 827346 - indexedDB.open() silently fails in an Open Web App (OWA/mozApp). r=myk

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

/* This is imported by each new webapp window but is only evaluated the first
 * time it is imported.  Put stuff here that you want to happen once on startup
 * before the webapp is loaded.  But note that the "stuff" happens immediately
 * the first time this module is imported.  So only put stuff here that must
 * happen before the webapp is loaded. */


const Ci = Components.interfaces;
const Cu = Components.utils;


// Initialize DOMApplicationRegistry by importing Webapps.jsm.

// Initialize window-independent handling of webapps- notifications.

// On firstrun, set permissions to their default values.
if (!Services.prefs.getBoolPref("webapprt.firstrun")) {
  // Once we support packaged apps, set their permissions here on firstrun.

  // Now that we've set the appropriate permissions, twiddle the firstrun
  // flag so we don't try to do so again.
  Services.prefs.setBoolPref("webapprt.firstrun", true);