Last Comment Bug 769830 - appRecord.manifest.installs_allowed_from is not a normal Array
: appRecord.manifest.installs_allowed_from is not a normal Array
Status: NEW
:
Product: Core
Classification: Components
Component: DOM: Apps (show other bugs)
: 15 Branch
: All All
: -- normal with 1 vote (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-29 15:17 PDT by Ian Bicking (:ianb)
Modified: 2012-07-25 15:22 PDT (History)
3 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Ian Bicking (:ianb) 2012-06-29 15:17:10 PDT
Somewhere in serialization Arrays in the manifest are turned into objects like {0: "item 0", 1: "item 1"}

For example:

  m = "http://app1.ianbicking.org/manifest.webapp"
  navigator.mozApps.install(m).onsuccess = function () {
    var i = this.result.manifest.installs_allowed_from;
    console.log(i, JSON.stringify(i), i[0], i.length)
  };

  ==> ({0:"*"}) {"0":"*"} * undefined

Note You need to log in before you can comment on or make changes to this bug.