Bug 232769

Summary: [iOS] IPC decoder for ResourceRequest loses systemPreviewInfo when there is platform data
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, dino, kkinnunen, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 231727    
Attachments:
Description Flags
Patch
none
Patch none

Description Chris Dumez 2021-11-05 15:23:02 PDT
The IPC decoder for ResourceRequest decoders systemPreviewInfo and sets it on the ResourceRequest. It then uses different code paths to decode the rest of the ResourceRequest based on whether or not there is underlying platform data.
If there is underlying platform data, we call decodePlatformData() which creates a brand-new ResourceRequest, and thus looses the systemPreviewInfo we've just set.
Comment 1 Chris Dumez 2021-11-05 15:46:51 PDT
Created attachment 443448 [details]
Patch
Comment 2 Wenson Hsieh 2021-11-05 16:58:08 PDT
Comment on attachment 443448 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=443448&action=review

> Source/WebKit/ChangeLog:8
> +        The IPC decoder for ResourceRequest decoders systemPreviewInfo and sets it on the ResourceRequest.

Nit - s/decoders/decodes/

> Source/WebKit/ChangeLog:11
> +        which creates a brand-new ResourceRequest, and thus looses the systemPreviewInfo we've just set.

Nit - s/looses/loses/
Comment 3 Chris Dumez 2021-11-05 17:11:51 PDT
Created attachment 443459 [details]
Patch
Comment 4 EWS 2021-11-05 20:03:04 PDT
Committed r285361 (243919@main): <https://commits.webkit.org/243919@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 443459 [details].
Comment 5 Radar WebKit Bug Importer 2021-11-05 20:04:18 PDT
<rdar://problem/85094542>