Closed Bug 967228 Opened 10 years ago Closed 10 years ago

[e10s] ERROR resource://gre/modules/DOMIdentity.jsm:345 - TypeError: this.getContextForMM(...) is undefined

Categories

(Core Graveyard :: Identity, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla30

People

(Reporter: billm, Assigned: billm)

References

Details

Attachments

(1 file)

Attached patch dom-identity-fix (deleted) — Splinter Review
I get this error whenever closing an e10s browser.
Attachment #8369656 - Flags: review?(jparsons)
Comment on attachment 8369656 [details] [diff] [review]
dom-identity-fix

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

::: dom/identity/DOMIdentity.jsm
@@ +221,5 @@
>      return this._serviceContexts.get(this._mmContexts.get(targetMM));
>    },
>  
> +  hasContextForMM: function(targetMM) {
> +    return this._mmContexts.has(targetMM);

I'm not sure we need a method for this one case when we can just assign the result of this.getContextForMM to a variable and then:
if (!context) {
  return;
}
Attachment #8369656 - Flags: feedback+
> I'm not sure we need a method for this one case when we can just assign the result of
> this.getContextForMM to a variable and then:
> if (!context) {
>   return;
> }

That will work, but I don't really like how it causes us to call this._serviceContexts.get(undefined). I could add an early exit to getContextForMM as well, I guess.
Comment on attachment 8369656 [details] [diff] [review]
dom-identity-fix

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

Ah, yeah, that's not very nice.
Attachment #8369656 - Flags: review?(jparsons) → review+
MattN, billm, thanks for jumping on this.
https://hg.mozilla.org/mozilla-central/rev/0d8e85cda93d
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Hi! Currently I'm working with Firefox Accounts and I can see this
"E/GeckoConsole(11246): [JavaScript Error: "this.getContextForMM(...).RP is undefined" {file: 
"resource://gre/modules/DOMIdentity.jsm" line: 362}]" again... 
This happens to me when closing the app after calling 'navigator.mozId.watch'.
Could you take a look? Thanks!
Status: RESOLVED → REOPENED
Flags: needinfo?(wmccloskey)
Resolution: FIXED → ---
I'm not sure what's going on. Please open a separate bug since the original problem was fixed. Also, please check that you're running a version of Gecko that has the bug fix. It looks like you're using b2g, so you may be using an old version of Gecko. This bug was fixed in version 30.
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Flags: needinfo?(wmccloskey)
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: