Closed Bug 1125801 Opened 9 years ago Closed 9 years ago

[Costcontrol] Javascript error on startup

Categories

(Firefox OS Graveyard :: Gaia::Cost Control, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mai, Assigned: mai)

References

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
salva
: review+
Details | Review
STR: 
1. Launch Usage App
2. Look at logcat

Expected: No errors:
Actual:
  W/Usage   ( 7415): [JavaScript Error: "TypeError: handlerContainer.contentWindow.setNextReset is not a function" {file: "app://costcontrol.gaiamobile.org/js/common.js" line: 15}]
Assignee: nobody → marina.rodrigueziglesias
Attached file patch v1.0
Hi Salva,
would you mind reviewing the patch? 
The bug is produced because when the airplanemode_helper module is loaded, emit a state change event with the current state of the airplanemode. This event produces a second startup of the app.

Regards
Attachment #8554516 - Flags: review?(salva)
Comment on attachment 8554516 [details] [review]
patch v1.0

Please, if the extra event is launched by the airplane helper, try to find the bug for this problem or file a new one and reference it in a comment in the solution. Try to clarify the variable name to point out you are ignoring this "extra" event.

Thank you.
Attachment #8554516 - Flags: review?(salva) → review+
Comment on attachment 8554516 [details] [review]
patch v1.0

Hi Salva,
I've updated the pr with other approach to resolve the bug, would you mind reviewing the patch?
Regards
Attachment #8554516 - Flags: review+ → review?(salva)
Comment on attachment 8554516 [details] [review]
patch v1.0

It's ok. Thank you for the fix!
Attachment #8554516 - Flags: review?(salva) → review+
Master: 030218825c246645ceb0d149274020ef05b443e8
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: