Closed
Bug 931465
Opened 12 years ago
Closed 12 years ago
"aOptions is undefined" from nsDOMIdentity.js
Categories
(Core Graveyard :: Identity, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla29
People
(Reporter: jruderman, Assigned: jedp)
Details
(Keywords: testcase, Whiteboard: [good first verify])
Attachments
(2 files, 1 obsolete file)
|
48 bytes,
text/html
|
Details | |
|
1.28 KB,
patch
|
Details | Diff | Splinter Review |
With:
user_pref("dom.identity.enabled", true);
JavaScript error: resource://gre/components/nsDOMIdentity.js, line 140: aOptions is undefined
| Assignee | ||
Comment 1•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → jparsons
| Assignee | ||
Comment 2•12 years ago
|
||
Comment on attachment 8357426 [details] [diff] [review]
Make request() options default to {}
Thanks for your imprimatur, MattN!
Attachment #8357426 -
Flags: review?(MattN+bmo)
Comment 3•12 years ago
|
||
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+
| Assignee | ||
Comment 4•12 years ago
|
||
Good point. That's nicer.
Thank you!
| Assignee | ||
Comment 5•12 years ago
|
||
updated with cleaner syntax
Attachment #8357426 -
Attachment is obsolete: true
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 6•12 years ago
|
||
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Updated•12 years ago
|
Whiteboard: [good first verify]
Updated•7 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•