xombra / firefox-showip

Automatically exported from code.google.com/p/firefox-showip
0 stars 0 forks source link

Consider showing IP addresses which Firefox is actually using instead of sending a DNS query #65

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open http://www.mapletown.or.jp/

What is the expected output? What do you see instead?
ShowIP displays 2001:c28:101:1::23 despite it actually uses IPv4.

What version of the product are you using? On what operating system?
ShowIP should display 202.213.134.1 when the fallback occurs.

Please provide any additional information below.
You can monitor network activities by using nsIHttpActivityObserver.
https://developer.mozilla.org/en/nsIHttpActivityObserver
And you can obtain IP addresses which Firefox actually uses from 
nsIHttpChannelInternal.remoteAddress (since Firefox 5).
https://developer.mozilla.org/en/nsIHttpChannelInternal

Original issue reported on code.google.com by VYV03...@nifty.ne.jp on 2 Sep 2011 at 4:32

GoogleCodeExporter commented 9 years ago
Great. I didn't know that this is possible. I added it to 1rc5. Please try.

Original comment by jan.ditt...@gmail.com on 4 Sep 2011 at 7:06

GoogleCodeExporter commented 9 years ago
Thanks for quick response and fix.
I've tested ShowIP 1.2rc4. It works fine except a small nit.
When I configured a Firefox to use a proxy, it always display a proxy address 
instead of origin server's one. remoteAddress property should not be used when 
proxy was used for the connection. nsIHttpChannelInternal.proxyInfo may help.

Original comment by VYV03...@nifty.ne.jp on 5 Sep 2011 at 12:14

GoogleCodeExporter commented 9 years ago
And sometimes IP address stop updating (always "pending" displayed) after using 
for a while. I don't found a condition to reproduce yet.

Original comment by VYV03...@nifty.ne.jp on 8 Sep 2011 at 10:39

GoogleCodeExporter commented 9 years ago
When that happens, could you check the 'Error console' for any errors?

Original comment by jan.ditt...@gmail.com on 8 Sep 2011 at 10:41

GoogleCodeExporter commented 9 years ago
The following error was displayed several times.
Error: tmp[0] is undefined
Source File: chrome://ipv6ident/content/showip-lru.js
Line: 50

Original comment by VYV03...@nifty.ne.jp on 9 Sep 2011 at 6:43

GoogleCodeExporter commented 9 years ago
http://releases.firefox-showip.googlecode.com/git/showip_1.2rc6.xpi

Should fix both issues.

Original comment by antje.di...@gmail.com on 12 Sep 2011 at 5:21

GoogleCodeExporter commented 9 years ago
Sorry, nsIHttpChannelInternal.proxyInfo didn't work because it was replaced by 
nsIProxiedChannel.proxyInfo sice Gecko 1.9 (that is, it was already removed 
when remoteAddress property was added). You need to query nsIProxiedChannel 
interface from the channel to get proxyInfo.

Original comment by VYV03...@nifty.ne.jp on 12 Sep 2011 at 9:27

GoogleCodeExporter commented 9 years ago
Getting

Timestamp: 03/06/2012 20:36:28
Error: tmp[0] is undefined
Source File: chrome://ipv6ident/content/showip-lru.js
Line: 50

all the time in Fx 13beta

Original comment by mplung...@gmail.com on 3 Jun 2012 at 6:37