Give NSURLSessionConfiguration information about parent process
Created attachment 274459 [details] Patch
Created attachment 274463 [details] Patch
Second patch rebased to apply to trunk and made it so we get the audit token on mac just like we do on ios.
Comment on attachment 274463 [details] Patch Attachment 274463 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/1001862 Number of test failures exceeded the failure limit.
Created attachment 274474 [details] Archive of layout-test-results from ews106 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Created attachment 274478 [details] Patch
Mac doesn't like the audit token. Landing without changing Mac behavior.
http://trac.webkit.org/changeset/198457
Comment on attachment 274478 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=274478&action=review > Source/WebKit2/WebProcess/WebProcess.cpp:381 > +#if USE(NETWORK_SESSION) > + NetworkSession::setSourceApplicationAuditTokenData(sourceApplicationAuditData()); > +#endif Can the ENABLE(REMOTE_INSPECTOR) code right about this also use sourceApplicationAuditData()?
It could on iOS, but on mac we need to return nullptr or it causes problems, but your code needs the actual audit token on mac. We could use the same code on iOS, though, to avoid asking the ui process twice on startup on iOS.
I wonder if this "audit token data" contains process bundle ID that we could use when initializing the sandbox.