Bug 210493

Summary: Remove downloadAttribute from DocumentLoader
Product: WebKit Reporter: Rob Buis <rbuis>
Component: New BugsAssignee: Rob Buis <rbuis>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, cdumez, darin, ews-watchlist, japhet, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Rob Buis 2020-04-14 06:59:12 PDT
Remove downloadAttribute from DocumentLoader since this value can
be obtained from the NavigationAction.
Comment 1 Rob Buis 2020-04-14 07:01:55 PDT
Created attachment 396411 [details]
Patch
Comment 2 Rob Buis 2020-04-14 07:49:33 PDT
Comment on attachment 396411 [details]
Patch

Alex, in https://bugs.webkit.org/show_bug.cgi?id=196755 you passed in loadPostRequest the frameLoadRequest download attribute into the NavigationAction but passed { } to store that for download attribute into the DocumentLoader. Was that intentional? This removal patch can only work in case both values are the same or in case the value does not matter for POST.
Also are there tests or should this be manually checked?
Comment 3 Alex Christensen 2020-04-28 09:26:00 PDT
If the unit test from bug 196755 still passes, then this works.
Comment 4 Rob Buis 2020-04-28 13:33:52 PDT
(In reply to Alex Christensen from comment #3)
> If the unit test from bug 196755 still passes, then this works.

Thanks for the hint! Yes, it passes with the patch.
Comment 5 EWS 2020-04-28 13:41:40 PDT
Committed r260843: <https://trac.webkit.org/changeset/260843>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 396411 [details].
Comment 6 Radar WebKit Bug Importer 2020-04-28 13:42:13 PDT
<rdar://problem/62542589>