From 85ece8e6da2a888baca8d951f3a0e676f6e6bef8 Mon Sep 17 00:00:00 2001 From: Fernando Rodriguez Sela Date: Tue, 25 Feb 2014 09:22:38 +0100 Subject: [PATCH] STK DSDS: Registering icc-stkcommand system message earlier. See https://bugzilla.mozilla.org/show_bug.cgi?id=951599#c17 --- apps/system/js/icc.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/system/js/icc.js b/apps/system/js/icc.js index f0639797b090..b811b25be700 100644 --- a/apps/system/js/icc.js +++ b/apps/system/js/icc.js @@ -11,9 +11,6 @@ var icc = { init: function icc_init() { this._iccManager = window.navigator.mozIccManager; - this.hideViews(); - this.protectForms(); - this.getIccInfo(); var self = this; this.clearMenuCache(function() { window.navigator.mozSetMessageHandler('icc-stkcommand', @@ -24,6 +21,10 @@ var icc = { }); }); + this.hideViews(); + this.protectForms(); + this.getIccInfo(); + var self = this; // Update displayTextTimeout with settings parameter var reqDisplayTimeout = window.navigator.mozSettings.createLock().get(