Unreviewed. Removing the remaining Automake cruft.
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2014-03-26  Zan Dobersek  <zdobersek@igalia.com>
2
3         Unreviewed. Removing the remaining Automake cruft.
4
5         * GNUmakefile.list.am: Removed.
6
7 2014-03-25  Pratik Solanki  <psolanki@apple.com>
8
9         Remove PLATFORM(IOS) from NetworkProcessMac.mm
10         https://bugs.webkit.org/show_bug.cgi?id=130751
11
12         Reviewed by Alexey Proskuryakov.
13
14         Code in NetworkProcessMac.mm is guarded by PLATFORM(MAC) and so is not compiled on iOS.
15         Having PLATFORM(IOS) code in this file is unnecessary and confusing.
16
17         * NetworkProcess/mac/NetworkProcessMac.mm:
18         (WebKit::NetworkProcess::initializeProcessName):
19         (WebKit::overrideSystemProxies):
20         (WebKit::NetworkProcess::platformInitializeNetworkProcess):
21
22 2014-03-25  Anders Carlsson  <andersca@apple.com>
23
24         Add a UI delegate callback for handling window.open
25         https://bugs.webkit.org/show_bug.cgi?id=130757
26
27         Reviewed by Sam Weinig.
28
29         * UIProcess/API/Cocoa/WKUIDelegate.h:
30         * UIProcess/API/Cocoa/WKWebView.mm:
31         * UIProcess/API/Cocoa/WKWebViewInternal.h:
32         * UIProcess/Cocoa/UIClient.h:
33         * UIProcess/Cocoa/UIClient.mm:
34         (WebKit::UIClient::setDelegate):
35         (WebKit::UIClient::createNewPage):
36
37 2014-03-25  Anders Carlsson  <andersca@apple.com>
38
39         Move stopLoading: back for now.
40
41         * UIProcess/API/Cocoa/WKWebView.h:
42         * UIProcess/API/Cocoa/WKWebView.mm:
43         (-[WKWebView stopLoading:]):
44
45 2014-03-25  Anders Carlsson  <andersca@apple.com>
46
47         Change toolbarVisibility back to toolbarsVisibility
48         https://bugs.webkit.org/show_bug.cgi?id=130749
49
50         Reviewed by Tim Horton.
51
52         * UIProcess/API/Cocoa/WKWindowFeatures.h:
53         * UIProcess/API/Cocoa/WKWindowFeatures.mm:
54         (-[WKWindowFeatures _initWithWindowFeatures:WebCore::]):
55
56 2014-03-25  Anders Carlsson  <andersca@apple.com>
57
58         Pass the source frame to the CreateNewPage message
59         https://bugs.webkit.org/show_bug.cgi?id=130752
60
61         Reviewed by Tim Horton.
62
63         * UIProcess/API/APIUIClient.h:
64         (API::UIClient::createNewPage):
65         * UIProcess/API/C/WKPage.cpp:
66         (WKPageSetPageUIClient):
67         * UIProcess/WebPageProxy.cpp:
68         (WebKit::WebPageProxy::createNewPage):
69         * UIProcess/WebPageProxy.h:
70         * UIProcess/WebPageProxy.messages.in:
71         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
72         (WebKit::WebChromeClient::createWindow):
73
74 2014-03-25  Anders Carlsson  <andersca@apple.com>
75
76         Add a WebFrame::fromCoreFrame static member function and use it where possible
77         https://bugs.webkit.org/show_bug.cgi?id=130744
78
79         Reviewed by Tim Horton.
80
81         * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
82         (WebKit::GeolocationPermissionRequestManager::startRequestForGeolocation):
83         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
84         (WebKit::InjectedBundleNodeHandle::documentFrame):
85         (WebKit::InjectedBundleNodeHandle::htmlFrameElementContentFrame):
86         (WebKit::InjectedBundleNodeHandle::htmlIFrameElementContentFrame):
87         * WebProcess/InjectedBundle/InjectedBundle.cpp:
88         (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner):
89         * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
90         (WebKit::InjectedBundleDOMWindowExtension::frame):
91         * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:
92         (WebKit::InjectedBundleHitTestResult::frame):
93         (WebKit::InjectedBundleHitTestResult::targetFrame):
94         * WebProcess/Plugins/PluginView.cpp:
95         (WebKit::webPage):
96         (WebKit::PluginView::performFrameLoadURLRequest):
97         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
98         (WebKit::WebChromeClient::focusedElementChanged):
99         (WebKit::WebChromeClient::focusedFrameChanged):
100         (WebKit::WebChromeClient::runBeforeUnloadConfirmPanel):
101         (WebKit::WebChromeClient::runJavaScriptAlert):
102         (WebKit::WebChromeClient::runJavaScriptConfirm):
103         (WebKit::WebChromeClient::runJavaScriptPrompt):
104         (WebKit::WebChromeClient::print):
105         (WebKit::WebChromeClient::exceededDatabaseQuota):
106         (WebKit::WebChromeClient::runOpenPanel):
107         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
108         (WebKit::WebEditorClient::textFieldDidBeginEditing):
109         (WebKit::WebEditorClient::textFieldDidEndEditing):
110         (WebKit::WebEditorClient::textDidChangeInTextField):
111         (WebKit::WebEditorClient::textDidChangeInTextArea):
112         (WebKit::WebEditorClient::doTextFieldCommandFromEvent):
113         (WebKit::WebEditorClient::textWillBeDeletedInTextField):
114         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
115         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
116         (WebKit::WebFrameLoaderClient::dispatchWillSendSubmitEvent):
117         (WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
118         * WebProcess/WebPage/WebFrame.cpp:
119         (WebKit::WebFrame::fromCoreFrame):
120         (WebKit::WebFrame::contentsAsString):
121         (WebKit::WebFrame::parentFrame):
122         (WebKit::WebFrame::childFrames):
123         (WebKit::WebFrame::frameForContext):
124         (WebKit::WebFrame::webArchiveData):
125         * WebProcess/WebPage/WebFrame.h:
126
127 2014-03-25  Jeffrey Pfau  <jpfau@apple.com>
128
129         [WK2] Schemes registered as cache partitioned are not properly registered in new web processes
130         https://bugs.webkit.org/show_bug.cgi?id=130739
131
132         Reviewed by Anders Carlsson.
133
134         * WebProcess/WebProcess.cpp:
135         (WebKit::WebProcess::initializeWebProcess):
136
137 2014-03-25  Joseph Pecoraro  <pecoraro@apple.com>
138
139         [iOS] Inspector View Indication Support
140         https://bugs.webkit.org/show_bug.cgi?id=130709
141
142         Reviewed by Simon Fraser.
143
144         * UIProcess/ios/WKContentView.h:
145         * UIProcess/ios/WKContentView.mm:
146         (-[WKInspectorIndicationView initWithFrame:]):
147         (-[WKContentView isShowingInspectorIndication]):
148         (-[WKContentView setShowingInspectorIndication:]):
149         (-[WKContentView _didCommitLayerTree:WebKit::]):
150         When indicating include a simple tinted UIView over the content.
151
152         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
153         * UIProcess/API/Cocoa/WKWebView.mm:
154         (-[WKWebView _showInspectorIndication]):
155         (-[WKWebView _hideInspectorIndication]):
156         Have the content view show or hide an indication.
157
158         * UIProcess/PageClient.h:
159         * UIProcess/ios/PageClientImplIOS.h:
160         * UIProcess/ios/PageClientImplIOS.mm:
161         (WebKit::PageClientImpl::showInspectorIndication):
162         (WebKit::PageClientImpl::hideInspectorIndication):
163         * UIProcess/WebPageProxy.h:
164         * UIProcess/WebPageProxy.messages.in:
165         * UIProcess/ios/WebPageProxyIOS.mm:
166         (WebKit::WebPageProxy::showInspectorIndication):
167         (WebKit::WebPageProxy::hideInspectorIndication):
168         Pass WebProcess indication message up to the WKWebView.
169
170         * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
171         (WebKit::WebInspectorClient::indicate):
172         (WebKit::WebInspectorClient::hideIndication):
173         * WebProcess/WebCoreSupport/WebInspectorClient.h:
174         * WebProcess/WebPage/WebPage.h:
175         * WebProcess/WebPage/ios/WebPageIOS.mm:
176         (WebKit::WebPage::indicate):
177         (WebKit::WebPage::hideIndication):
178         Pass WebCore / remote inspector indication message up to UIProcess.
179
180 2014-03-25  Anders Carlsson  <andersca@apple.com>
181
182         Add more properties to WKWindowFeatures
183         https://bugs.webkit.org/show_bug.cgi?id=130738
184
185         Reviewed by Tim Horton.
186
187         * UIProcess/API/Cocoa/WKWindowFeatures.h:
188         * UIProcess/API/Cocoa/WKWindowFeatures.mm:
189         (-[WKWindowFeatures _initWithWindowFeatures:WebCore::]):
190         (-[WKWindowFeatures menuBarVisibility]):
191         (-[WKWindowFeatures statusBarVisibility]):
192         (-[WKWindowFeatures toolbarsVisibility]):
193         (-[WKWindowFeatures allowsResizing]):
194
195 2014-03-25  Anders Carlsson  <andersca@apple.com>
196
197         Fix iOS build.
198
199         * UIProcess/API/Cocoa/WKWebView.h:
200         * UIProcess/API/Cocoa/WKWebView.mm:
201         Make WKIBActions OS X only for now.
202
203 2014-03-25  Anders Carlsson  <andersca@apple.com>
204
205         Begin stubbing out a WKWindowFeatures class
206         https://bugs.webkit.org/show_bug.cgi?id=130733
207
208         Reviewed by Dan Bernstein.
209
210         * UIProcess/API/Cocoa/WKWindowFeatures.h: Added.
211         * UIProcess/API/Cocoa/WKWindowFeatures.mm: Added.
212         (-[WKWindowFeatures _initWithWindowFeatures:WebCore::]):
213         (-[WKWindowFeatures x]):
214         (-[WKWindowFeatures y]):
215         (-[WKWindowFeatures width]):
216         (-[WKWindowFeatures height]):
217         * UIProcess/API/Cocoa/WKWindowFeaturesInternal.h: Added.
218         * WebKit2.xcodeproj/project.pbxproj:
219
220 2014-03-25  Anders Carlsson  <andersca@apple.com>
221
222         Add goBack: and goForward: IBActions and move stopLoading: to a new WKIBActions category on WKWebView
223         https://bugs.webkit.org/show_bug.cgi?id=130732
224
225         Reviewed by Tim Horton.
226
227         * UIProcess/API/Cocoa/WKWebView.h:
228         * UIProcess/API/Cocoa/WKWebView.mm:
229         (-[WKWebView goBack]):
230         (-[WKWebView goForward]):
231         (-[WKWebView validateUserInterfaceItem:]):
232         (-[WKWebView goBack:]):
233         (-[WKWebView goForward:]):
234         (-[WKWebView stopLoading:]):
235
236 2014-03-25  Martin Robinson  <mrobinson@igalia.com>
237
238         [GTK] Remove the autotools build
239         https://bugs.webkit.org/show_bug.cgi?id=130717
240
241         Reviewed by Anders Carlsson.
242
243         * GNUmakefile.am: Removed.
244         * WebKit2Prefix.h: Removed references to the autotools configure file.
245         * config.h: Ditto.
246
247 2014-03-25  Michał Pakuła vel Rutka  <m.pakula@samsung.com>
248
249         [EFL][WK2] Add NETWORK_PROCESS build option
250         https://bugs.webkit.org/show_bug.cgi?id=130131
251
252         Reviewed by Gyuyoung Kim.
253
254         * PlatformEfl.cmake: Add file needed to build with NETWORK_PROCESS enabled.
255
256 2014-03-24 Michał Pakuła vel Rutka  <m.pakula@samsung.com>
257
258         [EFL][WK2] Add an API to set process model
259         https://bugs.webkit.org/show_bug.cgi?id=130133
260
261         Reviewed by Gyuyoung Kim.
262
263         Implement an API to set and get process model in ewk_context.
264         By default process model enum value is set to EWK_PROCESS_MODEL_SHARED_SECONDARY
265         which keeps current behaviour. Setting EWK_PROCESS_MODEL_MULTIPLE_SECONDARY
266         will make each web view use separate web process, also enables network process.
267
268         * UIProcess/API/efl/ewk_context.cpp:
269         (toWKProcessModel):
270         (EwkContext::setProcessModel):
271         (toEwkProcessModel):
272         (EwkContext::processModel):
273         (ewk_context_process_model_set):
274         (ewk_context_process_model_get):
275         * UIProcess/API/efl/ewk_context.h:
276         * UIProcess/API/efl/ewk_context_private.h:
277         * UIProcess/API/efl/tests/test_ewk2_context.cpp:
278         (TEST_F):
279
280 2014-03-24  Chris Fleizach  <cfleizach@apple.com>
281
282         AX: hit-testing doesn't always work correctly with WK2
283         https://bugs.webkit.org/show_bug.cgi?id=130706
284
285         Reviewed by Simon Fraser.
286
287         Accessibility code was trying to do screenToRootView itself, and in 
288         some cases with embedded WK2 views that did not work.
289
290         * WebProcess/WebPage/mac/WKAccessibilityWebPageObjectMac.mm:
291         (-[WKAccessibilityWebPageObject accessibilityHitTest:]):
292
293 2014-03-24  Benjamin Poulain  <bpoulain@apple.com>
294
295         [WK2] SpinLock are not initialized by default, ViewUpdateDispatcher is missing an initializer
296         https://bugs.webkit.org/show_bug.cgi?id=130705
297
298         Reviewed by Simon Fraser.
299
300         * WebProcess/WebPage/ViewUpdateDispatcher.cpp:
301         (WebKit::ViewUpdateDispatcher::ViewUpdateDispatcher):
302
303 2014-03-24  Enrica Casucci  <enrica@apple.com>
304
305         [iOS WebKit2] Dictation support.
306         https://bugs.webkit.org/show_bug.cgi?id=130622
307         <rdar://problem/15337316>
308
309         Reviewed by Benjamin Poulain.
310
311         Adding support for dictation on iOS. There are two main types of interactions
312         with the dictation system:
313         - initial request for context, which consists in retrieving the selected text
314         and 5 words before the selection and 5 words after, if available.
315         - insertion of recognized chunks of text, providing the text
316         to replace.
317     
318         * UIProcess/AutoCorrectionCallback.h:
319         (WebKit::DictationContextCallback::create):
320         (WebKit::DictationContextCallback::~DictationContextCallback):
321         (WebKit::DictationContextCallback::performCallbackWithReturnValue):
322         (WebKit::DictationContextCallback::invalidate):
323         (WebKit::DictationContextCallback::DictationContextCallback):
324         * UIProcess/WebPageProxy.h:
325         * UIProcess/WebPageProxy.messages.in:
326         * UIProcess/ios/WKContentViewInteraction.h:
327         * UIProcess/ios/WKContentViewInteraction.mm:
328         (-[WKContentView replaceDictatedText:withText:]):
329         (-[WKContentView requestDictationContext:]):
330         * UIProcess/ios/WebPageProxyIOS.mm:
331         (WebKit::WebPageProxy::dictationContextCallback):
332         (WebKit::WebPageProxy::replaceDictatedText):
333         (WebKit::WebPageProxy::requestDictationContext):
334         * WebProcess/WebPage/WebPage.h:
335         * WebProcess/WebPage/WebPage.messages.in:
336         * WebProcess/WebPage/ios/WebPageIOS.mm:
337         (WebKit::WebPage::requestDictationContext):
338         (WebKit::WebPage::replaceDictatedText):
339
340 2014-03-24  Andy Estes  <aestes@apple.com>
341
342         Yet another iOS build fix, for the 32-bit build this time.
343
344         * Shared/Downloads/ios/DownloadIOS.mm:
345         (WebKit::setUpDownloadClient):
346
347 2014-03-24  Tim Horton  <timothy_horton@apple.com>
348
349         REGRESSION (r165872): Double-applying device scale to snapshots
350         https://bugs.webkit.org/show_bug.cgi?id=130697
351         <rdar://problem/16396629>
352
353         Reviewed by Simon Fraser.
354
355         * WebProcess/WebPage/WebPage.cpp:
356         (WebKit::WebPage::scaledSnapshotWithOptions):
357         Drive-by, make scaledSnapshotWithOptions respect SnapshotOptionsExcludeDeviceScaleFactor.
358
359         (WebKit::WebPage::snapshotAtSize):
360         Divide the device scale out of the scale factor
361
362         * WebProcess/WebPage/WebPage.h:
363         Rename the scale argument to scaledSnapshotWithOptions to clarify
364         that it is an additional scale on top of the device scale.
365
366 2014-03-24  Brent Fulgham  <bfulgham@apple.com>
367
368         Activate WebVTT Tests Once Merging is Complete
369         https://bugs.webkit.org/show_bug.cgi?id=130420
370
371         Reviewed by Eric Carlson.
372
373         * Configurations/FeatureDefines.xcconfig: Turn on ENABLE(WEBVTT_REGIONS)
374
375 2014-03-24  Andy Estes  <aestes@apple.com>
376
377         Fix the iOS build.
378
379         * Shared/Downloads/ios/DownloadIOS.mm:
380         (WebKit::setUpDownloadClient):
381         * UIProcess/Cocoa/DownloadClient.mm:
382
383 2014-03-24  Mark Rowe  <mrowe@apple.com>
384
385         Build fix after r166186.
386
387         * UIProcess/Cocoa/DownloadClient.mm:
388
389 2014-03-24  Benjamin Poulain  <bpoulain@apple.com>
390
391         [WK2] Make updates on ViewUpdateDispatcher less heavy
392         https://bugs.webkit.org/show_bug.cgi?id=130626
393
394         Reviewed by Darin Adler.
395
396         * WebProcess/WebPage/ViewUpdateDispatcher.cpp:
397         (WebKit::ViewUpdateDispatcher::visibleContentRectUpdate):
398         (WebKit::ViewUpdateDispatcher::dispatchVisibleContentRectUpdate):
399         * WebProcess/WebPage/ViewUpdateDispatcher.h:
400
401 2014-03-24  Benjamin Poulain  <bpoulain@apple.com>
402
403         [iOS][WK2] Micro-optimize view state updates on the UIProcess side
404         https://bugs.webkit.org/show_bug.cgi?id=130631
405
406         Reviewed by Darin Adler.
407
408         * UIProcess/API/Cocoa/WKWebView.mm:
409         (contentZoomScale):
410         [UIScrollView zoomScale] is not fast enough for -[WKWebView _updateVisibleContentRects]. Since we know what the zoom view is,
411         make a fast version hardcoding that.
412
413         (-[WKWebView _updateScrollViewBackground]):
414         (-[WKWebView _zoomToPoint:WebCore::atScale:]):
415         (-[WKWebView _scrollToRect:WebCore::origin:WebCore::minimumScrollDistance:]):
416         (-[WKWebView _zoomToRect:WebCore::withOrigin:WebCore::fitEntireRect:minimumScale:maximumScale:minimumScrollDistance:]):
417         (-[WKWebView _updateVisibleContentRects]):
418         * UIProcess/ios/WKContentView.mm:
419         (fixedPositionRectFromExposedRect):
420         (-[WKContentView didUpdateVisibleRect:unobscuredRect:scale:inStableState:]):
421
422 2014-03-24  Dean Jackson  <dino@apple.com>
423
424         Remove WebGL asset entitlement
425         https://bugs.webkit.org/show_bug.cgi?id=130685
426
427         Reviewed by Simon Fraser.
428
429         No longer necessary on iOS.
430
431         * Configurations/WebContent-iOS.entitlements:
432
433 2014-03-24  Andy Estes  <aestes@apple.com>
434
435         [iOS] Download support by CFURLDownloadRef under USE(CFNETWORK).
436         https://bugs.webkit.org/show_bug.cgi?id=129322
437
438         Reviewed by Anders Carlsson.
439
440         Based on an original patch by Yongjun Zhang  <yongjun_zhang@apple.com>.
441
442         * Shared/Cocoa/APIObject.mm:
443         (API::Object::newObject):
444         * Shared/Downloads/ios/DownloadIOS.mm:
445         (WebKit::dispatchOnMainThread):
446         (WebKit::toDownload):
447         (WebKit::setUpDownloadClient):
448         (WebKit::Download::startWithHandle):
449         * UIProcess/API/APIDownloadClient.h:
450         (API::DownloadClient::~DownloadClient):
451         * UIProcess/API/C/WKContext.cpp:
452         (WKContextSetDownloadClient):
453         * UIProcess/API/Cocoa/WKProcessPool.mm:
454         (-[WKProcessPool _downloadDelegate]):
455         (-[WKProcessPool _setDownloadDelegate:]):
456         * UIProcess/API/Cocoa/WKProcessPoolPrivate.h:
457         * UIProcess/API/Cocoa/_WKDownload.h: Added.
458         * UIProcess/API/Cocoa/_WKDownload.mm: Added.
459         (WebKit::wrapper):
460         (WebKit::createAPIDownloadClient):
461         (-[_WKDownload dealloc]):
462         (-[_WKDownload API::]):
463         * UIProcess/API/Cocoa/_WKDownloadDelegate.h: Added.
464         * UIProcess/API/Cocoa/_WKDownloadInternal.h: Added.
465         * UIProcess/Cocoa/DownloadClient.h: Added.
466         * UIProcess/Cocoa/DownloadClient.mm: Added.
467         * WebKit2.xcodeproj/project.pbxproj:
468
469 2014-03-24  Dániel Bátyai  <dbatyai.u-szeged@partner.samsung.com>
470
471         [EFL][WK2] Buildfix after r166159.
472
473         Reviewed by Csaba Osztrogonác.
474
475         * UIProcess/API/efl/ewk_settings.cpp:
476         (ewk_settings_file_access_from_file_urls_allowed_set):
477         (ewk_settings_file_access_from_file_urls_allowed_get):
478
479 2014-03-24  Jinwoo Song  <jinwoo7.song@samsung.com>
480
481         [EFL][WK2] Use C API inside ewk_settings
482         https://bugs.webkit.org/show_bug.cgi?id=107820
483
484         Reviewed by Gyuyoung Kim.
485
486         Use C API inside ewk_settings instead of accessing directly
487         internal C++ classes, to avoid violating API layering.
488
489         Original-author: Christophe Dumez <ch.dumez@sisa.samsung.com>
490
491         * UIProcess/API/efl/EwkView.cpp:
492         (EwkView::EwkView):
493         * UIProcess/API/efl/ewk_settings.cpp:
494         (ewk_settings_fullscreen_enabled_set):
495         (ewk_settings_fullscreen_enabled_get):
496         (ewk_settings_javascript_enabled_set):
497         (ewk_settings_javascript_enabled_get):
498         (ewk_settings_loads_images_automatically_set):
499         (ewk_settings_loads_images_automatically_get):
500         (ewk_settings_developer_extras_enabled_set):
501         (ewk_settings_developer_extras_enabled_get):
502         (ewk_settings_file_access_from_file_urls_allowed_set):
503         (ewk_settings_file_access_from_file_urls_allowed_get):
504         (ewk_settings_frame_flattening_enabled_set):
505         (ewk_settings_frame_flattening_enabled_get):
506         (ewk_settings_dns_prefetching_enabled_set):
507         (ewk_settings_dns_prefetching_enabled_get):
508         (ewk_settings_encoding_detector_enabled_set):
509         (ewk_settings_encoding_detector_enabled_get):
510         (ewk_settings_preferred_minimum_contents_width_set):
511         (ewk_settings_preferred_minimum_contents_width_get):
512         (ewk_settings_offline_web_application_cache_enabled_set):
513         (ewk_settings_offline_web_application_cache_enabled_get):
514         (ewk_settings_scripts_can_open_windows_set):
515         (ewk_settings_scripts_can_open_windows_get):
516         (ewk_settings_local_storage_enabled_set):
517         (ewk_settings_local_storage_enabled_get):
518         (ewk_settings_plugins_enabled_set):
519         (ewk_settings_plugins_enabled_get):
520         (ewk_settings_default_font_size_set):
521         (ewk_settings_default_font_size_get):
522         (ewk_settings_private_browsing_enabled_set):
523         (ewk_settings_private_browsing_enabled_get):
524         (ewk_settings_text_autosizing_enabled_set):
525         (ewk_settings_text_autosizing_enabled_get):
526         (ewk_settings_spatial_navigation_enabled_set):
527         (ewk_settings_spatial_navigation_enabled_get):
528         (EwkSettings::setDefaultTextEncodingName):
529         * UIProcess/API/efl/ewk_settings_private.h:
530         (EwkSettings::EwkSettings):
531         (EwkSettings::preferences):
532
533 2014-03-24  Zan Dobersek  <zdobersek@igalia.com>
534
535         [GTK][WK2] Guard NetscapePluginModule methods used in PluginInfoCache that are specific to X11 architecture
536         https://bugs.webkit.org/show_bug.cgi?id=130663
537
538         Reviewed by Carlos Garcia Campos.
539
540         The two used methods are specific to the X11 plugin architecture and are not declared when building for a
541         Wayland-only configuration. Guarding them prevents build failures, but does not ensure proper functionality
542         which isn't a problem anyway since there's no support yet for Netscape plugins on Wayland.
543
544         * UIProcess/Plugins/gtk/PluginInfoCache.cpp:
545         (WebKit::PluginInfoCache::getPluginInfo): Guard NetscapePluginModule::parseMIMEDescription with PLUGIN_ARCHITECTURE(X11).
546         (WebKit::PluginInfoCache::updatePluginInfo): Ditto for NetscapePluginModule::buildMIMEDescription.
547
548 2014-03-24  Ryuan Choi  <ryuan.choi@samsung.com>
549
550         [EFL][WK2] Convert some more OwnPtr/PassOwnPtr to std::unique_ptr
551         https://bugs.webkit.org/show_bug.cgi?id=130662
552
553         Reviewed by Gyuyoung Kim.
554
555         Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in remained WebKit2/Efl specific code.
556
557         * UIProcess/API/efl/EwkView.h:
558         * UIProcess/API/efl/ewk_cookie_manager.cpp:
559         * UIProcess/API/efl/ewk_database_manager.cpp:
560         (getDatabaseOriginsCallback):
561         * UIProcess/API/efl/ewk_error_private.h:
562         * UIProcess/efl/DownloadManagerEfl.cpp:
563         (WebKit::DownloadManagerEfl::didFail):
564         * UIProcess/efl/InputMethodContextEfl.h:
565         (WebKit::InputMethodContextEfl::create):
566         * UIProcess/efl/PageLoadClientEfl.cpp:
567         (WebKit::PageLoadClientEfl::didFailLoadWithErrorForFrame):
568         (WebKit::PageLoadClientEfl::didFailProvisionalLoadWithErrorForFrame):
569
570 2014-03-23  Hyowon Kim  <hw1008.kim@samsung.com>
571
572         Move all EFL typedefs into EflTypedefs.h.
573         https://bugs.webkit.org/show_bug.cgi?id=130511
574
575         Reviewed by Gyuyoung Kim.
576
577         * Shared/API/c/efl/WKArrayEfl.h: Remove EFL typedefs.
578         * UIProcess/API/efl/EwkView.h: Ditto.
579
580 2014-03-23  Jinwoo Song  <jinwoo7.song@samsung.com>
581
582         [WK2] Refine WebKit2 BatteryStatus code
583         https://bugs.webkit.org/show_bug.cgi?id=130573
584
585         Reviewed by Anders Carlsson.
586
587         Refinements
588          - Return PassRef instead of PassRefPtr in create methods
589          - Use auto instead of iterator
590
591         * UIProcess/WebBatteryManagerProxy.cpp:
592         (WebKit::WebBatteryManagerProxy::create):
593         * UIProcess/WebBatteryManagerProxy.h:
594         * UIProcess/efl/BatteryProvider.cpp:
595         (BatteryProvider::create):
596         * UIProcess/efl/BatteryProvider.h:
597         * WebProcess/Battery/WebBatteryManager.cpp:
598         (WebKit::WebBatteryManager::didChangeBatteryStatus):
599         (WebKit::WebBatteryManager::updateBatteryStatus):
600
601 2014-03-23  Sam Weinig  <sam@webkit.org>
602
603         Simplify the HTMLConverter interface (Part 2)
604         https://bugs.webkit.org/show_bug.cgi?id=130654
605
606         Reviewed by Darin Adler.
607
608         * WebProcess/WebPage/WebPage.h:
609         * WebProcess/WebPage/ios/WebPageIOS.mm:
610         (WebKit::WebPage::performDictionaryLookupForRange):
611         * WebProcess/WebPage/mac/WebPageMac.mm:
612         (WebKit::WebPage::getAttributedSubstringFromRange):
613         (WebKit::WebPage::attributedSubstringForCharacterRangeAsync):
614         (WebKit::WebPage::performDictionaryLookupAtLocation):
615         (WebKit::WebPage::performDictionaryLookupForSelection):
616         (WebKit::WebPage::performDictionaryLookupForRange):
617
618 2014-03-23  David Kilzer  <ddkilzer@apple.com>
619
620         WebKit::resistanceForDelta() truncates 'scaleDistance' to integer value using abs()
621         <http://webkit.org/b/130651>
622
623         Reviewed by Darin Adler.
624
625         Fixes the following build failure with trunk clang:
626
627             WebKit2/UIProcess/mac/ViewGestureControllerMac.mm:112:28: error: using integer absolute value function 'abs' when argument is of floating point type [-Werror,-Wabsolute-value]
628                 double scaleDistance = abs(limit - currentScale);
629                                        ^
630             WebKit2/UIProcess/mac/ViewGestureControllerMac.mm:112:28: note: use function 'fabs' instead
631                 double scaleDistance = abs(limit - currentScale);
632                                        ^~~
633                                        fabs
634
635         * UIProcess/mac/ViewGestureControllerMac.mm:
636         (WebKit::resistanceForDelta): Use fabs() instead of abs().
637
638 2014-03-23  Simon Fraser  <simon.fraser@apple.com>
639
640         Clean up #includes by geometry classes
641         https://bugs.webkit.org/show_bug.cgi?id=130645
642
643         Reviewed by Andreas Kling.
644
645         Pulling in <wtf/Vector.h> and <wtf/PrintStream.h> in the simple geometry
646         classes brings in a lot of additional headers. Fix by adding a new
647         GeometryUtilities file so that the basic files don't need Vector,
648         and including GeometryUtilities.h where necessary.
649         
650         Also forward declare PrintStream.h and only bring in the header
651         in implementation files.
652
653         * Shared/UpdateInfo.h:
654         * UIProcess/BackingStore.h:
655         * UIProcess/CoordinatedGraphics/PageViewportController.h:
656         * UIProcess/FindIndicator.cpp:
657         * UIProcess/mac/WKPrintingView.h:
658
659 2014-03-23  Simon Fraser  <simon.fraser@apple.com>
660
661         Clean up #includes by geometry classes
662         https://bugs.webkit.org/show_bug.cgi?id=130645
663
664         Reviewed by Andreas Kling.
665
666         Pulling in <wtf/Vector.h> and <wtf/PrintStream.h> in the simple geometry
667         classes brings in a lot of additional headers. Fix by adding a new
668         GeometryUtilities file so that the basic files don't need Vector,
669         and including GeometryUtilities.h where necessary.
670         
671         Also forward declare PrintStream.h and only bring in the header
672         in implementation files.
673
674         * UIProcess/BackingStore.h:
675         * UIProcess/FindIndicator.cpp:
676         * UIProcess/mac/WKPrintingView.h:
677
678 2014-03-22  Alexey Proskuryakov  <ap@apple.com>
679
680         Assertions in WebPage::rangeFromEditingRange when requested range location is NSNotFound
681         https://bugs.webkit.org/show_bug.cgi?id=130633
682         <rdar://problem/16397583>
683
684         Reviewed by Darin Adler.
685
686         * UIProcess/API/mac/WKView.mm:
687         (-[WKView firstRectForCharacterRange:completionHandler:]):
688         (-[WKView firstRectForCharacterRange:actualRange:]):
689         Return NSZeroRect, like NSTextView does for any locations that are out of bounds.
690         There is no need for a round trip to WebProcess in this case.
691
692 2014-03-21  Benjamin Poulain  <bpoulain@apple.com>
693
694         [iOS][WK2] Reduce the tiling coverage to the current rect and 1 tile size ahead
695         https://bugs.webkit.org/show_bug.cgi?id=130555
696
697         Reviewed by Simon Fraser.
698
699         * Shared/VisibleContentRectUpdateInfo.cpp:
700         (WebKit::VisibleContentRectUpdateInfo::encode):
701         (WebKit::VisibleContentRectUpdateInfo::decode):
702         * Shared/VisibleContentRectUpdateInfo.h:
703         (WebKit::VisibleContentRectUpdateInfo::VisibleContentRectUpdateInfo):
704         (WebKit::operator==):
705         * UIProcess/ios/WKContentView.mm:
706         (WebKit::HistoricalKinematicData::HistoricalKinematicData):
707         (WebKit::HistoricalKinematicData::velocityForNewData):
708         (WebKit::HistoricalKinematicData::clear):
709         (WebKit::HistoricalKinematicData::append):
710         (-[WKContentView didUpdateVisibleRect:unobscuredRect:scale:inStableState:]):
711         * WebProcess/WebPage/ViewUpdateDispatcher.cpp:
712         (WebKit::ViewUpdateDispatcher::visibleContentRectUpdate):
713         * WebProcess/WebPage/ios/WebPageIOS.mm:
714         (WebKit::WebPage::updateVisibleContentRects):
715
716 2014-03-21  Alexey Proskuryakov  <ap@apple.com>
717
718         REGRESSION (r165356): Predictive Chinese input is broken
719         https://bugs.webkit.org/show_bug.cgi?id=130619
720
721         Reviewed by Enrica Casucci.
722
723         * UIProcess/mac/WebPageProxyMac.mm: (WebKit::WebPageProxy::executeKeypressCommands):
724         Like after insertText, we are no longer in an intermediate state after executeKeypressCommands.
725         Make sure that we don't call -discardMarkedText the next time we get a non-intermediate
726         state with closed composition.
727
728 2014-03-21  Sam Weinig  <sam@webkit.org>
729
730         [WebKit2] Implement NetworkingContext::sourceApplicationAuditData() for WebKit2
731         https://bugs.webkit.org/show_bug.cgi?id=130528
732
733         Reviewed by Tim Horton.
734
735         * Platform/IPC/Connection.h:
736         * Platform/IPC/mac/ConnectionMac.cpp:
737         (IPC::Connection::getAuditToken):
738         Expose the audit data if available. 
739
740         * NetworkProcess/mac/RemoteNetworkingContext.mm:
741         (WebKit::RemoteNetworkingContext::sourceApplicationAuditData):
742         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
743         (WebKit::WebFrameNetworkingContext::sourceApplicationAuditData):
744         Pass the audit data corresponding to the UIProcess.
745
746         * Configurations/Network-iOS.entitlements: Copied from Configurations/WebContent-iOS.entitlements.
747         * Configurations/NetworkProcess.xcconfig:
748         * Configurations/NetworkService.Development.xcconfig:
749         * Configurations/NetworkService.xcconfig:
750         * Configurations/WebContent-iOS.entitlements:
751         Add entitlement allowing the audit data to be used.
752
753 2014-03-21  Tim Horton  <timothy_horton@apple.com>
754
755         Always retrieve the screen scale factor from WKSI
756         <rdar://problem/16329679>
757
758         Reviewed by Sam Weinig.
759
760         * UIProcess/ios/WKContentView.mm:
761         (-[WKContentView initWithFrame:context:WebKit::configuration:WebKit::webView:]):
762         (-[WKContentView _updateForScreen:]):
763         Use WKGetScreenScaleFactor/WKGetScaleFactorForScreen.
764
765 2014-03-21  Yongjun Zhang  <yongjun_zhang@apple.com>
766
767         [Webkit2] Add APIDownloadClient for download support.
768         https://bugs.webkit.org/show_bug.cgi?id=130484
769
770         Add API::DownloadClient to WebContext and get rid of WebDownloadClient.
771
772         Reviewed by Anders Carlsson.
773
774         * UIProcess/API/APIDownloadClient.h: Added.
775         (API::DownloadClient::~DownloadClient):
776         (API::DownloadClient::didStart):
777         (API::DownloadClient::didReceiveAuthenticationChallenge):
778         (API::DownloadClient::didReceiveResponse):
779         (API::DownloadClient::didReceiveData):
780         (API::DownloadClient::shouldDecodeSourceDataOfMIMEType):
781         (API::DownloadClient::decideDestinationWithSuggestedFilename):
782         (API::DownloadClient::didCreateDestination):
783         (API::DownloadClient::didFinish):
784         (API::DownloadClient::didFail):
785         (API::DownloadClient::didCancel):
786         (API::DownloadClient::processDidCrash):
787         * UIProcess/API/C/WKContext.cpp:
788         (WKContextSetDownloadClient): Move the original WebDownloadClient methods to a local class
789             DownloadClient and set up the downloadClient for WebContext.
790         * UIProcess/Downloads/DownloadProxy.cpp:
791         * UIProcess/WebContext.cpp:
792         (WebKit::WebContext::setDownloadClient):
793         * UIProcess/WebContext.h:
794         (WebKit::WebContext::downloadClient):
795         * UIProcess/WebDownloadClient.cpp: Removed.
796         * UIProcess/WebDownloadClient.h: Removed.
797         * WebKit2.xcodeproj/project.pbxproj:
798
799 2014-03-21  Alexey Proskuryakov  <ap@apple.com>
800
801         ASSERTION FAILED: event == [NSApp currentEvent] hitting Command-+
802         https://bugs.webkit.org/show_bug.cgi?id=130526
803         <rdar://problem/16371612> 
804
805         This was fixed yesterday for sync code path, landing the same this for async one.
806
807         * UIProcess/API/mac/WKView.mm: (-[WKView performKeyEquivalent:]):
808
809 2014-03-21  Pratik Solanki  <psolanki@apple.com>
810
811         Add callbacks in WebKit2 Cocoa API for page load testing
812         https://bugs.webkit.org/show_bug.cgi?id=130569
813
814         Reviewed by Anders Carlsson.
815
816         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInLoadDelegate.h:
817         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
818         (didFirstVisuallyNonEmptyLayoutForFrame):
819         (didHandleOnloadEventsForFrame):
820         (setUpPageLoaderClient):
821         (willSendRequestForFrame):
822         (didInitiateLoadForResource):
823         (didFinishLoadForResource):
824         (didFailLoadForResource):
825         (setUpResourceLoadClient):
826
827 2014-03-21  Ryuan Choi  <ryuan.choi@samsung.com>
828
829         [EFL][WK2] Remove Ewk_Error parameter from some async callbacks
830         https://bugs.webkit.org/show_bug.cgi?id=130567
831
832         Reviewed by Gyuyoung Kim.
833
834         WebKit2 internally uses GenericCallbacks for several APIs such as WKKeyValueStorageManagerGetKeyValueStorageOrigins.
835         But only few callbacks really return errors.
836
837         This patch removes Ewk_Error parameters from these callbacks not to make
838         the confusion for application developers.
839
840         * UIProcess/API/efl/ewk_cookie_manager.cpp:
841         (getAcceptPolicyCallback):
842         (getHostnamesWithCookiesCallback):
843         * UIProcess/API/efl/ewk_cookie_manager.h:
844         * UIProcess/API/efl/ewk_database_manager.cpp:
845         (getDatabaseOriginsCallback):
846         * UIProcess/API/efl/ewk_database_manager.h:
847         * UIProcess/API/efl/ewk_storage_manager.cpp:
848         (getStorageOriginsCallback):
849         * UIProcess/API/efl/ewk_storage_manager.h:
850         * UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp:
851         (EWK2CookieManagerTest::getAcceptPolicyCallback):
852         (EWK2CookieManagerTest::getHostnamesWithCookiesCallback):
853         * UIProcess/API/efl/tests/test_ewk2_database_manager.cpp:
854         (EWK2DatabaseManagerTest::databaseOriginsCallback):
855         * UIProcess/API/efl/tests/test_ewk2_storage_manager.cpp:
856         (EWK2StorageManagerTest::getStorageOriginsCallback):
857
858 2014-03-21  Darin Adler  <darin@apple.com>
859
860         Improve idiom used for string building in a few places
861         https://bugs.webkit.org/show_bug.cgi?id=130561
862
863         Reviewed by Andreas Kling.
864
865         * Shared/mac/ChildProcessMac.mm:
866         (WebKit::ChildProcess::initializeSandbox): Use a more efficient idiom for string
867         concatenation.
868
869         * UIProcess/WebInspectorProxy.cpp:
870         (WebKit::WebInspectorProxy::createInspectorPage): Use a StringBuilder.
871
872 2014-03-20  Hyowon Kim  <hw1008.kim@samsung.com>
873
874         Move to using std::unique_ptr for EFL objects.
875         https://bugs.webkit.org/show_bug.cgi?id=129853
876
877         Reviewed by Gyuyoung Kim.
878
879         EflUniquePtr is a template alias of std::unique_ptr
880         with a custom deleter for each Efl Objects, which is motivated by GUniquePtr.
881         This patch replaces uses of OwnPtr and PassOwnPtr for Efl objects with EflUniquePtr.
882
883         * Platform/Module.h:
884         * Platform/efl/ModuleEfl.cpp:
885         (WebKit::Module::load):
886         * UIProcess/API/efl/EwkView.cpp:
887         (EwkView::EwkView):
888         * UIProcess/API/efl/EwkView.h:
889         * UIProcess/efl/InputMethodContextEfl.cpp:
890         (WebKit::InputMethodContextEfl::InputMethodContextEfl):
891         (WebKit::InputMethodContextEfl::createIMFContext):
892         * UIProcess/efl/InputMethodContextEfl.h:
893         (WebKit::InputMethodContextEfl::create):
894
895 2014-03-20  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
896
897         [EFL][GTK] Get CMake to find Freetype2 properly
898         https://bugs.webkit.org/show_bug.cgi?id=130150
899
900         Reviewed by Martin Robinson.
901
902         Newer versions of CMake are not able to find Freetype2 correctly.
903         FindFreetype2.cmake checks for the version number in freetype.h header, since it seems that bug exists in
904         freetype2 repo, because a completely different version number is found in freetype2.pc.
905
906         * PlatformEfl.cmake:
907
908 2014-03-20  Martin Robinson  <mrobinson@igalia.com>
909
910         [GTK] Suppress errors about using gdk_threads_enter gdk_threads_leave
911         https://bugs.webkit.org/show_bug.cgi?id=130517
912
913         Reviewed by Sergio Villar Senin.
914
915         * UIProcess/API/gtk/WebKitWebView.cpp: Use GCC suppression to suppress errors about deprecations.
916         * UIProcess/gtk/WebPopupMenuProxyGtk.cpp: Ditto.
917
918 2014-03-20  Ryuan Choi  <ryuan.choi@samsung.com>
919
920         [EFL][WK2] tests of test_ewk2_cookie_manager are flaky
921         https://bugs.webkit.org/show_bug.cgi?id=130498
922
923         Reviewed by Gyuyoung Kim.
924
925         Loaded web page before calling getAcceptPolicy() to guarantee that webprocess
926         or networkprocess was launched and registered WebCookieManager.
927
928         * UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp:
929         (TEST_F):
930
931 2014-03-20  Commit Queue  <commit-queue@webkit.org>
932
933         Unreviewed, rolling out r165985.
934         https://bugs.webkit.org/show_bug.cgi?id=130551
935
936         broke page loading on all cocoa platforms (Requested by
937         thorton on #webkit).
938
939         Reverted changeset:
940
941         "[WebKit2] Implement
942         NetworkingContext::sourceApplicationAuditData() for WebKit2"
943         https://bugs.webkit.org/show_bug.cgi?id=130528
944         http://trac.webkit.org/changeset/165985
945
946 2014-03-20  Alexey Proskuryakov  <ap@apple.com>
947
948         Fix a long-standing typo that's now breaking USE(ASYNC_NSTEXTINPUTCLIENT) build.
949
950         Rubber-stamped by Tim Horton.
951
952         * UIProcess/mac/WebPageProxyMac.mm: (WebKit::WebPageProxy::cancelComposition):
953         Use a correct type for reply (it's really the same type, but ConfirmComposition
954         is behind an ifdef, and not available).
955
956 2014-03-20  Enrica Casucci  <enrica@apple.com>
957
958         [iOS WebKit2] typing and deleting text lags behind the caret movement on google.com.
959         https://bugs.webkit.org/show_bug.cgi?id=130544
960         <rdar://problem/16380296>
961
962         Reviewed by Tim Horton.
963
964         On iOS the selection is drawn in the UIProcess. If the WebProcess is
965         processing multiple requests within the same runloop, the caret could be
966         updated in the UIProcess before the WebProcess has had a chance to paint.
967         This change synchronizes the selection drawing with the tile update.
968
969         * UIProcess/WebPageProxy.h:
970         * UIProcess/ios/WKContentView.mm:
971         (-[WKContentView _didCommitLayerTree:WebKit::]):
972         * UIProcess/ios/WKContentViewInteraction.h:
973         * UIProcess/ios/WKContentViewInteraction.mm:
974         (-[WKContentView _selectionChanged]):
975         (-[WKContentView _updateChangedSelection]):
976         * WebProcess/WebPage/WebPage.cpp:
977         (WebKit::WebPage::didChangeSelection):
978
979 2014-03-20  Alexey Proskuryakov  <ap@apple.com>
980
981         Generalize WebInspector check in maybeInitializeSandboxExtensionHandle().
982         https://bugs.webkit.org/show_bug.cgi?id=130079
983         <rdar://problem/16286683>
984
985         Reviewed by Anders Carlsson.
986
987         * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle):
988         Perform an early return for all paths that don't need a sandbox extension due to
989         access being assumed, not only for WebInspector pages.
990
991         * UIProcess/WebProcessProxy.cpp:
992         (WebKit::WebProcessProxy::hasAssumedReadAccessToURL):
993         (WebKit::WebProcessProxy::checkURLReceivedFromWebProcess):
994         * UIProcess/WebProcessProxy.h:
995         Factored out m_localPathsWithAssumedReadAccess iteration to a public function.
996
997 2014-03-20  Csaba Osztrogonác  <ossy@webkit.org>
998
999         Unreviewed buildfix after r165983 for non Cocoa platforms.
1000
1001         * UIProcess/API/C/WKAPICast.h:
1002         * UIProcess/API/C/WKPreferences.cpp:
1003         * UIProcess/efl/WebInspectorProxyEfl.cpp:
1004
1005 2014-03-20  Beth Dakin  <bdakin@apple.com>
1006
1007         Implement contentInset for Mac WebKit2
1008         https://bugs.webkit.org/show_bug.cgi?id=130273
1009
1010         Reviewed by Simon Fraser.
1011
1012         This patch adds WKView API for setting a topContentInset(). All of this work gets 
1013         that number plumbed down to WebCore.
1014
1015         * Shared/WebPageCreationParameters.cpp:
1016         (WebKit::WebPageCreationParameters::encode):
1017         (WebKit::WebPageCreationParameters::decode):
1018         * Shared/WebPageCreationParameters.h:
1019         * UIProcess/API/Cocoa/WKViewPrivate.h:
1020         * UIProcess/API/Cocoa/WKWebView.mm:
1021         (-[WKWebView _setTopContentInset:]):
1022         (-[WKWebView _topContentInset]):
1023         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
1024         * UIProcess/API/mac/WKView.mm:
1025         (-[WKView _setTopContentInset:]):
1026         (-[WKView _topContentInset]):
1027         * UIProcess/WebPageProxy.cpp:
1028         (WebKit::WebPageProxy::WebPageProxy):
1029         (WebKit::WebPageProxy::setTopContentInset):
1030         (WebKit::WebPageProxy::creationParameters):
1031         * UIProcess/WebPageProxy.h:
1032         (WebKit::WebPageProxy::topContentInset):
1033         * WebProcess/WebPage/WebPage.cpp:
1034         (WebKit::WebPage::WebPage):
1035         (WebKit::WebPage::setTopContentInset):
1036         * WebProcess/WebPage/WebPage.h:
1037         * WebProcess/WebPage/WebPage.messages.in:
1038
1039 2014-03-20  Anders Carlsson  <andersca@apple.com>
1040
1041         Fix 32-bit build.
1042
1043         * UIProcess/API/Cocoa/WKProcessPoolConfiguration.mm:
1044
1045 2014-03-20  Anders Carlsson  <andersca@apple.com>
1046
1047         Make WKProcessPoolConfiguration SPI
1048         https://bugs.webkit.org/show_bug.cgi?id=130537
1049
1050         Reviewed by Tim Horton.
1051
1052         * UIProcess/API/Cocoa/WKProcessPool.h:
1053         * UIProcess/API/Cocoa/WKProcessPool.mm:
1054         (-[WKProcessPool init]):
1055         (-[WKProcessPool dealloc]):
1056         (-[WKProcessPool description]):
1057         (-[WKProcessPool _configuration]):
1058         (-[WKProcessPool API::]):
1059         (-[WKProcessPool _initWithConfiguration:]):
1060         * UIProcess/API/Cocoa/WKProcessPoolConfiguration.h:
1061         * UIProcess/API/Cocoa/WKProcessPoolConfiguration.mm:
1062         (-[WKProcessPoolConfiguration _injectedBundleURL]):
1063         (-[WKProcessPoolConfiguration _setInjectedBundleURL:]):
1064         * UIProcess/API/Cocoa/WKProcessPoolConfigurationPrivate.h:
1065         * UIProcess/API/Cocoa/WKProcessPoolInternal.h:
1066         * UIProcess/API/Cocoa/WKProcessPoolPrivate.h:
1067         * UIProcess/API/Cocoa/WKProcessPoolToBeRemoved.mm: Copied from Source/WebKit2/UIProcess/API/Cocoa/WKProcessPoolPrivate.h.
1068         (-[WKProcessPool initWithConfiguration:]):
1069         (-[WKProcessPool configuration]):
1070         * UIProcess/API/Cocoa/_WKProcessPoolConfiguration.h: Copied from Source/WebKit2/UIProcess/API/Cocoa/WKProcessPoolConfigurationPrivate.h.
1071         * UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm: Copied from Source/WebKit2/UIProcess/API/Cocoa/WKProcessPoolConfiguration.mm.
1072         (-[_WKProcessPoolConfiguration injectedBundleURL]):
1073         (-[_WKProcessPoolConfiguration setInjectedBundleURL:]):
1074         (-[_WKProcessPoolConfiguration description]):
1075         (-[_WKProcessPoolConfiguration copyWithZone:]):
1076         * WebKit2.xcodeproj/project.pbxproj:
1077
1078 2014-03-20  Tim Horton  <timothy_horton@apple.com>
1079
1080         Add WebCore::IOSurface wrapper
1081         https://bugs.webkit.org/show_bug.cgi?id=130529
1082
1083         Reviewed by Simon Fraser.
1084
1085         * Shared/mac/RemoteLayerBackingStore.h:
1086         * Shared/mac/RemoteLayerBackingStore.mm:
1087         (RemoteLayerBackingStore::encode):
1088         (RemoteLayerBackingStore::decode):
1089         (RemoteLayerBackingStore::display):
1090         (RemoteLayerBackingStore::applyBackingStoreToLayer):
1091         * UIProcess/ios/ViewGestureControllerIOS.mm:
1092         (WebKit::ViewGestureController::beginSwipeGesture):
1093         (WebKit::ViewGestureController::removeSwipeSnapshot):
1094         * UIProcess/mac/ViewGestureController.h:
1095         * UIProcess/mac/ViewGestureControllerMac.mm:
1096         (WebKit::ViewGestureController::beginSwipeGesture):
1097         (WebKit::ViewGestureController::removeSwipeSnapshot):
1098         * UIProcess/mac/ViewSnapshotStore.h:
1099         * UIProcess/mac/ViewSnapshotStore.mm:
1100         (WebKit::createIOSurfaceFromImage):
1101         (WebKit::ViewSnapshotStore::recordSnapshot):
1102         Adopt WebCore::IOSurface.
1103
1104 2014-03-20  Alexey Proskuryakov  <ap@apple.com>
1105
1106         Update iOS input method code to use new cross-platform async functions
1107         https://bugs.webkit.org/show_bug.cgi?id=130530
1108
1109         Reviewed by Enrica Casucci.
1110
1111         Merge identical iOS and cross-platform functions.
1112
1113         Also tightened up ifdefs, and removed stub iOS implementations of sync methods,
1114         which hopefully won't be ever needed. The only tricky case is sync cancelComposition,
1115         will I'll investigate separately.
1116
1117         * UIProcess/WebPageProxy.h:
1118         * UIProcess/ios/WKContentViewInteraction.mm:
1119         (-[WKContentView setMarkedText:selectedRange:]):
1120         (-[WKContentView unmarkText]):
1121         (-[WKContentView insertText:]):
1122         * UIProcess/ios/WebPageProxyIOS.mm:
1123         (WebKit::WebPageProxy::cancelComposition):
1124         * UIProcess/mac/WebPageProxyMac.mm:
1125         (WebKit::WebPageProxy::cancelComposition):
1126         (WebKit::WebPageProxy::insertDictatedTextAsync):
1127         (WebKit::WebPageProxy::attributedSubstringForCharacterRangeAsync):
1128         (WebKit::WebPageProxy::attributedStringForCharacterRangeCallback):
1129         * WebProcess/WebPage/WebPage.h:
1130         * WebProcess/WebPage/WebPage.messages.in:
1131         * WebProcess/WebPage/ios/WebPageIOS.mm:
1132         * WebProcess/WebPage/mac/WebPageMac.mm:
1133         (WebKit::WebPage::cancelComposition):
1134         (WebKit::WebPage::insertDictatedTextAsync):
1135         (WebKit::WebPage::attributedSubstringForCharacterRangeAsync):
1136
1137 2014-03-20  Alexey Proskuryakov  <ap@apple.com>
1138
1139         ASSERTION FAILED: event == [NSApp currentEvent] hitting Command-+
1140         https://bugs.webkit.org/show_bug.cgi?id=130526
1141         <rdar://problem/16371612>
1142
1143         Reviewed by Anders Carlsson.
1144
1145         * UIProcess/API/mac/WKView.mm: (-[WKView performKeyEquivalent:]): Cut custom
1146         processing short whenever we are redispatching an event, not just when the event
1147         we are handling is the one being redispatched. There shouldn't be any other unrelated
1148         events here, just the one being redispatched and synthetic ones generated from it by AppKit.
1149
1150 2014-03-20  Anders Carlsson  <andersca@apple.com>
1151
1152         Fix build.
1153
1154         Rename WKPreferencesPrivate.h to WKPreferencesRefPrivate.h.
1155
1156         * UIProcess/API/C/WKPreferencesRefPrivate.h: Renamed from Source/WebKit2/UIProcess/API/C/WKPreferencesPrivate.h.
1157         * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
1158         * WebKit2.xcodeproj/project.pbxproj:
1159
1160 2014-03-20  Gavin Barraclough  <barraclough@apple.com>
1161
1162         Merge AtomicString, Identifier
1163         https://bugs.webkit.org/show_bug.cgi?id=128624
1164
1165         Unreviewed build fix following r165982.
1166
1167         * WebProcess/Plugins/Netscape/NPJSObject.cpp:
1168             - update includes.
1169
1170 2014-03-20  Sam Weinig  <sam@webkit.org>
1171
1172         [WebKit2] Implement NetworkingContext::sourceApplicationAuditData() for WebKit2
1173         https://bugs.webkit.org/show_bug.cgi?id=130528
1174
1175         Reviewed by Anders Carlsson.
1176
1177         * Platform/IPC/Connection.h:
1178         * Platform/IPC/mac/ConnectionMac.cpp:
1179         (IPC::Connection::getAuditToken):
1180         Expose the audit data if available. 
1181
1182         * NetworkProcess/mac/RemoteNetworkingContext.mm:
1183         (WebKit::RemoteNetworkingContext::sourceApplicationAuditData):
1184         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
1185         (WebKit::WebFrameNetworkingContext::sourceApplicationAuditData):
1186         Pass the audit data corresponding to the UIProcess.
1187
1188 2014-03-20  Sam Weinig  <sam@webkit.org>
1189
1190         [Cocoa] Expose preference to enable telephone number detection
1191         https://bugs.webkit.org/show_bug.cgi?id=130524
1192
1193         Reviewed by Anders Carlsson.
1194
1195         * UIProcess/API/Cocoa/WKPreferences.mm:
1196         (-[WKPreferences _telephoneNumberDetectionIsEnabled]):
1197         (-[WKPreferences _setTelephoneNumberDetectionIsEnabled:]):
1198         * UIProcess/API/Cocoa/WKPreferencesInternal.h:
1199         * UIProcess/API/Cocoa/WKPreferencesPrivate.h: Added.
1200         * WebKit2.xcodeproj/project.pbxproj:
1201
1202 2014-03-19  Alexey Proskuryakov  <ap@apple.com>
1203
1204         [Mac] Support asynchronous NSTextInputClient
1205         https://bugs.webkit.org/show_bug.cgi?id=130479
1206
1207         Reviewed by Anders Carlsson.
1208
1209         The implementation is currently disabled, pending lower level support.
1210         Most of the code is not under compile time guard however, to facilitate cross-platform
1211         reuse, or at least under a PLATFORM(COCOA) guard to share the code with iOS.
1212
1213         * UIProcess/API/mac/WKView.mm: Added a compile time branch for USE(ASYNC_NSTEXTINPUTCLIENT).
1214         We still implement sync NSTextInputClient here, in order to get assertions when
1215         its methods are unexpectedly called.
1216         The new code first sends an event to input method asynchronously, handling any callbacks
1217         that may arrive. During this time, we no longer care about WKViewInterpretKeyEventsParameters
1218         at all. Once done, we interpret key bindings synchronously, collecting them into
1219         a vector.
1220
1221         * UIProcess/API/mac/WKViewInternal.h: We no longer expose _interpretKeyEvent outside
1222         WKView.
1223
1224         * UIProcess/WebPageProxy.cpp:
1225         * UIProcess/WebPageProxy.h:
1226         Added async calls and callbacks. Removed unnecessary and slightly harmful .get() when moving
1227         a callback pointer into map. Moved insertDictatedText() and getAttributedSubstringFromRange()
1228         from PLATFORM(COCOA) to PLATFORM(MAC), because they are unused and unimplemented on
1229         iOS, and unlikely to be needed any time soon. Changed USE(APPKIT) to PLATFORM(MAC),
1230         because that's more accurate in this case (nothing depends on AppKit, it's just code
1231         that we only need on Mac).
1232
1233         * UIProcess/WebPageProxy.messages.in: Added messages for new async IM responses.
1234
1235         * UIProcess/ios/WebPageProxyIOS.mm: Removed insertDictatedText() and getAttributedSubstringFromRange().
1236
1237         * UIProcess/mac/WebPageProxyMac.mm:
1238         (WebKit::WebPageProxy::insertDictatedTextAsync):
1239         (WebKit::WebPageProxy::attributedSubstringForCharacterRangeAsync):
1240         (WebKit::WebPageProxy::attributedStringForCharacterRangeCallback):
1241         Added async calls and callbacks that are Mac only.
1242
1243         * WebProcess/WebPage/WebPage.cpp:
1244         * WebProcess/WebPage/WebPage.h:
1245         * WebProcess/WebPage/mac/WebPageMac.mm:
1246         Added async implementations (which are essentially the same as sync ones, sadly).
1247
1248         * WebProcess/WebPage/WebPage.messages.in: Added async messages, moved some messages
1249         under PLATFORM(MAC).
1250
1251         * WebProcess/WebPage/ios/WebPageIOS.mm: More of deleting functions that are Mac only,
1252         and cannot be easily implemented in WebPage.cpp with shared code.
1253
1254 2014-03-20  Martin Robinson  <mrobinson@igalia.com>
1255
1256         Remove remaining GTK+ unused parameter warnings from WebKit2
1257         https://bugs.webkit.org/show_bug.cgi?id=130518
1258
1259         Reviewed by Sergio Villar Senin.
1260
1261         Fix almost all unused parameter warnings in the WebKit2GTK+ build.
1262
1263 2014-03-20  Commit Queue  <commit-queue@webkit.org>
1264
1265         Unreviewed, rolling out r165962.
1266         https://bugs.webkit.org/show_bug.cgi?id=130512
1267
1268         It broke the build (Requested by Ossy on #webkit).
1269
1270         Reverted changeset:
1271
1272         "[EFL][GTK] Get CMake to find Freetype2 properly"
1273         https://bugs.webkit.org/show_bug.cgi?id=130150
1274         http://trac.webkit.org/changeset/165962
1275
1276 2014-03-20  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
1277
1278         [EFL][GTK] Get CMake to find Freetype2 properly
1279         https://bugs.webkit.org/show_bug.cgi?id=130150
1280
1281         Reviewed by Csaba Osztrogonác.
1282
1283         Newer versions of CMake are not able to find Freetype2 correctly.
1284         FindFreetype2.cmake checks for the version number in freetype.h header, since it seems that bug exists in
1285         freetype2 repo, because a completely different version number is found in freetype2.pc.
1286
1287         * PlatformEfl.cmake:
1288
1289 2014-03-20  Ryuan Choi  <ryuan.choi@samsung.com>
1290
1291         [EFL][WK2] test_ewk2_application_cache_manager is flaky
1292         https://bugs.webkit.org/show_bug.cgi?id=130501
1293
1294         Reviewed by Gyuyoung Kim.
1295
1296         * UIProcess/API/efl/tests/test_ewk2_application_cache_manager.cpp:
1297         (timerCallback): Return ECORE_CALLBACK_CANCEL to clear the timer.
1298
1299 2014-03-19  Tim Horton  <timothy_horton@apple.com>
1300
1301         Address late review comment and style nit after r165934.
1302
1303         * UIProcess/ios/ViewGestureControllerIOS.mm:
1304         (WebKit::ViewGestureController::beginSwipeGesture):
1305
1306 2014-03-19  Tim Horton  <timothy_horton@apple.com>
1307
1308         [iOS][WebKit2] Back-forward swipe doesn't always complete with fingers down
1309         https://bugs.webkit.org/show_bug.cgi?id=130489
1310         <rdar://problem/16027007>
1311
1312         Reviewed by Simon Fraser.
1313
1314         * UIProcess/ios/ViewGestureControllerIOS.mm:
1315         (WebKit::ViewGestureController::beginSwipeGesture):
1316         In order to have fingers-down swipe completion work correctly, we need
1317         to give UIKit an empty interactive update block.
1318
1319 2014-03-19  Anders Carlsson  <andersca@apple.com>
1320
1321         Get rid of two IPC::Connection functions by folding them into lambdas
1322         https://bugs.webkit.org/show_bug.cgi?id=130482
1323
1324         Reviewed by Tim Horton.
1325
1326         * Platform/IPC/Connection.cpp:
1327         (IPC::Connection::addWorkQueueMessageReceiver):
1328         (IPC::Connection::removeWorkQueueMessageReceiver):
1329         * Platform/IPC/Connection.h:
1330
1331 2014-03-19  Simon Fraser  <simon.fraser@apple.com>
1332
1333         Expose text and page zoom in WK2 SPI, and hook them up in MiniBrowser
1334         https://bugs.webkit.org/show_bug.cgi?id=130476
1335
1336         Reviewed by Anders Carlsson.
1337         
1338         Expose page and text zoom as SPI.
1339
1340         * UIProcess/API/Cocoa/WKWebView.mm:
1341         (-[WKWebView _supportsTextZoom]):
1342         (-[WKWebView _textZoomFactor]):
1343         (-[WKWebView _setTextZoomFactor:]):
1344         (-[WKWebView _pageZoomFactor]):
1345         (-[WKWebView _setPageZoomFactor:]):
1346         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
1347
1348 2014-03-19  Benjamin Poulain  <bpoulain@apple.com>
1349
1350         [iOS][WK2] Reduce the extended background's opacity when WKContentView is smaller than its WKWebView
1351         https://bugs.webkit.org/show_bug.cgi?id=130436
1352
1353         Reviewed by Beth Dakin.
1354
1355         * UIProcess/API/Cocoa/WKWebView.mm:
1356         (-[WKWebView _updateScrollViewBackground]):
1357
1358 2014-03-19  Benjamin Poulain  <bpoulain@apple.com>
1359
1360         [iOS][WebKit2] <rdar://problem/16330387> Do not use the keyboard rect for computing the general unobscuredRect, only use it for centering
1361         https://bugs.webkit.org/show_bug.cgi?id=130382
1362
1363         Reviewed by Simon Fraser.
1364
1365         Always accumulating the keyboard rect out of the exposedRect caused some issues (see <rdar://problem/16330387>).
1366         This patch split the rect in two: unobscured rect for WebCore, and unobscuredContentRectIncludingKeyboard for centering
1367         UI Elements in view.
1368
1369         * UIProcess/API/Cocoa/WKWebView.mm:
1370         (-[WKWebView _zoomToRect:WebCore::atScale:origin:WebCore::]):
1371         (-[WKWebView _scrollToRect:WebCore::origin:WebCore::minimumScrollDistance:]):
1372         (-[WKWebView _zoomToRect:WebCore::withOrigin:WebCore::fitEntireRect:minimumScale:maximumScale:minimumScrollDistance:]):
1373         (-[WKWebView _contentRectForUserInteraction]):
1374         (-[WKWebView _updateVisibleContentRects]):
1375
1376 2014-03-19  Anders Carlsson  <andersca@apple.com>
1377
1378         Get rid of WKProcessClass
1379         https://bugs.webkit.org/show_bug.cgi?id=130478
1380
1381         Reviewed by Dan Bernstein.
1382
1383         * UIProcess/API/Cocoa/WKProcessClass.h: Removed.
1384         * UIProcess/API/Cocoa/WKProcessClass.mm: Removed.
1385         * UIProcess/API/Cocoa/WKProcessClassConfiguration.h: Removed.
1386         * UIProcess/API/Cocoa/WKProcessClassConfiguration.mm: Removed.
1387         * UIProcess/API/Cocoa/WKProcessClassConfigurationPrivate.h: Removed.
1388         * UIProcess/API/Cocoa/WKProcessClassPrivate.h: Removed.
1389         * UIProcess/API/Cocoa/WKWebViewConfigurationToBeRemoved.mm: Removed.
1390         * WebKit2.xcodeproj/project.pbxproj:
1391
1392 2014-03-19  Jer Noble  <jer.noble@apple.com>
1393
1394         [Mac][EME] Query whether decoder support exists before creating a new MediaKeys object.
1395         https://bugs.webkit.org/show_bug.cgi?id=130459
1396
1397         Reviewed by Eric Carlson.
1398
1399         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
1400         (InitWebCoreSystemInterface): Initialize the new WCSI method.
1401
1402 2014-03-19  Brady Eidson  <beidson@apple.com>
1403
1404         Filter out editable services from image menu for non-contenteditable images
1405         <rdar://problem/16319645> and https://bugs.webkit.org/show_bug.cgi?id=130437
1406
1407         Reviewed by Tim Horton.
1408
1409         * UIProcess/mac/WebContextMenuProxyMac.h:
1410         * UIProcess/mac/WebContextMenuProxyMac.mm:
1411         (-[WKSharingServicePickerDelegate setIncludeEditorServices:]):
1412         (-[WKSharingServicePickerDelegate sharingServicePicker:sharingServicesForItems:mask:proposedSharingServices:]):
1413           Filter out editing services based on the includeEditorServices flag.
1414         (WebKit::WebContextMenuProxyMac::setupImageServicesMenu):
1415         (WebKit::WebContextMenuProxyMac::populate):
1416
1417 2014-03-19  Yongjun Zhang  <yongjun_zhang@apple.com>
1418
1419         [iOS] WebKit2 Quicklook.
1420         https://bugs.webkit.org/show_bug.cgi?id=130360
1421
1422         For WebKit2 resource loads, if we detect a quicklook content that QLConverter is able to
1423         convert, handle the response data to QLConverter and use its delegate WKWebResourceQuickLookDelegate
1424         to rounte the converted results (HTML) back into WebCore.  Thie similiar logic has been in place
1425         for WebKit1.
1426
1427         Reviewed by Tim Horton.
1428
1429         * WebKit2.xcodeproj/project.pbxproj: Add WebResourceLoaderIOS.mm to the project.
1430         * WebProcess/Network/WebResourceLoadScheduler.cpp:
1431         * WebProcess/ios/WebResourceLoaderIOS.mm: Added.
1432         (-[WKWebResourceQuickLookDelegate initWithWebResourceLoader:WebKit::]): WKWebResourceQuickLookDelegate holds
1433             the original WebResourceLoader so that we could send converted result to WebCore.
1434         (-[WKWebResourceQuickLookDelegate connection:didReceiveDataArray:]):
1435         (-[WKWebResourceQuickLookDelegate connection:didReceiveData:lengthReceived:]):
1436         (-[WKWebResourceQuickLookDelegate connectionDidFinishLoading:]):
1437         (-[WKWebResourceQuickLookDelegate connection:didFailWithError:]):
1438         (-[WKWebResourceQuickLookDelegate clearHandle]):
1439         (WebKit::WebResourceLoader::setUpQuickLookHandleIfNeeded):
1440
1441 2014-03-19  Tim Horton  <timothy_horton@apple.com>
1442
1443         WebKit2 View Gestures: Swipe gesture can track vertical movement instead of horizontal movement
1444         https://bugs.webkit.org/show_bug.cgi?id=130441
1445         <rdar://problem/16337279>
1446
1447         Reviewed by Simon Fraser.
1448
1449         * UIProcess/mac/ViewGestureControllerMac.mm:
1450         (WebKit::scrollEventCanBecomeSwipe):
1451         Factor logic that determines if a scroll event can become a swipe
1452         out into scrollEventCanBecomeSwipe.
1453         Use <= instead of < when comparing the axes, because we don't want
1454         to start a swipe on a completely diagonal scroll either (because AppKit
1455         can start tracking a vertical swipe in that case).
1456
1457         (WebKit::ViewGestureController::handleScrollWheelEvent):
1458         (WebKit::ViewGestureController::wheelEventWasNotHandledByWebCore):
1459         Make use of scrollEventCanBecomeSwipe.
1460
1461 2014-03-18  Anders Carlsson  <andersca@apple.com>
1462
1463         Add new functionality that will be required by the history item decoding
1464         https://bugs.webkit.org/show_bug.cgi?id=130433
1465
1466         Reviewed by Sam Weinig.
1467
1468         * Shared/cf/KeyedDecoder.cpp:
1469         (WebKit::KeyedDecoder::decodeUInt32):
1470         (WebKit::KeyedDecoder::decodeInt32):
1471         (WebKit::KeyedDecoder::decodeFloat):
1472         * Shared/cf/KeyedDecoder.h:
1473
1474 2014-03-19  Tim Horton  <timothy_horton@apple.com>
1475
1476         [iOS] WebPDFViewPlaceholder divides-by-zero with an empty document
1477         https://bugs.webkit.org/show_bug.cgi?id=130444
1478         <rdar://problem/15580682>
1479
1480         Reviewed by Sam Weinig.
1481
1482         * UIProcess/ios/WKPDFView.mm:
1483         (-[WKPDFView web_setContentProviderData:]):
1484         Don't make UIPDFPageViews for null pages.
1485
1486 2014-03-18  Tim Horton  <timothy_horton@apple.com>
1487
1488         [iOS][WebKit2] Provide generic software-snapshotting API
1489         https://bugs.webkit.org/show_bug.cgi?id=130385
1490         <rdar://problem/16005957>
1491
1492         Reviewed by Sam Weinig.
1493
1494         * UIProcess/API/Cocoa/WKWebView.mm:
1495         (-[WKWebView _didCommitLayerTree:WebKit::]):
1496         (-[WKWebView _snapshotRect:intoImageOfWidth:completionHandler:]):
1497         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
1498         * UIProcess/API/Cocoa/_WKThumbnailView.mm:
1499         (-[_WKThumbnailView initWithFrame:fromWKView:]):
1500         (-[_WKThumbnailView _requestSnapshotIfNeeded]):
1501         * UIProcess/WebPageProxy.cpp:
1502         (WebKit::WebPageProxy::internalShowContextMenu):
1503         * UIProcess/WebPageProxy.h:
1504         * WebProcess/WebPage/WebPage.cpp:
1505         (WebKit::WebPage::takeSnapshot):
1506         (WebKit::WebPage::scaledSnapshotWithOptions):
1507         (WebKit::WebPage::snapshotAtSize):
1508         * WebProcess/WebPage/WebPage.h:
1509         * WebProcess/WebPage/WebPage.messages.in:
1510         Rename TakeThumbnailSnapshot message to TakeSnapshot.
1511
1512         Fill the snapshot image with the FrameView's background color, to avoid
1513         half-pixel alpha around the edges.
1514
1515         Factor snapshotAtSize out of scaledSnapshotWithOptions.
1516
1517         Don't apply both the custom and device scale factor to the base CTM,
1518         only the device scale factor. Custom scale factor should only be
1519         applied to the user CTM.
1520
1521         * Shared/ImageOptions.h:
1522         Add a snapshot option, RespectDrawingAreaTransform, that maps
1523         the rect through the drawing area's root layer transform.
1524         Use this in place of the thumbnail-specific code in TakeThumbnailSnapshot.
1525         Add a snapshot option, ExcludeDeviceScaleFactor, which means that
1526         snapshotting will not factor the device scale in (useful for drawing
1527         to a bitmap at an exact requested size).
1528
1529 2014-03-18  Samuel White  <samuel_white@apple.com>
1530
1531         AX: Not able to use arrow keys to read text with VoiceOver before selection is set someplace (anyplace).
1532         https://bugs.webkit.org/show_bug.cgi?id=130250
1533
1534         Reviewed by Chris Fleizach.
1535
1536         Added ability to toggle enhanced accessibility on and off to support tests that require it.
1537
1538         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
1539         (WKAccessibilityEnableEnhancedAccessibility):
1540         (WKAccessibilityEnhancedAccessibilityEnabled):
1541         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
1542
1543 2014-03-18  Ryuan Choi  <ryuan.choi@samsung.com>
1544
1545         [EFL][WK2] Rename async APIs for better consistency with EFL
1546         https://bugs.webkit.org/show_bug.cgi?id=130319
1547
1548         Reviewed by Gyuyoung Kim.
1549
1550         There are inconsistency with async keyword in several ewebkit2 APIs.
1551         This patch rename them to {module/feature}_async_{verb} for better consistency with EFL.
1552         In addition, added Async keyword into their callback name.
1553
1554         * UIProcess/API/efl/ewk_application_cache_manager.cpp:
1555         (EwkApplicationCacheOriginsAsyncData::EwkApplicationCacheOriginsAsyncData):
1556         (getApplicationCacheOriginsCallback):
1557         (ewk_application_cache_manager_origins_async_get):
1558         * UIProcess/API/efl/ewk_application_cache_manager.h:
1559         * UIProcess/API/efl/ewk_cookie_manager.cpp:
1560         (EwkCookiePolicyAsyncData::EwkCookiePolicyAsyncData):
1561         (getAcceptPolicyCallback):
1562         (ewk_cookie_manager_accept_policy_async_get):
1563         (EwkCookieHostnamesAsyncData::EwkCookieHostnamesAsyncData):
1564         (getHostnamesWithCookiesCallback):
1565         (ewk_cookie_manager_hostnames_with_cookies_async_get):
1566         * UIProcess/API/efl/ewk_cookie_manager.h:
1567         * UIProcess/API/efl/ewk_database_manager.cpp:
1568         (EwkDatabaseOriginsAsyncData::EwkDatabaseOriginsAsyncData):
1569         (getDatabaseOriginsCallback):
1570         (ewk_database_manager_origins_async_get):
1571         * UIProcess/API/efl/ewk_database_manager.h:
1572         * UIProcess/API/efl/ewk_storage_manager.cpp:
1573         (EwkStorageOriginsAsyncData::EwkStorageOriginsAsyncData):
1574         (getStorageOriginsCallback):
1575         (ewk_storage_manager_origins_async_get):
1576         * UIProcess/API/efl/ewk_storage_manager.h:
1577         * UIProcess/API/efl/tests/test_ewk2_application_cache_manager.cpp:
1578         (timerCallback):
1579         * UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp:
1580         (EWK2CookieManagerTest::getAcceptPolicy):
1581         (EWK2CookieManagerTest::getHostnamesWithCookies):
1582         * UIProcess/API/efl/tests/test_ewk2_database_manager.cpp:
1583         (EWK2DatabaseManagerTest::timerCallback):
1584         (TEST_F):
1585         * UIProcess/API/efl/tests/test_ewk2_storage_manager.cpp:
1586         (EWK2StorageManagerTest::timerCallback):
1587         (TEST_F):
1588
1589 2014-03-18  Tim Horton  <timothy_horton@apple.com>
1590
1591         [iOS][WebKit2] Mark layer contents as being opaque if they are
1592         https://bugs.webkit.org/show_bug.cgi?id=130427
1593         <rdar://problem/15540434>
1594
1595         Reviewed by Simon Fraser.
1596
1597         * Shared/mac/RemoteLayerBackingStore.h:
1598         (WebKit::RemoteLayerBackingStore::isOpaque):
1599         * Shared/mac/RemoteLayerBackingStore.mm:
1600         (RemoteLayerBackingStore::RemoteLayerBackingStore):
1601         (RemoteLayerBackingStore::ensureBackingStore):
1602         (RemoteLayerBackingStore::encode):
1603         (RemoteLayerBackingStore::decode):
1604         (RemoteLayerBackingStore::display):
1605         (RemoteLayerBackingStore::applyBackingStoreToLayer):
1606         Move the code to set a RemoteLayerBackingStore as a CALayer's contents
1607         from RemoteLayerTreePropertyApplier to RemoteLayerBackingStore (mostly
1608         as a way to keep the USE(IOSURFACE) #ifs in one place).
1609         Remove the surface() getter, because it's no longer needed, and make
1610         image() private as it can be now (and rename it to createImageForFrontBuffer
1611         for clarity's sake).
1612
1613         Add an isOpaque argument to ensureBackingStore, encode/decode it, and
1614         add a getter. If isOpaque is true when applying backing store to the
1615         CALayer on the UI process side, set CALayer.contentsOpaque to let CA know.
1616
1617         Make opaque bitmaps if not using accelerated drawing. For the IOSurface
1618         case, we can't make opaque IOSurfaces, but telling CA that we have filled
1619         the whole bitmap still enables similar optimizations.
1620
1621         * Shared/mac/RemoteLayerTreePropertyApplier.mm:
1622         (WebKit::applyPropertiesToLayer):
1623         Reset contentsOpaque if the layer loses its backing store.
1624
1625         * Shared/mac/RemoteLayerTreeTransaction.mm:
1626         (WebKit::RemoteLayerTreeTextStream::operator<<):
1627         (WebKit::dumpChangedLayers):
1628         Add a bit more logging about RemoteLayerBackingStore's opaqueness
1629         and acceleratedness.
1630
1631         * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
1632         (PlatformCALayerRemote::updateBackingStore):
1633         (PlatformCALayerRemote::setOpaque):
1634         Invalidate the RemoteLayerBackingStore if layer opaqueness changes.
1635
1636 2014-03-18  Brady Eidson  <beidson@apple.com>
1637
1638         Make image controls menu work in WK2
1639         <rdar://problem/16294412> and https://bugs.webkit.org/show_bug.cgi?id=130424
1640
1641         Reviewed by Tim Horton.
1642
1643         * Platform/SharedMemory.h:
1644         * Platform/mac/SharedMemoryMac.cpp:
1645         (WebKit::SharedMemory::Handle::~Handle):
1646         (WebKit::SharedMemory::Handle::clear):
1647
1648         * Platform/unix/SharedMemoryUnix.cpp:
1649         (WebKit::SharedMemory::Handle::~Handle):
1650         (WebKit::SharedMemory::Handle::clear):
1651
1652         * Shared/ContextMenuContextData.cpp:
1653         (WebKit::ContextMenuContextData::ContextMenuContextData):
1654         (WebKit::ContextMenuContextData::operator=):
1655         (WebKit::ContextMenuContextData::encode):
1656         (WebKit::ContextMenuContextData::decode):
1657         * Shared/ContextMenuContextData.h:
1658         (WebKit::ContextMenuContextData::controlledImageHandle):
1659
1660         * Shared/ShareableBitmap.cpp:
1661         (WebKit::ShareableBitmap::Handle::clear):
1662         * Shared/ShareableBitmap.h:
1663         * UIProcess/WebContextMenuProxy.h:
1664
1665         * UIProcess/WebPageProxy.cpp:
1666         (WebKit::WebPageProxy::internalShowContextMenu):
1667         (WebKit::WebPageProxy::replaceControlledImage):
1668         * UIProcess/WebPageProxy.h:
1669
1670         * UIProcess/efl/WebContextMenuProxyEfl.cpp:
1671         (WebKit::WebContextMenuProxyEfl::showContextMenu):
1672         * UIProcess/efl/WebContextMenuProxyEfl.h:
1673
1674         * UIProcess/gtk/WebContextMenuProxyGtk.cpp:
1675         (WebKit::WebContextMenuProxyGtk::showContextMenu):
1676         * UIProcess/gtk/WebContextMenuProxyGtk.h:
1677
1678         Add a sharing service context menu that lives side-by-side with the normal one:
1679         * UIProcess/mac/WebContextMenuProxyMac.h:
1680         * UIProcess/mac/WebContextMenuProxyMac.mm:
1681         (+[WKSharingServicePickerDelegate sharedSharingServicePickerDelegate]):
1682         (-[WKSharingServicePickerDelegate setMenuProxy:WebKit::]):
1683         (-[WKSharingServicePickerDelegate setPicker:]):
1684         (-[WKSharingServicePickerDelegate sharingServicePicker:delegateForSharingService:]):
1685         (-[WKSharingServicePickerDelegate sharingService:willShareItems:]):
1686         (-[WKSharingServicePickerDelegate sharingService:didShareItems:]):
1687         (-[WKSharingServicePickerDelegate sharingService:sourceFrameOnScreenForShareItem:]):
1688         (-[WKSharingServicePickerDelegate sharingService:transitionImageForShareItem:contentRect:]):
1689         (-[WKSharingServicePickerDelegate sharingService:sourceWindowForShareItems:sharingContentScope:]):
1690         (WebKit::WebContextMenuProxyMac::contextMenuItemSelected):
1691         (WebKit::WebContextMenuProxyMac::setupImageServicesMenu):
1692         (WebKit::WebContextMenuProxyMac::clearImageServicesMenu):
1693         (WebKit::WebContextMenuProxyMac::populate):
1694         (WebKit::WebContextMenuProxyMac::showContextMenu):
1695         (WebKit::WebContextMenuProxyMac::window):
1696         (WebKit::WebContextMenuProxyMac::replaceControlledImage):
1697
1698         * WebProcess/WebPage/WebContextMenu.cpp:
1699         (WebKit::WebContextMenu::show):
1700         (WebKit::WebContextMenu::replaceControlledImage):
1701         * WebProcess/WebPage/WebContextMenu.h:
1702
1703         Teach the WebProcess how to accept the replaced image.
1704         * WebProcess/WebPage/WebPage.cpp:
1705         (WebKit::WebPage::replaceControlledImage):
1706         * WebProcess/WebPage/WebPage.h:
1707         * WebProcess/WebPage/WebPage.messages.in:
1708
1709 2014-03-18  Anders Carlsson  <andersca@apple.com>
1710
1711         Begin cleaning up KeyedDecoder and KeyedEncoder
1712         https://bugs.webkit.org/show_bug.cgi?id=130431
1713
1714         Reviewed by Tim Horton.
1715
1716         * Shared/cf/KeyedDecoder.cpp:
1717         (WebKit::KeyedDecoder::KeyedDecoder):
1718         If we can't parse the property list data, just add an empty dictionary to the stack.
1719
1720         (WebKit::KeyedDecoder::decodeBool):
1721         Remove unneeded m_dictionaryStack.last() null check. m_dictionaryStack would either be empty
1722         or at least have a root element; it would never have a null element.
1723         
1724         (WebKit::KeyedDecoder::decodeDouble):
1725         Remove the same check as above and remove the CFNumberGetType checks since CFNumberGetValue will
1726         do the type conversion for us and return false if it's lossy.
1727
1728         (WebKit::KeyedDecoder::decodeInt64):
1729         Remove the m_dictionaryStack.last() check.
1730
1731         (WebKit::KeyedDecoder::decodeUInt32):
1732         Ditto.
1733
1734         (WebKit::KeyedDecoder::decodeString):
1735         Ditto.
1736
1737         (WebKit::KeyedDecoder::beginObject):
1738         Ditto.
1739
1740         (WebKit::KeyedDecoder::beginArray):
1741         Ditto.
1742
1743         (WebKit::KeyedDecoder::beginArrayElement):
1744         Ditto.
1745
1746         * Shared/cf/KeyedDecoder.h:
1747         Sort functions to be in the same logical order as the base class.
1748
1749         * Shared/cf/KeyedEncoder.cpp:
1750         (WebKit::KeyedEncoder::finishEncoding):
1751         Don't check for a non-null CFErrorRef here (which we incidentally never released on error). Instead,
1752         just null check the returned CFDataRef object.
1753
1754 2014-03-18  Joseph Pecoraro  <pecoraro@apple.com>
1755
1756         Unreviewed typo build fix for r165846.
1757
1758         * Shared/WebPageCreationParameters.cpp:
1759         (WebKit::WebPageCreationParameters::decode):
1760
1761 2014-03-18  Joseph Pecoraro  <pecoraro@apple.com>
1762
1763         WebKit2 SPI to disable remote inspection on a WKWebView / WKPage
1764         https://bugs.webkit.org/show_bug.cgi?id=130371
1765
1766         Reviewed by Dan Bernstein.
1767
1768         * Shared/WebPageCreationParameters.h:
1769         * Shared/WebPageCreationParameters.cpp:
1770         (WebKit::WebPageCreationParameters::encode):
1771         (WebKit::WebPageCreationParameters::decode):
1772         Add allowsRemoteInspection bool.
1773
1774         * UIProcess/API/C/WKPagePrivate.h:
1775         * UIProcess/API/C/WKPage.cpp:
1776         (WKPageGetAllowsRemoteInspection):
1777         (WKPageSetAllowsRemoteInspection):
1778         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
1779         * UIProcess/API/Cocoa/WKWebView.mm:
1780         (-[WKWebView _allowsRemoteInspection]):
1781         (-[WKWebView _setAllowsRemoteInspection:]):
1782         Getter and setter for allowing remote inspection state.
1783
1784         * UIProcess/WebPageProxy.h:
1785         (WebKit::WebPageProxy::allowsRemoteInspection):
1786         * UIProcess/WebPageProxy.cpp:
1787         (WebKit::WebPageProxy::WebPageProxy):
1788         (WebKit::WebPageProxy::setAllowsRemoteInspection):
1789         (WebKit::WebPageProxy::creationParameters):
1790         Cached allows remote inspection state, with getter and setter.
1791
1792         * WebProcess/WebPage/WebPage.h:
1793         * WebProcess/WebPage/WebPage.messages.in:
1794         * WebProcess/WebPage/WebPage.cpp:
1795         (WebKit::WebPage::setAllowsRemoteInspection):
1796         When setting, call into WebCore to adjust the Page's setting.
1797
1798 2014-03-18  Anders Carlsson  <andersca@apple.com>
1799
1800         REGRESSION: Visited link coloring seems to be completely broken in tip of tree
1801         https://bugs.webkit.org/show_bug.cgi?id=130419
1802         <rdar://problem/16337850>
1803
1804         Reviewed by Dan Bernstein.
1805
1806         Make sure to send any queued up messages before calling connectionWillOpen so we'll ensure
1807         FIFO ordering if any messages are sent from within connectionWillOpen.
1808
1809         * Shared/ChildProcessProxy.cpp:
1810         (WebKit::ChildProcessProxy::didFinishLaunching):
1811
1812 2014-03-18  Joseph Pecoraro  <pecoraro@apple.com>
1813
1814         WebPageCreationParameters colorSpace should be MAC not COCOA
1815         https://bugs.webkit.org/show_bug.cgi?id=130414
1816
1817         Reviewed by Dan Bernstein.
1818
1819         The colorSpace param was only set and used on Mac, not iOS.
1820
1821         * Shared/WebPageCreationParameters.h:
1822         * Shared/WebPageCreationParameters.cpp:
1823         (WebKit::WebPageCreationParameters::encode):
1824         (WebKit::WebPageCreationParameters::decode):
1825
1826 2014-03-18  Simon Fraser  <simon.fraser@apple.com>
1827
1828         Dan says that options should be unsigned, and enums should be signed.
1829         
1830         Reviewed by Dan Bernstein.
1831
1832         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
1833         (NS_ENUM):
1834
1835 2014-03-17  Alexey Proskuryakov  <ap@apple.com>
1836
1837         [WK2] Pass ranges over IPC in a cross-platform manner
1838         https://bugs.webkit.org/show_bug.cgi?id=130376
1839
1840         Reviewed by Anders Carlsson.
1841
1842         Added an EditingRange class for IPC, which automatically converts to and from
1843         NSRanges, knowing the difference between notFound and NSNotFound.
1844
1845         Manually applied the same fix to characterIndexForPoint.
1846
1847         * Scripts/webkit2/messages.py:
1848         (struct_or_class):
1849         * Shared/EditingRange.h: Added.
1850         (WebKit::EditingRange::EditingRange):
1851         (WebKit::EditingRange::isValid):
1852         (WebKit::EditingRange::operator NSRange):
1853         * UIProcess/API/mac/WKView.mm:
1854         (-[WKView insertText:replacementRange:]):
1855         (-[WKView selectedRange]):
1856         (-[WKView hasMarkedText]):
1857         (-[WKView setMarkedText:selectedRange:replacementRange:]):
1858         (-[WKView markedRange]):
1859         (-[WKView attributedSubstringForProposedRange:actualRange:]):
1860         (-[WKView characterIndexForPoint:]):
1861         (-[WKView firstRectForCharacterRange:actualRange:]):
1862         * UIProcess/WebPageProxy.h:
1863         * UIProcess/ios/WKContentViewInteraction.mm:
1864         (-[WKContentView setMarkedText:selectedRange:]):
1865         (-[WKContentView insertText:]):
1866         * UIProcess/ios/WebPageProxyIOS.mm:
1867         (WebKit::WebPageProxy::setComposition):
1868         (WebKit::WebPageProxy::insertText):
1869         (WebKit::WebPageProxy::insertDictatedText):
1870         (WebKit::WebPageProxy::getMarkedRange):
1871         (WebKit::WebPageProxy::getSelectedRange):
1872         (WebKit::WebPageProxy::getAttributedSubstringFromRange):
1873         (WebKit::WebPageProxy::firstRectForCharacterRange):
1874         * UIProcess/mac/WebPageProxyMac.mm:
1875         (WebKit::WebPageProxy::setComposition):
1876         (WebKit::WebPageProxy::insertText):
1877         (WebKit::WebPageProxy::insertDictatedText):
1878         (WebKit::WebPageProxy::getMarkedRange):
1879         (WebKit::WebPageProxy::getSelectedRange):
1880         (WebKit::WebPageProxy::getAttributedSubstringFromRange):
1881         (WebKit::WebPageProxy::firstRectForCharacterRange):
1882         * WebKit2.xcodeproj/project.pbxproj:
1883         * WebProcess/WebPage/WebPage.cpp:
1884         (WebKit::WebPage::rangeFromEditingRange):
1885         * WebProcess/WebPage/WebPage.h:
1886         * WebProcess/WebPage/WebPage.messages.in:
1887         * WebProcess/WebPage/ios/WebPageIOS.mm:
1888         (WebKit::WebPage::setComposition):
1889         (WebKit::WebPage::insertText):
1890         (WebKit::WebPage::insertDictatedText):
1891         (WebKit::WebPage::getMarkedRange):
1892         (WebKit::WebPage::getSelectedRange):
1893         (WebKit::WebPage::getAttributedSubstringFromRange):
1894         (WebKit::WebPage::firstRectForCharacterRange):
1895         * WebProcess/WebPage/mac/WebPageMac.mm:
1896         (WebKit::WebPage::setComposition):
1897         (WebKit::WebPage::insertText):
1898         (WebKit::WebPage::insertDictatedText):
1899         (WebKit::WebPage::getMarkedRange):
1900         (WebKit::WebPage::getSelectedRange):
1901         (WebKit::WebPage::getAttributedSubstringFromRange):
1902         (WebKit::WebPage::characterIndexForPoint):
1903         (WebKit::WebPage::firstRectForCharacterRange):
1904
1905 2014-03-17  Filip Pizlo  <fpizlo@apple.com>
1906
1907         More FTL enabling.
1908
1909         Rubber stamped by Dan Bernstein.
1910
1911         * Configurations/FeatureDefines.xcconfig:
1912
1913 2014-03-17  Simon Fraser  <simon.fraser@apple.com>
1914
1915         Renable pagination mode in WK2 MiniBrowser
1916         https://bugs.webkit.org/show_bug.cgi?id=130374
1917
1918         Reviewed by Anders Carlsson.
1919         
1920         Add SPI for pagination mode.
1921
1922         * UIProcess/API/Cocoa/WKWebView.mm:
1923         (-[WKWebView _paginationMode]):
1924         (-[WKWebView _setPaginationMode:]):
1925         (-[WKWebView _paginationBehavesLikeColumns]):
1926         (-[WKWebView _setPaginationBehavesLikeColumns:]):
1927         (-[WKWebView _pageLength]):
1928         (-[WKWebView _setPageLength:]):
1929         (-[WKWebView _gapBetweenPages]):
1930         (-[WKWebView _setGapBetweenPages:]):
1931         (-[WKWebView _pageCount]):
1932         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
1933         (NS_ENUM):
1934
1935 2014-03-18  Ryuan Choi  <ryuan.choi@samsung.com>
1936
1937         [CMAKE][WK2]Move CoordinatedGraphics related files out of WebKit2/CMakeLists.txt
1938         https://bugs.webkit.org/show_bug.cgi?id=130390
1939
1940         Reviewed by Martin Robinson.
1941
1942         Now, only EFL port use CoordinatedGraphics among CMake based ports.
1943
1944         * CMakeLists.txt:
1945         * PlatformEfl.cmake:
1946         * PlatformGTK.cmake: Removed CoordinatedGraphics related files.
1947
1948 2014-03-18  Carlos Garcia Campos  <cgarcia@igalia.com>
1949
1950         [GTK] Race condition when the socket event source is cancelled
1951         https://bugs.webkit.org/show_bug.cgi?id=130395
1952
1953         Reviewed by Martin Robinson.
1954
1955         In some cases when the socket event source is cancelled the socket
1956         event source callback is called with the condition of the previous
1957         poll instead of 0. This can happen sometimes when the source is
1958         cancelled from the socket event source callback. Once the socket
1959         event source is cancelled, it's dispatched by glib without
1960         polling, so the condition is never reset again and the callback is
1961         called again and again with the previous condition. When the
1962         condition is G_IO_IN, the source is re-scheduled entering into an
1963         infinite loop. We should always check if the source has been
1964         cancelled at the beginning of the callback to destroy the source
1965         instead of relying on the condition being 0.
1966
1967         * Platform/gtk/WorkQueueGtk.cpp:
1968         (WorkQueue::SocketEventSource::isCancelled):
1969         (WorkQueue::SocketEventSource::eventCallback):
1970
1971 2014-03-18  Csaba Osztrogonác  <ossy@webkit.org>
1972
1973         [GTK] URTFB after r165789. Stub function added.
1974
1975         * WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp:
1976         (WebKit::InjectedBundle::setBundleParameter):
1977
1978 2014-03-17  Jaehun Lim  <ljaehun.lim@samsung.com>
1979
1980         Unreviewed, EFL build fix after r165789
1981
1982         * WebProcess/InjectedBundle/efl/InjectedBundleEfl.cpp:
1983         (WebKit::InjectedBundle::setBundleParameter): Implemented.
1984
1985 2014-03-17  Jae Hyun Park  <jaepark@webkit.org>
1986
1987         [GTK] Build fix for debug build
1988
1989         Unreviewed.
1990
1991         finalizedListItem was actually used in ASSERT.  So, use ASSERT_UNUSED
1992         instead of ASSERT.
1993
1994         * UIProcess/API/gtk/WebKitBackForwardListItem.cpp:
1995         (webkitBackForwardListItemFinalized):
1996
1997 2014-03-17  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
1998
1999         [WK2] Getting rid of compilation warnings
2000         https://bugs.webkit.org/show_bug.cgi?id=130348
2001
2002         Reviewed by Benjamin Poulain.
2003
2004         * UIProcess/API/APIHistoryClient.h:
2005         (API::HistoryClient::didPerformClientRedirect):
2006         (API::HistoryClient::didPerformServerRedirect):
2007         (API::HistoryClient::didUpdateHistoryTitle):
2008         * UIProcess/API/APILoaderClient.h:
2009         (API::LoaderClient::didStartProvisionalLoadForFrame):
2010         (API::LoaderClient::didReceiveServerRedirectForProvisionalLoadForFrame):
2011         (API::LoaderClient::didFailProvisionalLoadWithErrorForFrame):
2012         (API::LoaderClient::didCommitLoadForFrame):
2013         (API::LoaderClient::didFinishLoadForFrame):
2014         (API::LoaderClient::didFailLoadWithErrorForFrame):
2015         (API::LoaderClient::didChangeBackForwardList):
2016         * UIProcess/API/APIPolicyClient.h:
2017         (API::PolicyClient::decidePolicyForNavigationAction):
2018         (API::PolicyClient::decidePolicyForNewWindowAction):
2019         (API::PolicyClient::decidePolicyForResponse):
2020         (API::PolicyClient::unableToImplementPolicy):
2021         * UIProcess/API/APIUIClient.h:
2022         (API::UIClient::exceededDatabaseQuota):
2023         (API::UIClient::saveDataToFileInDownloadsFolder):
2024         * UIProcess/API/C/WKPage.cpp:
2025         (WKPageSetPageLoaderClient):
2026         * UIProcess/APISession.cpp:
2027         (API::generateID):
2028         * WebProcess/Plugins/PluginView.cpp:
2029         (WebKit::PluginView::viewStateDidChange):
2030
2031 2014-03-17  Anders Carlsson  <andersca@apple.com>
2032
2033         Update the bundle parameters dictionary and send out KVO notifications
2034         https://bugs.webkit.org/show_bug.cgi?id=130379
2035         <rdar://problem/16213914>
2036
2037         Reviewed by Dan Bernstein.
2038
2039         * UIProcess/API/Cocoa/WKProcessPool.mm:
2040         (-[WKProcessPool _setObject:forBundleParameter:]):
2041         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessBundleParameters.h:
2042         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessBundleParameters.mm:
2043         (-[WKWebProcessBundleParameters setParameter:forKey:]):
2044         * WebProcess/InjectedBundle/InjectedBundle.h:
2045         * WebProcess/InjectedBundle/mac/InjectedBundleMac.mm:
2046         (WebKit::InjectedBundle::setBundleParameter):
2047         * WebProcess/WebProcess.cpp:
2048         (WebKit::WebProcess::setInjectedBundleParameter):
2049         * WebProcess/WebProcess.h:
2050         * WebProcess/WebProcess.messages.in:
2051
2052 2014-03-17  Tim Horton  <timothy_horton@apple.com>
2053
2054         Address some style nits.
2055
2056         * UIProcess/API/Cocoa/_WKThumbnailViewInternal.h:
2057
2058 2014-03-17  Simon Fraser  <simon.fraser@apple.com>
2059
2060         Address some style nits.
2061
2062         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
2063
2064 2014-03-17  Simon Fraser  <simon.fraser@apple.com>
2065
2066         Add transparent window support back into MiniBrowser
2067         https://bugs.webkit.org/show_bug.cgi?id=130363
2068
2069         Reviewed by Anders Carlsson.
2070         
2071         Expose SPI for transparent window support.
2072
2073         * UIProcess/API/Cocoa/WKWebView.mm:
2074         (-[WKWebView _drawsTransparentBackground]):
2075         (-[WKWebView _setDrawsTransparentBackground:]):
2076         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
2077
2078 2014-03-17  Alexey Proskuryakov  <ap@apple.com>
2079
2080         Undo some accidental Gtk changes from http://trac.webkit.org/changeset/165759
2081
2082         * UIProcess/WebPageProxy.cpp:
2083         * WebProcess/WebPage/WebPage.messages.in:
2084
2085 2014-03-17  Csaba Osztrogonác  <ossy@webkit.org>
2086
2087         [WK2] URTBF after r165755 for non Apple platforms, stub functions added.
2088
2089         * WebProcess/InjectedBundle/efl/InjectedBundleEfl.cpp:
2090         (WebKit::InjectedBundle::platformInitialize):
2091         * WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp:
2092         (WebKit::InjectedBundle::platformInitialize):
2093
2094 2014-03-17  Alexey Proskuryakov  <ap@apple.com>
2095
2096         Move convertToRange() helper to cross-platform WebPage.cpp
2097         https://bugs.webkit.org/show_bug.cgi?id=130365
2098
2099         Reviewed by Tim Horton.
2100
2101         Also renamed it to rangeFromEditingLocationAndLength().
2102
2103         * WebProcess/WebPage/WebPage.cpp:
2104         (WebKit::WebPage::rangeFromEditingLocationAndLength):
2105         * WebProcess/WebPage/WebPage.h:
2106         * WebProcess/WebPage/ios/WebPageIOS.mm:
2107         (WebKit::WebPage::insertText):
2108         * WebProcess/WebPage/mac/WebPageMac.mm:
2109         (WebKit::WebPage::setComposition):
2110         (WebKit::WebPage::insertText):
2111         (WebKit::WebPage::insertDictatedText):
2112         (WebKit::WebPage::getAttributedSubstringFromRange):
2113         (WebKit::WebPage::characterIndexForPoint):
2114         (WebKit::WebPage::firstRectForCharacterRange):
2115
2116 2014-03-17  Anders Carlsson  <andersca@apple.com>
2117
2118         Follow-up fix.
2119
2120         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessBundleParameters.h:
2121
2122 2014-03-17  Enrica Casucci  <enrica@apple.com>
2123
2124         WK2: support data detectors driven action sheet..
2125         https://bugs.webkit.org/show_bug.cgi?id=130362
2126         <rdar://problem/16319711>
2127
2128         Reviewed by Benjamin Poulain.
2129
2130         * UIProcess/ios/WKActionSheetAssistant.mm:
2131         (-[WKActionSheetAssistant showDataDetectorsSheet]):
2132
2133 2014-03-17  Anders Carlsson  <andersca@apple.com>
2134
2135         Fix 32-bit OS X build.
2136
2137         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessBundleParameters.h:
2138         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessBundleParameters.mm:
2139         * WebProcess/InjectedBundle/InjectedBundle.h:
2140         * WebProcess/InjectedBundle/mac/InjectedBundleMac.mm:
2141         (WebKit::InjectedBundle::platformInitialize):
2142
2143 2014-03-17  Jae Hyun Park  <jaepark@webkit.org>
2144
2145         [GTK][CMake] Fix WebKit2 unused parameter warnings
2146         https://bugs.webkit.org/show_bug.cgi?id=130316
2147
2148         Reviewed by Martin Robinson.
2149
2150         * Platform/gtk/WorkQueueGtk.cpp: Fix unused parameter warnings.
2151         * UIProcess/API/gtk/PageClientImpl.cpp: Ditto.
2152         * UIProcess/API/gtk/WebKitBackForwardListItem.cpp: Ditto.
2153         * UIProcess/API/gtk/WebKitContextMenuClient.cpp: Ditto.
2154         * UIProcess/API/gtk/WebKitContextMenuItem.cpp: Ditto.
2155         * UIProcess/API/gtk/WebKitDownloadClient.cpp: Ditto.
2156         * UIProcess/API/gtk/WebKitFaviconDatabase.cpp: Ditto.
2157         * UIProcess/API/gtk/WebKitFindController.cpp: Ditto.
2158         * UIProcess/API/gtk/WebKitFormClient.cpp: Ditto.
2159         * UIProcess/API/gtk/WebKitGeolocationProvider.cpp: Ditto.
2160         * UIProcess/API/gtk/WebKitLoaderClient.cpp: Ditto.
2161         * UIProcess/API/gtk/WebKitPlugin.cpp: Ditto.
2162         * UIProcess/API/gtk/WebKitPolicyClient.cpp: Ditto.
2163         * UIProcess/API/gtk/WebKitRequestManagerClient.cpp: Ditto.
2164         * UIProcess/API/gtk/WebKitTextChecker.cpp: Ditto.
2165         * UIProcess/API/gtk/WebKitUIClient.cpp: Ditto.
2166         * UIProcess/API/gtk/WebKitURISchemeRequest.cpp: Ditto.
2167         * UIProcess/API/gtk/WebKitWebContext.cpp: Ditto.
2168         * UIProcess/API/gtk/WebKitWebInspector.cpp: Ditto.
2169         * UIProcess/API/gtk/WebKitWebView.cpp: Ditto.
2170         * UIProcess/API/gtk/WebKitWebViewBase.cpp: Ditto.
2171         * UIProcess/API/gtk/WebKitWebViewBaseAccessible.cpp: Ditto.
2172         * UIProcess/API/gtk/WebViewBaseInputMethodFilter.cpp: Ditto.
2173         * UIProcess/gtk/TextCheckerGtk.cpp: Ditto.
2174         * UIProcess/gtk/WebContextMenuProxyGtk.cpp: Ditto.
2175         * UIProcess/gtk/WebPopupMenuProxyGtk.cpp: Ditto.
2176         * WebProcess/InjectedBundle/API/gtk/WebKitFrame.cpp: Ditto.
2177         * WebProcess/InjectedBundle/API/gtk/WebKitWebExtension.cpp: Ditto.
2178         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp: Ditto.
2179         * WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp: Ditto.
2180         * WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp: Ditto.
2181
2182 2014-03-17  Alexey Proskuryakov  <ap@apple.com>
2183
2184         [Mac] Standardize on start/length in text input IPC methods
2185         https://bugs.webkit.org/show_bug.cgi?id=130359
2186
2187         Reviewed by Anders Carlsson.
2188
2189         Some IPC methods used start/length, and others use start/end. This was confusing.
2190
2191         While here, changed WebPageMac.mm to not use NSMakeRange where we don't need it
2192         (I want to move this code to WebPage.cpp, where it could be shared with iOS and
2193         other platforms, as it doesn't depend on Foundation much).
2194
2195         * UIProcess/API/mac/WKView.mm:
2196         (-[WKView insertText:replacementRange:]):
2197         (-[WKView setMarkedText:selectedRange:replacementRange:]):
2198         (-[WKView attributedSubstringForProposedRange:actualRange:]):
2199         * UIProcess/WebPageProxy.cpp:
2200         (WebKit::WebPageProxy::internalShowContextMenu):
2201         * UIProcess/WebPageProxy.h:
2202         * UIProcess/ios/WebPageProxyIOS.mm:
2203         (WebKit::WebPageProxy::setComposition):
2204         (WebKit::WebPageProxy::insertText):
2205         * UIProcess/mac/WebPageProxyMac.mm:
2206         (WebKit::WebPageProxy::setComposition):
2207         (WebKit::WebPageProxy::insertText):
2208         (WebKit::WebPageProxy::insertDictatedText):
2209         (WebKit::WebPageProxy::getAttributedSubstringFromRange):
2210         * WebProcess/WebPage/WebPage.cpp:
2211         (WebKit::WebPage::setComposition):
2212         * WebProcess/WebPage/WebPage.h:
2213         * WebProcess/WebPage/WebPage.messages.in:
2214         * WebProcess/WebPage/ios/WebPageIOS.mm:
2215         (WebKit::WebPage::setComposition):
2216         (WebKit::WebPage::insertText):
2217         * WebProcess/WebPage/mac/WebPageMac.mm:
2218         (WebKit::WebPage::setComposition):
2219         (WebKit::WebPage::insertText):
2220         (WebKit::WebPage::insertDictatedText):
2221         (WebKit::WebPage::getAttributedSubstringFromRange):
2222         (WebKit::convertToRange):
2223         (WebKit::WebPage::firstRectForCharacterRange):
2224
2225 2014-03-17  Tim Horton  <timothy_horton@apple.com>
2226
2227         Rename WKThumbnailView to _WKThumbnailView
2228         https://bugs.webkit.org/show_bug.cgi?id=130361
2229
2230         Reviewed by Anders Carlsson.
2231
2232         * UIProcess/API/Cocoa/_WKThumbnailView.h: Renamed from Source/WebKit2/UIProcess/API/Cocoa/WKThumbnailView.h.
2233         * UIProcess/API/Cocoa/_WKThumbnailView.mm: Renamed from Source/WebKit2/UIProcess/API/Cocoa/WKThumbnailView.mm.
2234         (-[_WKThumbnailView initWithFrame:fromWKView:]):
2235         (-[_WKThumbnailView _viewWasUnparented]):
2236         (-[_WKThumbnailView _viewWasParented]):
2237         (-[_WKThumbnailView _requestSnapshotIfNeeded]):
2238         (-[_WKThumbnailView _didTakeSnapshot:]):
2239         (-[_WKThumbnailView viewDidMoveToWindow]):
2240         (-[_WKThumbnailView setScale:]):
2241         (-[_WKThumbnailView setUsesSnapshot:]):
2242         (-[_WKThumbnailView _setThumbnailLayer:]):
2243         (-[_WKThumbnailView _thumbnailLayer]):
2244         * UIProcess/API/Cocoa/_WKThumbnailViewInternal.h: Renamed from Source/WebKit2/UIProcess/API/Cocoa/WKThumbnailViewInternal.h.
2245         * UIProcess/API/mac/WKView.mm:
2246         (-[WKView _setThumbnailView:]):
2247         (-[WKView _thumbnailView]):
2248         (-[WKView _updateThumbnailViewLayer]):
2249         * UIProcess/API/mac/WKViewInternal.h:
2250         * UIProcess/mac/PageClientImpl.mm:
2251         * WebKit2.xcodeproj/project.pbxproj:
2252
2253 2014-03-17  Anders Carlsson  <andersca@apple.com>
2254
2255         Add SPI for getting bundle parameters from the injected bundle
2256         https://bugs.webkit.org/show_bug.cgi?id=130355
2257
2258         Reviewed by Dan Bernstein.
2259
2260         * UIProcess/mac/WebContextMac.mm:
2261         (WebKit::WebContext::platformInitializeWebProcess):
2262         * WebKit2.xcodeproj/project.pbxproj:
2263         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessBundleParameters.h: Copied from Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.h.
2264         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessBundleParameters.mm: Copied from Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.h.
2265         (-[WKWebProcessBundleParameters initWithDictionary:]):
2266         (-[WKWebProcessBundleParameters valueForKey:]):
2267         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.h:
2268         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.mm:
2269         (-[WKWebProcessPlugInController parameters]):
2270         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2271         (WebKit::InjectedBundle::InjectedBundle):
2272         * WebProcess/InjectedBundle/InjectedBundle.h:
2273         (WebKit::InjectedBundle::create):
2274         * WebProcess/InjectedBundle/mac/InjectedBundleMac.mm:
2275         (WebKit::InjectedBundle::bundleParameters):
2276         (WebKit::InjectedBundle::platformInitialize):
2277         * WebProcess/WebProcess.cpp:
2278         (WebKit::WebProcess::initializeWebProcess):
2279
2280 2014-03-17  Brent Fulgham  <bfulgham@apple.com>
2281
2282         Provide preference to enable additional AVFoundation options
2283         https://bugs.webkit.org/show_bug.cgi?id=130275
2284
2285         Reviewed by Eric Carlson.
2286
2287         * Shared/WebPreferencesStore.h: Added new preference.
2288         * UIProcess/API/C/WKPreferences.cpp:
2289         (WKPreferencesSetEnableInheritURIQueryComponent): Added.
2290         (WKPreferencesGetEnableInheritURIQueryComponent): Added.
2291         * UIProcess/API/C/WKPreferencesPrivate.h:
2292         * WebProcess/WebPage/WebPage.cpp:
2293         (WebKit::WebPage::updatePreferences): Handle new preference.
2294
2295 2014-03-17  Alexey Proskuryakov  <ap@apple.com>
2296
2297         [Mac] getAttributedSubstringFromRange arguments are incorrectly named
2298         https://bugs.webkit.org/show_bug.cgi?id=130349
2299
2300         Reviewed by Tim Horton.
2301
2302         There is a mess of start/end and start/length pairs in IPC. One day we'll fix them
2303         all, but now, let's at least name them correctly.
2304
2305         No behavior change.
2306
2307         * UIProcess/WebPageProxy.h:
2308         * UIProcess/mac/WebPageProxyMac.mm:
2309         (WebKit::WebPageProxy::getAttributedSubstringFromRange):
2310         * WebProcess/WebPage/WebPage.h:
2311         * WebProcess/WebPage/WebPage.messages.in:
2312         * WebProcess/WebPage/mac/WebPageMac.mm:
2313         (WebKit::WebPage::getAttributedSubstringFromRange):
2314
2315 2014-03-17  Tim Horton  <timothy_horton@apple.com>
2316
2317         WKThumbnailView should support snapshots
2318         https://bugs.webkit.org/show_bug.cgi?id=130335
2319         <rdar://problem/16255139>
2320
2321         Reviewed by Simon Fraser.
2322
2323         Add a mode where WKThumbnailView takes a software snapshot of the web content,
2324         replacing the live layer tree with said snapshot once it returns from the
2325         web process. This may improve animation performance in cases where the
2326         layer tree would otherwise be very complex.
2327
2328         * UIProcess/API/Cocoa/WKThumbnailView.h:
2329         Add a property, usesSnapshot, which determines whether the thumbnail view
2330         should use the live layer tree or a snapshot of the content.
2331
2332         * UIProcess/API/Cocoa/WKThumbnailView.mm:
2333         (-[WKThumbnailView initWithFrame:fromWKView:]):
2334         (-[WKThumbnailView _viewWasUnparented]):
2335         Clear the snapshot when unparented.
2336
2337         (-[WKThumbnailView _viewWasParented]):
2338         Take a snapshot of the web content when parented, if needed.
2339
2340         (-[WKThumbnailView _requestSnapshotIfNeeded]):
2341         If we're using snapshots, and haven't already dispatched an async snapshot request,
2342         and don't already have a snapshot, request a snapshot from the web process.
2343
2344         When it returns, use it as the contents of the WKThumbnailView layer, and
2345         unparent the live layer tree.
2346
2347         (-[WKThumbnailView setScale:]):
2348         (-[WKThumbnailView setUsesSnapshot:]):
2349         (-[WKThumbnailView _setThumbnailLayer:]):
2350         (-[WKThumbnailView _thumbnailLayer]):
2351         * UIProcess/API/Cocoa/WKThumbnailViewInternal.h:
2352
2353         * UIProcess/API/mac/WKView.mm:
2354         (-[WKView _setAcceleratedCompositingModeRootLayer:]):
2355         (-[WKView _acceleratedCompositingModeRootLayer]):
2356         WKView should always keep track of the current root layer, instead of totally
2357         handing control over to WKThumbnailView when it is used.
2358
2359         (-[WKView _setThumbnailView:]):
2360         (-[WKView _updateThumbnailViewLayer]):
2361         (-[WKView _reparentLayerTreeInThumbnailView]):
2362         If needed (either we're not using snapshots, or still waiting for the snapshot to be painted),
2363         push the WKView's live layer tree into the thumbnail view.
2364
2365         * UIProcess/API/mac/WKViewInternal.h:
2366         * UIProcess/WebPageProxy.cpp:
2367         (WebKit::WebPageProxy::internalShowContextMenu):
2368         * UIProcess/WebPageProxy.h:
2369         * WebProcess/WebPage/WebPage.h:
2370         * WebProcess/WebPage/WebPage.messages.in:
2371         * WebProcess/WebPage/WebPage.cpp:
2372         (WebKit::WebPage::takeThumbnailSnapshot):
2373         Add a message that asynchronously returns a snapshot that respects the
2374         current thumbnail scale and position.
2375
2376         (WebKit::WebPage::scaledSnapshotWithOptions):
2377         Use some nullptr.
2378
2379         * WebProcess/WebPage/DrawingArea.cpp:
2380         (WebKit::DrawingArea::transform):
2381         * WebProcess/WebPage/DrawingArea.h:
2382         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
2383         Add a getter for the DrawingArea's transform.
2384         Rename it to rootLayerTransform.
2385
2386 2014-03-17  Zan Dobersek  <zdobersek@igalia.com>
2387
2388         Use RunLoop objects through references instead of pointers
2389         https://bugs.webkit.org/show_bug.cgi?id=130313
2390
2391         Reviewed by Andreas Kling.
2392
2393         Adjust the code accordingly now that RunLoop::current() and RunLoop::main()
2394         return RunLoop reference instead of a pointer.
2395
2396         * DatabaseProcess/DatabaseProcess.cpp:
2397         (WebKit::DatabaseProcess::didClose):
2398         (WebKit::DatabaseProcess::didReceiveInvalidMessage):
2399         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
2400         (WebKit::UniqueIDBDatabase::postMainThreadTask):
2401         * NetworkProcess/NetworkProcess.cpp:
2402         (WebKit::NetworkProcess::didClose):
2403         (WebKit::NetworkProcess::didReceiveInvalidMessage):
2404         * NetworkProcess/NetworkResourceLoader.cpp:
2405         (WebKit::NetworkResourceLoader::continueWillSendRequest):
2406         * Platform/IPC/Connection.cpp:
2407         (IPC::Connection::SyncMessageState::getOrCreate):
2408         (IPC::Connection::SyncMessageState::SyncMessageState):
2409         (IPC::Connection::SyncMessageState::~SyncMessageState):
2410         (IPC::Connection::SyncMessageState::processIncomingMessage):
2411         (IPC::Connection::SyncMessageState::dispatchMessages):
2412         (IPC::Connection::createServerConnection):
2413         (IPC::Connection::createClientConnection):
2414         (IPC::Connection::Connection):
2415         (IPC::Connection::addWorkQueueMessageReceiver):
2416         (IPC::Connection::removeWorkQueueMessageReceiver):
2417         (IPC::Connection::sendSyncMessage):
2418         (IPC::Connection::sendSyncMessageFromSecondaryThread):
2419         (IPC::Connection::waitForSyncReply):
2420         (IPC::Connection::processIncomingMessage):
2421         (IPC::Connection::connectionDidClose):
2422         (IPC::Connection::dispatchDidReceiveInvalidMessage):
2423         (IPC::Connection::enqueueIncomingMessage):
2424         (IPC::Connection::wakeUpRunLoop):
2425         * Platform/IPC/Connection.h:
2426         * Platform/IPC/mac/ConnectionMac.cpp:
2427         (IPC::Connection::receiveSourceEventHandler):
2428         * Shared/ChildProcess.cpp:
2429         (WebKit::ChildProcess::stopRunLoop):
2430         * Shared/Plugins/NPObjectProxy.cpp:
2431         (WebKit::NPObjectProxy::NP_Deallocate):
2432         * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
2433         (WebKit::ProcessLauncher::launchProcess):
2434         * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
2435         (WebKit::ProcessLauncher::launchProcess):
2436         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
2437         (WebKit::connectToService):
2438         (WebKit::tryPreexistingProcess):
2439         (WebKit::createProcess):
2440         * UIProcess/Storage/StorageManager.cpp:
2441         (WebKit::StorageManager::getOrigins):
2442         (WebKit::StorageManager::getStorageDetailsByOrigin):
2443         * UIProcess/Storage/StorageManager.h:
2444         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
2445         (WebKit::NetscapePlugin::pluginThreadAsyncCall):
2446         * WebProcess/Plugins/PluginView.cpp:
2447         (WebKit::PluginView::unprotectPluginFromDestruction):
2448         * WebProcess/WebPage/EventDispatcher.cpp:
2449         (WebKit::EventDispatcher::wheelEvent):
2450         * WebProcess/WebPage/ViewUpdateDispatcher.cpp:
2451         (WebKit::ViewUpdateDispatcher::visibleContentRectUpdate):
2452         * WebProcess/WebPage/WebPage.cpp:
2453         (WebKit::WebPage::close):
2454
2455 2014-03-17  Giovanni Campagna  <gcampagna@src.gnome.org>
2456
2457         [GTK] Don't busy loop when the socket is full
2458         https://bugs.webkit.org/show_bug.cgi?id=129802
2459
2460         Reviewed by Carlos Garcia Campos.
2461
2462         When the socket is full and we see EAGAIN or EWOULDBLOCK
2463         (because the socket is non blocking), don't busy loop by
2464         tring to write again, instead poll() until the socket
2465         becomes writable.
2466
2467         * Platform/IPC/unix/ConnectionUnix.cpp:
2468         (IPC::Connection::sendOutgoingMessage):
2469
2470 2014-03-17  Martin Robinson  <mrobinson@igalia.com>
2471
2472         [GTK][CMake] Ensure that HAVE_GTK_UNIX_PRINTING is defined when appropriate
2473         https://bugs.webkit.org/show_bug.cgi?id=130155
2474
2475         Reviewed by Philippe Normand.
2476
2477         * PlatformGTK.cmake: Add GTK_UNIX_PRINT flags to the build.
2478
2479 2014-03-17  Ryuan Choi  <ryuan.choi@samsung.com>
2480
2481         [EFL][WK2] Restore cursor when moving mouse into webview
2482         https://bugs.webkit.org/show_bug.cgi?id=130182
2483
2484         Reviewed by Gyuyoung Kim.
2485
2486         We changed mouse cursor when the type of cursor is changed.
2487         But once mouse is moved out of webview, ewebkit will not know whether cursor
2488         is changed or not.
2489
2490         So, this patch added a logic to restore the last applied type of cursor when
2491         mouse is moved into webview again.
2492
2493         * UIProcess/API/efl/EwkView.cpp:
2494         (EwkViewEventHandler<EVAS_CALLBACK_MOUSE_IN>::handleEvent):
2495         Call updateCursor to restore the last applied type of cursor.
2496         (EwkView::EwkView):
2497         (EwkView::updateCursor): Extracted from setCursor.
2498         (EwkView::setCursor):
2499         (EwkView::handleEvasObjectAdd):
2500         * UIProcess/API/efl/EwkView.h:
2501
2502 2014-03-16  Ryuan Choi  <ryuan.choi@samsung.com>
2503
2504         [EFL][WK2] Add ewk_application_cache_manager APIs
2505         https://bugs.webkit.org/show_bug.cgi?id=102853
2506
2507         Reviewed by Gyuyoung Kim.
2508
2509         Implemented application cache manager to get list of origins which stores
2510         application cache and remove specified origin or all.
2511
2512         * PlatformEfl.cmake: Added newly added files.
2513         * UIProcess/API/efl/ewk_application_cache_manager.cpp: Added.
2514         (EwkApplicationCacheManager::EwkApplicationCacheManager):
2515         (EwkApplicationCacheManager::~EwkApplicationCacheManager):
2516         (Get_Origins_Data::Get_Origins_Data):
2517         (getApplicationCacheOriginsCallback):
2518         (ewk_application_cache_manager_origins_get):
2519         (ewk_application_cache_origins_free):
2520         (ewk_application_cache_manager_delete_all):
2521         (ewk_application_cache_manager_delete):
2522         * UIProcess/API/efl/ewk_application_cache_manager.h: Added.
2523         * UIProcess/API/efl/ewk_application_cache_manager_private.h: Added.
2524         (EwkApplicationCacheManager::impl):
2525         * UIProcess/API/efl/ewk_context.cpp:
2526         (EwkContext::applicationCacheManager):
2527         (ewk_context_application_cache_manager_get):
2528         * UIProcess/API/efl/ewk_context.h:
2529         * UIProcess/API/efl/ewk_context_private.h:
2530         * UIProcess/API/efl/ewk_security_origin_private.h:
2531         (EwkSecurityOrigin::wkSecurityOrigin):
2532         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestServer.cpp:
2533         (EWK2UnitTestServer::port):
2534         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestServer.h:
2535         * UIProcess/API/efl/tests/test_ewk2_application_cache_manager.cpp:
2536         Added to test application_cache_manager.
2537         (serverCallback):
2538         (getOriginsCallback):
2539         (timerCallback):
2540         (TEST_F):
2541         * UIProcess/API/efl/tests/test_ewk2_context.cpp:
2542         Added test case to test getter of application_cache_manager.
2543         (TEST_F):
2544
2545 2014-03-16  Zan Dobersek  <zdobersek@igalia.com>
2546
2547         Move GTK WebKit2 code to std::unique_ptr
2548         https://bugs.webkit.org/show_bug.cgi?id=129672
2549
2550         Reviewed by Anders Carlsson.
2551
2552         Repace uses of OwnPtr and PassOwnPtr in GTK-specific WebKit2 code with std::unique_ptr.
2553
2554         * Shared/Downloads/Download.h:
2555         * Shared/Downloads/soup/DownloadSoup.cpp:
2556         (WebKit::Download::start):
2557         (WebKit::Download::startWithHandle):
2558         (WebKit::Download::platformInvalidate):
2559         * UIProcess/API/gtk/PageClientImpl.cpp:
2560         * UIProcess/API/gtk/PageClientImpl.h:
2561         * UIProcess/API/gtk/WebKitContextMenuItem.cpp:
2562         (webkitContextMenuItemCreate):
2563         (webkitContextMenuItemCreateForGtkItem):
2564         (webkit_context_menu_item_new):
2565         (webkit_context_menu_item_new_from_stock_action):
2566         (webkit_context_menu_item_new_from_stock_action_with_label):
2567         (webkit_context_menu_item_new_with_submenu):
2568         (webkit_context_menu_item_new_separator):
2569         * UIProcess/API/gtk/WebKitTextChecker.h:
2570         * UIProcess/API/gtk/WebKitWebContext.cpp:
2571         (createDefaultWebContext):
2572         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
2573         (webkitWebViewBaseConstructed):
2574         * WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:
2575         (WebKit::WebPrintOperationGtk::print):
2576         * WebProcess/gtk/WebGtkExtensionManager.cpp:
2577         (WebKit::WebGtkExtensionManager::initialize):
2578         * WebProcess/soup/WebKitSoupRequestInputStream.cpp:
2579         (webkitSoupRequestInputStreamPendingReadAsyncComplete):
2580         (webkitSoupRequestInputStreamReadAsync):
2581         * WebProcess/soup/WebSoupRequestManager.cpp:
2582         (WebKit::WebSoupRequestManager::send):
2583         * WebProcess/soup/WebSoupRequestManager.h:
2584
2585 2014-03-16  Brian Burg  <bburg@apple.com>
2586
2587         Web Inspector: vended backend commands file should be generated as part of the build
2588         https://bugs.webkit.org/show_bug.cgi?id=130110
2589
2590         Reviewed by Timothy Hatcher.
2591
2592         * PlatformGTK.cmake: Copy over generated inspector backend commands files.
2593
2594 2014-03-16  Darin Adler  <darin@apple.com>
2595
2596         Try to fix 32-bit Mac build.
2597
2598         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm: Add missing include.
2599
2600 2014-03-16  Philippe Normand  <pnormand@igalia.com>
2601
2602         Unreviewed, GTK build fix after r165692.
2603
2604         * UIProcess/gtk/TextCheckerGtk.cpp:
2605         (WebKit::TextChecker::checkSpellingOfString):
2606         (WebKit::TextChecker::checkGrammarOfString):
2607
2608 2014-03-15  Darin Adler  <darin@apple.com>
2609
2610         Remove all uses of deprecatedCharacters from WebKit2
2611         https://bugs.webkit.org/show_bug.cgi?id=130197
2612
2613         Reviewed by Andreas Kling.
2614
2615         * Shared/APIString.h: Rewrote getCharacters to use StringView,
2616         substring, and getCharactersWithUpconvert. Added an 8-bit case
2617         to getUTF8CString.
2618
2619         * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
2620         (WebKit::writeByte): Added.
2621         (WebKit::writeCharacter): Added.
2622         (WebKit::writeLine): Added. Uses operator[] instead of characters16 to get
2623         the UTF-16 characters out of the string.
2624         (WebKit::NetscapePluginModule::scanPlugin): Replaced code that writes out
2625         text to stdout with much simpler version using the functions above.
2626
2627         * UIProcess/TextChecker.h: Changed text arguments to use StringView instead
2628         of UChar/int pairs.
2629
2630         * UIProcess/WebPageProxy.cpp:
2631         (WebKit::WebPageProxy::internalShowContextMenu): Updated to pass StringView.
2632
2633         * UIProcess/efl/TextCheckerEfl.cpp:
2634         (WebKit::nextWordOffset): Changed function to use StringView and unsigned.
2635         (WebKit::TextChecker::checkTextOfParagraph): Changed to use StringView and
2636         substring.
2637         (WebKit::TextChecker::checkSpellingOfString): Ditto.
2638         (WebKit::TextChecker::checkGrammarOfString): Ditto.
2639         (WebKit::TextChecker::requestCheckingOfString): Pass in a StringView, so no
2640         need to call deprecatedCharacters.
2641
2642         * UIProcess/ios/TextCheckerIOS.mm:
2643         (WebKit::TextChecker::checkTextOfParagraph): Changed to take StringView.
2644         (WebKit::TextChecker::checkSpellingOfString): Ditto.
2645         (WebKit::TextChecker::checkGrammarOfString): Ditto.
2646
2647         * UIProcess/mac/TextCheckerMac.mm:
2648         (WebKit::TextChecker::checkTextOfParagraph): Changed to take StringView and
2649         use StringView::createNSStringWithoutCopying.
2650         (WebKit::TextChecker::checkSpellingOfString): CHanged to take StringView.
2651         (WebKit::TextChecker::checkGrammarOfString): Ditto.
2652
2653         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
2654         (WebKit::convertStringToKeyCodes): Changed to take StringView and use
2655         upconvertedCharacters instead of deprecatedCharacters. Also use move instead
2656         of swap.
2657         (WebKit::NetscapePlugin::sendComplexTextInput): Updated to new style for loop.
2658
2659         * WebProcess/WebPage/EncoderAdapter.cpp:
2660         (WebKit::EncoderAdapter::encodeString): Use StringView::upconvertedCharacters
2661         instead of String::deprecatedCharacters.
2662
2663 2014-03-15  David Kilzer  <ddkilzer@apple.com>
2664
2665         [iOS] Define SYSTEM_VERSION_PREFIX consistently
2666         <http://webkit.org/b/130293>
2667         <rdar://problem/15926359>
2668
2669         Reviewed by Dan Bernstein.
2670
2671         * Configurations/Version.xcconfig:
2672         (SYSTEM_VERSION_PREFIX): Sync with
2673         Source/WebKit/mac/Version.xcconfig.
2674
2675 2014-03-14  Alexey Proskuryakov  <ap@apple.com>
2676
2677         [Mac] Sync extended attribute related rules with AppSandbox profile
2678         https://bugs.webkit.org/show_bug.cgi?id=130263
2679         <rdar://problem/16318965>
2680
2681         Reviewed by Sam Weinig.
2682
2683         Update the fix to use a different syntax in some OS versions.
2684
2685         * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
2686         * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
2687         * WebProcess/com.apple.WebProcess.sb.in:
2688
2689 2014-03-14  Ryosuke Niwa  <rniwa@webkit.org>
2690
2691         Revert erroneous changes made to UIProcess/API/Cocoa in r165676.
2692
2693         * UIProcess/API/Cocoa/WKBackForwardList.h:
2694         * UIProcess/API/Cocoa/WKBackForwardListItem.h: Copied from Source/WebKit2/UIProcess/API/Cocoa/WKBackForwardListItem.h.
2695         * UIProcess/API/Cocoa/WKNavigation.h:
2696         * UIProcess/API/Cocoa/WKNavigationAction.h: Copied from Source/WebKit2/UIProcess/API/Cocoa/WKNavigationAction.h.
2697         * UIProcess/API/Cocoa/WKNavigationDelegate.h:
2698         (NS_ENUM):
2699         * UIProcess/API/Cocoa/WKNavigationResponse.h: Copied from Source/WebKit2/UIProcess/API/Cocoa/WKNavigationResponse.h.
2700         * UIProcess/API/Cocoa/WKNavigationTrigger.h: Removed.
2701         * UIProcess/API/Cocoa/WKWebView.h:
2702
2703 2014-03-14  Mark Rowe  <mrowe@apple.com>
2704
2705         Fix the production build.
2706
2707         Don't rely on USE_INTERNAL_SDK being set for the Production configuration since UseInternalSDK.xcconfig won't
2708         be at the expected relative path when working from installed source.
2709
2710         * Configurations/Base.xcconfig:
2711
2712 2014-03-14  Maciej Stachowiak  <mjs@apple.com>
2713
2714         Replace "Apple Computer, Inc." with "Apple Inc." in copyright headers
2715         https://bugs.webkit.org/show_bug.cgi?id=130276
2716         <rdar://problem/16266927>
2717         
2718         Reviewed by Simon Fraser.
2719
2720         * Shared/AsyncRequest.cpp:
2721         * Shared/AsyncRequest.h:
2722         * Shared/ContextMenuContextData.cpp:
2723         * Shared/ContextMenuContextData.h:
2724         * Shared/Databases/DatabaseProcessCreationParameters.h:
2725         * Shared/Databases/IndexedDB/IDBUtilities.cpp:
2726         * Shared/Databases/IndexedDB/IDBUtilities.h:
2727         * Shared/mac/RemoteLayerBackingStore.h:
2728         * Shared/mac/RemoteLayerBackingStore.mm:
2729         * UIProcess/API/Cocoa/WKBackForwardList.h:
2730         * UIProcess/API/Cocoa/WKBackForwardListItem.h: Removed.
2731         * UIProcess/API/Cocoa/WKNavigation.h:
2732         * UIProcess/API/Cocoa/WKNavigationAction.h: Removed.
2733         * UIProcess/API/Cocoa/WKNavigationDelegate.h:
2734         * UIProcess/API/Cocoa/WKNavigationResponse.h: Removed.
2735         * UIProcess/API/Cocoa/WKNavigationTrigger.h: Added.
2736         (NS_ENUM):
2737         * UIProcess/API/Cocoa/WKWebView.h:
2738         * UIProcess/API/CoordinatedGraphics/WKCoordinatedScene.cpp:
2739         * UIProcess/API/CoordinatedGraphics/WKCoordinatedScene.h:
2740         * UIProcess/CoordinatedGraphics/WKCoordinatedSceneAPICast.h:
2741         * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp:
2742         * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.h:
2743         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
2744         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
2745         * WebProcess/Databases/WebToDatabaseProcessConnection.cpp:
2746         * WebProcess/Databases/WebToDatabaseProcessConnection.h:
2747         * WebProcess/WebCoreSupport/WebAlternativeTextClient.h:
2748         * WebProcess/WebCoreSupport/mac/WebAlternativeTextClient.cpp:
2749         * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
2750         * WebProcess/WebPage/mac/GraphicsLayerCARemote.cpp:
2751         * WebProcess/WebPage/mac/GraphicsLayerCARemote.h:
2752         * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
2753         * WebProcess/WebPage/mac/PlatformCALayerRemote.h:
2754         * WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.h:
2755         * WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm:
2756         * WebProcess/WebPage/mac/PlatformCALayerRemoteTiledBacking.cpp:
2757         * WebProcess/WebPage/mac/PlatformCALayerRemoteTiledBacking.h:
2758
2759 2014-03-14  Simon Fraser  <simon.fraser@apple.com>
2760
2761         [iOS WK2] background-attachment: fixed renders oddly, moves around
2762         https://bugs.webkit.org/show_bug.cgi?id=130277
2763         <rdar://problem/16332883>
2764
2765         Reviewed by Tim Horton.
2766         
2767         Actually send scrolling and counter-scrolling layers to the UI process!
2768
2769         * Shared/Scrolling/RemoteScrollingCoordinatorTransaction.cpp:
2770         (ArgumentCoder<ScrollingStateScrollingNode>::encode):
2771         (ArgumentCoder<ScrollingStateScrollingNode>::decode):
2772
2773 2014-03-14  Anders Carlsson  <andersca@apple.com>
2774
2775         Try to fix the iOS build.
2776
2777         * UIProcess/mac/WebContextMac.mm:
2778
2779 2014-03-14  Anders Carlsson  <andersca@apple.com>
2780
2781         Begin work on the bundle parameter API
2782         https://bugs.webkit.org/show_bug.cgi?id=130267
2783
2784         Reviewed by Dan Bernstein.
2785
2786         * Shared/WebProcessCreationParameters.cpp:
2787         (WebKit::WebProcessCreationParameters::encode):
2788         (WebKit::WebProcessCreationParameters::decode):
2789         * Shared/WebProcessCreationParameters.h:
2790         * UIProcess/API/Cocoa/WKProcessPool.mm:
2791         (-[WKProcessPool _objectForBundleParameter:]):
2792         (-[WKProcessPool _setObject:forBundleParameter:]):
2793         * UIProcess/API/Cocoa/WKProcessPoolPrivate.h:
2794         * UIProcess/WebContext.h:
2795         (WebKit::WebContext::bundleParameters):
2796         * UIProcess/mac/WebContextMac.mm:
2797         (WebKit::WebContext::ensureBundleParameters):
2798         (WebKit::WebContext::platformInitializeWebProcess):
2799
2800 2014-03-14  Alexey Proskuryakov  <ap@apple.com>
2801
2802         [Mac] Sync extended attribute related rules with AppSandbox profile
2803         https://bugs.webkit.org/show_bug.cgi?id=130263
2804         <rdar://problem/16318965>
2805
2806         Reviewed by Sam Weinig.
2807
2808         * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
2809         * Resources/PlugInSandboxProfiles/com.apple.QuickTime Plugin.plugin.sb:
2810         * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
2811         * Resources/PlugInSandboxProfiles/com.apple.ist.ds.appleconnect.webplugin.sb:
2812         * Resources/PlugInSandboxProfiles/com.macromedia.Flash Player.plugin.sb:
2813         * Resources/PlugInSandboxProfiles/com.microsoft.SilverlightPlugin.sb:
2814         * Resources/PlugInSandboxProfiles/com.oracle.java.JavaAppletPlugin.sb:
2815         * WebProcess/com.apple.WebProcess.sb.in:
2816
2817 2014-03-14  Simon Fraser  <simon.fraser@apple.com>
2818
2819         [iOS WK2] Improve behavior of fixed elments on zooming
2820         https://bugs.webkit.org/show_bug.cgi?id=130253
2821
2822         Reviewed by Beth Dakin.
2823
2824         Correctly reposition right- and bottom-relative position:fixed
2825         elements on zooming in WK2 iOS by telling the scrolling tree
2826         about zoom-related viewport changes.
2827
2828         * Shared/mac/RemoteLayerTreeTransaction.h:
2829         (WebKit::RemoteLayerTreeTransaction::LayerProperties::notePropertiesChanged):
2830         Drive-by cleanup; typedef the flags field to an unsigned, to avoid ugly casting.
2831         * UIProcess/Scrolling/RemoteScrollingCoordinatorProxy.cpp:
2832         (WebKit::RemoteScrollingCoordinatorProxy::updateScrollingTree): Pass out a flag to say
2833         if the update contained a new fixed or sticky layer.
2834         (WebKit::RemoteScrollingCoordinatorProxy::connectStateNodeLayers):
2835         (WebKit::RemoteScrollingCoordinatorProxy::viewportChangedViaDelegatedScrolling):
2836         Call into the new ScrolingTree::viewportChangedViaDelegatedScrolling().
2837         * UIProcess/Scrolling/RemoteScrollingCoordinatorProxy.h:
2838         * UIProcess/ios/RemoteScrollingCoordinatorProxyIOS.mm: If we got a new fixed
2839         or sticky layer, set fixedOrStickyLayerChanged to true.
2840         (WebKit::RemoteScrollingCoordinatorProxy::connectStateNodeLayers): Ditto.
2841         * UIProcess/ios/WKContentView.mm:
2842         (-[WKContentView didUpdateVisibleRect:unobscuredRect:scale:inStableState:]):
2843         Remember both the old zoomScale and the filteredScale, since the fixed position rect
2844         should be computed using the unfiltered scale.
2845         Some FloatRect -> CGRect changes.
2846         Now call viewportChangedViaDelegatedScrolling() on the scrolling coordinator.
2847         (-[WKContentView fixedPositionRectFromExposedRect:scale:]): Call the
2848         FrameView function to compute the iOS fixed position rect.
2849         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
2850         (WebKit::RemoteLayerTreeDrawingAreaProxy::commitLayerTree): If the update
2851         got a new fixed or sticky layer, run the scrolling tree logic to make sure
2852         it gets into the right place.
2853         * UIProcess/mac/RemoteLayerTreeHost.mm:
2854         (WebKit::RemoteLayerTreeHost::updateLayerTree): If we logged here,
2855         we'd log twice if the tiled scrolling indicator was enabled, so 
2856         hoisted the logging out into the caller.
2857
2858 2014-03-14  Landry Breuil  <landry@openbsd.org>
2859
2860         Use the correct type in webkitSoupRequestInputStreamNew()'s declaration.
2861         Nhttps://bugs.webkit.org/show_bug.cgi?id=129974
2862
2863         Reviewed by Andreas Kling.
2864
2865         * WebProcess/soup/WebKitSoupRequestInputStream.h:
2866
2867 2014-03-14  Anders Carlsson  <andersca@apple.com>
2868
2869         Fix crash when resizing the visited link table
2870         https://bugs.webkit.org/show_bug.cgi?id=130257
2871         <rdar://problem/16328177>
2872
2873         Reviewed by Dan Bernstein.
2874
2875         We're iterating over the old table, so use currentTableSize in the loop termination condition.
2876
2877         * UIProcess/VisitedLinkProvider.cpp:
2878         (WebKit::VisitedLinkProvider::resizeTable):
2879
2880 2014-03-14  Dan Bernstein  <mitz@apple.com>
2881
2882         [Cocoa] Expose a way to set the cookie accept policy
2883         https://bugs.webkit.org/show_bug.cgi?id=130251
2884
2885         Reviewed by Anders Carlsson.
2886
2887         * UIProcess/API/Cocoa/WKProcessPool.mm:
2888         (toHTTPCookieAcceptPolicy): Added a helper function that maps from NSHTTPCookieAcceptPolicy
2889         values to WebKit::HTTPCookieAcceptPolicy values.
2890         (-[WKProcessPool _setCookieAcceptPolicy:]): Added. Calls
2891         WebCookieManagerProxy::setHTTPCookieAcceptPolicy. 
2892         * UIProcess/API/Cocoa/WKProcessPoolPrivate.h: Declared new method.
2893
2894 2014-03-14  Carlos Garcia Campos  <cgarcia@igalia.com>
2895
2896         [GTK] WebKit2WebExtension GIR can't be used in vala
2897         https://bugs.webkit.org/show_bug.cgi?id=127179
2898
2899         Reviewed by Martin Robinson.
2900
2901         Do not include all WebKit2 gir symbols from WebKit2WebExtension gir
2902         file.
2903
2904         * GNUmakefile.am:
2905         * PlatformGTK.cmake:
2906
2907 2014-03-14  Csaba Osztrogonác  <ossy@webkit.org>
2908
2909         [CMake] URTBF after r165619.
2910
2911         * CMakeLists.txt: Add new files.
2912
2913 2014-03-14  Anders Carlsson  <andersca@apple.com>
2914
2915         Remove WebContext::addVisitedLink
2916         https://bugs.webkit.org/show_bug.cgi?id=130242
2917
2918         Reviewed by Dan Bernstein.
2919
2920         Fold the function into WKContextAddVisitedLink instead.
2921
2922         * UIProcess/API/C/WKContext.cpp:
2923         (WKContextAddVisitedLink):
2924         * UIProcess/WebContext.cpp:
2925         * UIProcess/WebContext.h:
2926         (WebKit::WebContext::visitedLinkProvider):
2927
2928 2014-03-13  Anders Carlsson  <andersca@apple.com>
2929
2930         Move visited link handling to VisitedLinkTableController and VisitedLinkProvider
2931         https://bugs.webkit.org/show_bug.cgi?id=130223
2932         <rdar://problem/16315792>
2933
2934         Reviewed by Dan Bernstein.
2935
2936         * DerivedSources.make:
2937         Generate messages for VisitedLinkProvider and VisitedLinkTableController.
2938         
2939         * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
2940         (-[WKWebViewConfiguration copyWithZone:]):
2941         Set the visited link provider.
2942
2943         * UIProcess/API/Cocoa/_WKVisitedLinkProvider.h:
2944         Add addVisitedLinkWithURL: method.
2945
2946         * UIProcess/API/Cocoa/_WKVisitedLinkProvider.mm:
2947         (-[_WKVisitedLinkProvider addVisitedLinkWithURL:]):
2948         Compute a link hash from the absolute URL string and pass it to the underlying VisitedLinkProvider object.
2949
2950         * UIProcess/VisitedLinkProvider.cpp:
2951         (WebKit::VisitedLinkProvider::addProcess):
2952         Add the process to the m_processes HashCountedSet. If it's the first time we're adding the process, 
2953         add the VisitedLinkProvider object as a message receiver and send the visited link table to the process.
2954
2955         (WebKit::VisitedLinkProvider::removeProcess):
2956         Remove the process from the m_processes HashCountedSet. If we're removing the last reference to the process,
2957         remove ourselves as a  message receiver.
2958
2959         (WebKit::VisitedLinkProvider::addVisitedLinkHash):
2960         Rename this from addVisitedLink to better indicate what it's doing.
2961
2962         (WebKit::tableSizeForKeyCount):
2963         Update for constant rename.
2964
2965         (WebKit::VisitedLinkProvider::pendingVisitedLinksTimerFired):
2966         Compute the new pending visited links table size. If it's bigger than our current table, resize the table
2967         by calling resizeTable. Otherwise, simply try to add the pending hashes to our shared hash table. If successful,
2968         add the link hash to the addedVisitedLinks table and eventually send it to all processes associated with the visited link provider.
2969
2970         (WebKit::VisitedLinkProvider::resizeTable):
2971         Create a new shared memory segment, Set it as the table backing store and add all visited links from the old table. Finally,
2972         add our pending visited link hashes and send the new table memory to all processes associated with the visited link provider.
2973
2974         (WebKit::VisitedLinkProvider::sendTable):
2975         Helper function that creates a shared memory handle and sends it to a given web process.
2976
2977         * UIProcess/VisitedLinkProvider.h:
2978         Add new members.
2979
2980         * UIProcess/VisitedLinkProvider.messages.in:
2981         Add messages.
2982
2983         * UIProcess/WebContext.cpp:
2984         (WebKit::WebContext::processDidFinishLaunching):
2985         (WebKit::WebContext::disconnectProcess):
2986         The WebContext no longer needs to inform the visited link provider about the processes coming and going, that's already handled
2987         by the WebPageProxy objects.
2988
2989         (WebKit::WebContext::addVisitedLink):
2990         Call addVisitedLinkHash on the visited link provider.
2991
2992         * UIProcess/WebContext.h:
2993         * UIProcess/WebContext.messages.in:
2994         Remove a message that is now implemented by the visited link provider.
2995
2996         * WebKit2.xcodeproj/project.pbxproj:
2997         Add new files.
2998
2999         * WebProcess/WebPage/VisitedLinkTableController.cpp:
3000         (WebKit::VisitedLinkTableController::VisitedLinkTableController):
3001         Add the table controller as a message receiver.
3002
3003         (WebKit::VisitedLinkTableController::~VisitedLinkTableController):
3004         Remove the table controller as a message receiver.
3005
3006         (WebKit::VisitedLinkTableController::isLinkVisited):
3007         Check if the link is visited according to the visited link table.
3008
3009         (WebKit::VisitedLinkTableController::addVisitedLink):
3010         Send the link hash to the UI process if it's not already visited.
3011
3012         (WebKit::VisitedLinkTableController::setVisitedLinkTable):
3013         Set the backing store memory and invalidate all styles.
3014
3015         (WebKit::VisitedLinkTableController::visitedLinkStateChanged):
3016         Invalidate the styles for the given links.
3017
3018         (WebKit::VisitedLinkTableController::allVisitedLinkStateChanged):
3019         Invalidate the styles for all links.
3020
3021         * WebProcess/WebPage/VisitedLinkTableController.h:
3022         Add new members.
3023
3024         * WebProcess/WebPage/VisitedLinkTableController.messages.in:
3025         Add new messages.
3026
3027         * WebProcess/WebProcess.cpp:
3028         Remove unused functions; these are handled by VisitedLinkTableController now.
3029
3030         * WebProcess/WebProcess.h:
3031         (WebKit::WebProcess::shouldTrackVisitedLinks):
3032         Add getter.
3033
3034         * WebProcess/WebProcess.messages.in:
3035         Remove messages.
3036
3037 2014-03-12  Sergio Villar Senin  <svillar@igalia.com>
3038
3039         Rename DEFINE_STATIC_LOCAL to DEPRECATED_DEFINE_STATIC_LOCAL
3040         https://bugs.webkit.org/show_bug.cgi?id=129612
3041
3042         Reviewed by Darin Adler.
3043
3044         For new code use static NeverDestroyed<T> instead.
3045
3046         * DatabaseProcess/IndexedDB/sqlite/SQLiteIDBCursor.cpp:
3047         (WebKit::getIndexStatement):
3048         (WebKit::getObjectStoreStatement):
3049         * Shared/linux/SeccompFilters/SeccompBroker.cpp:
3050         (WebKit::SeccompBrokerClient::shared):
3051         * UIProcess/InspectorServer/WebInspectorServer.cpp:
3052         (WebKit::WebInspectorServer::didReceiveWebSocketUpgradeHTTPRequest):
3053
3054 2014-03-14  Dan Bernstein  <mitz@apple.com>
3055
3056         <rdar://problem/16319722> [Cocoa] WKHistoryDelegate is being called for subframes
3057         https://bugs.webkit.org/show_bug.cgi?id=130228
3058
3059         Reviewed by Mark Rowe.
3060
3061         * UIProcess/Cocoa/HistoryClient.mm:
3062         (WebKit::HistoryClient::didNavigateWithNavigationData): Bail out if the frame is not the
3063         main frame.
3064         (WebKit::HistoryClient::didPerformClientRedirect): Ditto.
3065         (WebKit::HistoryClient::didPerformServerRedirect): Ditto.
3066         (WebKit::HistoryClient::didUpdateHistoryTitle): Ditto.
3067
3068 2014-03-13  Jinwoo Jeong  <jw00.jeong@samsung.com>
3069
3070         Refactor Vibration algorithm to use only one timer.
3071         https://bugs.webkit.org/show_bug.cgi?id=130059
3072
3073         Reviewed by Darin Adler.
3074
3075         This patch adds a vibration unit test regression after r161257.
3076         It consists of two short term requests to check
3077         that Vibration could work properly by sequential requests.
3078
3079         Indeed this patch tightens condition of existing tests.
3080
3081         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
3082         (TEST_F):
3083
3084 2014-03-13  Paul Hankes Drielsma  <phd@apple.com>
3085
3086         Add SPI to set a custom user agent on WKWebView
3087         https://bugs.webkit.org/show_bug.cgi?id=130164
3088
3089         Reviewed by Dan Bernstein.
3090
3091         * UIProcess/API/Cocoa/WKWebView.mm:
3092         (-[WKWebView _customUserAgent]):
3093         (-[WKWebView _setCustomUserAgent:]):
3094         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
3095
3096 2014-03-13  Paul Hankes Drielsma  <phd@apple.com>
3097
3098         Add SPI to run javascript in main frame on WKWebView
3099         https://bugs.webkit.org/show_bug.cgi?id=130047
3100
3101         Reviewed by Anders Carlsson.
3102
3103         * UIProcess/API/Cocoa/WKWebView.mm:
3104         (-[WKWebView _runJavaScriptInMainFrame:]):
3105
3106 2014-03-13  Benjamin Poulain  <bpoulain@apple.com>
3107
3108         The viewport code should not depend on WebKitSystemInterface
3109         https://bugs.webkit.org/show_bug.cgi?id=130218
3110
3111         Reviewed by Tim Horton.
3112
3113         Get the viewport size from the UIProcess when creating a new WebProcess.
3114         From there, the value is stored in WebPage and used whenever we need to update
3115         the viewport parameters.
3116
3117         * Shared/WebPageCreationParameters.cpp:
3118         (WebKit::WebPageCreationParameters::encode):
3119         (WebKit::WebPageCreationParameters::decode):
3120         * Shared/WebPageCreationParameters.h:
3121         * UIProcess/WebPageProxy.cpp:
3122         (WebKit::WebPageProxy::internalShowContextMenu):
3123         * UIProcess/WebPageProxy.h:
3124         * UIProcess/ios/WebPageProxyIOS.mm:
3125         (WebKit::WebPageProxy::viewportScreenSize):
3126         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3127         (WebKit::WebChromeClient::viewportScreenSize):
3128         * WebProcess/WebCoreSupport/WebChromeClient.h:
3129         * WebProcess/WebPage/WebPage.cpp:
3130         (WebKit::WebPage::WebPage):
3131         * WebProcess/WebPage/WebPage.h:
3132         * WebProcess/WebPage/ios/WebPageIOS.mm:
3133         (WebKit::WebPage::viewportScreenSize):
3134
3135 2014-03-13  Beth Dakin  <bdakin@apple.com>
3136
3137         Do not show extended background during a pinch gesture on iOS
3138         https://bugs.webkit.org/show_bug.cgi?id=130152
3139         -and corresponding-
3140         <rdar://problem/16303819>
3141
3142         Reviewed by Simon Fraser.
3143
3144         This patch refactors the backgroundColor-setting logic into its own method so that 
3145         it can be called from both _didCommitLayerTree and scrollViewDidZoom.
3146
3147         Only set the UIScrollView’s background color when the zoomScale is greater than or 
3148         equal to the minimumZoomScale. Also do not set it during the zoom bounce 
3149         animation. Otherwise, clear the background color by setting it to nil.
3150         * UIProcess/API/Cocoa/WKWebView.mm:
3151         (-[WKWebView updateScrollViewBackground]):
3152         (-[WKWebView _didCommitLayerTree:WebKit::]):
3153         (-[WKWebView scrollViewDidZoom:]):
3154
3155 2014-03-13  Enrica Casucci  <enrica@apple.com>
3156
3157         [iOS WebKit2] block selection should avoid large blocks.
3158         https://bugs.webkit.org/show_bug.cgi?id=130208
3159         <rdar://problem/16251785>
3160
3161         Reviewed by Benjamin Poulain.
3162
3163         When creating a block selection, we should discard blocks that
3164         are larger than most of the visible portion of the document.
3165         This prevents the accidental selection the entire document, which
3166         is fairly common when tapping over empty areas.
3167
3168         * Shared/InteractionInformationAtPosition.cpp:
3169         (WebKit::InteractionInformationAtPosition::encode):
3170         (WebKit::InteractionInformationAtPosition::decode):
3171         * Shared/InteractionInformationAtPosition.h: Removed selectionRects that was not really needed and
3172         added isSelectable to indicate whether the selection can start.
3173         (WebKit::InteractionInformationAtPosition::InteractionInformationAtPosition):
3174         * UIProcess/ios/WKContentViewInteraction.mm:
3175         (-[WKContentView hasSelectablePositionAtPoint:]): Now uses isSelectable.
3176         * WebProcess/WebPage/ios/WebPageIOS.mm:
3177         (WebKit::WebPage::getPositionInformation): Takes into account the userSelect property
3178         to figure out if the element can be selected and discards blocks that are
3179         larger than 97% of the visible area of the document.
3180
3181 2014-03-13  Anders Carlsson  <andersca@apple.com>
3182
3183         Rename WKVisitedLinkProvider to _WKVisitedLinkProvider and make it private
3184         https://bugs.webkit.org/show_bug.cgi?id=130207
3185
3186         Reviewed by Dan Bernstein.
3187
3188         * UIProcess/API/Cocoa/WKVisitedLinkProviderPrivate.h: Removed.
3189         * UIProcess/API/Cocoa/WKWebView.mm:
3190         (-[WKWebView initWithFrame:configuration:]):
3191         * UIProcess/API/Cocoa/WKWebViewConfiguration.h:
3192         * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
3193         (-[WKWebViewConfiguration _visitedLinkProvider]):
3194         (-[WKWebViewConfiguration _setVisitedLinkProvider:]):
3195         * UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:
3196         * UIProcess/API/Cocoa/_WKVisitedLinkProvider.h: Renamed from Source/WebKit2/UIProcess/API/Cocoa/WKVisitedLinkProvider.h.
3197         * UIProcess/API/Cocoa/_WKVisitedLinkProvider.mm: Renamed from Source/WebKit2/UIProcess/API/Cocoa/WKVisitedLinkProvider.mm.
3198         (-[_WKVisitedLinkProvider init]):
3199         * UIProcess/API/Cocoa/_WKVisitedLinkProviderInternal.h: Renamed from Source/WebKit2/UIProcess/API/Cocoa/WKVisitedLinkProviderInternal.h.
3200         * WebKit2.xcodeproj/project.pbxproj:
3201
3202 2014-03-13  Anders Carlsson  <andersca@apple.com>
3203
3204         Remove a commented out member function
3205         https://bugs.webkit.org/show_bug.cgi?id=130204
3206
3207         Reviewed by Tim Horton.
3208
3209         * Shared/ChildProcessProxy.h:
3210         (WebKit::ChildProcessProxy::canSendMessage):
3211
3212 2014-03-13  Enrica Casucci  <enrica@apple.com>
3213
3214         [iOS WebKit2] Crash on iPad when displaying a select element with options.
3215         https://bugs.webkit.org/show_bug.cgi?id=130200
3216         <rdar://problem/16316187>
3217
3218         Reviewed by Simon Fraser.
3219
3220         _singleSelectionIndex should be initialized to NSNotFound for multiSelect elements.
3221
3222         * UIProcess/ios/forms/WKFormSelectPopover.mm:
3223         (-[WKSelectTableViewController initWithView:hasGroups:]):
3224
3225 2014-03-13  Carlos Garcia Campos  <cgarcia@igalia.com>
3226
3227         [GTK] Close the connection when we fail to read from the socket for any unhandled error
3228         https://bugs.webkit.org/show_bug.cgi?id=130191
3229
3230         Reviewed by Martin Robinson.
3231
3232         We currently show an error message, but we should close the
3233         connection avoid entering an infinite loop. Also provide more
3234         information in the error message to help when debugging the issue.
3235
3236         * Platform/IPC/unix/ConnectionUnix.cpp:
3237         (IPC::Connection::readyReadHandler):
3238
3239 2014-03-13  Radu Stavila  <stavila@adobe.com>
3240
3241         Webkit not building on XCode 5.1 due to garbage collection no longer being supported
3242         https://bugs.webkit.org/show_bug.cgi?id=130087
3243
3244         Reviewed by Mark Rowe.
3245
3246         Disable garbage collection on macosx when not using internal SDK.
3247
3248         * Configurations/Base.xcconfig:
3249
3250 2014-03-10  Darin Adler  <darin@apple.com>
3251
3252         Avoid copy-prone idiom "for (auto item : collection)"
3253         https://bugs.webkit.org/show_bug.cgi?id=129990
3254
3255         Reviewed by Geoffrey Garen.
3256
3257         * Shared/mac/RemoteLayerTreePropertyApplier.mm:
3258         (WebKit::RemoteLayerTreePropertyApplier::applyProperties): Use auto&.
3259
3260         * Shared/mac/RemoteLayerTreeTransaction.mm:
3261         (WebKit::RemoteLayerTreeTransaction::LayerProperties::decode): Use auto&
3262         even though the type is a scalar. This does no harm and makes it easier
3263         to spot uses that trigger unnecessary copying with grep.
3264         (WebKit::RemoteLayerTreeTransaction::decode): Ditto.
3265         (WebKit::dumpChangedLayers): Ditto.
3266         * UIProcess/mac/RemoteLayerTreeHost.mm:
3267         (WebKit::RemoteLayerTreeHost::updateLayerTree): Ditto.
3268         * WebProcess/WebProcess.cpp:
3269         (WebKit::WebProcess::visitedLinkStateChanged): Ditto.
3270
3271 2014-03-12  Brian Burg  <bburg@apple.com>
3272
3273         Web Inspector: Remove unused callId parameter from evaluateInWebInspector
3274         https://bugs.webkit.org/show_bug.cgi?id=129744
3275
3276         Reviewed by Timothy Hatcher.
3277
3278         * WebProcess/InjectedBundle/API/c/WKBundleInspector.cpp:
3279         (WKBundleInspectorEvaluateScriptForTest):
3280         * WebProcess/InjectedBundle/API/c/WKBundleInspector.h:
3281         * WebProcess/WebPage/WebInspector.cpp:
3282         (WebKit::WebInspector::evaluateScriptForTest):
3283         * WebProcess/WebPage/WebInspector.h:
3284
3285 2014-03-13  Laszlo Vidacs  <lvidacs.u-szeged@partner.samsung.com>
3286
3287         Fix the !ENABLE(SQL_DATABASE) build
3288         https://bugs.webkit.org/show_bug.cgi?id=130130
3289
3290         Reviewed by Csaba Osztrogonác.
3291
3292         Add missing #ifdef guard to typedef.
3293
3294         * UIProcess/API/C/WKDatabaseManager.cpp:
3295
3296 2014-03-12  Dean Jackson  <dino@apple.com>
3297
3298         [WebGL] WebKit1 + WebKit2 iOS clients should check load policy
3299         https://bugs.webkit.org/show_bug.cgi?id=130162
3300
3301         Reviewed by Simon Fraser.
3302
3303         Implement webGLPolicyForURL() methods for iOS.
3304
3305         * Configurations/WebContent-iOS.entitlements: Add the MobileAsset asset type.
3306         * Configurations/WebKit2.xcconfig: Add MobileAsset to iOS link list.
3307         * WebProcess/WebPage/WebPage.cpp: Exclude iOS.
3308         * WebProcess/WebPage/ios/WebPageIOS.mm:
3309         (WebKit::WebPage::webGLPolicyForURL): Call into WKSI.
3310         (WebKit::WebPage::resolveWebGLPolicyForURL):
3311
3312 2014-03-12  Joseph Pecoraro  <pecoraro@apple.com>
3313
3314         Web Inspector: Disable REMOTE_INSPECTOR in earlier OS X releases
3315         https://bugs.webkit.org/show_bug.cgi?id=130118
3316
3317         Reviewed by Timothy Hatcher.
3318
3319         * Configurations/FeatureDefines.xcconfig:
3320
3321 2014-03-12  Enrica Casucci  <enrica@apple.com>
3322
3323         [iOS WebKit2] Crash when trying to select inside a video element with longpress..
3324         https://bugs.webkit.org/show_bug.cgi?id=130095
3325         <rdar://problem/16294534>
3326
3327         Reviewed by Benjamin Poulain.
3328
3329         We only need to set the assisted node for nodes that will receive an
3330         input peripheral (keyboard, picker, popover, etc.).
3331
3332         * WebProcess/WebPage/ios/WebPageIOS.mm:
3333         (WebKit::WebPage::rangeForWebSelectionAtPosition):
3334         (WebKit::WebPage::elementDidFocus):
3335
3336 2014-03-12  Simon Fraser  <simon.fraser@apple.com>
3337
3338         Have the scrolling tree track the viewport size, not the viewport rect
3339         https://bugs.webkit.org/show_bug.cgi?id=130141
3340
3341         Reviewed by Beth Dakin.
3342
3343         The scrolling tree only needs to know the size of the viewport, not its
3344         origin, since the origin is deduced from the updated scroll position.
3345
3346         * Shared/Scrolling/RemoteScrollingCoordinatorTransaction.cpp:
3347         (ArgumentCoder<ScrollingStateScrollingNode>::encode):
3348         (ArgumentCoder<ScrollingStateScrollingNode>::decode):
3349
3350 2014-03-12  Commit Queue  <commit-queue@webkit.org>
3351
3352         Unreviewed, rolling out r165481.
3353         https://bugs.webkit.org/show_bug.cgi?id=130151
3354
3355         That didn't go well. (Requested by kling on #webkit).
3356
3357         Reverted changeset:
3358
3359         https://bugs.webkit.org/show_bug.cgi?id=130140
3360         http://trac.webkit.org/changeset/165481
3361
3362 2014-03-12  Carlos Garcia Campos  <cgarcia@igalia.com>
3363
3364         [GTK] Runtime error when page is closed while print operation is in progress
3365         https://bugs.webkit.org/show_bug.cgi?id=129869
3366
3367         Reviewed by Anders Carlsson.
3368
3369         Sometimes when the page is closed right after printing the web
3370         process aborts with the runtime message "pure virtual method
3371         called terminate called without an active exception".
3372         This happens because the page is closed when the pages have been
3373         printed, but print job is still ongoing sending the data to the
3374         printer. When print job finishes, we try to notify the UI process
3375         sending the print callback message using WebPage::send(), but the
3376         web page object has been destroyed. The virtual method it complains
3377         about is probably MessageSender::messageSenderDestinationID() used
3378         by send(). Since our print operation is always asynchronous, we
3379         need a way to notify the web page when the print operation has
3380         actually finished to clean it up, but also notify the print
3381         operation when the page has been closed to not try to notify the
3382         UI process in that case.
3383
3384         * WebProcess/WebPage/WebPage.cpp:
3385         (WebKit::WebPage::close): Call disconnectFromPage to notify the
3386         print operation in case there's an ongoing print job.
3387         (WebKit::WebPage::endPrinting): Do not cleanup the print operation
3388         here, since the print opertation might not have finished yet.
3389         (WebKit::WebPage::didFinishPrintOperation): Send
3390         PrintFinishedCallback message to the Ui process and cleanup the
3391         print operation.
3392         * WebProcess/WebPage/WebPage.h:
3393         * WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:
3394         (WebKit::WebPrintOperationGtk::disconnectFromPage): Set m_webPage
3395         to nullptr.
3396         (WebKit::WebPrintOperationGtk::printDone): Call
3397         didFinishPrintOperation() is the web page hasn't been closed.
3398         * WebProcess/WebPage/gtk/WebPrintOperationGtk.h:
3399
3400 2014-03-12  Andreas Kling  <akling@apple.com>
3401
3402         BundlePageDiagnosticLoggingClient leaks every string passing through it.
3403         <https://webkit.org/b/130140>
3404         <rdar://problem/15416838>
3405
3406         Use toAPI() instead of toCopiedAPI() so the receiving end doesn't need
3407         to worry about adopting the WKStringRef.
3408
3409         Reviewed by Anders Carlsson.
3410
3411         * WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.cpp:
3412         (WebKit::InjectedBundlePageDiagnosticLoggingClient::logDiagnosticMessage):
3413
3414 2014-03-12  Tim Horton  <timothy_horton@apple.com>
3415
3416         Hook up image controls for WebKit1
3417         https://bugs.webkit.org/show_bug.cgi?id=130062
3418         <rdar://problem/15964809>
3419
3420         Reviewed by Brady Eidson.
3421
3422         * Shared/ContextMenuContextData.cpp:
3423         (WebKit::ContextMenuContextData::ContextMenuContextData):
3424
3425 2014-03-11  Alexey Proskuryakov  <ap@apple.com>
3426
3427         REGRESSION (r165356): [Mac] Multi-part key bindings don't work
3428         https://bugs.webkit.org/show_bug.cgi?id=130100
3429
3430         Reviewed by Darin Adler.
3431
3432         Restore the previous behavior, where we only interpreted keydowns (including those
3433         coming through performKeyEquivalent).
3434
3435         In the future, we might send all events to input methods, but not to key bindings.
3436
3437         * UIProcess/API/mac/WKView.mm:
3438         (-[WKView keyUp:]):
3439         (-[WKView flagsChanged:]):
3440
3441 2014-03-11  Beth Dakin  <bdakin@apple.com>
3442
3443         _pageExtendedBackgroundColor should not be exposed on WKWebView
3444         https://bugs.webkit.org/show_bug.cgi?id=130093
3445
3446         Reviewed by Simon Fraser.
3447
3448         Added comment indicating that _pageExtendedBackgroundColor is deprecated.
3449         * UIProcess/API/Cocoa/WKViewPrivate.h:
3450
3451         _pageExtendedBackgroundColor now returns nil, but the conversation functionality 
3452         is maintained with a convenience method pageExtendedBackgroundColor.
3453         * UIProcess/API/Cocoa/WKWebView.mm:
3454         (-[WKWebView pageExtendedBackgroundColor]):
3455         (-[WKWebView _didCommitLayerTree:WebKit::]):
3456         (-[WKWebView _pageExtendedBackgroundColor]):
3457
3458         Added comment indicating that _pageExtendedBackgroundColor is deprecated.
3459         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
3460
3461         Return nil.
3462         * UIProcess/API/ios/WKViewIOS.mm:
3463         (-[WKView _pageExtendedBackgroundColor]):
3464
3465 2014-03-11  Jae Hyun Park  <jaepark@webkit.org>
3466
3467         [GTK][CMake] Add HARFBUZZ_INCLUDE_DIRS to WebKit and WebKit2
3468         https://bugs.webkit.org/show_bug.cgi?id=130070
3469
3470         Reviewed by Martin Robinson.
3471
3472         * PlatformGTK.cmake:
3473
3474 2014-03-10  Dan Bernstein  <mitz@apple.com>
3475
3476         [Cocoa] Expose WebPageProxy::close
3477         https://bugs.webkit.org/show_bug.cgi?id=130068
3478
3479         Reviewed by Adele Peterson.
3480
3481         * UIProcess/API/Cocoa/WKWebView.mm:
3482         (-[WKWebView _close]):
3483         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
3484
3485 2014-03-10  Benjamin Poulain  <bpoulain@apple.com>
3486
3487         [iOS][WebKit 2] Wire the unobscured rect in the WebProcess
3488         https://bugs.webkit.org/show_bug.cgi?id=130058
3489
3490         Reviewed by Simon Fraser.
3491
3492         * WebProcess/WebPage/ios/WebPageIOS.mm:
3493         (WebKit::WebPage::updateVisibleContentRects):
3494
3495 2014-03-10  Simon Fraser  <simon.fraser@apple.com>
3496
3497         Fix three leaks
3498         https://bugs.webkit.org/show_bug.cgi?id=130048
3499
3500         Reviewed by Anders Carlsson.
3501
3502         * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
3503         (decodeObject): Code is simpler and less leaky without the RetainPtr.
3504         * UIProcess/API/Cocoa/WKNavigationAction.mm: Fix _originalURL leak
3505         by making it a RetainPtr and implementing the getter and setter.
3506         (-[WKNavigationAction _setOriginalURL:]):
3507         (-[WKNavigationAction _originalURL]):
3508
3509 2014-03-10  Beth Dakin  <bdakin@apple.com>
3510
3511         Set background color of WK2's UIScrollView to the pageExtendedBackgroundColor
3512         https://bugs.webkit.org/show_bug.cgi?id=129919
3513
3514         Reviewed by Benjamin Poulain.
3515
3516         Make the pageExtendedBackgroundColor part of a RemoteLayerTreeTransaction.
3517         * Shared/mac/RemoteLayerTreeTransaction.h:
3518         (WebKit::RemoteLayerTreeTransaction::pageExtendedBackgroundColor):
3519         (WebKit::RemoteLayerTreeTransaction::setPageExtendedBackgroundColor):
3520         * Shared/mac/RemoteLayerTreeTransaction.mm:
3521         (WebKit::RemoteLayerTreeTransaction::encode):
3522         (WebKit::RemoteLayerTreeTransaction::decode):
3523
3524         Set the background color of the UIScrollView based on the