WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
233202
Web Inspector: [Cocoa] Indicate a request was sent through proxy/private relay in Network tab
https://bugs.webkit.org/show_bug.cgi?id=233202
Summary
Web Inspector: [Cocoa] Indicate a request was sent through proxy/private rela...
Cory Underwood
Reported
2021-11-16 10:49:16 PST
There does not appear to be a way for the local (user) client via Web Inspector Tools to determine that a outbound network request is being routed through the private relay network. This seems to be the case when the 'Hide IP Address' option is set to any value. It would be appreciated if the ability to determine when the feature was used on requests was enabled either via the Network Panel, or via the ITP Debug specific functionality like the CNAME Cloaking Mitigation reporting was enabled.
Attachments
Patch v1.0
(18.06 KB, patch)
2022-03-25 23:18 PDT
,
Patrick Angle
no flags
Details
Formatted Diff
Diff
Screenshot of Patch v1.0 (Network Overview /w IP Addresses shown)
(239.12 KB, image/png)
2022-03-25 23:19 PDT
,
Patrick Angle
no flags
Details
Screenshot of Patch v1.0 (Network Details Headers)
(192.53 KB, image/png)
2022-03-25 23:19 PDT
,
Patrick Angle
no flags
Details
Patch v1.1 - For EWS
(18.21 KB, patch)
2022-03-28 13:00 PDT
,
Patrick Angle
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-11-16 11:48:07 PST
<
rdar://problem/85468354
>
Patrick Angle
Comment 2
2022-03-25 22:18:30 PDT
<
rdar://81915515
>
Patrick Angle
Comment 3
2022-03-25 23:18:24 PDT
Created
attachment 455832
[details]
Patch v1.0
Patrick Angle
Comment 4
2022-03-25 23:19:11 PDT
Created
attachment 455833
[details]
Screenshot of Patch v1.0 (Network Overview /w IP Addresses shown)
Patrick Angle
Comment 5
2022-03-25 23:19:58 PDT
Created
attachment 455834
[details]
Screenshot of Patch v1.0 (Network Details Headers)
EWS Watchlist
Comment 6
2022-03-25 23:20:07 PDT
This patch modifies the inspector protocol. Please ensure that any frontend changes appropriately use feature checks for new protocol features.
Patrick Angle
Comment 7
2022-03-28 08:31:42 PDT
Comment on
attachment 455832
[details]
Patch v1.0 GTK failures look real, and I suspect there may be Windows failures hiding behind the typical compilation issue.
Devin Rousso
Comment 8
2022-03-28 09:50:09 PDT
Comment on
attachment 455832
[details]
Patch v1.0 View in context:
https://bugs.webkit.org/attachment.cgi?id=455832&action=review
r=me, neat!
> Source/WebCore/platform/network/NetworkLoadMetrics.h:137 > + bool isProxyConnection;
Is this perhaps already covered by `PrivacyStance::Proxied`?
> Source/WebInspectorUI/UserInterface/Models/Resource.js:388 > + return this._isProxyConnection ? WI.UIString("%s (Proxy)", "%s (Proxy) @ Resource Remote Address", "Label for the IP address of a proxy server used to retrieve a network resource.").format(this._remoteAddress) : this._remoteAddress;
Style: I'd split this onto separate lines. ``` if (this._isProxyConnection) return WI.UIString("%s (Proxy)", "%s (Proxy) @ Resource Remote Address", "Label for the IP address of a proxy server used to retrieve a network resource.").format(this._remoteAddress); return this._remoteAddress; ```
> Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm:906 > + additionalMetrics->isProxyConnection = m.proxyConnection;
eww `m.`? That could've used a better name :(
Patrick Angle
Comment 9
2022-03-28 11:53:09 PDT
Comment on
attachment 455832
[details]
Patch v1.0 View in context:
https://bugs.webkit.org/attachment.cgi?id=455832&action=review
>> Source/WebCore/platform/network/NetworkLoadMetrics.h:137 >> + bool isProxyConnection; > > Is this perhaps already covered by `PrivacyStance::Proxied`?
`PrivacyStance::Proxied` only applies to "private proxies", not all proxies.
Patrick Angle
Comment 10
2022-03-28 13:00:08 PDT
Created
attachment 455945
[details]
Patch v1.1 - For EWS
EWS
Comment 11
2022-03-29 10:27:38 PDT
Committed
r292037
(
248980@main
): <
https://commits.webkit.org/248980@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 455945
[details]
.
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