Closed Bug 931465 Opened 12 years ago Closed 12 years ago

"aOptions is undefined" from nsDOMIdentity.js

Categories

(Core Graveyard :: Identity, defect)

x86_64
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla29

People

(Reporter: jruderman, Assigned: jedp)

Details

(Keywords: testcase, Whiteboard: [good first verify])

Attachments

(2 files, 1 obsolete file)

Attached file p-1.html
With: user_pref("dom.identity.enabled", true); JavaScript error: resource://gre/components/nsDOMIdentity.js, line 140: aOptions is undefined
Assignee: nobody → jparsons
Comment on attachment 8357426 [details] [diff] [review] Make request() options default to {} Thanks for your imprimatur, MattN!
Attachment #8357426 - Flags: review?(MattN+bmo)
Comment on attachment 8357426 [details] [diff] [review] Make request() options default to {} Review of attachment 8357426 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/identity/nsDOMIdentity.js @@ +128,5 @@ > this._rpWatcher = aOptions; > this._identityInternal._mm.sendAsyncMessage("Identity:RP:Watch", message); > }, > > request: function nsDOMIdentity_request(aOptions) { You could do the following instead if this is only a problem with |undefined|: request: function nsDOMIdentity_request(aOptions = {}) {
Attachment #8357426 - Flags: review?(MattN+bmo) → review+
Good point. That's nicer. Thank you!
updated with cleaner syntax
Attachment #8357426 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Whiteboard: [good first verify]
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: