WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
92454
[EFL] Return 0 when network is offline
https://bugs.webkit.org/show_bug.cgi?id=92454
Summary
[EFL] Return 0 when network is offline
Gyuyoung Kim
Reported
2012-07-26 21:21:28 PDT
Network Info latest spec says 0 is returned when network is offline.
r123769
modified to return *infinity value* when network is offiline.
Attachments
Patch
(1.54 KB, patch)
2012-07-26 21:25 PDT
,
Gyuyoung Kim
no flags
Details
Formatted Diff
Diff
Patch
(1.76 KB, patch)
2012-07-27 08:45 PDT
,
Gyuyoung Kim
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Gyuyoung Kim
Comment 1
2012-07-26 21:25:03 PDT
Created
attachment 154832
[details]
Patch
Chris Dumez
Comment 2
2012-07-26 21:44:06 PDT
Comment on
attachment 154832
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=154832&action=review
> Source/WebCore/platform/efl/NetworkInfoProviderEfl.cpp:61 > + return 0; // If network is offline, return 0.
if eeze_net_new() returns NULL, then it indicates that eth0 interface does not exist. The fact that the interface does not exist is difference from being offline. The user may be connected via another network interface. So, in my opinion, this means the bandwidth is unknown.
Gyuyoung Kim
Comment 3
2012-07-26 21:55:56 PDT
(In reply to
comment #2
)
> (From update of
attachment 154832
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=154832&action=review
> > > Source/WebCore/platform/efl/NetworkInfoProviderEfl.cpp:61 > > + return 0; // If network is offline, return 0. > > if eeze_net_new() returns NULL, then it indicates that eth0 interface does not exist. The fact that the interface does not exist is difference from being offline. The user may be connected via another network interface. So, in my opinion, this means the bandwidth is unknown.
Current implementation only supports ethernet. So, if eeze_net_new() returns NULL, it means there is no device and offline now. Of course, updated patch will support network regardless of wireless and ethernet. Then, we can consider if bandwidth is unknown.
Gyuyoung Kim
Comment 4
2012-07-27 06:41:48 PDT
Kenneth, could you take a look ?
Kenneth Rohde Christiansen
Comment 5
2012-07-27 06:43:59 PDT
Comment on
attachment 154832
[details]
Patch Shouldnt you leave an FIXME: for the future? or at least a note
Gyuyoung Kim
Comment 6
2012-07-27 08:45:24 PDT
Created
attachment 154962
[details]
Patch
Gyuyoung Kim
Comment 7
2012-07-27 08:47:12 PDT
(In reply to
comment #5
)
> (From update of
attachment 154832
[details]
) > Shouldnt you leave an FIXME: for the future? or at least a note
I add an FIXME comment for now. Thanks.
WebKit Review Bot
Comment 8
2012-07-27 17:30:47 PDT
Comment on
attachment 154962
[details]
Patch Clearing flags on attachment: 154962 Committed
r123939
: <
http://trac.webkit.org/changeset/123939
>
WebKit Review Bot
Comment 9
2012-07-27 17:30:52 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug