Bug 228641

Summary: Attribute nw connections to the source application
Product: WebKit Reporter: youenn fablet <youennf>
Component: WebRTCAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, eric.carlson, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
ews-feeder: commit-queue-
Patch for landing
none
Patch for landing none

youenn fablet
Reported 2021-07-30 07:30:55 PDT
Attachments
Patch (6.68 KB, patch)
2021-07-30 07:40 PDT, youenn fablet
no flags
Patch (6.71 KB, patch)
2021-07-30 07:49 PDT, youenn fablet
no flags
Patch (6.65 KB, patch)
2021-07-30 08:20 PDT, youenn fablet
ews-feeder: commit-queue-
Patch for landing (8.80 KB, patch)
2021-07-30 08:25 PDT, youenn fablet
no flags
Patch for landing (8.76 KB, patch)
2021-07-30 09:40 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2021-07-30 07:40:01 PDT
youenn fablet
Comment 2 2021-07-30 07:49:24 PDT
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
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.