Closed Bug 991246 Opened 9 years ago Closed 9 years ago

TypeError: aIdsApp is undefined at OperatorApps.jsm:317

Categories

(Core Graveyard :: DOM: Apps, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(firefox30 fixed, firefox31 fixed, b2g-v1.4 fixed, b2g-v2.0 fixed)

RESOLVED FIXED
mozilla31
Tracking Status
firefox30 --- fixed
firefox31 --- fixed
b2g-v1.4 --- fixed
b2g-v2.0 --- fixed

People

(Reporter: gwagner, Assigned: marco)

References

Details

Attachments

(1 file, 3 obsolete files)

Seen on nexus 4 with current trunk and --enable-debug gecko build.

*************************
A coding exception was thrown and uncaught in a Task.

Full message: TypeError: aIdsApp is undefined
Full stack: this.OperatorAppsRegistry._installOperatorApps/<@resource://gre/modules/OperatorApps.jsm:317:23
TaskImpl_run@resource://gre/modules/Task.jsm:298:1
resolve@resource://gre/modules/commonjs/sdk/core/promise.js:118:11
then@resource://gre/modules/commonjs/sdk/core/promise.js:43:43
resolve@resource://gre/modules/commonjs/sdk/core/promise.js:185:11
TaskImpl_run@resource://gre/modules/Task.jsm:307:9
Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:748:11
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:627:7

*************************
Attached patch Patch (obsolete) — Splinter Review
Could you try if this patch fixes your problem?
Attached patch Patch (obsolete) — Splinter Review
Attachment #8400872 - Attachment is obsolete: true
The exception is gone. But we done set PREF_FIRST_RUN_WITH_SIM now. Is this what we want?
Attached patch Alternative patch (obsolete) — Splinter Review
I think we do want to set the pref, but I'm not sure.
Attachment #8400892 - Flags: review?(fabrice)
Comment on attachment 8400892 [details] [diff] [review]
Alternative patch

Fabrice is on PTO this week.

Fernando - Can you take care of the review here?
Attachment #8400892 - Flags: review?(fabrice) → review?(ferjmoreno)
OS: Mac OS X → Gonk (Firefox OS)
Hardware: x86 → ARM
Comment on attachment 8400892 [details] [diff] [review]
Alternative patch

Carmen is more familiar than me with this code
Attachment #8400892 - Flags: review?(ferjmoreno) → review?(cjc)
Comment on attachment 8400892 [details] [diff] [review]
Alternative patch

Review of attachment 8400892 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/apps/src/OperatorApps.jsm
@@ +372,3 @@
>        }
> +
> +      return aData[key];

If the comment at https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Task.jsm (on the General Example, line 18) is not true anymore, can you please edit the documentation and amend it?
Attachment #8400892 - Flags: review?(cjc) → review+
This code looks good to me, but it doesn't fix all the errors introduces in OperatorApps.jsm by bug 981085. I've opened bug 992589 for that.
(In reply to Carmen Jimenez Cabezas from comment #8)
> Comment on attachment 8400892 [details] [diff] [review]
> Alternative patch
> 
> Review of attachment 8400892 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> ::: dom/apps/src/OperatorApps.jsm
> @@ +372,3 @@
> >        }
> > +
> > +      return aData[key];
> 
> If the comment at
> https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/
> Task.jsm (on the General Example, line 18) is not true anymore, can you
> please edit the documentation and amend it?

It is now half-true (because it is true for legacy generator functions). I marked bug 913115 (where the behavior changed) "dev-doc-needed".
Keywords: checkin-needed
Attachment #8400874 - Attachment is obsolete: true
https://hg.mozilla.org/integration/mozilla-inbound/rev/4f5687208984

Friendly reminder that commit messages should state what the patch is doing, not what it's fixing :)
https://developer.mozilla.org/en-US/docs/Developer_Guide/Committing_Rules_and_Responsibilities#Checkin_comment
Assignee: nobody → mar.castelluccio
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/4f5687208984
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
Blocks: 981085
Attached patch Patch for BetaSplinter Review
[Approval Request Comment]
Bug caused by (feature/regressing bug #): Bug 981085.
User impact if declined: We can't uplift bug 981085 and so we can't enable a lot of tests on Beta.
Testing completed (on m-c, etc.): This has been an entire cycle on central.
Risk to taking this patch (and alternatives if risky): Basically no risk.
String or IDL/UUID changes made by this patch: None.
Attachment #8400892 - Attachment is obsolete: true
Attachment #8419372 - Flags: approval-mozilla-beta?
Attachment #8419372 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.