WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
228641
Attribute nw connections to the source application
https://bugs.webkit.org/show_bug.cgi?id=228641
Summary
Attribute nw connections to the source application
youenn fablet
Reported
2021-07-30 07:30:55 PDT
<
rdar://81039713
>
Attachments
Patch
(6.68 KB, patch)
2021-07-30 07:40 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(6.71 KB, patch)
2021-07-30 07:49 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(6.65 KB, patch)
2021-07-30 08:20 PDT
,
youenn fablet
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch for landing
(8.80 KB, patch)
2021-07-30 08:25 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch for landing
(8.76 KB, patch)
2021-07-30 09:40 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2021-07-30 07:40:01 PDT
Created
attachment 434623
[details]
Patch
youenn fablet
Comment 2
2021-07-30 07:49:24 PDT
Created
attachment 434625
[details]
Patch
Alex Christensen
Comment 3
2021-07-30 08:08:21 PDT
Comment on
attachment 434625
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=434625&action=review
We also set configuration.get()._attributedBundleIdentifier for SafariViewController based on the page ID.
> Source/WebKit/NetworkProcess/webrtc/NetworkRTCTCPSocketCocoa.mm:100 > + nw_parameters_set_source_application(tcpTLS.get(), *reinterpret_cast<const audit_token_t*>(CFDataGetBytePtr(sourceApplicationAuditData)));
RELEASE_ASSERT(CFDataGetSize(sourceApplicationAuditData) == sizeof(audit_token_t));
> Source/WebKit/NetworkProcess/webrtc/NetworkRTCUDPSocketCocoa.mm:239 > + nw_parameters_set_source_application(parameters, *reinterpret_cast<const audit_token_t*>(CFDataGetBytePtr(m_sourceApplicationAuditData.get())));
ditto
youenn fablet
Comment 4
2021-07-30 08:20:32 PDT
Created
attachment 434626
[details]
Patch
youenn fablet
Comment 5
2021-07-30 08:23:13 PDT
Thanks for the review. (In reply to Alex Christensen from
comment #3
)
> Comment on
attachment 434625
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=434625&action=review
> > We also set configuration.get()._attributedBundleIdentifier for > SafariViewController based on the page ID.
Will do in a follow-up as we do not have the page ID.
> > Source/WebKit/NetworkProcess/webrtc/NetworkRTCTCPSocketCocoa.mm:100 > > + nw_parameters_set_source_application(tcpTLS.get(), *reinterpret_cast<const audit_token_t*>(CFDataGetBytePtr(sourceApplicationAuditData))); > > RELEASE_ASSERT(CFDataGetSize(sourceApplicationAuditData) == > sizeof(audit_token_t)); > > > Source/WebKit/NetworkProcess/webrtc/NetworkRTCUDPSocketCocoa.mm:239 > > + nw_parameters_set_source_application(parameters, *reinterpret_cast<const audit_token_t*>(CFDataGetBytePtr(m_sourceApplicationAuditData.get()))); > > ditto
I changed it to directly get an audit_token_t from network process.
youenn fablet
Comment 6
2021-07-30 08:25:23 PDT
Created
attachment 434629
[details]
Patch for landing
EWS
Comment 7
2021-07-30 09:16:53 PDT
ChangeLog entry in Source/WebKit/ChangeLog contains OOPS!.
youenn fablet
Comment 8
2021-07-30 09:40:52 PDT
Created
attachment 434638
[details]
Patch for landing
youenn fablet
Comment 9
2021-07-30 10:23:55 PDT
> Will do in a follow-up as we do not have the page ID.
https://bugs.webkit.org/show_bug.cgi?id=228649
EWS
Comment 10
2021-07-30 10:31:05 PDT
Committed
r280481
(
240116@main
): <
https://commits.webkit.org/240116@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 434638
[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