RESOLVED FIXED 180788
Make WebsitePolicies a proper class with getters and setters
https://bugs.webkit.org/show_bug.cgi?id=180788
Summary Make WebsitePolicies a proper class with getters and setters
Alex Christensen
Reported 2017-12-13 17:57:14 PST
Make WebsitePolicies a proper class with getters and setters
Attachments
Patch (22.15 KB, patch)
2017-12-13 18:00 PST, Alex Christensen
aestes: review+
Alex Christensen
Comment 1 2017-12-13 18:00:05 PST
Andy Estes
Comment 2 2017-12-14 13:10:31 PST
Comment on attachment 329301 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=329301&action=review > Source/WebKit/Shared/WebsitePolicies.h:71 > + const Vector<WebCore::HTTPHeaderField>& customHeaderFields() { return m_customHeaderFields; } Should be const-qualified. > Source/WebKit/UIProcess/API/APIWebsitePolicies.h:50 > + const Vector<WebCore::HTTPHeaderField> customHeaderFields() { return m_websitePolicies.customHeaderFields(); } Should be const-qualified. It's also weird to return a const value.
Alex Christensen
Comment 3 2017-12-14 14:07:58 PST
Radar WebKit Bug Importer
Comment 4 2017-12-14 14:08:21 PST
Note You need to log in before you can comment on or make changes to this bug.