Bug 196562

Summary: Changing default website policies shouldn't change default website policies in subsequent navigations
Product: WebKit Reporter: Wenson Hsieh <wenson_hsieh>
Component: WebKit Misc.Assignee: Wenson Hsieh <wenson_hsieh>
Status: NEW ---    
Severity: Normal CC: achristensen, bdakin, cdumez, commit-queue, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Fix the WPE build
none
Really fix the WPE build?
thorton: review+
Patch for EWS none

Description Wenson Hsieh 2019-04-03 14:25:17 PDT
SSIA
Comment 1 Radar WebKit Bug Importer 2019-04-03 14:25:50 PDT
<rdar://problem/49573377>
Comment 2 Wenson Hsieh 2019-04-03 17:45:00 PDT Comment hidden (obsolete)
Comment 3 Wenson Hsieh 2019-04-03 19:38:44 PDT Comment hidden (obsolete)
Comment 4 Wenson Hsieh 2019-04-03 19:50:07 PDT
Created attachment 366695 [details]
Really fix the WPE build?
Comment 5 Tim Horton 2019-04-04 12:55:26 PDT
Comment on attachment 366695 [details]
Really fix the WPE build?

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

> Source/WebKit/UIProcess/API/APIWebsitePolicies.cpp:65
> +        WTF::String name = field.name();
> +        WTF::String value = field.value();
> +        if (auto newHeaderField = WebCore::HTTPHeaderField::create(WTFMove(name), WTFMove(value)))
> +            customHeaderFields.append(WTFMove(*newHeaderField));

Shouldn't this use HTTPHeaderField copy constructor
Comment 6 Wenson Hsieh 2019-04-04 13:12:35 PDT Comment hidden (obsolete)
Comment 7 Wenson Hsieh 2019-04-04 13:20:18 PDT
(In reply to Tim Horton from comment #5)
> Comment on attachment 366695 [details]
> Really fix the WPE build?
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=366695&action=review
> 
> > Source/WebKit/UIProcess/API/APIWebsitePolicies.cpp:65
> > +        WTF::String name = field.name();
> > +        WTF::String value = field.value();
> > +        if (auto newHeaderField = WebCore::HTTPHeaderField::create(WTFMove(name), WTFMove(value)))
> > +            customHeaderFields.append(WTFMove(*newHeaderField));
> 
> Shouldn't this use HTTPHeaderField copy constructor

👍🏻 Changed to use the default copy constructor.
Comment 8 Wenson Hsieh 2019-04-04 13:23:49 PDT
Created attachment 366746 [details]
Patch for EWS
Comment 9 WebKit Commit Bot 2019-04-04 14:56:44 PDT
Comment on attachment 366746 [details]
Patch for EWS

Clearing flags on attachment: 366746

Committed r243909: <https://trac.webkit.org/changeset/243909>