Closed Bug 1020471 Opened 11 years ago Closed 11 years ago

WebrtcClient is not defined

Categories

(Firefox OS Graveyard :: Gaia::Contacts, defect)

x86
macOS
defect
Not set
normal

Tracking

(blocking-b2g:2.0+, b2g-v2.0 verified, b2g-v2.1 verified)

VERIFIED FIXED
2.0 S4 (20june)
blocking-b2g 2.0+
Tracking Status
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.
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)
Since loop is a 2.0 feature nominating this for 2.0. Thanks!
blocking-b2g: --- → 2.0?
if this is needed for loop then i suppose it should be.
What's the user impact to Loop here?
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
triage: per comment 3 and comment 5
blocking-b2g: 2.0? → 2.0+
Assignee: nobody → borja.bugzilla
Flags: needinfo?(borja.bugzilla)
Taking a look right now.
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)
Whiteboard: [p=1
Assignee: borja.bugzilla → francisco
Whiteboard: [p=1 → [p=1]
Target Milestone: --- → 2.0 S4 (20june)
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.
Attached file Pointer to pr 20301
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 on attachment 8437718 [details] [review] Pointer to pr 20301 thanks Francisco
Attachment #8437718 - Flags: review?(jmcf) → review+
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+
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(sergi.mansilla)
Resolution: --- → FIXED
Attached file logcat_Flame2.0.txt
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
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: