Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6949

CSP in FirefoxOS breaks app.initialize() causing deviceReady not to fire

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      To replicate:
      cordova create test
      cordova platform add firefoxos

      Run your application on firefoxos and you will notice deviceReady does not fire. You will also get a CSP warning.

      The cause is the inline "app.initialize()"

      The fix is to move the app.initialize() to another file and set the script at "defer"ed however I expect this will break a lot of other things.

      FirefoxOS expects CSP for all applications by default and is completely strict about certified applications.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              johnyma22 John McLear
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: