Closed
Bug 1209880
Opened 9 years ago
Closed 7 years ago
[FFOS2.0][Woodduck]data and wifi connection not open,but data connection icon is show sometime
Categories
(Firefox OS Graveyard :: Gaia::System, defect, P2)
Firefox OS Graveyard
Gaia::System
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: sync-1, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
application/x-rar-compressed
|
Details |
Created an attachment (id=1413609)
mtklog
DEFECT DESCRIPTION:
1.- No the sim card and not open wifi connection.
2.- but the data connection is show sometime.
REPRODUCING PROCEDURES:
EXPECTED BEHAVIOUR:
ASSOCIATE SPECIFICATION:
TEST PLAN REFERENCE:
TOOLS AND PLATFORMS USED:
USER IMPACT:
REPRODUCING RATE:
For FT PR, Please list reference mobile's behavior:
如下是TCL的分析情况,但目前不确定什么情况下会触发'moznetworkupload'和'moznetworkdownload'事件。
firefox 手机不插入SIM卡,但网络连接图片会出现闪烁的情况代码分析如下,但目前还没有找到在什么情况下,会触发'moznetworkupload'和'moznetworkdownload'事件的情况。
该功能属于APP->system,
(1)显示的图标路径:gaia/apps/system/style/statusbar/images/network-activity.png;
(2)html代码路径:gaia/apps/system/index.html
<img id="statusbar-network-activity"
src="style/statusbar/images/network-activity.png"
class="sb-icon-network-activity" hidden role="listitem" data-l10n-id="statusbarNetworkActivity">
(3)逻辑代码路径:/gaia/apps/system/js/statusbar.js
当触发'moznetworkupload'和'moznetworkdownload'事件时,会显示网络连接图片(执行代码hidden = 'false'),显示500ms后图片消失(执行代码hidden = 'true')
执行流程如下:
1、代码初始化:
window.addEventListener('moznetworkupload', this);
window.addEventListener('moznetworkdownload', this);
2、触发handleEvent函数:
case 'moznetworkupload':
case 'moznetworkdownload':
this.update.networkActivity.call(this);
break;
3、执行显示图片的代码
networkActivity: function sb_updateNetworkActivity() {
// Each time we receive an update, make network activity indicator
// show up for 500ms.
var icon = this.icons.networkActivity;
clearTimeout(this._networkActivityTimer);
icon.hidden = false;
this._networkActivityTimer = setTimeout(function hideNetActivityIcon() {
icon.hidden = true;
this.resizeLabel();
}.bind(this), 500);
this.resizeLabel();
},
Comment 2•7 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•