Closed Bug 859048 Opened 11 years ago Closed 9 years ago

Add a way to get the IP address and IP version (v4 or v6) that was used to retrieve a given resource

Categories

(DevTools :: Netmonitor, defect, P3)

defect

Tracking

(firefox39 fixed)

RESOLVED FIXED
Firefox 39
Tracking Status
firefox39 --- fixed

People

(Reporter: vporof, Assigned: Kwan)

References

Details

(Keywords: dev-doc-complete)

Attachments

(1 file, 1 obsolete file)

      No description provided.
"This would be hugely helpful when dealing with sites that are backed by more than one server."
Moving into Developer Tools: Netmonitor component. Filter on NETMONITORAMA.
Component: Developer Tools → Developer Tools: Netmonitor
Summary: [netmonitor] Add a way to get the IP address that was used to retrieve a given resource → Add a way to get the IP address that was used to retrieve a given resource
Summary: Add a way to get the IP address that was used to retrieve a given resource → Add a way to get the IP address and IP version (v4 or v6) that was used to retrieve a given resource
Priority: -- → P3
Assignee: nobody → moz-ian
Status: NEW → ASSIGNED
Attachment #8569258 - Flags: review?(past)
Comment on attachment 8569258 [details] [diff] [review]
Add Remote Address to the network tab headers panel

Review of attachment 8569258 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good, but we will need a test for this as well. You can probably just add some checks into browser_net_simple-request-details.js.

::: browser/devtools/netmonitor/netmonitor.xul
@@ +293,5 @@
>              <tabpanels flex="1">
>                <tabpanel id="headers-tabpanel"
>                          class="tabpanel-content">
>                  <vbox flex="1">
> +                  <hbox id="headers-summary-address"

I think this should appear beneath the request URL and method, which are the most important things about a request.

::: browser/locales/en-US/chrome/browser/devtools/netmonitor.dtd
@@ +135,5 @@
>  <!-- LOCALIZATION NOTE (debuggerUI.panesButton.tooltip): This is the tooltip for
>    -  the button that toggles the panes visible or hidden in the netmonitor UI. -->
>  <!ENTITY netmonitorUI.panesButton.tooltip "Toggle network info">
>  
> +<!-- LOCALIZATION NOTE (debuggerUI.summary.address): This is the label displayed

netmonitorUI, not debuggerUI. Could you also fix the other comments while you are here?
Attachment #8569258 - Flags: review?(past) → feedback+
(In reply to Panos Astithas [:past] from comment #6)
> Looks good, but we will need a test for this as well. You can probably just
> add some checks into browser_net_simple-request-details.js.
Cool, I'll take a look.

> I think this should appear beneath the request URL and method, which are the
> most important things about a request.
Can do.  I just copied Chrome's position for getting it up and running, very open to feedback on UI.

> netmonitorUI, not debuggerUI. Could you also fix the other comments while
> you are here?
Sure.

I made a couple of small changes since in my current version already:
+ "Remote Address" -> "Remote address" to match the rest of the labels
+ add [] around the address if indexOf(":") != -1, to distinguish IPv6 addresses from the port number.

Also, I notice bug 663151 which was duped to this was for adding it to the webconsole's net panel, shall I include that too?  (I already have a patch)
Flags: needinfo?(past)
We don't really care about the console's net panel and want to kill it as soon as possible (bug 861335). I wouldn't worry about it.
Flags: needinfo?(past)
+change string casing to match rest of panel
+IPv6 addrs now get [] around them
+test added (is the hardcoded ip:port okay?  I'm not sure what else it'd ever be/how we'd calculate it)
+output moved below method
+s/debuggerUI/netmonitorUI/g in .dtd (all 40+ of them)

https://treeherder.mozilla.org/#/jobs?repo=try&revision=092d6bfed28e
Attachment #8569258 - Attachment is obsolete: true
Attachment #8569814 - Flags: review?(past)
Comment on attachment 8569814 [details] [diff] [review]
Add Remote Address to the network tab headers panel v1.2

Review of attachment 8569814 [details] [diff] [review]:
-----------------------------------------------------------------

If try is ok with the address and port number, I'm fine too.
Attachment #8569814 - Flags: review?(past) → review+
try run in comment 9 all green (with the exception of an extremely tardy Windows 8 x64 debug M(dt3))
Keywords: checkin-needed
https://hg.mozilla.org/integration/fx-team/rev/d97e4aee9a3a
Flags: in-testsuite+
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/d97e4aee9a3a
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 39
Looks good!
Flags: needinfo?(vporof)
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: