Closed Bug 1168783 Opened 10 years ago Closed 10 years ago

expose principal in mozIApplication

Categories

(Core Graveyard :: DOM: Apps, defect)

defect
Not set
normal

Tracking

(firefox41 fixed)

RESOLVED FIXED
NGA S2 (12Jun)
Tracking Status
firefox41 --- fixed

People

(Reporter: allstars.chh, Assigned: ferjm)

References

Details

(Whiteboard: [s3])

Attachments

(1 file, 1 obsolete file)

See https://bugzilla.mozilla.org/show_bug.cgi?id=1168300#c4 "it would be better for mozIApplication to expose a principal."
Assignee: nobody → ferjmoreno
Whiteboard: [s3]
Blocks: 1169249
Target Milestone: --- → NGA S2 (12Jun)
Attached patch v1 (obsolete) — Splinter Review
Attachment #8614692 - Flags: review?(fabrice)
Attachment #8614692 - Flags: review?(fabrice) → review+
Comment on attachment 8614692 [details] [diff] [review] v1 Review of attachment 8614692 [details] [diff] [review]: ----------------------------------------------------------------- Actually I don't think this is the right approach. I'd rather add a principal getter on mozIApplication.prototype because cloneAppObject() uses _setAppProperties but we don't want the principal on cloned objects (we expect them to be stringifyable).
Attachment #8614692 - Flags: review+ → review-
Attached patch v2Splinter Review
Attachment #8614692 - Attachment is obsolete: true
Attachment #8615952 - Flags: review?(fabrice)
Comment on attachment 8615952 [details] [diff] [review] v2 Review of attachment 8615952 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/apps/AppsUtils.jsm @@ +84,5 @@ > + this.localId, > + this.installerIsBrowser > + ); > + } catch(e) { > + dump("Could not create app principal " + e + "\n"); that means we will return undefined if we end up there. Can we either force to return null here or initialize _principal to null in the constructor?
Attachment #8615952 - Flags: review?(fabrice) → review+
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: