50feb6477701ae6d0d049911769b4ce2b7228fe7
[WebKit-https.git] / Source / WebKit / ChangeLog
1 2018-01-02  Michael Catanzaro  <mcatanzaro@igalia.com>
2
3         REGRESSION(r223253): Broke ResourceLoadStatistics layout tests for non-Cocoa ports
4         https://bugs.webkit.org/show_bug.cgi?id=181231
5
6         Reviewed by Alex Christensen.
7
8         Add new C API for use by WebKitTestRunner.
9
10         * UIProcess/API/C/WKWebsiteDataStoreRef.cpp:
11         (WKWebsiteDataStoreIsStatisticsRegisteredAsSubFrameUnder):
12         (WKWebsiteDataStoreIsStatisticsRegisteredAsRedirectingTo):
13         * UIProcess/API/C/WKWebsiteDataStoreRef.h:
14
15 2018-01-02  Jiewen Tan  <jiewen_tan@apple.com>
16
17         Add a WebAuthentication runtime feature flag
18         https://bugs.webkit.org/show_bug.cgi?id=181220
19         <rdar://problem/36055305>
20
21         Reviewed by Brent Fulgham.
22
23         Renames the CredentialManagement runtime feature flag into WebAuthentication.
24
25         * Shared/WebPreferences.yaml:
26         * UIProcess/API/C/WKPreferences.cpp:
27         (WKPreferencesSetWebAuthenticationEnabled):
28         (WKPreferencesGetWebAuthenticationEnabled):
29         (WKPreferencesSetCredentialManagementEnabled): Deleted.
30         (WKPreferencesGetCredentialManagementEnabled): Deleted.
31         * UIProcess/API/C/WKPreferencesRefPrivate.h:
32         * WebProcess/WebPage/WebPage.cpp:
33         (WebKit::WebPage::updatePreferences):
34
35 2018-01-02  Michael Catanzaro  <mcatanzaro@igalia.com>
36
37         REGRESSION(r226327): [GTK] Plugin process is broken
38         https://bugs.webkit.org/show_bug.cgi?id=181187
39
40         Unreviewed, fix PluginProcessMainUnix after r226327.
41
42         * PluginProcess/unix/PluginProcessMainUnix.cpp:
43
44 2018-01-02  Tim Horton  <timothy_horton@apple.com>
45
46         Fix the build on platforms where UICurrentUserInterfaceIdiomIsPad is defined to false
47         https://bugs.webkit.org/show_bug.cgi?id=181218
48
49         Reviewed by Alex Christensen.
50
51         * Platform/spi/ios/UIKitSPI.h:
52         (currentUserInterfaceIdiomIsPad):
53         * UIProcess/ios/SmartMagnificationController.mm:
54         (WebKit::SmartMagnificationController::didCollectGeometryForSmartMagnificationGesture):
55         * UIProcess/ios/WKContentViewInteraction.mm:
56         (-[WKFormInputSession setAccessoryViewCustomButtonTitle:]):
57         (-[WKContentView _requiresKeyboardWhenFirstResponder]):
58         (-[WKContentView _displayFormNodeInputView]):
59         (-[WKContentView requiresAccessoryView]):
60         (-[WKContentView _updateAccessory]):
61         * UIProcess/ios/forms/WKAirPlayRoutePicker.mm:
62         (-[WKAirPlayRoutePicker show:fromRect:]):
63         * UIProcess/ios/forms/WKFileUploadPanel.mm:
64         (-[WKFileUploadPanel _showPhotoPickerWithSourceType:]):
65         (-[WKFileUploadPanel _presentMenuOptionForCurrentInterfaceIdiom:]):
66         * UIProcess/ios/forms/WKFormInputControl.mm:
67         (-[WKDateTimePicker initWithView:datePickerMode:]):
68         (-[WKFormInputControl initWithView:]):
69         * UIProcess/ios/forms/WKFormSelectControl.mm:
70         (-[WKFormSelectControl initWithView:]):
71         On platforms where UICurrentUserInterfaceIdiomIsPad is defined to false,
72         blocks that conditionally execute based on its value are unreachable.
73         This causes the compiler to complain. Hide it away inside an inline function
74         and make use of that everywhere we used to use the macro.
75
76 2018-01-02  Alex Christensen  <achristensen@webkit.org>
77
78         Remove SVN file accidentally added in r226160
79         https://bugs.webkit.org/show_bug.cgi?id=180934
80
81         * UIProcess/WebPageProxy.cpp.orig: Removed.
82
83 2018-01-02  Alex Christensen  <achristensen@webkit.org>
84
85         Use BlockPtrs and lambdas instead of new/delete to pass parameters to blocks in WebViewImpl::performDragOperation
86         https://bugs.webkit.org/show_bug.cgi?id=180795
87
88         Reviewed by Brent Fulgham.
89
90         * UIProcess/Cocoa/WebViewImpl.mm:
91         (WebKit::WebViewImpl::performDragOperation):
92
93 2018-01-02  Michael Catanzaro  <mcatanzaro@igalia.com>
94
95         [WPE][GTK] Implement the assignment of ProcessIdentifiers to child processes
96         https://bugs.webkit.org/show_bug.cgi?id=181187
97
98         Reviewed by Brady Eidson.
99
100         * Shared/ChildProcess.cpp: Make the ProcessIdentifier mandatory.
101         (WebKit::ChildProcess::initialize):
102         * Shared/unix/ChildProcessMain.cpp: Initialize ChildProcessInitializationParameters with the
103         ProcessIdentifier.
104         (WebKit::ChildProcessMainBase::parseCommandLine):
105         * UIProcess/Launcher/glib/ProcessLauncherGLib.cpp: Copy the ProcessIdentifier from
106         LaunchOptions into argv.
107         (WebKit::ProcessLauncher::launchProcess):
108         * WebProcess/wpe/WebProcessMainWPE.cpp: Expect the WPE socket ID later in the command line.
109
110 2018-01-02  Alex Christensen  <achristensen@webkit.org>
111
112         Use new WebsiteDataStore passed in through decidePolicyForNavigation SPI
113         https://bugs.webkit.org/show_bug.cgi?id=180897
114         <rdar://problem/35535328>
115
116         Reviewed by Brent Fulgham.
117
118         * Shared/WebsitePoliciesData.cpp:
119         (WebKit::WebsitePoliciesData::applyToDocumentLoader):
120         * UIProcess/Cocoa/NavigationState.mm:
121         (WebKit::NavigationState::NavigationClient::decidePolicyForNavigationAction):
122         * UIProcess/WebPageProxy.cpp:
123         (WebKit::WebPageProxy::changeWebsiteDataStore):
124         * UIProcess/WebPageProxy.h:
125         * UIProcess/WebProcessPool.cpp:
126         (WebKit::WebProcessPool::pageBeginUsingWebsiteDataStore):
127         (WebKit::WebProcessPool::pageEndUsingWebsiteDataStore):
128         (WebKit::WebProcessPool::pageAddedToProcess): Deleted.
129         (WebKit::WebProcessPool::pageRemovedFromProcess): Deleted.
130         * UIProcess/WebProcessPool.h:
131         * UIProcess/WebProcessProxy.cpp:
132         (WebKit::WebProcessProxy::addExistingWebPage):
133         (WebKit::WebProcessProxy::removeWebPage):
134         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
135         (WebKit::WebFrameNetworkingContext::ensureWebsiteDataStoreSession):
136
137 2018-01-02  Alex Christensen  <achristensen@webkit.org>
138
139         Only use CookieStorageShim when we aren't using NetworkSession
140         https://bugs.webkit.org/show_bug.cgi?id=180766
141
142         Reviewed by Brent Fulgham.
143
144         * Shared/mac/CookieStorageShim.h:
145         * Shared/mac/CookieStorageShim.mm:
146         * WebProcess/WebProcess.cpp:
147         (WebKit::WebProcess::initializeWebProcess):
148
149 2018-01-02  Alex Christensen  <achristensen@webkit.org>
150
151         Clean up context menu code
152         https://bugs.webkit.org/show_bug.cgi?id=181074
153
154         Reviewed by Brent Fulgham.
155
156         Use Ref instead of RefPtr where possible.
157         Use move semantics instead of copying from const references when possible.
158         Remove dead iOS code.  Reduce allocations.  Add stub for WPE.
159
160         * UIProcess/API/APIContextMenuClient.h:
161         (API::ContextMenuClient::getContextMenuFromProposedMenu):
162         (API::ContextMenuClient::getContextMenuFromProposedMenuAsync):
163         (API::ContextMenuClient::showContextMenu):
164         * UIProcess/API/C/WKPage.cpp:
165         (WKPageSetPageContextMenuClient):
166         * UIProcess/API/gtk/PageClientImpl.cpp:
167         (WebKit::PageClientImpl::createContextMenuProxy):
168         * UIProcess/API/gtk/PageClientImpl.h:
169         * UIProcess/PageClient.h:
170         * UIProcess/WebContextMenuListenerProxy.cpp:
171         (WebKit::WebContextMenuListenerProxy::useContextMenuItems):
172         * UIProcess/WebContextMenuProxy.cpp:
173         (WebKit::WebContextMenuProxy::WebContextMenuProxy):
174         * UIProcess/WebContextMenuProxy.h:
175         * UIProcess/WebPageProxy.cpp:
176         (WebKit::WebPageProxy::showContextMenu):
177         (WebKit::WebPageProxy::internalShowContextMenu): Deleted.
178         * UIProcess/WebPageProxy.h:
179         * UIProcess/gtk/WebContextMenuProxyGtk.cpp:
180         (WebKit::WebContextMenuProxyGtk::showContextMenuWithItems):
181         (WebKit::WebContextMenuProxyGtk::WebContextMenuProxyGtk):
182         * UIProcess/gtk/WebContextMenuProxyGtk.h:
183         (WebKit::WebContextMenuProxyGtk::create):
184         * UIProcess/ios/PageClientImplIOS.h:
185         * UIProcess/ios/PageClientImplIOS.mm:
186         (WebKit::PageClientImpl::createContextMenuProxy): Deleted.
187         * UIProcess/mac/PageClientImplMac.h:
188         * UIProcess/mac/PageClientImplMac.mm:
189         (WebKit::PageClientImpl::createContextMenuProxy):
190         * UIProcess/mac/WebContextMenuProxyMac.h:
191         (WebKit::WebContextMenuProxyMac::create):
192         * UIProcess/mac/WebContextMenuProxyMac.mm:
193         (WebKit::WebContextMenuProxyMac::WebContextMenuProxyMac):
194         (WebKit::WebContextMenuProxyMac::showContextMenuWithItems):
195         (WebKit::WebContextMenuProxyMac::showContextMenu):
196
197 == Rolled over to ChangeLog-2018-01-01 ==