Closed
Bug 1020471
Opened 11 years ago
Closed 11 years ago
WebrtcClient is not defined
Categories
(Firefox OS Graveyard :: Gaia::Contacts, defect)
Tracking
(blocking-b2g:2.0+, b2g-v2.0 verified, b2g-v2.1 verified)
People
(Reporter: sergi, Assigned: arcturus)
Details
(Whiteboard: [p=1])
Attachments
(3 files)
I'm getting the following error:
JavaScript Error: "ReferenceError: WebrtcClient is not defined" {file: "app://communications.gaiamobile.org/contacts/js/views/details.js" line: 107}
when doing an import in contacts.
| Assignee | ||
Comment 1•11 years ago
|
||
Hi Borja,
It looks like we are missing to import the webrtclient.js from a different path, I guess we have an unkonwn path when comming from activities.
Flags: needinfo?(borja.bugzilla)
| Assignee | ||
Comment 2•11 years ago
|
||
Since loop is a 2.0 feature nominating this for 2.0.
Thanks!
blocking-b2g: --- → 2.0?
Comment 3•11 years ago
|
||
if this is needed for loop then i suppose it should be.
Comment 4•11 years ago
|
||
What's the user impact to Loop here?
Comment 5•11 years ago
|
||
As Francisco has told me, without fixing this, we will not be able to make WebRTC/Loop calls from the contacts application, so we need to block on it
Comment 6•11 years ago
|
||
blocking-b2g: 2.0? → 2.0+
Updated•11 years ago
|
Assignee: nobody → borja.bugzilla
Flags: needinfo?(borja.bugzilla)
Comment 7•11 years ago
|
||
Taking a look right now.
Comment 8•11 years ago
|
||
Sergi, Could you describe the STR? I can not reproduce it with today's build.
Take into account that you need to try Gaia master with an up-to-date Gecko, due to WebrtcClient depends on a Gecko patch which was recently landed.
Flags: needinfo?(sergi.mansilla)
| Assignee | ||
Updated•11 years ago
|
Whiteboard: [p=1
| Assignee | ||
Updated•11 years ago
|
Assignee: borja.bugzilla → francisco
Whiteboard: [p=1 → [p=1]
| Assignee | ||
Updated•11 years ago
|
Target Milestone: --- → 2.0 S4 (20june)
| Assignee | ||
Comment 9•11 years ago
|
||
I could not reproduce in todays build, but I'm sending a patch for preventing any kind of error like that and also adding unit tests.
The lack of unit tests for handling the details back didn't help, now we test it.
| Assignee | ||
Comment 10•11 years ago
|
||
As mentioned before this patch is to prevent (as I cannot see it) calling a function over a null object.
Most of the patch is unit tests to check this.
Attachment #8437718 -
Flags: review?(jmcf)
Attachment #8437718 -
Flags: feedback?(borja.bugzilla)
Comment 11•11 years ago
|
||
Comment on attachment 8437718 [details] [review]
Pointer to pr 20301
thanks Francisco
Attachment #8437718 -
Flags: review?(jmcf) → review+
Comment 12•11 years ago
|
||
Comment on attachment 8437718 [details] [review]
Pointer to pr 20301
As I told before I was not able to reproduce the error, but more we can shield our code against failures, the best. Thanks!
Attachment #8437718 -
Flags: feedback?(borja.bugzilla) → feedback+
| Assignee | ||
Comment 13•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(sergi.mansilla)
Resolution: --- → FIXED
Updated•11 years ago
|
status-b2g-v2.0:
--- → affected
status-b2g-v2.1:
--- → fixed
Comment 14•11 years ago
|
||
Comment 15•11 years ago
|
||
This issue has been verified successfully on Flame 2.0 & 2.1, There is no the error message of "JavaScript Error: "ReferenceError: WebrtcClient is not defined"" shown in the log.
See attachment: logcat_Flame2.0.txt & logcat_Flame2.1.txt
Reproducing rate: 0/10
Flame v2.0 version:
Gaia-Rev 856863962362030174bae4e03d59c3ebbc182473
Gecko-Rev https://hg.mozilla.org/releases/mozilla-b2g32_v2_0/rev/e40fe21e37f1
Build-ID 20141208000206
Version 32.0
Device-Name flame
FW-Release 4.4.2
FW-Incremental eng.cltbld.20141208.035628
FW-Date Mon Dec 8 03:56:38 EST 2014
Bootloader L1TC00011880
Flame v2.1 version:
Gaia-Rev 38e17b0219cbc50a4ad6f51101898f89e513a552
Gecko-Rev https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/8b92c4b8f59a
Build-ID 20141205001201
Version 34.0
Device-Name flame
FW-Release 4.4.2
FW-Incremental eng.cltbld.20141205.035305
FW-Date Fri Dec 5 03:53:16 EST 2014
Bootloader L1TC00011880
Comment 16•11 years ago
|
||
Updated•11 years ago
|
Updated•11 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•