Closed Bug 1217362 Opened 9 years ago Closed 8 years ago

nsIHttpChannelInternal::getRemoteAddress() doesn't work in content processes

Categories

(Core :: Networking, defect)

x86_64
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
e10s m8+ ---

People

(Reporter: roxana.ilie23, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7

Steps to reproduce:

I tried to get server IP address when I was using Navigator::SendBeacon(), after the channel was opened and all the informations should be available in BeaconStreamListener::OnStartRequest().


Actual results:

I was receiving ns_error_not_available, because nsIHttpChannelInternal object was calling HttpChannelChild::GetRemoteAddress()


Expected results:

nsIHttpChannelInternal object should have called HttpBaseChannel::GetRemoteAddress(), and servers IP address should be available.
OS: Unspecified → Mac OS X
Hardware: Unspecified → x86_64
in general a lot of networking code is on the parent process only, but this particular method does get used by some child code (beacon is noted here) so should be e10s enabled.
Jason, can we get an assignee?
Flags: needinfo?(jduell.mcbugs)
This is probably a dupe of bug 664163.  I'll find someone to fix.
Depends on: 664163
Flags: needinfo?(jduell.mcbugs)
triage note: bug 664163 has patches, waiting on that to land then we'll retest this.
Tracy, but 664163 was resolved 2 months ago, can you confirm that this is fixed and dupe it over or renom?
Flags: needinfo?(twalker)
Roxana, can you provide a testcase and/or verify this is fixed from the noted bug above?
Flags: needinfo?(roxana.ilie23)
I tested it and now everything is ok.

The idea is that because HttpChannelChild::GetRemoteAddress() has been deleted in the patch for 664163, now HttpBaseChannel::GetRemoteAddress is always called.
Flags: needinfo?(roxana.ilie23)
Thank you Roxana.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(twalker)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.