Closed Bug 742802 Opened 12 years ago Closed 6 years ago

mozApps.install install_data allows non-string receipts

Categories

(Core Graveyard :: DOM: Apps, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: Mardak, Unassigned)

References

Details

According to this doc, https://etherpad.mozilla.org/apps-api-rev

install_data is an object which may contain a "receipts" property, e.g. { receipts: ["ABCD"] }.  If omitted it is treated as null.  Receipts is an array of receipts, and each receipt is a string.
Component: General → DOM: Mozilla Extensions
Product: Web Apps → Core
QA Contact: general → general
Whiteboard: [mozappsapi]
Depends on: 720415
Testing an install with receipts:

["a",0,1,2.3,true,false,null,undefined,{one:1},{nest:{ed:"hi"}},NaN,Infinity]

Ends up storing this:

["a",0,1,2.3,true,false,null,null,{"one":1},{"nest":{"ed":"hi"}},null,null]
Whiteboard: [mozappsapi] → [mozappsapi] [marketplace-beta?]
Whiteboard: [mozappsapi] [marketplace-beta?] → [mozApps API 1.0] [marketplace-beta?]
Whiteboard: [mozApps API 1.0] [marketplace-beta?] → [mozApps API 1.0]
Blocks: 746465
Whiteboard: [mozApps API 1.0]
No longer blocks: 746465
Component: DOM: Mozilla Extensions → DOM: Apps
Product: Core → Core Graveyard
Core Graveyard / DOM: Apps is inactive. Closing all bugs in this component.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.