fb6014add71aa26684df004a0d0de2145b52b59b
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2013-02-15  Anders Carlsson  <andersca@apple.com>
2
3         Add HashMap::isValidKey and HashSet::isValidValue
4         https://bugs.webkit.org/show_bug.cgi?id=109977
5
6         Reviewed by Sam Weinig and Darin Adler.
7
8         Just call HashMap::isValidKey directly.
9
10         * UIProcess/WebProcessProxy.cpp:
11         (WebKit::generatePageID):
12         Initialize the id to 0 and use prefix increment.
13
14         (WebKit::WebProcessProxy::webFrame):
15         (WebKit::WebProcessProxy::canCreateFrame):
16         (WebKit::WebProcessProxy::didDestroyFrame):
17
18 2013-02-15  Csaba Osztrogonác  <ossy@webkit.org>
19
20         Typo fix after r143064.
21
22         * Platform/CoreIPC/win/ConnectionWin.cpp:
23         (CoreIPC::Connection::sendOutgoingMessage):
24
25 2013-02-15  Csaba Osztrogonác  <ossy@webkit.org>
26
27         One more buildfix after r143052.
28
29         * Platform/CoreIPC/win/ConnectionWin.cpp:
30         (CoreIPC::Connection::sendOutgoingMessage):
31
32 2013-02-15  Csaba Osztrogonác  <ossy@webkit.org>
33
34         Unreviewed buildfix after r143052 for Qt/GTK/EFL ports.
35
36         * Platform/unix/SharedMemoryUnix.cpp:
37         (WebKit::SharedMemory::Handle::encode):
38         * Platform/win/SharedMemoryWin.cpp:
39         (WebKit::SharedMemory::Handle::encode):
40         * Shared/Network/NetworkResourceLoadParameters.cpp:
41         (WebKit::NetworkResourceLoadParameters::encode):
42         * Shared/WebBatteryStatus.cpp:
43         (WebKit::WebBatteryStatus::Data::encode):
44         * Shared/WebNetworkInfo.cpp:
45         (WebKit::WebNetworkInfo::Data::encode):
46         * Shared/efl/LayerTreeContextEfl.cpp:
47         (WebKit::LayerTreeContext::encode):
48         * Shared/gtk/LayerTreeContextGtk.cpp:
49         (WebKit::LayerTreeContext::encode):
50         * Shared/qt/LayerTreeContextQt.cpp:
51         (WebKit::LayerTreeContext::encode):
52         * Shared/qt/QtNetworkReplyData.cpp:
53         (WebKit::QtNetworkReplyData::encode):
54         * Shared/qt/QtNetworkRequestData.cpp:
55         (WebKit::QtNetworkRequestData::encode):
56         * Shared/soup/PlatformCertificateInfo.cpp:
57         (WebKit::PlatformCertificateInfo::encode):
58
59 2013-02-15  Anders Carlsson  <andersca@apple.com>
60
61         Make most ArgumentEncoder::encode member functions private
62         https://bugs.webkit.org/show_bug.cgi?id=109973
63
64         Reviewed by Sam Weinig.
65
66         Make the encode overloads private; the stream operator should be used instead.
67
68         * Platform/CoreIPC/ArgumentEncoder.h:
69         (ArgumentEncoder):
70         * Platform/CoreIPC/Arguments.h:
71         (CoreIPC::Arguments1::encode):
72         (CoreIPC::Arguments2::encode):
73         (CoreIPC::Arguments3::encode):
74         (CoreIPC::Arguments4::encode):
75         (CoreIPC::Arguments5::encode):
76         (CoreIPC::Arguments6::encode):
77         (CoreIPC::Arguments7::encode):
78         (CoreIPC::Arguments8::encode):
79         (CoreIPC::Arguments10::encode):
80         * Platform/CoreIPC/Connection.cpp:
81         (CoreIPC::Connection::createSyncMessageEncoder):
82         * Platform/CoreIPC/MessageEncoder.cpp:
83         (CoreIPC::MessageEncoder::MessageEncoder):
84         * Scripts/webkit2/messages.py:
85         (generate_message_handler):
86         * Scripts/webkit2/messages_unittest.py:
87         * Shared/Network/NetworkResourceLoadParameters.cpp:
88         (WebKit::NetworkResourceLoadParameters::encode):
89         * WebProcess/WebPage/EncoderAdapter.cpp:
90         (WebKit::EncoderAdapter::EncoderAdapter):
91         (WebKit::EncoderAdapter::encodeBytes):
92         (WebKit::EncoderAdapter::encodeBool):
93         (WebKit::EncoderAdapter::encodeUInt16):
94         (WebKit::EncoderAdapter::encodeUInt32):
95         (WebKit::EncoderAdapter::encodeUInt64):
96         (WebKit::EncoderAdapter::encodeInt32):
97         (WebKit::EncoderAdapter::encodeInt64):
98         (WebKit::EncoderAdapter::encodeFloat):
99         (WebKit::EncoderAdapter::encodeDouble):
100         (WebKit::EncoderAdapter::encodeString):
101
102 2013-02-15  Anders Carlsson  <andersca@apple.com>
103
104         Add a synchronous GetValues message to StorageManager
105         https://bugs.webkit.org/show_bug.cgi?id=109968
106
107         Reviewed by Sam Weinig.
108
109         * Platform/CoreIPC/Connection.cpp:
110         (CoreIPC::Connection::dispatchWorkQueueMessageReceiverMessage):
111         Handle synchronous messages.
112
113         (CoreIPC::Connection::processIncomingMessage):
114         Check for work queue message receivers before doing any other processing.
115
116         * UIProcess/Storage/StorageManager.cpp:
117         (WebKit::StorageManager::getValues):
118         Add empty stub.
119
120         * UIProcess/Storage/StorageManager.h:
121         * UIProcess/Storage/StorageManager.messages.in:
122         Add GetValues message.
123
124         * WebProcess/Storage/StorageAreaProxy.cpp:
125         (WebKit::StorageAreaProxy::loadValuesIfNeeded):
126         Send the GetValues message.
127
128 2013-02-15  Anders Carlsson  <andersca@apple.com>
129
130         A storage area should know its storage type
131         https://bugs.webkit.org/show_bug.cgi?id=109964
132
133         Reviewed by Andreas Kling.
134
135         * WebProcess/Storage/StorageAreaProxy.cpp:
136         (WebKit::StorageAreaProxy::StorageAreaProxy):
137         (WebKit::StorageAreaProxy::disabledByPrivateBrowsingInFrame):
138         * WebProcess/Storage/StorageAreaProxy.h:
139         (StorageAreaProxy):
140         * WebProcess/Storage/StorageNamespaceProxy.cpp:
141         (WebKit::StorageNamespaceProxy::storageType):
142         (WebKit):
143         * WebProcess/Storage/StorageNamespaceProxy.h:
144         (StorageNamespaceProxy):
145
146 2013-02-15  Anders Carlsson  <andersca@apple.com>
147
148         Implement StorageAreaProxy::length
149         https://bugs.webkit.org/show_bug.cgi?id=109962
150
151         Reviewed by Andreas Kling.
152
153         * WebProcess/Storage/StorageAreaProxy.cpp:
154         (WebKit::StorageAreaProxy::length):
155         Load the values if needed and then return the length.
156
157         (WebKit::StorageAreaProxy::disabledByPrivateBrowsingInFrame):
158         Add helper function.
159
160         (WebKit::StorageAreaProxy::loadValuesIfNeeded):
161         Just allocate the hash map for now.
162
163         * WebProcess/Storage/StorageAreaProxy.h:
164         (StorageAreaProxy):
165
166 2013-02-15  Anders Carlsson  <andersca@apple.com>
167
168         Remove const from a bunch of StorageArea member functions
169         https://bugs.webkit.org/show_bug.cgi?id=109957
170
171         Reviewed by Beth Dakin.
172
173         Update for WebCore changes.
174
175         * WebProcess/Storage/StorageAreaProxy.cpp:
176         (WebKit::StorageAreaProxy::length):
177         (WebKit::StorageAreaProxy::key):
178         (WebKit::StorageAreaProxy::getItem):
179         (WebKit::StorageAreaProxy::contains):
180         (WebKit::StorageAreaProxy::canAccessStorage):
181         (WebKit::StorageAreaProxy::memoryBytesUsedByCache):
182         * WebProcess/Storage/StorageAreaProxy.h:
183         (StorageAreaProxy):
184
185 2013-02-15  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
186
187         [EFL][WK2] Use C API inside BatteryProvider and NetworkInfoProvider
188         https://bugs.webkit.org/show_bug.cgi?id=107821
189
190         Reviewed by Anders Carlsson.
191
192         BatteryProvider and NetworkInfoProvider should use C API
193         instead of accessing the internal C++ classes directly.
194
195         * UIProcess/API/efl/ewk_context.cpp:
196         (EwkContext::EwkContext):
197         * UIProcess/efl/BatteryProvider.cpp:
198         (BatteryProvider::~BatteryProvider):
199         (BatteryProvider::create):
200         (BatteryProvider::BatteryProvider):
201         (BatteryProvider::didChangeBatteryStatus):
202         * UIProcess/efl/BatteryProvider.h:
203         (BatteryProvider):
204         * UIProcess/efl/NetworkInfoProvider.cpp:
205         (NetworkInfoProvider::create):
206         (NetworkInfoProvider::NetworkInfoProvider):
207         (NetworkInfoProvider::~NetworkInfoProvider):
208         * UIProcess/efl/NetworkInfoProvider.h:
209         (NetworkInfoProvider):
210
211 2013-02-15  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
212
213         [WK2][EFL]REGRESSION (r141978): ewk_view_type_check api test failing
214         https://bugs.webkit.org/show_bug.cgi?id=109038
215
216         Reviewed by Anders Carlsson.
217
218         EFL API is defensive by its nature and expects graceful handling of wrong function arguments
219         whereas webkit implementation code does not. This patch adds new 'toEwkViewChecked' function,
220         which provides handling of wrong arguments, to be used within EFL API layer code.
221
222         * UIProcess/API/efl/EwkView.cpp:
223         (toEwkView):
224
225             EwkView* toEwkView(const Ewk_View_Smart_Data* smartData) is not exported anymore
226             as it's used within EwkView class only.        
227
228         (EwkView::handleTouchMove):
229         * UIProcess/API/efl/EwkView.h:
230         * UIProcess/API/efl/ewk_view.cpp:
231         (toEwkViewChecked):
232
233 2013-02-15  Christophe Dumez  <ch.dumez@sisa.samsung.com>
234
235         [EFL][WK2] Have WebView subclass PageClient
236         https://bugs.webkit.org/show_bug.cgi?id=109684
237
238         Reviewed by Anders Carlsson.
239
240         Stop constructing the PageClient in EwkView. PageClient is an internal
241         class and we should not use it directly in our Ewk implementation.
242         Instead, have WebView subclass PageClient. The PageClient implementation
243         just calls WebView methods otherwise.
244
245         * PlatformEfl.cmake:
246         * UIProcess/API/efl/EwkView.cpp:
247         (EwkView::EwkView):
248         (EwkView::setSize):
249         * UIProcess/API/efl/EwkView.h:
250         (WebKit):
251         (EwkView):
252         (EwkView::webView):
253         * UIProcess/API/efl/ewk_view.cpp:
254         * UIProcess/efl/PageClientBase.cpp: Removed.
255         * UIProcess/efl/PageClientBase.h: Removed.
256         * UIProcess/efl/PageClientDefaultImpl.cpp: Removed.
257         * UIProcess/efl/PageClientDefaultImpl.h: Removed.
258         * UIProcess/efl/PageClientLegacyImpl.cpp: Removed.
259         * UIProcess/efl/PageClientLegacyImpl.h: Removed.
260         * UIProcess/efl/PageLoadClientEfl.cpp:
261         (WebKit::PageLoadClientEfl::didCommitLoadForFrame):
262         * UIProcess/efl/PageViewportControllerClientEfl.h:
263         * UIProcess/efl/WebPageProxyEfl.cpp:
264         (WebKit::WebPageProxy::viewWidget):
265         * UIProcess/efl/WebView.cpp:
266         (WebKit::WebView::WebView):
267         (WebKit::WebView::~WebView):
268         (WebKit::WebView::initialize):
269         (WebKit):
270         (WebKit::WebView::evasObject):
271         (WebKit::WebView::setThemePath):
272         (WebKit::WebView::setDrawsBackground):
273         (WebKit::WebView::drawsBackground):
274         (WebKit::WebView::setDrawsTransparentBackground):
275         (WebKit::WebView::drawsTransparentBackground):
276         (WebKit::WebView::suspendActiveDOMObjectsAndAnimations):
277         (WebKit::WebView::resumeActiveDOMObjectsAndAnimations):
278         (WebKit::WebView::didCommitLoad):
279         (WebKit::WebView::updateViewportSize):
280         (WebKit::WebView::didChangeContentsSize):
281         (WebKit::WebView::createDrawingAreaProxy):
282         (WebKit::WebView::setViewNeedsDisplay):
283         (WebKit::WebView::displayView):
284         (WebKit::WebView::scrollView):
285         (WebKit::WebView::viewSize):
286         (WebKit::WebView::isViewWindowActive):
287         (WebKit::WebView::isViewFocused):
288         (WebKit::WebView::isViewVisible):
289         (WebKit::WebView::isViewInWindow):
290         (WebKit::WebView::processDidCrash):
291         (WebKit::WebView::didRelaunchProcess):
292         (WebKit::WebView::pageClosed):
293         (WebKit::WebView::toolTipChanged):
294         (WebKit::WebView::setCursor):
295         (WebKit::WebView::setCursorHiddenUntilMouseMoves):
296         (WebKit::WebView::registerEditCommand):
297         (WebKit::WebView::clearAllEditCommands):
298         (WebKit::WebView::canUndoRedo):
299         (WebKit::WebView::executeUndoRedo):
300         (WebKit::WebView::screenToWindow):
301         (WebKit::WebView::windowToScreen):
302         (WebKit::WebView::doneWithKeyEvent):
303         (WebKit::WebView::doneWithTouchEvent):
304         (WebKit::WebView::createPopupMenuProxy):
305         (WebKit::WebView::createContextMenuProxy):
306         (WebKit::WebView::createColorChooserProxy):
307         (WebKit::WebView::setFindIndicator):
308         (WebKit::WebView::enterAcceleratedCompositingMode):
309         (WebKit::WebView::exitAcceleratedCompositingMode):
310         (WebKit::WebView::updateAcceleratedCompositingMode):
311         (WebKit::WebView::didCommitLoadForMainFrame):
312         (WebKit::WebView::didFinishLoadingDataForCustomRepresentation):
313         (WebKit::WebView::customRepresentationZoomFactor):
314         (WebKit::WebView::setCustomRepresentationZoomFactor):
315         (WebKit::WebView::flashBackingStoreUpdates):
316         (WebKit::WebView::findStringInCustomRepresentation):
317         (WebKit::WebView::countStringMatchesInCustomRepresentation):
318         (WebKit::WebView::updateTextInputState):
319         (WebKit::WebView::handleDownloadRequest):
320         (WebKit::WebView::convertToDeviceSpace):
321         (WebKit::WebView::convertToUserSpace):
322         (WebKit::WebView::didChangeViewportProperties):
323         (WebKit::WebView::pageDidRequestScroll):
324         (WebKit::WebView::didRenderFrame):
325         (WebKit::WebView::pageTransitionViewportReady):
326         * UIProcess/efl/WebView.h:
327         (WebKit):
328         (WebView):
329         (WebKit::WebView::pageRef):
330         (WebKit::WebView::page):
331         (WebKit::WebView::canScrollView):
332
333 2013-02-15  Milian Wolff  <milian.wolff@kdab.com>
334
335         [Qt] Restore URL Scheme Delegates after QtWebProcess crash
336         https://bugs.webkit.org/show_bug.cgi?id=108808
337
338         When the QtWebProcess crashes, the registered URL Scheme
339         Delegates are not properly restored over IPC in the newly
340         launched process instance.
341
342         Reviewed by Simon Hausmann.
343
344         * UIProcess/API/qt/qquickwebview.cpp:
345         (QQuickWebViewPrivate::didRelaunchProcess):
346         (QQuickWebViewPrivate::updateSchemeDelegates):
347         * UIProcess/API/qt/qquickwebview_p_p.h:
348         (QQuickWebViewPrivate):
349
350 2013-02-15  Allan Sandfeld Jensen  <allan.jensen@digia.com>
351
352         Simplify hitTestResultAtPoint and nodesFromRect APIs
353         https://bugs.webkit.org/show_bug.cgi?id=95720
354
355         Reviewed by Julien Chaffraix and Maciej Stachowiak.
356
357         Update calls to new API and update exported symbols.
358
359         * WebProcess/InjectedBundle/InjectedBundleNavigationAction.cpp:
360         (WebKit::InjectedBundleNavigationAction::InjectedBundleNavigationAction):
361         * WebProcess/WebPage/WebFrame.cpp:
362         (WebKit::WebFrame::hitTest):
363         * WebProcess/WebPage/WebPage.cpp:
364         (WebKit::handleContextMenuEvent):
365         (WebKit::WebPage::highlightPotentialActivation):
366         (WebKit::WebPage::findZoomableAreaForPoint):
367         * WebProcess/WebPage/mac/WebPageMac.mm:
368         (WebKit::WebPage::characterIndexForPoint):
369         (WebKit::WebPage::performDictionaryLookupAtLocation):
370         (WebKit::WebPage::shouldDelayWindowOrderingEvent):
371         (WebKit::WebPage::acceptsFirstMouse):
372
373 2013-02-14  Huang Dongsung  <luxtella@company100.net>
374
375         [WK2] Rename from scrollOffset to scrollDelta in WebChromeClient.
376         https://bugs.webkit.org/show_bug.cgi?id=109885
377
378         Reviewed by Simon Fraser.
379
380         Chrome sends a scroll delta to WebChromeClient but WebChromeClient names it
381         scrollOffset. So this patch corrects this misnaming.
382
383         In addition, all subclasses of LayerTreeHost don't use the misnamed
384         scrollOffset in scrollNonCompositedContents(), so this patch removes the
385         scrollOffset argument.
386
387         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
388         (WebKit::WebChromeClient::scroll):
389         * WebProcess/WebCoreSupport/WebChromeClient.h:
390         (WebChromeClient):
391         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
392         (WebKit::CoordinatedLayerTreeHost::scrollNonCompositedContents):
393         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
394         (CoordinatedLayerTreeHost):
395         * WebProcess/WebPage/DrawingArea.h:
396         (DrawingArea):
397         * WebProcess/WebPage/DrawingAreaImpl.cpp:
398         (WebKit::DrawingAreaImpl::scroll):
399         * WebProcess/WebPage/DrawingAreaImpl.h:
400         (DrawingAreaImpl):
401         * WebProcess/WebPage/LayerTreeHost.h:
402         (LayerTreeHost):
403         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
404         (WebKit::LayerTreeHostGtk::scrollNonCompositedContents):
405         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
406         (LayerTreeHostGtk):
407         * WebProcess/WebPage/mac/LayerTreeHostMac.h:
408         (LayerTreeHostMac):
409         * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
410         (WebKit::LayerTreeHostMac::scrollNonCompositedContents):
411         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
412         (RemoteLayerTreeDrawingArea):
413         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
414         (WebKit::RemoteLayerTreeDrawingArea::scroll):
415         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
416         (TiledCoreAnimationDrawingArea):
417         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
418         (WebKit::TiledCoreAnimationDrawingArea::scroll):
419
420 2013-02-14  Alexey Proskuryakov  <ap@apple.com>
421
422         <rdar://problem/13161700> REGRESSION: Safari is unable to make SSL connections
423         when running from recovery partition
424
425         Reviewed by Sam Weinig.
426
427         * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
428         * WebProcess/com.apple.WebProcess.sb.in:
429         Re-added /private/var/db/mds/system rules lost in r141445.
430
431 2013-02-14  Anders Carlsson  <andersca@apple.com>
432
433         Add WKContextIsPlugInUpdateAvailable
434         https://bugs.webkit.org/show_bug.cgi?id=109862
435         <rdar://problem/13173140>
436
437         Reviewed by Sam Weinig.
438
439         * UIProcess/API/C/mac/WKContextPrivateMac.h:
440         * UIProcess/API/C/mac/WKContextPrivateMac.mm: Renamed from Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.cpp.
441         (WKContextGetProcessSuppressionEnabled):
442         (WKContextSetProcessSuppressionEnabled):
443         (WKContextIsPlugInUpdateAvailable):
444         * WebKit2.xcodeproj/project.pbxproj:
445
446 2013-02-14  Zan Dobersek  <zdobersek@igalia.com>
447
448         [GTK] Errors when building WebKit2 with Clang
449         https://bugs.webkit.org/show_bug.cgi?id=109603
450
451         Reviewed by Alexey Proskuryakov.
452
453         * UIProcess/API/gtk/WebKitUIClient.cpp:
454         (setWindowFrame): Cast the position parameters to the integer type when constructing the GdkRectangle.
455         * UIProcess/Authentication/WebCredential.cpp: Add an empty implementation of the newly specified destructor.
456         * UIProcess/Authentication/WebCredential.h: Work around the incomplete WebCertificateInfo type errors thrown in the inline
457         RefPtr destructor of the m_certificateInfo class member by defining a destructor in the class.
458         * WebProcess/WebCoreSupport/WebEditorClient.h: The GTK-specific methods are not virtual and as such cannot be overriden.
459         The OVERRIDE keywords are thus unnecessary.
460
461 2013-02-14  David Kilzer  <ddkilzer@apple.com>
462
463         [Mac] Clean up WARNING_CFLAGS
464         <http://webkit.org/b/109747>
465         <rdar://problem/13208373>
466
467         Reviewed by Mark Rowe.
468
469         * Configurations/Base.xcconfig: Use
470         GCC_WARN_64_TO_32_BIT_CONVERSION to enable and disable
471         -Wshorten-64-to-32 rather than WARNING_CFLAGS.
472
473 2013-02-14  Sam Weinig  <sam@webkit.org>
474
475         Add conversions between ObjC and C DOM wrappers
476         <rdar://problem/13205468>
477         https://bugs.webkit.org/show_bug.cgi?id=109851
478
479         Reviewed by Anders Carlsson.
480
481         * WebKit2.xcodeproj/project.pbxproj:
482         * WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.cpp:
483         (WKBundleRangeHandleCreate):
484         * WebProcess/InjectedBundle/API/c/WKBundleRangeHandlePrivate.h: Added.
485         * WebProcess/InjectedBundle/API/mac/WKDOMNode.mm:
486         (-[WKDOMNode _copyBundleNodeHandleRef]):
487         * WebProcess/InjectedBundle/API/mac/WKDOMNodePrivate.h: Added.
488         * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm:
489         (-[WKDOMRange _copyBundleRangeHandleRef]):
490         * WebProcess/InjectedBundle/API/mac/WKDOMRangePrivate.h: Added.
491         * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
492         (WebKit::InjectedBundleRangeHandle::getOrCreate):
493         * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.h:
494         (InjectedBundleRangeHandle):
495
496 2013-02-13  Anders Carlsson  <andersca@apple.com>
497
498         Remove StringPairVector
499         https://bugs.webkit.org/show_bug.cgi?id=109778
500
501         Reviewed by Ryosuke Niwa.
502
503         Our message generation scripts can handle nested template parameter types now,
504         so we no longer need to use StringPairVector.
505
506         * Shared/StringPairVector.h: Removed.
507         * UIProcess/WebPageProxy.cpp:
508         (WebKit::WebPageProxy::willSubmitForm):
509         * UIProcess/WebPageProxy.h:
510         (WebPageProxy):
511         * UIProcess/WebPageProxy.messages.in:
512         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
513         (WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
514
515 2013-02-13  Dean Jackson  <dino@apple.com>
516
517         PlugIn Autostart should expire in 30 days, not half a day
518         https://bugs.webkit.org/show_bug.cgi?id=109767
519
520         Reviewed by Brian Weinstein.
521
522         We forgot to multiply by 60 seconds in a minute.
523
524         * UIProcess/Plugins/PlugInAutoStartProvider.cpp:
525
526 2013-02-13  Anders Carlsson  <andersca@apple.com>
527
528         Message generation should handle nested templates
529         https://bugs.webkit.org/show_bug.cgi?id=109771
530
531         Reviewed by Ryosuke Niwa.
532
533         Make it possible to have nested class template types as message parameters and
534         correctly gather all the needed headers and argument coder headers.
535
536         * Scripts/webkit2/messages.py:
537         (class_template_headers):
538         Recursively figure out the types and template headers needed for a given type.
539
540         (argument_coder_headers_for_type):
541         (headers_for_type):
542         Call class_template_headers.
543
544         * Scripts/webkit2/messages_unittest.py:
545         (CoreIPC):
546         * Scripts/webkit2/parser.py:
547         (split_parameters_string):
548         (parse_parameters_string):
549
550 2013-02-13  David Farler  <dfarler@apple.com>
551
552         Make WebKit2 Derived Sources work with SDK identifiers too
553         https://bugs.webkit.org/show_bug.cgi?id=109763
554
555         Reviewed by David Kilzer.
556
557         * WebKit2.xcodeproj/project.pbxproj: Pass SDKROOT=${SDKROOT} to DerivedSources.make
558
559 2013-02-13  Csaba Osztrogonác  <ossy@webkit.org>
560
561         One more buildfix for !ENABLE(PLUGIN_PROCESS) platforms.
562
563         * WebProcess/WebProcess.cpp:
564         (WebKit::WebProcess::WebProcess):
565
566 2013-02-13  Csaba Osztrogonác  <ossy@webkit.org>
567
568         Unreviewed Qt-Mac and Qt-Win buildfix after r142768.
569
570         * WebProcess/WebProcess.h:
571         (WebKit):
572
573 2013-02-13  Adam Barth  <abarth@webkit.org>
574
575         Remove bogus ASSERT in WebFrameProxy::didStartProvisionalLoad
576         https://bugs.webkit.org/show_bug.cgi?id=109733
577
578         Reviewed by Sam Weinig.
579
580         After http://trac.webkit.org/changeset/142555, this ASSERT is
581         triggering on these tests:
582
583         fast/dom/window-load-crash.html
584         fast/frames/seamless/seamless-hyperlink-named.html
585         fast/frames/seamless/seamless-hyperlink.html
586
587         The ASSERT appears to be bogus. This patch removes it.
588
589         * UIProcess/WebFrameProxy.cpp:
590         (WebKit::WebFrameProxy::didStartProvisionalLoad):
591
592 2013-02-13  Sam Weinig  <sam@webkit.org>
593
594         Consolidate main functions in WebKit2 now that they are all identical
595         https://bugs.webkit.org/show_bug.cgi?id=109748
596
597         Reviewed by Anders Carlsson.
598
599         - Consolidates all the LegacyProcess main functions into ChildProcessMain.mm
600         - Consolidates all the XPCService main functions into XPCServiceMain.mm and XPCServiceMain.Development.mm
601         - Rename existing ChildProcessMain.h/mm to ChildProcessEntryPoint.h/mm to match the XPCService ones.
602         - Switch LegacyProcess to use the "entry point in the plist" idiom, instead of hard coding each one, again
603           matching the XPCService.
604
605         * Configurations/BaseLegacyProcess.xcconfig: Add base configuration to hold common legacy process options.
606         * Configurations/BaseXPCService.xcconfig:
607         * Configurations/NetworkProcess.xcconfig:
608         * Configurations/OfflineStorageProcess.xcconfig:
609         * Configurations/PluginProcess.xcconfig:
610         * Configurations/SharedWorkerProcess.xcconfig:
611         * Configurations/WebContentProcess.xcconfig: Renamed form  WebProcess.xcconfig.
612         * NetworkProcess/EntryPoint/mac/LegacyProcess/Info.plist:
613         * NetworkProcess/EntryPoint/mac/LegacyProcess/NetworkProcessMain.mm:
614         * NetworkProcess/EntryPoint/mac/LegacyProcess/NetworkProcessMainBootstrapper.cpp: Removed.
615         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/NetworkServiceMain.Development.mm: Removed.
616         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/NetworkServiceMain.mm: Removed.
617         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/Info.plist:
618         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/OfflineStorageProcessMain.mm:
619         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/OfflineStorageProcessMainBootstrapper.cpp: Removed.
620         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService.Development/OfflineStorageServiceMain.Development.mm: Removed.
621         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService/OfflineStorageServiceMain.mm: Removed.
622         * PluginProcess/EntryPoint/mac/LegacyProcess/Info.plist:
623         * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
624         * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMainBootstrapper.cpp: Removed.
625         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/PluginService.64.Main.mm: Removed.
626         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/PluginService.Development.Main.mm: Removed.
627         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.h: 
628         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.mm: 
629         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.h: Removed.
630         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.mm: Replaced.
631         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMainBootstrapper.h: Removed.
632         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.Development.h: Removed.
633         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.h: Removed.
634         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm:
635         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.mm:
636         * SharedWorkerProcess/EntryPoint/mac/LegacyProcess/Info.plist:
637         * SharedWorkerProcess/EntryPoint/mac/LegacyProcess/SharedWorkerProcessMain.mm:
638         * SharedWorkerProcess/EntryPoint/mac/LegacyProcess/SharedWorkerProcessMainBootstrapper.cpp: Removed.
639         * WebProcess/EntryPoint/mac/LegacyProcess/Info.plist:
640         * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm:
641         * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMainBootstrapper.cpp: Removed.
642         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/WebContentServiceMain.Development.mm: Removed.
643         * WebProcess/EntryPoint/mac/XPCService/WebContentService/WebContentServiceMain.mm: Removed.
644         * WebKit2.xcodeproj/project.pbxproj:
645
646 2013-02-13  Christophe Dumez  <ch.dumez@sisa.samsung.com>
647
648         [EFL][WK2] Stop using WebString in ewk_cookie_manager, ewk_form_submission_request and ewk_text_checker
649         https://bugs.webkit.org/show_bug.cgi?id=108794
650
651         Reviewed by Alexey Proskuryakov.
652
653         Stop using WebString in ewk_cookie_manager, ewk_form_submission_request
654         and ewk_text_checker as it is internal C++ API. WKString and
655         WKEinaSharedString are used instead.
656
657         * UIProcess/API/cpp/efl/WKEinaSharedString.cpp:
658         (WKEinaSharedString::leakString): Add leakString() method to
659         WKEinaSharedString so that we can conveniently convert a WKString to a
660         Eina shared string and take ownership of it.
661         * UIProcess/API/cpp/efl/WKEinaSharedString.h:
662         * UIProcess/API/efl/ewk_cookie_manager.cpp:
663         (getHostnamesWithCookiesCallback):
664         * UIProcess/API/efl/ewk_form_submission_request.cpp:
665         (EwkFormSubmissionRequest::copyFieldValue):
666         (ewk_form_submission_request_field_names_get):
667         (ewk_form_submission_request_field_value_get):
668         * UIProcess/API/efl/ewk_form_submission_request_private.h:
669         (EwkFormSubmissionRequest):
670         * UIProcess/API/efl/ewk_text_checker.cpp:
671         (checkSpellingOfString):
672         (guessesForWord):
673         (learnWord):
674         (ignoreWord):
675         * UIProcess/API/efl/tests/test_ewk2_eina_shared_string.cpp:
676         (TEST_F): Add API test for new WKEinaSharedString::leakString() method.
677
678 2013-02-13  Anders Carlsson  <andersca@apple.com>
679
680         Remove Connection::QueueClient
681         https://bugs.webkit.org/show_bug.cgi?id=109744
682
683         Reviewed by Sam Weinig.
684
685         * Platform/CoreIPC/Connection.cpp:
686         (CoreIPC::Connection::processIncomingMessage):
687         (CoreIPC::Connection::connectionDidClose):
688         * Platform/CoreIPC/Connection.h:
689         (Connection):
690
691 2013-02-13  Anders Carlsson  <andersca@apple.com>
692
693         Try to fix the Lion build.
694
695         * WebProcess/WebPage/EventDispatcher.h:
696         (EventDispatcher):
697
698 2013-02-13  Anders Carlsson  <andersca@apple.com>
699
700         Remove support for the DispatchOnConnectionQueue message attribute
701         https://bugs.webkit.org/show_bug.cgi?id=109743
702
703         Reviewed by Sam Weinig.
704
705         * Platform/CoreIPC/HandleMessage.h:
706         (CoreIPC):
707         * Scripts/webkit2/messages.py:
708         (handler_function):
709         (generate_message_handler):
710         * Scripts/webkit2/messages_unittest.py:
711
712 2013-02-13  Anders Carlsson  <andersca@apple.com>
713
714         StorageManager should be a WorkQueueMessageReceiver
715         https://bugs.webkit.org/show_bug.cgi?id=109741
716
717         Reviewed by Sam Weinig.
718
719         * UIProcess/Storage/StorageManager.cpp:
720         (WebKit::StorageManager::processWillOpenConnection):
721         (WebKit::StorageManager::processWillCloseConnection):
722         (WebKit::StorageManager::createStorageArea):
723         (WebKit::StorageManager::destroyStorageArea):
724         * UIProcess/Storage/StorageManager.h:
725         (StorageManager):
726         * UIProcess/Storage/StorageManager.messages.in:
727
728 2013-02-13  Anders Carlsson  <andersca@apple.com>
729
730         EventDispatcher should be a WorkQueueMessageReceiver
731         https://bugs.webkit.org/show_bug.cgi?id=109736
732
733         Reviewed by Andreas Kling.
734
735         * WebProcess/WebPage/EventDispatcher.cpp:
736         (WebKit::EventDispatcher::create):
737         (WebKit):
738         (WebKit::EventDispatcher::EventDispatcher):
739         (WebKit::EventDispatcher::initializeConnection):
740         (WebKit::EventDispatcher::wheelEvent):
741         (WebKit::EventDispatcher::gestureEvent):
742         * WebProcess/WebPage/EventDispatcher.h:
743         (EventDispatcher):
744         * WebProcess/WebPage/EventDispatcher.messages.in:
745         * WebProcess/WebProcess.cpp:
746         (WebKit::WebProcess::WebProcess):
747         (WebKit::WebProcess::initializeConnection):
748         * WebProcess/WebProcess.h:
749         (WebKit):
750         (WebKit::WebProcess::eventDispatcher):
751         (WebProcess):
752
753 2013-02-13  Christophe Dumez  <ch.dumez@sisa.samsung.com>
754
755         Unreviewed build fix after r142768.
756
757         r142768 broke the EFL WK2 build due to wrong member initialization
758         order in the WebProcess constructor initialization list.
759
760         * WebProcess/WebProcess.cpp:
761         (WebKit::WebProcess::WebProcess):
762
763 2013-02-13  Anders Carlsson  <andersca@apple.com>
764
765         Make PluginProcessConnectionManager a WorkQueueMessageReceiver
766         https://bugs.webkit.org/show_bug.cgi?id=109727
767
768         Reviewed by Andreas Kling.
769
770         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
771         (WebKit::PluginProcessConnectionManager::create):
772         (WebKit):
773         (WebKit::PluginProcessConnectionManager::PluginProcessConnectionManager):
774         (WebKit::PluginProcessConnectionManager::initializeConnection):
775         (WebKit::PluginProcessConnectionManager::pluginProcessCrashed):
776         * WebProcess/Plugins/PluginProcessConnectionManager.h:
777         (PluginProcessConnectionManager):
778         * WebProcess/Plugins/PluginProcessConnectionManager.messages.in:
779         * WebProcess/WebProcess.cpp:
780         (WebKit::WebProcess::WebProcess):
781         (WebKit::WebProcess::initializeConnection):
782         (WebKit::WebProcess::pluginProcessConnectionManager):
783         * WebProcess/WebProcess.h:
784         (WebKit):
785         (WebProcess):
786
787 2013-02-13  Anders Carlsson  <andersca@apple.com>
788
789         Make SecItemShimProxy be a WorkQueueMessageReceiver
790         https://bugs.webkit.org/show_bug.cgi?id=109719
791
792         Reviewed by Sam Weinig.
793
794         This adds a WantsConnection message attribute to be used for messages whose handlers
795         should take the connection the message was delivered to.
796         
797         * Platform/CoreIPC/HandleMessage.h:
798         (CoreIPC::handleMessage):
799         Add new handleMessage overload.
800         
801         * Scripts/webkit2/messages.py:
802         (async_message_statement):
803         (generate_message_handler):
804         Handle the WantsMessage attribute.
805
806         * UIProcess/mac/SecItemShimProxy.cpp:
807         (WebKit::SecItemShimProxy::shared):
808         Use dispatch_once and adoptRef.
809
810         (WebKit::SecItemShimProxy::SecItemShimProxy):
811         Initialize the queue.
812
813         (WebKit::SecItemShimProxy::initializeConnection):
814         Add the proxy as a work queue message receiver.
815
816         (WebKit::SecItemShimProxy::secItemRequest):
817         This no longer needs to call out to a dispatch queue, it's already on a queue.
818
819         * UIProcess/mac/SecItemShimProxy.messages.in:
820         This doesn't need to be a legacy receiver. Also, add the WantsConnection message.
821
822 2013-02-13  Sheriff Bot  <webkit.review.bot@gmail.com>
823
824         Unreviewed, rolling out r142736.
825         http://trac.webkit.org/changeset/142736
826         https://bugs.webkit.org/show_bug.cgi?id=109716
827
828         Broke ABI, nightly builds crash on launch (Requested by ap on
829         #webkit).
830
831         * Shared/APIClientTraits.cpp:
832         (WebKit):
833         * Shared/APIClientTraits.h:
834         * UIProcess/API/C/WKPage.h:
835         * UIProcess/API/gtk/WebKitLoaderClient.cpp:
836         (attachLoaderClientToView):
837         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
838         * WebProcess/qt/QtBuiltinBundlePage.cpp:
839         (WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage):
840
841 2013-02-13  Kenneth Rohde Christiansen  <kenneth@webkit.org>
842
843         [WK2][EFL] Cleanup of graphics related code in EwkView
844         https://bugs.webkit.org/show_bug.cgi?id=109377
845
846         Reviewed by Anders Carlsson.
847
848         * UIProcess/API/efl/EwkView.cpp:
849         (EwkView::EwkView):
850
851             Initialize the evasGL dependencies here and
852             set m_isAccelerated to false if this fails.
853
854             Set the coordinated graphics scene as active
855             when using fixed layout.
856
857         (EwkView::setSize):
858
859             Add a method to set the size and user-viewport
860             transform from the outside. The idea is moving
861             this to our pure WK C API in the future.
862
863         (EwkView::transformFromScene):
864         (EwkView::transformToScene):
865
866             Update the transform methods to use the user-
867             viewport transform.
868
869         (EwkView::paintToCurrentGLContext):
870         (EwkView::paintToCairoSurface):
871
872             Add methods to paint to either the current GL context
873             or to a given cairo_surface_t (for software fallback
874             cases).
875
876         (EwkView::displayTimerFired):
877
878             Clean up and use the two above methods.
879
880         (EwkView::scheduleUpdateDisplay):
881
882             Use the new size() methods instead of using the 
883             smart-object data directly.
884
885         (EwkView::createGLSurface):
886
887             Make this method use size() to query the surface size
888             and avoid creating the context (done in ctor now).
889             Also avoid using the smart-object data directly.
890
891         (EwkView::enterAcceleratedCompositingMode):
892         (EwkView::exitAcceleratedCompositingMode):
893
894             Turn on/off the use of the coord. graphics scene.
895
896         (EwkView::handleEvasObjectCalculate):
897
898             Use the new setSize and setUserViewportTransform.
899
900         (EwkView::takeSnapshot):
901         * UIProcess/API/efl/EwkView.h:
902         (WebCore):
903         (EwkView):
904         (EwkView::size):
905         (EwkView::setUserViewportTransform):
906         (EwkView::userViewportTransform):
907
908             Add the new method definitions and rename isHardwareAccelerated
909             to isAccelerated which fits better with the naming in WebCore.
910
911 2013-02-13  Christophe Dumez  <ch.dumez@sisa.samsung.com>
912
913         [EFL][WK2] Introduce WKViewClient C API
914         https://bugs.webkit.org/show_bug.cgi?id=109559
915
916         Reviewed by Anders Carlsson.
917
918         This patch introduces the WKViewClient C API for EFL's WKView. The purpose of
919         this new C API is to eventually remove the interdependency between EFL's
920         PageClient and EwkView. When completed, PageClient should only interact with
921         WebView and not be aware of EwkView so that we have a clean separation between
922         internal WebKit2 classes and our EFL Ewk API implementation.
923
924         This patch is only a first step towards this goal as there is a lot of work
925         to do to achieve complete separation between EwkView and PageClient. The purpose
926         of this patch is to introduce the needed architecture which will later be
927         extended by introducing new WKViewClient callbacks.
928
929         * PlatformEfl.cmake: Add new ViewClientEfl.cpp and WebViewClient.cpp to EFL's CMake
930         configuration.
931         * UIProcess/API/C/efl/WKView.cpp:
932         (WKViewSetViewClient):
933         * UIProcess/API/C/efl/WKView.h: Introduce new WKViewClient C API.
934         * UIProcess/API/efl/EwkView.cpp:
935         (EwkView::EwkView): Initialize ViewClientEfl.
936         * UIProcess/API/efl/EwkView.h: Add new ViewClientEfl member.
937         (WebKit):
938         (EwkView):
939         * UIProcess/API/efl/EwkViewCallbacks.h: Update ContentsSizeChanged smart callback to
940         accept a WKSize in parameter instead of an IntRect.
941         * UIProcess/efl/PageClientBase.cpp: Start calling WKViewClient callbacks instead of
942         interacting directly with EwkView to avoid violating API layering.
943         (WebKit::PageClientBase::view):
944         (WebKit::PageClientBase::setViewNeedsDisplay):
945         * UIProcess/efl/PageClientBase.h:
946         (WebKit):
947         (PageClientBase):
948         * UIProcess/efl/PageClientDefaultImpl.cpp: Start calling WKViewClient callbacks instead of
949         interacting directly with EwkView to avoid violating API layering.
950         (WebKit::PageClientDefaultImpl::didChangeContentsSize):
951         * UIProcess/efl/PageClientLegacyImpl.cpp: Start calling WKViewClient callbacks instead of
952         interacting directly with EwkView to avoid violating API layering.
953         (WebKit::PageClientLegacyImpl::didChangeContentsSize):
954         * UIProcess/efl/ViewClientEfl.cpp:
955         (WebKit):
956         (WebKit::ViewClientEfl::toEwkView):
957         (WebKit::ViewClientEfl::viewNeedsDisplay):
958         (WebKit::ViewClientEfl::didChangeContentsSize):
959         (WebKit::ViewClientEfl::ViewClientEfl):
960         (WebKit::ViewClientEfl::~ViewClientEfl):
961         * UIProcess/efl/ViewClientEfl.h: Introduce new ViewClientEfl which handles WKViewClient callbacks
962         and interacts with EwkView.
963         (WebKit):
964         (ViewClientEfl):
965         (WebKit::ViewClientEfl::create):
966         * UIProcess/efl/WebView.cpp:
967         (WebKit::WebView::initializeClient):
968         (WebKit):
969         (WebKit::WebView::setViewNeedsDisplay):
970         (WebKit::WebView::didChangeContentsSize):
971         * UIProcess/efl/WebView.h: Add new WebViewClient member and corresponding methods to interact
972         with it.
973         (WebView):
974         * UIProcess/efl/WebViewClient.cpp:
975         (WebKit):
976         (WebKit::WebViewClient::viewNeedsDisplay):
977         (WebKit::WebViewClient::didChangeContentsSize):
978         * UIProcess/efl/WebViewClient.h: Add new WebViewClient APIClient for WKViewClient.
979         (WebCore):
980         (WebKit):
981
982 2013-02-13  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
983
984         [WK2][EFL][WTR] Regression(r141836): WTR crashes on exit
985         https://bugs.webkit.org/show_bug.cgi?id=109456
986
987         Reviewed by Anders Carlsson.
988
989         WebView destructor now considers the situation if its WebPageProxy
990         instance had been closed from outside the class (explicitly
991         by client code).
992
993         * UIProcess/efl/WebView.cpp:
994         (WebKit::WebView::~WebView):
995
996 2013-02-13  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
997
998         [WK2] Remove web intents callbacks
999         https://bugs.webkit.org/show_bug.cgi?id=109654
1000
1001         Reviewed by Benjamin Poulain.
1002
1003         Web intents was removed by r142549.
1004
1005         * Shared/APIClientTraits.cpp:
1006         (WebKit):
1007         * Shared/APIClientTraits.h:
1008         * UIProcess/API/C/WKPage.h:
1009         * UIProcess/API/gtk/WebKitLoaderClient.cpp:
1010         (attachLoaderClientToView):
1011         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
1012         * WebProcess/qt/QtBuiltinBundlePage.cpp:
1013         (WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage):
1014
1015 2013-02-12  Adenilson Cavalcanti  <cavalcantii@gmail.com>
1016
1017         [WK2] Page reloading will crash UIProcess after WebProcess was killed
1018         https://bugs.webkit.org/show_bug.cgi?id=109305
1019
1020         Reviewed by Benjamin Poulain.
1021
1022         Re-initialize the pointer to a WebInspectorProxy object before calling
1023         initializeWebPage().
1024
1025         When the WebProcess crashes, WebPageProxy::processDidCrash() will
1026         set WebInspectorProxy pointer to null, which later is accessed by
1027         initializeWebPage(). This patch avoids a crash scenario where
1028         calls into a null pointer would be made.
1029
1030         * UIProcess/WebPageProxy.cpp:
1031         (WebKit::WebPageProxy::reattachToWebProcess):
1032
1033 2013-02-12  Joseph Pecoraro  <pecoraro@apple.com>
1034
1035         [iOS] Enable PAGE_VISIBILITY_API
1036         https://bugs.webkit.org/show_bug.cgi?id=109399
1037
1038         Reviewed by David Kilzer.
1039
1040         * Configurations/FeatureDefines.xcconfig:
1041
1042 2013-02-12  Brady Eidson  <beidson@apple.com>
1043
1044         Update a comment in NetworkProcess to be more accurate.
1045
1046         Rubberstamped by Sam Weinig.
1047
1048         * NetworkProcess/NetworkProcess.cpp:
1049         (WebKit::NetworkProcess::didClose):
1050
1051 2013-02-12  Anders Carlsson  <andersca@apple.com>
1052
1053         SecItemShim should be a WorkQueueMessageReceiver
1054         https://bugs.webkit.org/show_bug.cgi?id=109636
1055
1056         Reviewed by Sam Weinig.
1057
1058         * Platform/CoreIPC/Connection.cpp:
1059         (CoreIPC::Connection::dispatchWorkQueueMessageReceiverMessage):
1060         Add a helper function for dispatching a work queue message receiver message.
1061
1062         (CoreIPC::Connection::processIncomingMessage):
1063         Check if there are any work queue message receivers registered for this message.
1064
1065         * Shared/mac/SecItemShim.cpp:
1066         (WebKit::SecItemShim::shared):
1067         Use dispatch_once instead of the AtomicallyInitializedStatic macro.
1068
1069         (WebKit::SecItemShim::SecItemShim):
1070         Initialize the queue.
1071
1072         (WebKit::SecItemShim::secItemResponse):
1073         Remove the connection parameter.
1074
1075         (WebKit::SecItemShim::initializeConnection):
1076         Register the shim object as a work queue message receiver.
1077
1078         * Shared/mac/SecItemShim.h:
1079         Inherit from WorkQueueMessageReceiver.
1080
1081         * Shared/mac/SecItemShim.messages.in:
1082         Remove LegacyReceiver and DispatchOnConnectionQueue.
1083
1084 2013-02-12  Sam Weinig  <sam@webkit.org>
1085
1086         Make Plug-in XPC services "join existing sessions"
1087         <rdar://problem/13196448>
1088
1089         Reviewed by Mark Rowe.
1090
1091         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/Info.plist:
1092         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/Info.plist:
1093         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist:
1094
1095 2013-02-12  Sam Weinig  <sam@webkit.org>
1096
1097         Add skeleton of the OfflineStorageProcess
1098         https://bugs.webkit.org/show_bug.cgi?id=109615
1099
1100         Reviewed by Anders Carlsson.
1101
1102         This adds the skeleton of a new process to contain Database and Local Storage
1103         backends in (hence, offline storage). We're adding a new process, rather than
1104         using the Network or UIProcesses, to allow us to tightly sandbox these activities
1105         away from networking and full filesystem access.
1106
1107         * Configurations/OfflineStorageProcess.xcconfig: Added.
1108         * Configurations/OfflineStorageService.Development.xcconfig: Added.
1109         * Configurations/OfflineStorageService.xcconfig: Added.
1110         * DerivedSources.make:
1111         * OfflineStorageProcess: Added.
1112         * OfflineStorageProcess/EntryPoint: Added.
1113         * OfflineStorageProcess/EntryPoint/mac: Added.
1114         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess: Added.
1115         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/Info.plist: Added.
1116         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/OfflineStorageProcessMain.mm: Added.
1117         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/OfflineStorageProcessMainBootstrapper.cpp: Added.
1118         * OfflineStorageProcess/EntryPoint/mac/XPCService: Added.
1119         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService: Added.
1120         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService.Development: Added.
1121         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService.Development/Info.plist: Added.
1122         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService.Development/OfflineStorageServiceMain.Development.mm: Added.
1123         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService/Info.plist: Added.
1124         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService/OfflineStorageServiceMain.mm: Added.
1125         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageServiceEntryPoint.mm: Added.
1126         * OfflineStorageProcess/OfflineStorageProcess.cpp: Added.
1127         * OfflineStorageProcess/OfflineStorageProcess.h: Added.
1128         * OfflineStorageProcess/OfflineStorageProcess.messages.in: Added.
1129         * OfflineStorageProcess/mac: Added.
1130         * OfflineStorageProcess/mac/OfflineStorageProcessMac.mm: Added.
1131         (WebKit::OfflineStorageProcess::initializeProcessName):
1132         (WebKit::OfflineStorageProcess::initializeSandbox):
1133         * OfflineStorageProcess/mac/com.apple.WebKit.OfflineStorage.sb: Added.
1134         * Shared/OfflineStorage: Added.
1135         * Shared/OfflineStorage/OfflineStorageProcessCreationParameters.cpp: Added.
1136         * Shared/OfflineStorage/OfflineStorageProcessCreationParameters.h: Added.
1137
1138         * Scripts/webkit2/messages.py:
1139         (struct_or_class):
1140         Added OfflineStorageProcessCreationParameters.
1141
1142         * WebKit2.xcodeproj/project.pbxproj:
1143
1144 2013-02-12  Jinwoo Song  <jinwoo7.song@samsung.com>
1145
1146         [EFL][WK2] Fix build warning after r142579
1147         https://bugs.webkit.org/show_bug.cgi?id=109547
1148
1149         Reviewed by Alexey Proskuryakov.
1150
1151         Use UNUSED_PARAM macro to fix -Wunused-parameter build warning.
1152
1153         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
1154         (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
1155
1156 2013-02-12  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1157
1158         [EFL][WK2] Reenable ewk_auth_request API tests
1159         https://bugs.webkit.org/show_bug.cgi?id=108451
1160
1161         Reviewed by Benjamin Poulain.
1162
1163         ewk_auth_request API tests were temporarily disabled after
1164         the C API for resource loading was removed from WebKit2.
1165         This patches updates the tests so that they no longer rely
1166         on the resource loading events and renables them.
1167
1168         This patch also corrects the naming of the static variables
1169         in the test to follow more closely the WebKit coding style.
1170
1171         * PlatformEfl.cmake:
1172         * UIProcess/API/efl/tests/test_ewk2_auth_request.cpp:
1173         (serverCallback):
1174         (TEST_F):
1175         (onLoadFinished):
1176
1177 2013-02-12  Anders Carlsson  <andersca@apple.com>
1178
1179         Introduce a WorkQueueMessageReceiver class as a replacement for QueueClient
1180         https://bugs.webkit.org/show_bug.cgi?id=109612
1181
1182         Reviewed by Andreas Kling.
1183
1184         * Platform/CoreIPC/Connection.cpp:
1185         (CoreIPC::Connection::addWorkQueueMessageReceiver):
1186         (CoreIPC):
1187         (CoreIPC::Connection::removeWorkQueueMessageReceiver):
1188         (CoreIPC::Connection::addWorkQueueMessageReceiverOnConnectionWorkQueue):
1189         (CoreIPC::Connection::removeWorkQueueMessageReceiverOnConnectionWorkQueue):
1190         * Platform/CoreIPC/Connection.h:
1191         (Connection):
1192
1193 2013-02-12  Csaba Osztrogonác  <ossy@webkit.org>
1194
1195         Typo fix after r142663.
1196
1197         * GNUmakefile.list.am:
1198
1199 2013-02-12  Csaba Osztrogonác  <ossy@webkit.org>
1200
1201         [WK2] Unreviewed trivial buildfix after r142630 and r142651.
1202
1203         * CMakeLists.txt:
1204         * GNUmakefile.list.am:
1205         * Target.pri:
1206         * UIProcess/Plugins/PluginProcessProxy.cpp:
1207         (WebKit::PluginProcessProxy::didFinishLaunching):
1208         * UIProcess/Plugins/qt/PluginProcessProxyQt.cpp:
1209         (WebKit::PluginProcessProxy::platformGetLaunchOptions):
1210         * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
1211         (WebKit::PluginProcessProxy::platformGetLaunchOptions):
1212
1213 2013-02-12  Anders Carlsson  <andersca@apple.com>
1214
1215         Change the queue client base class to be private everywhere
1216         https://bugs.webkit.org/show_bug.cgi?id=109604
1217
1218         Reviewed by Andreas Kling.
1219
1220         Move connection queue client registration inside of the respective queue client classes.
1221
1222         Also, it's too late to add queue clients in ChildProcessProxy::didFinishLaunching, so do this in
1223         ChildProcessProxy::connectionWillOpen instead.
1224         
1225         Finally, assert that queue clients are only being added and removed from the client thread.
1226
1227         * NetworkProcess/NetworkProcess.cpp:
1228         (WebKit::NetworkProcess::initializeConnection):
1229         * Platform/CoreIPC/Connection.cpp:
1230         (CoreIPC::Connection::addQueueClient):
1231         (CoreIPC::Connection::removeQueueClient):
1232         * Shared/mac/SecItemShim.cpp:
1233         (WebKit::SecItemShim::initializeConnection):
1234         (WebKit):
1235         * Shared/mac/SecItemShim.h:
1236         (SecItemShim):
1237         * UIProcess/Network/NetworkProcessProxy.cpp:
1238         (WebKit::NetworkProcessProxy::connectionWillOpen):
1239         (WebKit):
1240         (WebKit::NetworkProcessProxy::connectionWillClose):
1241         (WebKit::NetworkProcessProxy::didFinishLaunching):
1242         * UIProcess/Network/NetworkProcessProxy.h:
1243         (NetworkProcessProxy):
1244         * UIProcess/WebProcessProxy.cpp:
1245         (WebKit::WebProcessProxy::connectionWillOpen):
1246         (WebKit::WebProcessProxy::didFinishLaunching):
1247         * UIProcess/mac/SecItemShimProxy.cpp:
1248         (WebKit::SecItemShimProxy::initializeConnection):
1249         (WebKit):
1250         * UIProcess/mac/SecItemShimProxy.h:
1251         (SecItemShimProxy):
1252         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
1253         (WebKit::PluginProcessConnectionManager::initializeConnection):
1254         (WebKit):
1255         * WebProcess/Plugins/PluginProcessConnectionManager.h:
1256         (PluginProcessConnectionManager):
1257         * WebProcess/WebPage/EventDispatcher.cpp:
1258         (WebKit::EventDispatcher::initializeConnection):
1259         (WebKit):
1260         * WebProcess/WebPage/EventDispatcher.h:
1261         (EventDispatcher):
1262         * WebProcess/WebProcess.cpp:
1263         (WebKit::WebProcess::initializeConnection):
1264
1265 2013-02-12  Brady Eidson  <beidson@apple.com>
1266
1267         Add WKContext API to retrieve basic network process statistics
1268         https://bugs.webkit.org/show_bug.cgi?id=109329
1269
1270         Reviewed by Sam Weinig.
1271
1272         This patch adds a WKContextGetStatisticsWithOptions which allows the client to ask for
1273         certain types of statistics.
1274
1275         It also expands the "get statistics" callback mechanism to allow for a statistics request 
1276         to be answered by multiple child processes.
1277
1278         That mechanism still has some rough edges but will eventually allow for getting statistics
1279         from multiple web processes, as well.
1280
1281         * NetworkProcess/HostRecord.cpp:
1282         (WebKit::HostRecord::pendingRequestCount):
1283         (WebKit::HostRecord::activeLoadCount):
1284         * NetworkProcess/HostRecord.h:
1285
1286         * NetworkProcess/NetworkProcess.cpp:
1287         (WebKit::NetworkProcess::getNetworkProcessStatistics):
1288         * NetworkProcess/NetworkProcess.h:
1289         * NetworkProcess/NetworkProcess.messages.in:
1290
1291         * NetworkProcess/NetworkResourceLoadScheduler.cpp:
1292         (WebKit::NetworkResourceLoadScheduler::hostsPendingCount):
1293         (WebKit::NetworkResourceLoadScheduler::loadsPendingCount):
1294         (WebKit::NetworkResourceLoadScheduler::hostsActiveCount):
1295         (WebKit::NetworkResourceLoadScheduler::loadsActiveCount):
1296         * NetworkProcess/NetworkResourceLoadScheduler.h:
1297
1298         * Shared/Authentication/AuthenticationManager.h:
1299         (WebKit::AuthenticationManager::outstandingAuthenticationChallengeCount):
1300         * Shared/Downloads/DownloadManager.h:
1301
1302         * UIProcess/API/C/WKContext.cpp:
1303         (WKContextGetStatistics):
1304         (WKContextGetStatisticsWithOptions):
1305         * UIProcess/API/C/WKContext.h:
1306
1307         * UIProcess/StatisticsRequest.cpp: Added.
1308         (WebKit::StatisticsRequest::StatisticsRequest):
1309         (WebKit::StatisticsRequest::~StatisticsRequest):
1310         (WebKit::StatisticsRequest::addOutstandingRequest):
1311         (WebKit::addToDictionaryFromHashMap):
1312         (WebKit::createDictionaryFromHashMap):
1313         (WebKit::StatisticsRequest::completedRequest):
1314         * UIProcess/StatisticsRequest.h: Added.
1315         (WebKit::StatisticsRequest::create):
1316
1317         * UIProcess/WebContext.cpp:
1318         (WebKit::WebContext::networkingProcessConnection):
1319         (WebKit::WebContext::getStatistics):
1320         (WebKit::WebContext::requestWebContentStatistics):
1321         (WebKit::WebContext::requestNetworkingStatistics):
1322         (WebKit::WebContext::didGetStatistics):
1323         * UIProcess/WebContext.h:
1324         * UIProcess/WebContext.messages.in:
1325
1326         * WebProcess/WebProcess.cpp:
1327         (WebKit::WebProcess::getWebCoreStatistics):
1328
1329         * WebKit2.xcodeproj/project.pbxproj:
1330
1331 2013-02-12  Anders Carlsson  <andersca@apple.com>
1332
1333         Build fix.
1334
1335         Add back the files to the Xcode project that were removed in r142580.
1336
1337         * WebKit2.xcodeproj/project.pbxproj:
1338         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
1339
1340 2013-02-12  Jessie Berlin  <jberlin@apple.com>
1341
1342         Build fix after r142540 and r142518
1343
1344         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
1345         (WebKit::PluginProcessConnectionManager::didReceivePluginProcessConnectionManagerMessageOnConnectionWorkQueue):
1346         This function was added to the header in r142518 but not implemented in that revision.
1347         It wasn't a problem until r142540 started using it.
1348         Add a stub implementation for it.
1349
1350 2013-02-11  Brady Eidson  <beidson@apple.com>
1351
1352         Make PluginProcessProxy a ChildProcessProxy.
1353         https://bugs.webkit.org/show_bug.cgi?id=109513
1354
1355         Reviewed by Anders Carlsson.
1356
1357         * Shared/ChildProcessProxy.h: Inherit from ThreadSafeRefCounted.
1358         * UIProcess/Network/NetworkProcessProxy.h: Don't inherit from RefCounted.
1359         * UIProcess/WebProcessProxy.h: Don't inherit from ThreadSafeRefCounted
1360         * UIProcess/Plugins/PluginProcessProxy.h: Don't inherit from RefCounted, do inherit from ChildProcessProxy
1361
1362         Rely on ChildProcessProxy for process launcher management and launch options:
1363         * UIProcess/Plugins/PluginProcessProxy.cpp:
1364         (WebKit::PluginProcessProxy::PluginProcessProxy):
1365         (WebKit::PluginProcessProxy::getLaunchOptions):
1366         (WebKit::PluginProcessProxy::getPluginProcessConnection):
1367         (WebKit::PluginProcessProxy::getSitesWithData):
1368         (WebKit::PluginProcessProxy::clearSiteData):
1369         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
1370         (WebKit::PluginProcessProxy::platformGetLaunchOptions):
1371         (WebKit::PluginProcessProxy::getPluginProcessSerialNumber):
1372
1373 2013-02-11  Alexey Proskuryakov  <ap@apple.com>
1374
1375         <rdar://problem/13196331> NetworkProcess deny mach-lookup com.apple.PowerManagement.control
1376
1377         Reviewed by Sam Weinig.
1378
1379         * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
1380
1381 2013-02-11  Huang Dongsung  <luxtella@company100.net>
1382
1383         Coordinated Graphics: Make CoordinatedGraphicsScene not know contents size.
1384         https://bugs.webkit.org/show_bug.cgi?id=108922
1385
1386         Reviewed by Noam Rosenthal.
1387         Signed off for WebKit2 by Benjamin Poulain.
1388
1389         Currently, CoordinatedGraphicsScene has two methods to know contents
1390         size: setContentsSize() and setVisibleContentsRect(). Contents size is
1391         used when adjusting a scroll position, but adjustment is not needed
1392         because EFL and Qt platform code (currently PageViewportController)
1393         already adjusts a scroll position, and it is natural for each platform
1394         to be in charge of adjusting. So this patch makes CoordinatedGraphicsScene
1395         not know contents size.
1396
1397         In addition, now DrawingAreaProxy::coordinatedLayerTreeHostProxy() is only used
1398         to get CoordinatedGraphicsScene.
1399
1400         * UIProcess/API/qt/qquickwebpage.cpp:
1401         (QQuickWebPagePrivate::updateSize):
1402         * UIProcess/API/qt/raw/qrawwebview.cpp:
1403         (QRawWebView::setSize):
1404         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
1405         (WebKit::CoordinatedLayerTreeHostProxy::setVisibleContentsRect):
1406         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
1407         (CoordinatedLayerTreeHostProxy):
1408         * UIProcess/efl/PageClientLegacyImpl.cpp:
1409         (WebKit::PageClientLegacyImpl::didChangeContentsSize):
1410         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
1411         (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
1412
1413 2013-02-11  Huang Dongsung  <luxtella@company100.net>
1414
1415         Coordinated Graphics: remove the DidChangeScrollPosition message.
1416         https://bugs.webkit.org/show_bug.cgi?id=108051
1417
1418         Reviewed by Noam Rosenthal.
1419         Signed off for WebKit2 by Benjamin Poulain.
1420
1421         Currently, we use the DidChangeScrollPosition message to send the scroll
1422         position that WebCore used in this frame to UI Process. We had to have
1423         some member variables for the DidChangeScrollPosition message.
1424         However, we can send a scroll position via the DidRenderFrame message,
1425         because CoordinatedGraphicsScene::m_renderedContentsScrollPosition is
1426         updated at the moment of flushing. So we can remove the
1427         DidChangeScrollPosition message and some redundant member variables.
1428
1429         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
1430         (WebKit::CoordinatedLayerTreeHostProxy::didRenderFrame):
1431         (WebKit):
1432         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
1433         (CoordinatedLayerTreeHostProxy):
1434         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
1435           Remove the DidChangeScrollPosition message.
1436         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1437         (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
1438         (WebKit::CoordinatedLayerTreeHost::flushPendingLayerChanges):
1439           Send a scroll position via the DidChangeScrollPosition message.
1440         (WebKit::CoordinatedLayerTreeHost::syncLayerState):
1441           Don't send a scroll position because flushPendingLayerChanges() does
1442           that. In addition, it is weird to check if we must send a scroll
1443           position at the moment of sending the SyncLayerState message of every
1444           layers.
1445         (WebKit::CoordinatedLayerTreeHost::setVisibleContentsRect):
1446         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
1447
1448 2013-02-11  Ryosuke Niwa  <rniwa@webkit.org>
1449
1450         Disable delete button controller on non-Mac ports and delete EditorClient::shouldShowDeleteInterface
1451         https://bugs.webkit.org/show_bug.cgi?id=109534
1452
1453         Reviewed by Anders Carlsson.
1454
1455         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1456         (WebKit):
1457         * WebProcess/WebCoreSupport/WebEditorClient.h:
1458
1459 2013-02-11  Jae Hyun Park  <jae.park@company100.net>
1460
1461         [EFL] Build fix
1462         https://bugs.webkit.org/show_bug.cgi?id=109518
1463
1464         Reviewed by Laszlo Gombos.
1465
1466         Fix EFL build by including PluginProcessConnectionManager.messages.in in
1467         CMakeLists.txt
1468
1469         * CMakeLists.txt:
1470
1471 2013-02-11  Anders Carlsson  <andersca@apple.com>
1472
1473         Fix build.
1474
1475         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
1476         (WebKit::PluginProcessConnectionManager::didReceiveMessageOnConnectionWorkQueue):
1477         * WebProcess/WebProcess.cpp:
1478
1479 2013-02-11  Seulgi Kim  <seulgikim@company100.net>
1480
1481         [GTK] Build fix.
1482         https://bugs.webkit.org/show_bug.cgi?id=109516
1483
1484         Reviewed by Csaba Osztrogonác.
1485
1486         PluginProcessConnectionManagerMessages are omitted from messages list.
1487
1488         * GNUmakefile.list.am:
1489
1490 2013-02-11  Tim Horton  <timothy_horton@apple.com>
1491
1492         [WK2] setMinimumLayoutWidth should bail if there's no WebProcess
1493         https://bugs.webkit.org/show_bug.cgi?id=109512
1494         <rdar://problem/13093627>
1495
1496         Reviewed by Anders Carlsson.
1497
1498         * UIProcess/WebPageProxy.cpp:
1499         (WebKit::WebPageProxy::setMinimumLayoutWidth):
1500
1501 2013-02-11  Anders Carlsson  <andersca@apple.com>
1502
1503         PluginProcessConnectionManager should be a QueueClient
1504         https://bugs.webkit.org/show_bug.cgi?id=109496
1505
1506         Reviewed by Andreas Kling.
1507
1508         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
1509         (WebKit::PluginProcessConnectionManager::didReceiveMessageOnConnectionWorkQueue):
1510         (WebKit):
1511         (WebKit::PluginProcessConnectionManager::didCloseOnConnectionWorkQueue):
1512         * WebProcess/Plugins/PluginProcessConnectionManager.h:
1513         (PluginProcessConnectionManager):
1514         * WebProcess/WebProcess.cpp:
1515         (WebKit::WebProcess::initializeConnection):
1516         * WebProcess/WebProcess.h:
1517         (WebProcess):
1518
1519 2013-02-11  Csaba Osztrogonác  <ossy@webkit.org>
1520
1521         Unreviewed WK2 buildfix after r142518.
1522
1523         * DerivedSources.pri:
1524
1525 2013-02-11  Gavin Barraclough  <barraclough@apple.com>
1526
1527         PluginProcess should quit immediately if idle in response to low-memory notifications
1528         https://bugs.webkit.org/show_bug.cgi?id=109103
1529         <rdar://problem/12679827>
1530
1531         Reviewed by Brady Eidson.
1532
1533         PluginProcess now installs a MemoryPressureHandler for the process, providing
1534         a custom callback which will call terminate if appropriate (if the plugin is not
1535         currently in use).
1536
1537         * PluginProcess/PluginProcess.cpp:
1538         (WebKit::PluginProcess::lowMemoryHandler):
1539             - Custom callback to terminate if appropriate.
1540         (WebKit::PluginProcess::initializeProcess):
1541             - Install the MemoryPressureHandler.
1542         (WebKit::PluginProcess::shouldTerminate):
1543             - This method now also needs to be callable in situations where it might return false.
1544         * PluginProcess/PluginProcess.h:
1545         (PluginProcess):
1546             - Added declaration for lowMemoryHandler.
1547
1548 2013-02-11  Anders Carlsson  <andersca@apple.com>
1549
1550         Move the PluginProcessCrashed message to PluginProcessConnectionManager
1551         https://bugs.webkit.org/show_bug.cgi?id=109493
1552
1553         Reviewed by Andreas Kling.
1554
1555         This is in preparation for making PluginProcessConnectionManager a connection queue client.
1556
1557         * DerivedSources.make:
1558         * UIProcess/Plugins/PluginProcessProxy.cpp:
1559         (WebKit::PluginProcessProxy::didClose):
1560         * WebKit2.xcodeproj/project.pbxproj:
1561         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
1562         (WebKit::PluginProcessConnectionManager::pluginProcessCrashed):
1563         * WebProcess/Plugins/PluginProcessConnectionManager.h:
1564         (PluginProcessConnectionManager):
1565         * WebProcess/Plugins/PluginProcessConnectionManager.messages.in: Added.
1566         * WebProcess/WebProcess.cpp:
1567         (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
1568         (WebKit::WebProcess::webResourceLoadScheduler):
1569         * WebProcess/WebProcess.h:
1570         (WebProcess):
1571         * WebProcess/WebProcess.messages.in:
1572
1573 2013-02-11  Benjamin Poulain  <benjamin@webkit.org>
1574
1575         Kill TestRunner::setMinimumTimerInterval; implement the feature with InternalSettings
1576         https://bugs.webkit.org/show_bug.cgi?id=109349
1577
1578         Reviewed by Sam Weinig.
1579
1580         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
1581         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
1582         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1583         * WebProcess/InjectedBundle/InjectedBundle.h:
1584         (InjectedBundle):
1585
1586 2013-02-11  Dean Jackson  <dino@apple.com>
1587
1588         Snapshotted plug-in should use shadow root
1589         https://bugs.webkit.org/show_bug.cgi?id=108284
1590
1591         Reviewed by Simon Fraser.
1592
1593         Take three of this commit - after rollout in r142400 and r142405.
1594         We no longer have any need for plugInStartLabelImage.
1595
1596         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
1597         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Ditto.
1598         * WebProcess/WebCoreSupport/WebChromeClient.cpp: Ditto.
1599         * WebProcess/WebCoreSupport/WebChromeClient.h: Ditto.
1600
1601 2013-02-11  Anders Carlsson  <andersca@apple.com>
1602
1603         The plug-in process connection manager doesn't need to be heap allocated
1604         https://bugs.webkit.org/show_bug.cgi?id=109479
1605
1606         Reviewed by Andreas Kling.
1607
1608         * WebProcess/WebProcess.cpp:
1609         (WebKit::WebProcess::WebProcess):
1610         (WebKit::WebProcess::pluginProcessConnectionManager):
1611         (WebKit::WebProcess::pluginProcessCrashed):
1612         * WebProcess/WebProcess.h:
1613         (WebKit):
1614         (WebProcess):
1615
1616 2013-02-11  Tony Chang  <tony@chromium.org>
1617
1618         Move setFrameFlatteningEnabled from layoutTestController to window.internals.settings
1619         https://bugs.webkit.org/show_bug.cgi?id=87149
1620
1621         Reviewed by Simon Fraser.
1622
1623         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1624         (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): Add setFrameFlatteningEnabled to the list of overridable values.
1625
1626 2013-02-11  Claudio Saavedra  <csaavedra@igalia.com>
1627
1628         [WK2][Notifications] Missing early return in populateCopyOfNotificationPermissions
1629         https://bugs.webkit.org/show_bug.cgi?id=108459
1630
1631         Reviewed by Alexey Proskuryakov.
1632
1633         * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
1634         (WebKit::WebNotificationManagerProxy::populateCopyOfNotificationPermissions):
1635         Providers might return 0 and we will end up with a null-pointer dereference.
1636         Early check against this.
1637
1638 2013-02-10  Sam Weinig  <sam@webkit.org>
1639
1640         Make the Plug-in XPCService build work even when building in Xcode
1641         <rdar://problem/13011186>
1642         https://bugs.webkit.org/show_bug.cgi?id=109392
1643
1644         Reviewed by Anders Carlsson.
1645
1646         * Configurations/DebugRelease.xcconfig:
1647         Add a DEBUG_OR_RELEASE variable to test against.
1648         * Configurations/PluginService.32.xcconfig:
1649         * Configurations/PluginService.64.xcconfig:
1650         In non-production builds, don't link against WebKit2, so that we don't get warnings about WebKit2.framework
1651         not containing the right architectures. This is ok, as these services are not used in non-production builds.
1652
1653         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/Info.plist:
1654         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/NetworkServiceMain.Development.mm:
1655         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info.plist:
1656         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/NetworkServiceMain.mm:
1657         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/Info.plist:
1658         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/PluginService.32.Main.mm:
1659         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/Info.plist:
1660         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/PluginService.64.Main.mm:
1661         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist:
1662         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/PluginService.Development.Main.mm:
1663         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info.plist:
1664         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/WebContentServiceMain.Development.mm:
1665         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist:
1666         * WebProcess/EntryPoint/mac/XPCService/WebContentService/WebContentServiceMain.mm:
1667         Switch off the the old idiom of defining a macro for the initializer function, and instead set
1668         it in the Info.plist, so the XPCServiceBootstrapper can grab it.
1669
1670         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.Development.h:
1671         (WebKit::XPCServiceEventHandler):
1672         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.h:
1673         (WebKit::XPCServiceEventHandler):
1674         Get the entry point from the bundle, rather than the macro. This is not only a bit less gross,
1675         but also allows us to build without having linked against WebKit2.framework.
1676
1677         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
1678         (WebKit::shouldUseXPC):
1679         Re-enable using XPC for plug-ins.
1680
1681         * WebKit2.xcodeproj/project.pbxproj:
1682         Update project.
1683
1684 2013-02-10  Anders Carlsson  <andersca@apple.com>
1685
1686         Add back code that was accidentally removed when moving plug-in enumeration back to the main thread
1687         https://bugs.webkit.org/show_bug.cgi?id=109379
1688
1689         Reviewed by Andreas Kling.
1690
1691         * UIProcess/WebProcessProxy.cpp:
1692         (WebKit::WebProcessProxy::getPlugins):
1693
1694 2013-02-10  Kent Tamura  <tkent@chromium.org>
1695
1696         Unreviewed, rolling out r142347.
1697         http://trac.webkit.org/changeset/142347
1698         https://bugs.webkit.org/show_bug.cgi?id=108273
1699
1700         Because a depending change r142343 was rolled out.
1701
1702         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
1703         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
1704         (WebKit::InjectedBundlePageUIClient::plugInStartLabelTitle):
1705         (WebKit::InjectedBundlePageUIClient::plugInStartLabelSubtitle):
1706
1707 2013-02-10  Kent Tamura  <tkent@chromium.org>
1708
1709         Unreviewed, rolling out r142343.
1710         http://trac.webkit.org/changeset/142343
1711         https://bugs.webkit.org/show_bug.cgi?id=108284
1712
1713         It might make inspector/profiler/selector-profiler-url.html
1714         crashy.
1715
1716         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
1717         (WebKit::InjectedBundlePageUIClient::plugInStartLabelImage):
1718         (WebKit):
1719         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
1720         (InjectedBundlePageUIClient):
1721         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1722         (WebKit::WebChromeClient::plugInStartLabelImage):
1723         (WebKit):
1724         * WebProcess/WebCoreSupport/WebChromeClient.h:
1725         (WebChromeClient):
1726
1727 2013-02-10  Zan Dobersek  <zdobersek@igalia.com>
1728
1729         [WebKit2][Gtk] Remove the fullscreen manager proxy message receiver upon invalidating
1730         https://bugs.webkit.org/show_bug.cgi?id=109352
1731
1732         Reviewed by Sam Weinig.
1733
1734         As added for the Mac port in r142160 due to the changes in the same revision, remove
1735         the fullscreen manager proxy as a message receiver. Also fixes a failing unit test.
1736
1737         * UIProcess/gtk/WebFullScreenManagerProxyGtk.cpp:
1738         (WebKit::WebFullScreenManagerProxy::invalidate):
1739
1740 2013-02-10  Zoltan Arvai  <zarvai@inf.u-szeged.hu>
1741
1742         [WK2] Fix build on PLUGIN_ARCHITECTURE(UNSUPPORTED) after r142314
1743         https://bugs.webkit.org/show_bug.cgi?id=109364
1744
1745         Reviewed by Simon Hausmann.
1746
1747         void NetscapePlugin::platformPreInitialize() is need to be added to NetscapePluginNone.cpp.
1748
1749         * WebProcess/Plugins/Netscape/NetscapePluginNone.cpp:
1750         (WebKit::NetscapePlugin::platformPreInitialize):
1751         (WebKit):
1752
1753 2013-02-09  Sheriff Bot  <webkit.review.bot@gmail.com>
1754
1755         Unreviewed, rolling out r137328.
1756         http://trac.webkit.org/changeset/137328
1757         https://bugs.webkit.org/show_bug.cgi?id=109367
1758
1759         causes memory usage to balloon if connection queue is filling
1760         faster than sending (Requested by kling on #webkit).
1761
1762         * Platform/CoreIPC/ArgumentEncoder.cpp:
1763         (CoreIPC::ArgumentEncoder::ArgumentEncoder):
1764         (CoreIPC::ArgumentEncoder::grow):
1765         * Platform/CoreIPC/ArgumentEncoder.h:
1766         (CoreIPC::ArgumentEncoder::buffer):
1767         (ArgumentEncoder):
1768
1769 2013-02-08  Sam Weinig  <sam@webkit.org>
1770
1771         Fix ASSERT when the Web Content Process crashes
1772         https://bugs.webkit.org/show_bug.cgi?id=109346
1773
1774         Reviewed by Simon Fraser.
1775
1776         * UIProcess/WebPageProxy.cpp:
1777         (WebKit::WebPageProxy::processDidCrash):
1778         We need to remove ourselves as a message receiver before calling out to the client, as
1779         the client might want to re-add us (as Safari does).
1780
1781 2013-02-08  Benjamin Poulain  <bpoulain@apple.com>
1782
1783         Move workerThreadCount from TestRunner to WebCore Internals
1784         https://bugs.webkit.org/show_bug.cgi?id=109239
1785
1786         Reviewed by Darin Adler.
1787
1788         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
1789         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
1790         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1791         * WebProcess/InjectedBundle/InjectedBundle.h:
1792         (InjectedBundle):
1793         * WebProcess/WebPage/WebFrame.cpp: Remove a useless #include.
1794
1795 2013-02-08  Dean Jackson  <dino@apple.com>
1796
1797         Remove use of plugInStartLabelImage
1798         https://bugs.webkit.org/show_bug.cgi?id=108273
1799
1800         Reviewed by Simon Fraser.
1801
1802         Remove any use of plugInStartLabelImage. While there, implement plugInStartLabelTitle
1803         and plugInStartLabelSubtitle to return the values from the client.
1804         implement them.
1805
1806         * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Remove callback and entry from client structure.
1807         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
1808         (WebKit::InjectedBundlePageUIClient::plugInStartLabelTitle): Ask the client bundle for value.
1809         (WebKit::InjectedBundlePageUIClient::plugInStartLabelSubtitle): Ditto.
1810
1811 2013-02-08  Dean Jackson  <dino@apple.com>
1812
1813         Snapshotted plug-in should use shadow root
1814         https://bugs.webkit.org/show_bug.cgi?id=108284
1815
1816         Reviewed by Simon Fraser.
1817
1818         Take two of this commit! We no longer have any need for plugInStartLabelImage.
1819
1820         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
1821         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Ditto.
1822         * WebProcess/WebCoreSupport/WebChromeClient.cpp: Ditto.
1823         * WebProcess/WebCoreSupport/WebChromeClient.h: Ditto.
1824
1825 2013-02-08  Dean Jackson  <dino@apple.com>
1826
1827         Rolling out r142333 and r142337 which broke Mac Release builds.
1828
1829 2013-02-08  Anders Carlsson  <andersca@apple.com>
1830
1831         Move plug-in enumeration back to the main thread
1832         https://bugs.webkit.org/show_bug.cgi?id=109337
1833         <rdar://problem/12015046>
1834
1835         Reviewed by Andreas Kling.
1836
1837         Plug-in enumeration was moved to a separate work queue to improve responsiveness, but
1838         doing so lead to crashes when WebKit1 would enumerate plug-ins on the main thread at the same time.
1839         Bug <rdar://problem/13185819> tracks fixing the responsiveness issue by spawning a plug-in process
1840         and have it do the enumeration.
1841
1842         * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
1843         (WebKit::getPluginInfoFromCarbonResources):
1844         * UIProcess/WebProcessProxy.cpp:
1845         (WebKit::WebProcessProxy::connectionWillOpen):
1846         (WebKit::WebProcessProxy::connectionWillClose):
1847         (WebKit::WebProcessProxy::getPlugins):
1848         * UIProcess/WebProcessProxy.h:
1849         (WebCore):
1850         (WebProcessProxy):
1851         * UIProcess/WebProcessProxy.messages.in:
1852         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1853         (WebKit):
1854         (WebKit::WebPlatformStrategies::populatePluginCache):
1855         * WebProcess/WebProcess.cpp:
1856         * WebProcess/WebProcess.h:
1857         (WebProcess):
1858         * WebProcess/WebProcess.messages.in:
1859
1860 2013-02-08  Dean Jackson  <dino@apple.com>
1861
1862         Snapshotted plug-in should use shadow root
1863         https://bugs.webkit.org/show_bug.cgi?id=108284
1864
1865         Reviewed by Simon Fraser.
1866
1867         We no longer have any need for plugInStartLabelImage.
1868
1869         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
1870         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Ditto.
1871         * WebProcess/WebCoreSupport/WebChromeClient.cpp: Ditto.
1872         * WebProcess/WebCoreSupport/WebChromeClient.h: Ditto.
1873
1874 2013-02-08  Raphael Kubo da Costa  <raphael.kubo.da.costa@intel.com>
1875
1876         [WK2] Fix the build on !Mac after r142314.
1877         https://bugs.webkit.org/show_bug.cgi?id=109327
1878
1879         Reviewed by Benjamin Poulain.
1880
1881         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
1882         (WebKit::NetscapePlugin::platformPreInitialize): Add a stub for
1883         the newly-added function.
1884
1885         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
1886         (WebKit::NetscapePlugin::platformPreInitialize):
1887         (WebKit):
1888
1889 2013-02-07  Anders Carlsson  <andersca@apple.com>
1890
1891         Work around a bug in Flash where NSException objects can be released too early
1892         https://bugs.webkit.org/show_bug.cgi?id=109242
1893         <rdar://problem/13003470>
1894
1895         Reviewed by Darin Adler.
1896
1897         * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
1898         (WebKit::NetscapePluginModule::determineQuirks):
1899         Set the new plug-in quirk.
1900
1901         * Shared/Plugins/PluginQuirks.h:
1902         Add a new plug-in quirk.
1903
1904         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
1905         (WebKit::NetscapePlugin::initialize):
1906         Call platformPreInitialize.
1907
1908         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
1909         (NetscapePlugin):
1910         Add platformPreInitialize.
1911
1912         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
1913         (WebKit::NSException_release):
1914         Add new empty function.
1915
1916         (WebKit::NetscapePlugin::platformPreInitialize):
1917         Patch -[NSException release] to be a no-op.
1918
1919 2013-02-08  Dean Jackson  <dino@apple.com>
1920
1921         Do not register autostart for plugins from file:// (or nowhere)
1922         https://bugs.webkit.org/show_bug.cgi?id=108271
1923
1924         Reviewed by Tim Horton.
1925
1926         If the pageOrigin is the empty string don't add
1927         it to the auto-start origin list for snapshotting.
1928
1929         * WebProcess/WebProcess.cpp:
1930         (WebKit::WebProcess::addPlugInAutoStartOrigin):
1931
1932 2013-02-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1933
1934         Unreviewed, rolling out r142212.
1935         http://trac.webkit.org/changeset/142212
1936         https://bugs.webkit.org/show_bug.cgi?id=109255
1937
1938         Causes ASSERT(!m_installed) on launch (Requested by smfr on
1939         #webkit).
1940
1941         * PluginProcess/PluginProcess.cpp:
1942         (WebKit::PluginProcess::initializeProcess):
1943         (WebKit::PluginProcess::shouldTerminate):
1944         * PluginProcess/PluginProcess.h:
1945         (PluginProcess):
1946         * WebProcess/WebProcess.cpp:
1947         (WebKit::WebProcess::initializeWebProcess):
1948
1949 2013-02-07  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1950
1951         [EFL][WK2] Remove dead code after r142169
1952         https://bugs.webkit.org/show_bug.cgi?id=109251
1953
1954         Reviewed by Benjamin Poulain.
1955
1956         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1957         (WebKit::WebChromeClient::contentsSizeChanged):
1958
1959 2013-02-06  Gavin Barraclough  <barraclough@apple.com>
1960
1961         PluginProcess should quit immediately if idle in response to low-memory notifications
1962         https://bugs.webkit.org/show_bug.cgi?id=109103
1963         <rdar://problem/12679827>
1964
1965         Reviewed by Darin Adler.
1966
1967         PluginProcess now initializes a MemoryPressureHandler for the process, providing
1968         a custom callback which will call terminate if appropriate (if the plugin is not
1969         currently in use).
1970
1971         * PluginProcess/PluginProcess.cpp:
1972         (WebKit::PluginProcess::lowMemoryHandler):
1973             - Custom callback to terminate if appropriate.
1974         (WebKit::PluginProcess::initializeProcess):
1975             - Initialize the MemoryPressureHandler.
1976         (WebKit::PluginProcess::shouldTerminate):
1977             - This method now also needs to be callable in situations where it might return false.
1978         * PluginProcess/PluginProcess.h:
1979         (PluginProcess):
1980             - Added declaration for lowMemoryHandler.
1981         * WebProcess/WebProcess.cpp:
1982         (WebKit::WebProcess::initializeWebProcess):
1983             - MemoryPressureHandler::install is now called via MemoryPressureHandler::initialize.
1984
1985 2013-02-07  KwangYong Choi  <ky0.choi@samsung.com>
1986
1987         Fix build warning after r142017
1988         https://bugs.webkit.org/show_bug.cgi?id=109119
1989
1990         Reviewed by Alexey Proskuryakov.
1991
1992         Use UNUSED_PARAM macro to fix -Wunused-parameter build warning.
1993
1994         * UIProcess/WebPageProxy.cpp:
1995         (WebKit::WebPageProxy::getPluginPath):
1996
1997 2013-02-07  Martin Robinson  <mrobinson@igalia.com>
1998
1999         [GTK] Cleanup command-line defines
2000         https://bugs.webkit.org/show_bug.cgi?id=109213
2001
2002         Reviewed by Xan Lopez.
2003
2004         * GNUmakefile.am:  Remove references to flags that are now
2005         provided by autotoolsconfig.h.
2006
2007 2013-02-07  Benjamin Poulain  <bpoulain@apple.com>
2008
2009         Move pauseAnimation/pauseTransition from TestRunner to Internals
2010         https://bugs.webkit.org/show_bug.cgi?id=109107
2011
2012         Reviewed by Anders Carlsson.
2013
2014         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
2015         * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
2016         * WebProcess/WebPage/WebFrame.cpp:
2017         * WebProcess/WebPage/WebFrame.h:
2018         (WebFrame):
2019
2020 2013-02-07  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2021
2022         [WK2][EFL] Removal of non coordinated graphics code path from WK2 EFL
2023         https://bugs.webkit.org/show_bug.cgi?id=109165
2024
2025         Reviewed by Anders Carlsson.
2026
2027         Removed non coordinated graphics code path from WK2 EFL as it was not used by
2028         anyone and caused a lot of preprocessor macros in the code making it less readable.
2029
2030         * UIProcess/API/efl/EvasGLContext.cpp:
2031         * UIProcess/API/efl/EvasGLContext.h:
2032         (WebKit::EvasGLContext::context):
2033         * UIProcess/API/efl/EvasGLSurface.cpp:
2034         * UIProcess/API/efl/EvasGLSurface.h:
2035         (WebKit::EvasGLSurface::surface):
2036
2037             Removed also 'inline' and 'const' keywords from functions declaration,
2038             as both EvasGLContext::context() and EvasGLSurface::surface()
2039             are defined inside their classes and return mutable pointer.
2040
2041         * UIProcess/API/efl/EwkView.cpp:
2042         (EwkView::EwkView):
2043         (EwkView::transformFromScene):
2044         (EwkView::transformToScreen):
2045         (EwkView::coordinatedGraphicsScene):
2046         (EwkView::displayTimerFired):
2047         (EwkView::scheduleUpdateDisplay): Renamed from EwkView::update().
2048         (EwkView::exitAcceleratedCompositingMode):
2049         (EwkView::handleEvasObjectCalculate):
2050         (EwkView::takeSnapshot):
2051         * UIProcess/API/efl/EwkView.h:
2052         (WebCore):
2053         (EwkView):
2054         * UIProcess/API/efl/SnapshotImageGL.cpp:
2055         (getImageSurfaceFromFrameBuffer):
2056         * UIProcess/API/efl/SnapshotImageGL.h:
2057         * UIProcess/API/efl/ewk_view.cpp:
2058         * UIProcess/efl/PageClientBase.cpp:
2059         (WebKit::PageClientBase::setViewNeedsDisplay):
2060         (WebKit::PageClientBase::updateAcceleratedCompositingMode):
2061         * UIProcess/efl/PageClientBase.h:
2062         (PageClientBase):
2063         * UIProcess/efl/PageClientDefaultImpl.cpp:
2064         (WebKit::PageClientDefaultImpl::didCommitLoad):
2065         (WebKit::PageClientDefaultImpl::updateViewportSize):
2066         (WebKit::PageClientDefaultImpl::didChangeViewportProperties):
2067         (WebKit::PageClientDefaultImpl::didChangeContentsSize):
2068         (WebKit::PageClientDefaultImpl::pageTransitionViewportReady):
2069         * UIProcess/efl/PageClientDefaultImpl.h:
2070         (PageClientDefaultImpl):
2071         * UIProcess/efl/PageClientLegacyImpl.cpp:
2072         (WebKit::PageClientLegacyImpl::didCommitLoad):
2073         (WebKit::PageClientLegacyImpl::updateViewportSize):
2074         (WebKit::PageClientLegacyImpl::didChangeViewportProperties):
2075         (WebKit::PageClientLegacyImpl::didChangeContentsSize):
2076         (WebKit::PageClientLegacyImpl::pageDidRequestScroll):
2077         (WebKit::PageClientLegacyImpl::didRenderFrame):
2078         (WebKit::PageClientLegacyImpl::pageTransitionViewportReady):
2079         * UIProcess/efl/PageClientLegacyImpl.h:
2080         (PageClientLegacyImpl):
2081         * UIProcess/efl/PageLoadClientEfl.cpp:
2082         (WebKit::PageLoadClientEfl::didCommitLoadForFrame):
2083         (WebKit::PageLoadClientEfl::PageLoadClientEfl):
2084         * UIProcess/efl/PageLoadClientEfl.h:
2085         (PageLoadClientEfl):
2086         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
2087         (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
2088         (WebKit::PageViewportControllerClientEfl::didChangeVisibleContents):
2089         * UIProcess/efl/PageViewportControllerClientEfl.h:
2090         * UIProcess/efl/WebInspectorProxyEfl.cpp:
2091         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
2092         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2093         (WebKit::WebChromeClient::contentsSizeChanged):
2094
2095 2013-02-06  Sam Weinig  <sam@webkit.org>
2096
2097         Make WebPageProxy and sub-objects MessageReceivers
2098         https://bugs.webkit.org/show_bug.cgi?id=108785
2099
2100         Reviewed by Anders Carlsson.
2101
2102         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
2103         (WebKit::CoordinatedLayerTreeHostProxy::CoordinatedLayerTreeHostProxy):
2104         (WebKit::CoordinatedLayerTreeHostProxy::~CoordinatedLayerTreeHostProxy):
2105         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
2106         (CoordinatedLayerTreeHostProxy):
2107         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
2108         * UIProcess/DrawingAreaProxy.cpp:
2109         (WebKit::DrawingAreaProxy::DrawingAreaProxy):
2110         (WebKit::DrawingAreaProxy::~DrawingAreaProxy):
2111         (WebKit::DrawingAreaProxy::contentsRect):
2112         * UIProcess/DrawingAreaProxy.h:
2113         (WebKit::DrawingAreaProxy::setVisibleContentsRect):
2114         * UIProcess/DrawingAreaProxy.messages.in:
2115         * UIProcess/DrawingAreaProxyImpl.cpp:
2116         (WebKit::DrawingAreaProxyImpl::setVisibleContentsRect):
2117         * UIProcess/DrawingAreaProxyImpl.h:
2118         * UIProcess/WebFullScreenManagerProxy.cpp:
2119         (WebKit::WebFullScreenManagerProxy::WebFullScreenManagerProxy):
2120         * UIProcess/WebFullScreenManagerProxy.h:
2121         (WebFullScreenManagerProxy):
2122         * UIProcess/WebFullScreenManagerProxy.messages.in:
2123         * UIProcess/WebInspectorProxy.cpp:
2124         (WebKit::WebInspectorProxy::WebInspectorProxy):
2125         (WebKit::WebInspectorProxy::invalidate):
2126         * UIProcess/WebInspectorProxy.h:
2127         * UIProcess/WebInspectorProxy.messages.in:
2128         * UIProcess/WebPageProxy.cpp:
2129         (WebKit::WebPageProxy::WebPageProxy):
2130         (WebKit::WebPageProxy::reattachToWebProcess):
2131         (WebKit::WebPageProxy::close):
2132         (WebKit::WebPageProxy::inspector):
2133         (WebKit::WebPageProxy::fullScreenManager):
2134         (WebKit::WebPageProxy::processDidCrash):
2135         * UIProcess/WebPageProxy.h:
2136         * UIProcess/WebPageProxy.messages.in:
2137         * UIProcess/WebProcessProxy.cpp:
2138         (WebKit::WebProcessProxy::didReceiveMessage):
2139         (WebKit::WebProcessProxy::didReceiveSyncMessage):
2140         * UIProcess/mac/WebFullScreenManagerProxyMac.mm:
2141         (WebKit::WebFullScreenManagerProxy::invalidate):
2142
2143 2013-02-07  Zan Dobersek  <zdobersek@igalia.com>
2144
2145         [Autotools] Remove uses of Automake FARSTREAM_(CFLAGS|LIBS) variables, USE_FARSTREAM conditional
2146         https://bugs.webkit.org/show_bug.cgi?id=109198
2147
2148         Reviewed by Martin Robinson.
2149
2150         * GNUmakefile.am: Remove the FARSTREAM_(CFLAGS|LIBS) variables, they're
2151         not set to anything.
2152
2153 2013-02-07  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2154
2155         [WK2][EFL] Add WKView methods related to background drawing
2156         https://bugs.webkit.org/show_bug.cgi?id=109159
2157
2158         Reviewed by Anders Carlsson.
2159
2160         * UIProcess/API/C/efl/WKView.cpp:
2161         (WKViewSetDrawsBackground):
2162         (WKViewGetDrawsBackground):
2163         (WKViewSetDrawsTransparentBackground):
2164         (WKViewGetDrawsTransparentBackground):
2165          * UIProcess/efl/WebView.cpp:
2166         (WebKit::WebView::setDrawsBackground):
2167         (WebKit):
2168         (WebKit::WebView::drawsBackground):
2169         (WebKit::WebView::setDrawsTransparentBackground):
2170         (WebKit::WebView::drawsTransparentBackground):
2171         * UIProcess/efl/WebView.h:
2172         (WebView):
2173        * UIProcess/API/C/efl/WKView.h:
2174
2175             New methods added
2176
2177         * UIProcess/API/efl/EwkView.cpp:
2178         (EwkView::EwkView):
2179         (EwkView::displayTimerFired):
2180         (EwkView::handleEvasObjectColorSet):
2181         * UIProcess/API/efl/EwkView.h:
2182         (EwkView):
2183         * UIProcess/API/efl/ewk_view.cpp:
2184         (ewk_view_draws_page_background_set):
2185
2186             Remove the unneeded m_setDrawsBackground and replace
2187             it with the WKView setting.
2188
2189 2013-02-07  Christophe Dumez  <dchris@gmail.com>
2190
2191         [EFL][WK2] EWK2UnitTestBase.ewk_view_page_contents_get API test is sometimes failing
2192         https://bugs.webkit.org/show_bug.cgi?id=108634
2193
2194         Reviewed by Alexey Proskuryakov.
2195
2196         Use more robust data validation in EWK2UnitTestBase.ewk_view_page_contents_get
2197         so that the test passes consistently. The issue was that the header before the
2198         data includes the current date. Depending on the date, the data may start at a
2199         different index in the returned string. Instead of hardcoding the data start
2200         index in the test, we now use String::contains().
2201
2202         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
2203         (PageContentsCallback):
2204         (TEST_F):
2205
2206 2013-02-07  Gavin Peters  <gavinp@chromium.org>
2207
2208         Unreviewed, rolling out r142141.
2209         http://trac.webkit.org/changeset/142141
2210         https://bugs.webkit.org/show_bug.cgi?id=108990
2211
2212         Reland r142112, will update Chromium expectations and create a
2213         Chromium bug instead for the crash.
2214
2215         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2216         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
2217         * WebProcess/WebPage/DrawingAreaImpl.cpp:
2218         (WebKit::DrawingAreaImpl::DrawingAreaImpl):
2219
2220 2013-02-07  Gavin Peters  <gavinp@chromium.org>
2221
2222         Unreviewed, rolling out r142112.
2223         http://trac.webkit.org/changeset/142112
2224         https://bugs.webkit.org/show_bug.cgi?id=108990
2225
2226         The new test scrollingcoordinator/non-fast-scrollable-region-transformed- iframe.html crashes on Lion.
2227
2228         See http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=scrollingcoordinator%2Fnon-fast-scrollable-region-transformed-iframe.html
2229
2230         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2231         (WebKit::updateOffsetFromViewportForSelf):
2232         (WebKit):
2233         (WebKit::updateOffsetFromViewportForLayer):
2234         (WebKit::CoordinatedLayerTreeHost::syncFixedLayers):
2235         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
2236         * WebProcess/WebPage/DrawingAreaImpl.cpp:
2237         (WebKit::DrawingAreaImpl::DrawingAreaImpl):
2238
2239 2013-02-07  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2240
2241         [CoordinatedGraphics] Use ScrollingCoordinator to track fixed layers
2242         https://bugs.webkit.org/show_bug.cgi?id=108990
2243
2244         Reviewed by Noam Rosenthal.
2245         Signed off for WebKit2 by Simon Fraser.
2246
2247         WebCore keeps ScrollingCoordinator up-to-date about whether layers are fixed or not, so we
2248         don't need to traverse the tree every frame to get this information.
2249
2250         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp: remove
2251         syncFixedLayers() and its helper functions. Those were used to identify the fixed layers
2252         and are not needed anymore.
2253         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
2254         * WebProcess/WebPage/DrawingAreaImpl.cpp:
2255         (WebKit::DrawingAreaImpl::DrawingAreaImpl): enable the scrolling coordinator usage for
2256         Coordinated Graphics.
2257
2258 2013-02-07  Michael Brüning  <michael.bruning@digia.com>
2259
2260         [Qt][WK2] Fold QtWebPageLoadClient into QQuickWebViewPrivate and move to C API.
2261         https://bugs.webkit.org/show_bug.cgi?id=108473
2262
2263         Reviewed by Simon Hausmann.
2264         Signed off for WebKit2 by Benjamin Poulain.
2265
2266         This patch removes the QtWebPageLoadClient and moves the functionality into the
2267         QQuickWebViewPrivate as most callback methods are calling the private webview
2268         indirectly anyway.
2269
2270         The patch also moves as much of the functionality to the C API as is possible with
2271         the current C API.
2272
2273         * Target.pri:
2274         * UIProcess/API/qt/qquickwebview.cpp:
2275         (QQuickWebViewPrivate::initialize):
2276         (QQuickWebViewPrivate::didStartProvisionalLoadForFrame):
2277         (QQuickWebViewPrivate::didReceiveServerRedirectForProvisionalLoadForFrame):
2278         (QQuickWebViewPrivate::didFailLoad):
2279         (QQuickWebViewPrivate::didCommitLoadForFrame):
2280         (QQuickWebViewPrivate::didFinishLoadForFrame):
2281         (QQuickWebViewPrivate::didSameDocumentNavigationForFrame):
2282         (QQuickWebViewPrivate::didReceiveTitleForFrame):
2283         (QQuickWebViewPrivate::didStartProgress):
2284         (QQuickWebViewPrivate::didChangeProgress):
2285         (QQuickWebViewPrivate::didFinishProgress):
2286         (QQuickWebViewPrivate::didChangeBackForwardList):
2287         (QQuickWebViewPrivate::setTransparentBackground):
2288         (QQuickWebViewPrivate::transparentBackground):
2289         (QQuickWebViewPrivate::loadProgressDidChange):
2290         * UIProcess/API/qt/qquickwebview_p.h:
2291         (WebKit):
2292         * UIProcess/API/qt/qquickwebview_p_p.h:
2293         (WebKit):
2294         (QQuickWebViewPrivate):
2295         * UIProcess/qt/QtWebError.cpp:
2296         (WebKit::QtWebError::url):
2297         * UIProcess/qt/QtWebPageLoadClient.cpp: Removed.
2298         * UIProcess/qt/QtWebPageLoadClient.h: Removed.
2299
2300 2013-02-05  Eunmi Lee  <eunmi15.lee@samsung.com> and Raphael Kubo da Costa  <raphael.kubo.da.costa@intel.com>
2301
2302         [EFL][WK2] Refactoring initialization and shutdown codes of EFL libraries.
2303         https://bugs.webkit.org/show_bug.cgi?id=97173
2304
2305         Reviewed by Kenneth Rohde Christiansen, signed-off by Benjamin Poulain.
2306
2307         Initialize and shutdown the EFL libraries in the ewk_main.cpp for
2308         UIProcess and WebProcessMainEfl.cpp for WebProcess.
2309
2310         This allows us to shut down the libraries in a proper way, since
2311         RunLoop persist until the process exits.
2312
2313         * UIProcess/API/efl/ewk_main.cpp:
2314         (ewk_init):
2315         (ewk_shutdown):
2316         * WebProcess/efl/WebProcessMainEfl.cpp:
2317         (WebKit::WebProcessMainEfl):
2318
2319 2013-02-07  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2320
2321         Unreviewed build fix.
2322
2323         * UIProcess/Downloads/DownloadProxyMap.cpp:
2324         (WebKit::DownloadProxyMap::processDidClose):
2325         m_process can't be initialized nullptr yet. Use 0 instead of nullptr.
2326
2327 2013-02-07  Simon Hausmann  <simon.hausmann@digia.com>
2328
2329         [Qt][WK2] Fold QtWebPageFindClient into QQuickWebViewPrivate
2330         https://bugs.webkit.org/show_bug.cgi?id=108920
2331
2332         Reviewed by Jocelyn Turcotte, signed off for WK2 by Benjamin.
2333
2334         Employ the pattern suggested by Jocelyn to simply implement the C
2335         callbacks directly using static functions.
2336
2337         * Target.pri:
2338         * UIProcess/API/qt/qquickwebview.cpp:
2339         (toQQuickWebViewPrivate):
2340         (QQuickWebViewPrivate::initialize):
2341         (QQuickWebViewPrivate::didFindString):
2342         (QQuickWebViewPrivate::didFailToFindString):
2343         * UIProcess/API/qt/qquickwebview_p_p.h:
2344         (QQuickWebViewPrivate):
2345         * UIProcess/qt/QtWebPageFindClient.cpp: Removed.
2346         * UIProcess/qt/QtWebPageFindClient.h: Removed.
2347
2348 2013-02-03  Sam Weinig  <sam@webkit.org>
2349
2350         Make CustomProtocolManagerProxy a MessageReceiver
2351         https://bugs.webkit.org/show_bug.cgi?id=108787
2352
2353         Reviewed by Anders Carlsson.
2354
2355         * Shared/ChildProcessProxy.cpp:
2356         (WebKit::ChildProcessProxy::addMessageReceiver):
2357         (WebKit::ChildProcessProxy::removeMessageReceiver):
2358         (WebKit::ChildProcessProxy::dispatchMessage):
2359         (WebKit::ChildProcessProxy::dispatchSyncMessage):
2360         * Shared/ChildProcessProxy.h:
2361         Sink the MessageReceiverMap down into the ChildProcessProxy.
2362
2363         * UIProcess/Downloads/DownloadProxyMap.cpp:
2364         (WebKit::DownloadProxyMap::DownloadProxyMap):
2365         (WebKit::DownloadProxyMap::createDownloadProxy):
2366         (WebKit::DownloadProxyMap::downloadFinished):
2367         (WebKit::DownloadProxyMap::processDidClose):
2368         * UIProcess/Downloads/DownloadProxyMap.h:
2369         Pass the ChildProcessProxy rather than the MessageReceiverMap to the constructor.
2370
2371         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
2372         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
2373         * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
2374         (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
2375         Convert to a MessageReceiver.
2376
2377         * UIProcess/Network/NetworkProcessProxy.cpp:
2378         (WebKit::NetworkProcessProxy::createDownloadProxy):
2379         (WebKit::NetworkProcessProxy::didReceiveMessage):
2380         (WebKit::NetworkProcessProxy::didReceiveSyncMessage):
2381         * UIProcess/Network/NetworkProcessProxy.h:
2382         * UIProcess/WebProcessProxy.cpp:
2383         (WebKit::WebProcessProxy::didReceiveMessage):
2384         (WebKit::WebProcessProxy::didReceiveSyncMessage):
2385         (WebKit::WebProcessProxy::createDownloadProxy):
2386         * UIProcess/WebProcessProxy.h:
2387         (WebProcessProxy):
2388         Remove direct chaining to CustomProtocolManagerProxy.
2389
2390 2013-02-06  Enrica Casucci  <enrica@apple.com>
2391
2392         ASSERT(!m_findPageOverlay) in FindController.cpp after r140769.
2393         https://bugs.webkit.org/show_bug.cgi?id=109105.
2394
2395         Reviewed by Tim Horton.
2396
2397         In r140769 we changed the way the overlay is destroyed,
2398         therefore the assert is no longer valid and should be removed.
2399
2400         * WebProcess/WebPage/FindController.cpp:
2401         (WebKit::FindController::updateFindUIAfterPageScroll):
2402
2403 2013-02-06  Anders Carlsson  <andersca@apple.com>
2404
2405         Dispatch storage manager messages to the storage work queue
2406         https://bugs.webkit.org/show_bug.cgi?id=109099
2407
2408         Reviewed by Andreas Kling.
2409
2410         * UIProcess/Storage/StorageManager.cpp:
2411         (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
2412         (WebKit::StorageManager::dispatchMessageOnStorageManagerQueue):
2413         (WebKit):
2414         * UIProcess/Storage/StorageManager.h:
2415         (StorageManager):
2416
2417 2013-02-06  Anders Carlsson  <andersca@apple.com>
2418
2419         Pass the document source URL to the pluginLoadPolicy callback
2420         https://bugs.webkit.org/show_bug.cgi?id=109084
2421         <rdar://problem/13154516>
2422
2423         Reviewed by Andreas Kling.
2424
2425         * UIProcess/API/C/WKPage.h:
2426         * UIProcess/WebPageProxy.cpp:
2427         (WebKit::WebPageProxy::getPluginPath):
2428         * UIProcess/WebPageProxy.h:
2429         (WebPageProxy):
2430         * UIProcess/WebPageProxy.messages.in:
2431         * UIProcess/WebUIClient.cpp:
2432         (WebKit::WebUIClient::pluginLoadPolicy):
2433         * UIProcess/WebUIClient.h:
2434         (WebUIClient):
2435         * WebProcess/WebPage/WebPage.cpp:
2436         (WebKit::WebPage::createPlugin):
2437         (WebKit::WebPage::canPluginHandleResponse):
2438
2439 2013-02-06  Alexey Proskuryakov  <ap@apple.com>
2440
2441         Get rid of unneeded writeable preferences.
2442
2443         Reviewed by Anders Carlsson.
2444
2445         com.apple.HIToolbox.plist and com.apple.WebProcess.plist were made writeable very
2446         early in WebKit2 development, before we moved a lot of functionality to UI process.
2447         They don't appear to be needed any more.
2448
2449         Note that we do not even need to allow reading for com.apple.WebProcess.plist -
2450         it's read at process initialization before we enter the sandbox, and services
2451         have a different plist anyway.
2452
2453         * WebProcess/com.apple.WebProcess.sb.in:
2454
2455 2013-02-06  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
2456
2457         [EFL][WK2] Assertion failure on MiniBrowser exit
2458         https://bugs.webkit.org/show_bug.cgi?id=108932
2459
2460         Reviewed by Anders Carlsson.
2461
2462         WorkQueue is now refcounted after r141497, so increase ref
2463         count when a new job is scheduled and unref it when it finishes.
2464
2465         * Platform/efl/WorkQueueEfl.cpp:
2466         (WorkQueue::performWork):
2467         (WorkQueue::performTimerWork):
2468         (WorkQueue::dispatch):
2469         (WorkQueue::dispatchAfterDelay):
2470
2471 2013-02-06  Simon Hausmann  <simon.hausmann@digia.com>, Zoltan Arvai  <zarvai@inf.u-szeged.hu>
2472
2473         [WK2][Win] Fix build after MessageID.h related changes and after r141619.
2474         https://bugs.webkit.org/show_bug.cgi?id=108612
2475
2476         Reviewed by Anders Carlsson.
2477
2478         * Platform/CoreIPC/win/ConnectionWin.cpp:
2479         (CoreIPC::Connection::platformInvalidate):
2480         (CoreIPC::Connection::readEventHandler):
2481         (CoreIPC::Connection::open):
2482         (CoreIPC::Connection::sendOutgoingMessage):
2483         * Platform/WorkQueue.h:
2484         (WorkQueue::WorkItemWin::queue):
2485         (WorkItemWin):
2486         * Platform/win/SharedMemoryWin.cpp:
2487         (WebKit::SharedMemory::Handle::decode):
2488         * Platform/win/WorkQueueWin.cpp:
2489         (WorkQueue::handleCallback):
2490         (WorkQueue::performWorkOnRegisteredWorkThread):
2491
2492 2013-02-06  Mike West  <mkwst@chromium.org>
2493
2494         Add an ENABLE_NOSNIFF feature flag.
2495         https://bugs.webkit.org/show_bug.cgi?id=109029
2496
2497         Reviewed by Jochen Eisinger.
2498
2499         This new flag will control the behavior of 'X-Content-Type-Options: nosniff'
2500         when processing script and other resource types.
2501
2502         * Configurations/FeatureDefines.xcconfig:
2503
2504 2013-02-06  Marja Hölttä  <marja@chromium.org>
2505
2506         Take referrer policy into account when clearing the referrer header
2507         https://bugs.webkit.org/show_bug.cgi?id=86000
2508
2509         Reviewed by Alexey Proskuryakov.
2510
2511         The referrer should only be cleared when doing a https -> http redirect,
2512         if the policy is "default". Otherwise the referrer should be left intact.
2513
2514         * NetworkProcess/NetworkResourceLoader.cpp:
2515         (WebKit::NetworkResourceLoader::start):
2516         * NetworkProcess/SchedulableLoader.cpp:
2517         (WebKit::SchedulableLoader::SchedulableLoader):
2518         * NetworkProcess/SchedulableLoader.h:
2519         (WebKit::SchedulableLoader::shouldClearReferrerOnHTTPSToHTTPRedirect):
2520         (SchedulableLoader):
2521         * NetworkProcess/SyncNetworkResourceLoader.cpp:
2522         (WebKit::SyncNetworkResourceLoader::start):
2523         * NetworkProcess/mac/RemoteNetworkingContext.h:
2524         (WebKit::RemoteNetworkingContext::create):
2525         (RemoteNetworkingContext):
2526         * NetworkProcess/mac/RemoteNetworkingContext.mm:
2527         (WebKit::RemoteNetworkingContext::shouldClearReferrerOnHTTPSToHTTPRedirect):
2528         (WebKit):
2529         (WebKit::RemoteNetworkingContext::RemoteNetworkingContext):
2530         * Shared/Network/NetworkResourceLoadParameters.cpp:
2531         (WebKit::NetworkResourceLoadParameters::NetworkResourceLoadParameters):
2532         (WebKit::NetworkResourceLoadParameters::encode):
2533         (WebKit::NetworkResourceLoadParameters::decode):
2534         * Shared/Network/NetworkResourceLoadParameters.h:
2535         (NetworkResourceLoadParameters):
2536         (WebKit::NetworkResourceLoadParameters::shouldClearReferrerOnHTTPSToHTTPRedirect):
2537         * WebProcess/Network/WebResourceLoadScheduler.cpp:
2538         (WebKit::WebResourceLoadScheduler::scheduleSubresourceLoad):
2539         (WebKit::WebResourceLoadScheduler::schedulePluginStreamLoad):
2540         (WebKit::WebResourceLoadScheduler::scheduleLoad):
2541         * WebProcess/Network/WebResourceLoadScheduler.h:
2542         (WebResourceLoadScheduler):
2543         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
2544         (WebKit::WebPlatformStrategies::loadResourceSynchronously):
2545
2546 2013-02-06  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2547
2548         [EFL][WK2] Encapsulate Ewk View evas smart object code inside EwkView class
2549         https://bugs.webkit.org/show_bug.cgi?id=108062
2550
2551         Reviewed by Kenneth Rohde Christiansen.
2552
2553         The Ewk View implementation is encapsulated within EwkView class.
2554         Besides multiple refactoring of Ewk View evas smart object code was made.
2555
2556         * UIProcess/API/C/efl/WKView.cpp:
2557         (createWKView): 
2558
2559             Aux function to share WKView creation implementation.
2560
2561         * UIProcess/API/efl/EwkView.cpp:
2562         (smartDataChanged):
2563         (defaultSmartClassInstance):
2564         (toSmartData):
2565         (EwkView::initSmartClassInterface):
2566         (EwkView::toEvasObject):
2567         (EwkView::smartData):
2568
2569             Renamed and moved here from ewk_view.
2570
2571         (EwkViewEventHandler):
2572         (EwkViewEventHandler::subscribe):
2573         (EwkViewEventHandler::unsubscribe):
2574         (::handleEvent):
2575
2576             Added a new template class to encapsulate Ewk View Evas events handling.
2577
2578         (EwkView::EwkView):
2579         (EwkView::~EwkView):
2580
2581             Constructor and desctructor are private.
2582
2583         (EwkView::createEvasObject):
2584
2585             Added factory function for ewk view evas objects creation.
2586
2587         (EwkView::handleEvasObjectAdd):
2588         (EwkView::handleEvasObjectDelete):
2589         (EwkView::handleEvasObjectResize):
2590         (EwkView::handleEvasObjectMove):
2591         (EwkView::handleEvasObjectCalculate):
2592         (EwkView::handleEvasObjectShow):
2593         (EwkView::handleEvasObjectHide):
2594         (EwkView::handleEvasObjectColorSet):
2595
2596             Evas_Smart_Class interface callbacks moved into the EwkView class.
2597
2598         (EwkView::handleEwkViewFocusIn):
2599         (EwkView::handleEwkViewFocusOut):
2600         (EwkView::handleEwkViewMouseWheel):
2601         (EwkView::handleEwkViewMouseDown):
2602         (EwkView::handleEwkViewMouseUp):
2603         (EwkView::handleEwkViewMouseMove):
2604         (EwkView::handleEwkViewKeyDown):
2605         (EwkView::handleEwkViewKeyUp):
2606
2607             Ewk_View_Smart_Class interface callback moved into the EwkView class.
2608
2609         (EwkView::handleTouchDown):
2610         (EwkView::handleTouchUp):
2611         (EwkView::handleTouchMove):
2612
2613             Renamed.
2614
2615         (toEwkView): 
2616
2617             Aux function to get the EwkView instance fromevas object.
2618
2619         (isViewEvasObject):
2620
2621             Aux function to check that given evas object is ewk view.
2622
2623         * UIProcess/API/efl/EwkView.h:
2624         (EwkView::evasObject):
2625         (EwkView):
2626         * UIProcess/API/efl/ewk_view.cpp:
2627         (ewk_view_smart_class_set):
2628         (ewk_view_smart_add):
2629         (ewk_view_add_with_context):
2630         (ewk_view_feed_touch_event):
2631         (Ewk_Page_Contents_Context):
2632
2633         * UIProcess/API/efl/ewk_view_private.h: Removed.
2634
2635         * UIProcess/API/C/efl/WKView.cpp:
2636         (WKViewCreate):
2637         (WKViewCreateWithFixedLayout):
2638         (WKViewCreateSnapshot):
2639         * UIProcess/cairo/BackingStoreCairo.cpp:
2640         (WebKit::BackingStore::incorporateUpdate):
2641         * UIProcess/efl/ContextHistoryClientEfl.cpp:
2642         (WebKit::ContextHistoryClientEfl::didNavigateWithNavigationData):
2643         (WebKit::ContextHistoryClientEfl::didPerformClientRedirect):
2644         (WebKit::ContextHistoryClientEfl::didPerformServerRedirect):
2645         (WebKit::ContextHistoryClientEfl::didUpdateHistoryTitle):
2646         * UIProcess/efl/PageClientBase.cpp:
2647         (WebKit::PageClientBase::processDidCrash):
2648         * UIProcess/efl/PageLoadClientEfl.cpp:
2649         (WebKit::PageLoadClientEfl::didChangeBackForwardList):
2650         * UIProcess/efl/PageUIClientEfl.cpp:
2651         (WebKit::PageUIClientEfl::takeFocus):
2652         (WebKit::PageUIClientEfl::focus):
2653         (WebKit::PageUIClientEfl::unfocus):
2654         * UIProcess/efl/WebFullScreenManagerProxyEfl.cpp:
2655         (WebKit::WebFullScreenManagerProxy::enterFullScreen):
2656         (WebKit::WebFullScreenManagerProxy::exitFullScreen):
2657         * UIProcess/efl/WebInspectorProxyEfl.cpp:
2658         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
2659         * UIProcess/efl/WebPageProxyEfl.cpp:
2660         (WebKit::WebPageProxy::viewWidget):
2661
2662              Updated due to changes in EwkView interface.
2663
2664 2013-02-05  Tim Horton  <timothy_horton@apple.com>
2665
2666         [wk2] TiledCoreAnimationDrawingArea has one more layer in its CAContext when we're in the background
2667         https://bugs.webkit.org/show_bug.cgi?id=108992
2668         <rdar://problem/13087365>
2669
2670         Reviewed by Anders Carlsson.
2671
2672         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
2673         (TiledCoreAnimationDrawingArea): Add storage for m_isInWindow.
2674         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
2675         (WebKit::TiledCoreAnimationDrawingArea::updateLayerHostingContext): Only set the root layer on our layer
2676         hosting context if we're in the window when swapping out contexts.
2677         (WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer): Update m_isInWindow, and set the root layer
2678         of the layer hosting context (or unset it if we're out of the window).
2679
2680 2013-02-05  Anders Carlsson  <andersca@apple.com>
2681
2682         WebKit clients should be able to override loading of blocked plug-ins
2683         https://bugs.webkit.org/show_bug.cgi?id=108968
2684         <rdar://problem/13154516>
2685
2686         Reviewed by Sam Weinig.
2687
2688         Replace the shouldInstantiatePlugin callback with a new pluginLoadPolicy which is called regardless
2689         of whether the plug-in is blocked or not. This lets clients override the plug-in load policy and
2690         force loading of blacklisted plug-ins (and vice versa).
2691
2692         * UIProcess/API/C/WKPage.h:
2693         * UIProcess/WebPageProxy.cpp:
2694         (WebKit::WebPageProxy::getPluginPath):
2695         * UIProcess/WebUIClient.cpp:
2696         (WebKit::toWKPluginLoadPolicy):
2697         (WebKit):
2698         (WebKit::toPluginModuleLoadPolicy):
2699         (WebKit::WebUIClient::pluginLoadPolicy):
2700         * UIProcess/WebUIClient.h:
2701         (WebUIClient):
2702
2703 2013-02-05  Simon Hausmann  <simon.hausmann@digia.com>
2704
2705         [Qt][WK2] Replace more uses of WebPageProxy with WKPage in QQuickWebView
2706         https://bugs.webkit.org/show_bug.cgi?id=108826
2707
2708         Reviewed by Kenneth Rohde Christiansen and signed off for WK2 by
2709         Benjamin Poulain.
2710
2711         This patch converts a few more usages of WebPageProxy to functions in
2712         the WKPage API.
2713
2714         * UIProcess/API/qt/qquickwebview.cpp:
2715         (QQuickWebViewPrivate::initialize):
2716         (QQuickWebViewLegacyPrivate::zoomFactor):
2717         (QQuickWebViewLegacyPrivate::setZoomFactor):
2718         (QQuickWebViewExperimental::postMessage):
2719         (QQuickWebViewExperimental::userAgent):
2720         (QQuickWebViewExperimental::setUserAgent):
2721         (QQuickWebViewExperimental::evaluateJavaScript):
2722         (QQuickWebViewExperimental::findText):
2723         (QQuickWebView::goBack):
2724         (QQuickWebView::goForward):
2725         (QQuickWebView::stop):
2726         (QQuickWebView::reload):
2727         (QQuickWebView::setUrl):
2728         (QQuickWebView::canGoBack):
2729         (QQuickWebView::canGoForward):
2730         (QQuickWebView::loading):
2731         (QQuickWebView::title):
2732         (QQuickWebView::pageRef):
2733         (QQuickWebView::loadHtml):
2734         (QQuickWebView::runJavaScriptInMainFrame):
2735         * UIProcess/API/qt/qquickwebview_p_p.h:
2736         (QQuickWebViewPrivate):
2737
2738 2013-02-04  Gwang Yoon Hwang  <ryumiel@company100.net>
2739
2740         Coordinated Graphics : disconnectCustomFilterProgram does not do anything.
2741         https://bugs.webkit.org/show_bug.cgi?id=108807
2742
2743         Reviewed by Anders Carlsson.
2744
2745         We need to add newly created WebCustomFilterProgramProxy to a hashset to
2746         disconnect when CoordinatedLayerTreeHost gets destructed.
2747
2748         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2749         (WebKit::CoordinatedLayerTreeHost::checkCustomFilterProgramProxies):
2750
2751 2013-02-04  Benjamin Poulain  <bpoulain@apple.com>
2752
2753         Kill suspendAnimation(), resumeAnimation() and numberOfActiveAnimations() from DRT/WTR; use Internals
2754         https://bugs.webkit.org/show_bug.cgi?id=108741
2755
2756         Reviewed by Tony Chang.
2757
2758         Suspending and resuming application has been useless for a one. Someone just
2759         "forgot" WebKit2.
2760
2761         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
2762         * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
2763         * WebProcess/WebPage/WebFrame.cpp:
2764         * WebProcess/WebPage/WebFrame.h:
2765         (WebFrame):
2766
2767 2013-02-04  Jaehun Lim  <ljaehun.lim@samsung.com>
2768
2769         [EFL][WK2] Implement runBeforeUnloadConfirmPanel on EFL
2770         https://bugs.webkit.org/show_bug.cgi?id=106979
2771
2772         Reviewed by Benjamin Poulain.
2773
2774         Implement runBeforeUnloadConfirmPanel() to support window.onbeforeunload.
2775         We can show confirmation window when beforeunload event is fired.
2776
2777         * UIProcess/efl/PageUIClientEfl.cpp:
2778         (WebKit::PageUIClientEfl::PageUIClientEfl):
2779         (WebKit::PageUIClientEfl::runBeforeUnloadConfirmPanel):
2780         (WebKit):
2781         * UIProcess/efl/PageUIClientEfl.h:
2782         (PageUIClientEfl):
2783
2784 2013-02-04  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2785
2786         [EFL][WK2] Introduce a WebView class as counterpart for WKViewRef
2787         https://bugs.webkit.org/show_bug.cgi?id=107931
2788
2789         Reviewed by Anders Carlsson.
2790
2791         This is just one step of the new plan for the EFL API.
2792
2793         The plan is to move the public EFL-like API on top of the shared
2794         WK2 C API, plus a few EFL extensions (WKView class mostly).
2795
2796         The EFL-like API can be seen as a convenience API which ties
2797         well into EFL and which makes it easy to add web experiences
2798         to existing and new EFL applications. It provides a smart object
2799         like API and a Evas_Object based view.
2800
2801         For more advanced use cases, such as browser and runtime, it is
2802         possible to use the WK* C API, which is gives more flexibility
2803         while being more low level.
2804
2805         The idea is that the WKView class will not depend on Evas_Object
2806         and X11 (future plan) unlike the current EFL-like API. This should
2807         make it possible to use it for cases where none of these are
2808         available.
2809
2810         This patch introduces the WebView class which serves as our
2811         counterpart for the WKView class, and adds a few needed methods.
2812
2813         The EwkView owns the WebView class (and will be constructing it
2814         in the near future when the EwkView class has been changed to
2815         handle all smart object related code)
2816
2817         The clean up of the smart object related code as the proper
2818         construction of EwkView and WebView will be done in follow-up
2819         patches.
2820
2821         * UIProcess/API/C/efl/WKAPICastEfl.h:
2822         (WebKit):
2823
2824             The WKView API is not based on WebView and not Evas_Object*
2825
2826         * UIProcess/API/C/efl/WKView.cpp:
2827         (WKViewCreate):
2828         (WKViewCreateWithFixedLayout):
2829         (WKViewInitialize):
2830         (WKViewGetPage):
2831         (WKViewSetThemePath):
2832         (WKViewSuspendActiveDOMObjectsAndAnimations):
2833         (WKViewResumeActiveDOMObjectsAndAnimations):
2834         (WKViewGetEvasObject):
2835         (WKViewCreateSnapshot):
2836
2837             Add a few new WKView EFL C methods, and update existing
2838             methods to reflect that the WKViewRef is now a WebView*
2839
2840             The construction methods will be rewritten when the smart
2841             object construction has been solved.
2842
2843         * UIProcess/API/C/efl/WKView.h:
2844         * UIProcess/efl/WebView.cpp: Added.
2845         (WebKit):
2846         (WebKit::WebView::WebView):
2847         (WebKit::WebView::~WebView):
2848         (WebKit::WebView::initialize):
2849         (WebKit::WebView::setThemePath):
2850         (WebKit::WebView::suspendActiveDOMObjectsAndAnimations):
2851         (WebKit::WebView::resumeActiveDOMObjectsAndAnimations):
2852         * UIProcess/efl/WebView.h: Added.
2853         (WebKit):
2854         (WebView):
2855         (WebKit::WebView::pageRef):
2856         (WebKit::WebView::evasObject):
2857         (WebKit::WebView::page):
2858         (WebKit::WebView::type):
2859
2860             Add a new WebKit::WebView class for EFL.
2861
2862         * UIProcess/API/efl/EwkView.cpp:
2863         (EwkView::EwkView):
2864         (EwkView::~EwkView):
2865         (EwkView::wkPage):
2866         (EwkView::setThemePath):
2867         (EwkView::createGLSurface):
2868
2869             Base methods on C API instead of internal API as much
2870             as currently possible.
2871
2872         * UIProcess/API/efl/EwkView.h:
2873         (WebKit):
2874         (WebView):
2875         (EwkView):
2876         (EwkView::wkView):
2877         (EwkView::page):
2878         * UIProcess/API/efl/ewk_view.cpp:
2879         (createEwkView):
2880         (ewk_view_base_add):
2881         (ewk_view_smart_add):
2882
2883             Modify to return the EwkView class for now.
2884
2885         * UIProcess/API/efl/ewk_view_private.h:
2886         * UIProcess/efl/WebInspectorProxyEfl.cpp:
2887         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
2888
2889             Updated due to changed API.
2890
2891 2013-02-04  Anders Carlsson  <andersca@apple.com>
2892
2893         Set up the storage manager as a connection queue
2894         https://bugs.webkit.org/show_bug.cgi?id=108879
2895
2896         Reviewed by Sam Weinig.
2897
2898         * UIProcess/Storage/StorageManager.cpp:
2899         (WebKit::StorageManager::processWillOpenConnection):
2900         Add the storage manager as a connection queue client.
2901
2902         (WebKit::StorageManager::processWillCloseConnection):
2903         Remove the storage manager.
2904
2905         * UIProcess/WebContext.cpp:
2906         (WebKit::WebContext::processWillOpenConnection):
2907         Call the storage manager.
2908
2909         (WebKit::WebContext::processWillCloseConnection):
2910         Call the storage manager.
2911
2912         * UIProcess/WebProcessProxy.cpp:
2913         (WebKit::WebProcessProxy::connectionWillOpen):
2914         Call the context.
2915
2916         (WebKit::WebProcessProxy::connectionWillClose):
2917         Call the context.
2918
2919         (WebKit::WebProcessProxy::didFinishLaunching):
2920         Remove a comment.
2921
2922 2013-02-04  Anders Carlsson  <andersca@apple.com>
2923
2924         Send message when creating and destroying StorageAreaProxy objects
2925         https://bugs.webkit.org/show_bug.cgi?id=108874
2926
2927         Reviewed by Sam Weinig.
2928
2929         * Shared/SecurityOriginData.cpp:
2930         (WebKit::SecurityOriginData::fromSecurityOrigin):
2931         * Shared/SecurityOriginData.h:
2932         (SecurityOriginData):
2933         Add helper function for creating a SecurityOriginData object given a WebCore::SecurityOrigin object.
2934
2935         * WebProcess/Storage/StorageAreaProxy.cpp:
2936         (WebKit::generateStorageAreaID):
2937         New function to create a unique storage area ID.
2938
2939         (WebKit::StorageAreaProxy::StorageAreaProxy):
2940         Send a CreateStorageArea message.
2941         
2942         (WebKit::StorageAreaProxy::~StorageAreaProxy):
2943         Send a DestroyStorageArea message.
2944
2945         (WebKit::StorageAreaProxy::contains):
2946         Remove this assertion for now, it fires too often.
2947         
2948         * WebProcess/Storage/StorageNamespaceProxy.h:
2949         (WebKit::StorageNamespaceProxy::storageNamespaceID):
2950         Add getter.
2951
2952 2013-02-04  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2953
2954         [EFL][WK2] Use C API inside EwkView
2955         https://bugs.webkit.org/show_bug.cgi?id=108825
2956
2957         Reviewed by Anders Carlsson.
2958
2959         A straight-forward port towards the C API.
2960
2961         * UIProcess/API/efl/EwkView.cpp:
2962         (EwkView::EwkView): Use C API for common default preferences.
2963         (EwkView::wkPage): Make it const and remove useless comment.
2964         (EwkView::deviceScaleFactor):
2965         (EwkView::title):
2966         (EwkView::customTextEncodingName):
2967         (EwkView::setCustomTextEncodingName):
2968         (EwkView::informURLChange):
2969         * UIProcess/API/efl/EwkView.h:
2970         (EwkView):
2971
2972 2013-02-04  Alexey Proskuryakov  <ap@apple.com>
2973
2974         Remove an unnecessary sandbox rule.
2975
2976         Reviewed by Sam Weinig.
2977
2978         * WebProcess/com.apple.WebProcess.sb.in: We already have a file-read rule for
2979         /Library/Managed Preferences, no need for another rule for something inside it.
2980
2981 2013-02-04  Brady Eidson  <beidson@apple.com>
2982
2983         WebProcess crashes handling repeated NetworkProcess crashes.
2984         <rdar://problem/13049867> and https://bugs.webkit.org/show_bug.cgi?id=108861
2985
2986         Reviewed by Alexey Proskuryakov.
2987
2988         - Rename the concept of "unschedulable loader" to "internally failed loader"
2989         - When the NetworkProcess crashes, add all outstanding ResourceLoaders into the unschedulable pile.
2990         * WebProcess/Network/WebResourceLoadScheduler.cpp:
2991         (WebKit::WebResourceLoadScheduler::WebResourceLoadScheduler):
2992         (WebKit::WebResourceLoadScheduler::scheduleLoad):
2993         (WebKit::WebResourceLoadScheduler::scheduleInternallyFailedLoad):
2994         (WebKit::WebResourceLoadScheduler::internallyFailedLoadTimerFired):
2995         (WebKit::WebResourceLoadScheduler::remove): Also remove a non-helpful, out of date comment.
2996         (WebKit::WebResourceLoadScheduler::networkProcessCrashed):
2997         * WebProcess/Network/WebResourceLoadScheduler.h:
2998
2999         WebResourceLoader no longer responds to crashes directly, but now exposes its WebCore ResourceLoader:
3000         * WebProcess/Network/WebResourceLoader.cpp:
3001         * WebProcess/Network/WebResourceLoader.h:
3002         (WebKit::WebResourceLoader::resourceLoader):
3003
3004 2013-02-04  Anders Carlsson  <andersca@apple.com>
3005
3006         Update message generation to use the new queue client semantics
3007         https://bugs.webkit.org/show_bug.cgi?id=108865
3008
3009         Reviewed by Andreas Kling.
3010
3011         * Scripts/webkit2/messages.py:
3012         (connection_work_queue_message_statement):
3013         (async_message_statement):
3014         (generate_message_handler):
3015         * Scripts/webkit2/messages_unittest.py:
3016         * Shared/mac/SecItemShim.cpp:
3017         (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
3018         * Shared/mac/SecItemShim.h:
3019         (SecItemShim):
3020         * UIProcess/Storage/StorageManager.cpp:
3021         (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
3022         * UIProcess/Storage/StorageManager.h:
3023         (StorageManager):
3024         * UIProcess/WebProcessProxy.cpp:
3025         (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
3026         * UIProcess/WebProcessProxy.h:
3027         (WebProcessProxy):
3028         * UIProcess/mac/SecItemShimProxy.cpp:
3029         (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
3030         * UIProcess/mac/SecItemShimProxy.h:
3031         (SecItemShimProxy):
3032         * WebKit2.xcodeproj/project.pbxproj:
3033         * WebProcess/WebPage/EventDispatcher.cpp:
3034         (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
3035         * WebProcess/WebPage/EventDispatcher.h:
3036         (EventDispatcher):
3037         * WebProcess/WebProcess.cpp:
3038         (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
3039         * WebProcess/WebProcess.h:
3040         (WebProcess):
3041
3042 2013-02-04  Abhishek Arya  <inferno@chromium.org>
3043
3044         Add ASSERT_WITH_SECURITY_IMPLICATION to detect out of bounds access
3045         https://bugs.webkit.org/show_bug.cgi?id=108668
3046
3047         Reviewed by Eric Seidel.
3048
3049         * Shared/mac/SandboxExtensionMac.mm:
3050         (WebKit::SandboxExtension::HandleArray::operator[]):
3051
3052 2013-02-04  Anders Carlsson  <andersca@apple.com>
3053
3054         Change didReceiveMessageOnConnectionWorkQueue semantics
3055         https://bugs.webkit.org/show_bug.cgi?id=108859
3056
3057         Reviewed by Sam Weinig.
3058
3059         Change didReceiveMessageOnConnectionWorkQueue to take a reference to an
3060         OwnPtr<MessageDecoder>. This lets queue clients handle a message later, on a different
3061         work queue for example. Also, get rid of the didHandleMessage boolean, since taking ownership
3062         of the decoder implicitly means that the message was handled.
3063         
3064         * Platform/CoreIPC/Connection.cpp:
3065         (CoreIPC::Connection::processIncomingMessage):
3066         * Platform/CoreIPC/Connection.h:
3067         (QueueClient):
3068         * Shared/mac/SecItemShim.cpp:
3069         (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
3070         * Shared/mac/SecItemShim.h:
3071         (SecItemShim):
3072         * UIProcess/Storage/StorageManager.cpp:
3073         (WebKit::StorageManager::StorageManager):
3074         (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
3075         * UIProcess/Storage/StorageManager.h:
3076         (WebKit):
3077         (StorageManager):
3078         * UIProcess/WebProcessProxy.cpp:
3079         (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
3080         * UIProcess/WebProcessProxy.h:
3081         (WebProcessProxy):
3082         * UIProcess/mac/SecItemShimProxy.cpp:
3083         (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
3084         * UIProcess/mac/SecItemShimProxy.h:
3085         (SecItemShimProxy):
3086         * WebProcess/WebPage/EventDispatcher.cpp:
3087         (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
3088         * WebProcess/WebPage/EventDispatcher.h:
3089         (EventDispatcher):
3090         * WebProcess/WebProcess.cpp:
3091         (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
3092         * WebProcess/WebProcess.h:
3093         (WebProcess):
3094
3095 2013-02-04  Alexey Proskuryakov  <ap@apple.com>
3096
3097         <rdar://problem/12884778> Sandbox violation due to MediaAccessibility code trying to access ~/Library/Preferences/com.apple.mediaaccessibility.plist
3098
3099         Reviewed by Sam Weinig.
3100
3101         * WebProcess/com.apple.WebProcess.sb.in:
3102
3103 2013-02-04  Anders Carlsson  <andersca@apple.com>
3104
3105         Add didCloseOnConnectionWorkQueue to Connection::QueueClient
3106         https://bugs.webkit.org/show_bug.cgi?id=108853
3107
3108         Reviewed by Andreas Kling.
3109
3110         * Platform/CoreIPC/Connection.cpp:
3111         (CoreIPC::Connection::connectionDidClose):
3112         * Platform/CoreIPC/Connection.h:
3113         (QueueClient):
3114         * Shared/mac/SecItemShim.cpp:
3115         (WebKit::SecItemShim::didCloseOnConnectionWorkQueue):
3116         * Shared/mac/SecItemShim.h:
3117         (SecItemShim):
3118         * UIProcess/Storage/StorageManager.cpp:
3119         (WebKit::StorageManager::didCloseOnConnectionWorkQueue):
3120         (WebKit):
3121         * UIProcess/Storage/StorageManager.h:
3122         (StorageManager):
3123         * UIProcess/WebProcessProxy.cpp:
3124         (WebKit::WebProcessProxy::didCloseOnConnectionWorkQueue):
3125         (WebKit):
3126         * UIProcess/WebProcessProxy.h:
3127         (WebProcessProxy):
3128         * UIProcess/mac/SecItemShimProxy.cpp:
3129         (WebKit::SecItemShimProxy::didCloseOnConnectionWorkQueue):
3130         * UIProcess/mac/SecItemShimProxy.h:
3131         (SecItemShimProxy):
3132         * WebProcess/WebPage/EventDispatcher.cpp:
3133         (WebKit::EventDispatcher::didCloseOnConnectionWorkQueue):
3134         (WebKit):
3135         * WebProcess/WebPage/EventDispatcher.h:
3136         (EventDispatcher):
3137         * WebProcess/WebProcess.cpp:
3138         (WebKit::WebProcess::didCloseOnConnectionWorkQueue):
3139         (WebKit):
3140         * WebProcess/WebProcess.h:
3141         (WebProcess):
3142
3143 2013-02-04  Martin Robinson  <mrobinson@igalia.com>
3144
3145         Fix GTK+ 'make dist' in preparation for the 1.11.5 release.
3146
3147         * GNUmakefile.am:
3148         * GNUmakefile.list.am:
3149
3150 2013-02-04  Enrica Casucci  <enrica@apple.com>
3151
3152         Add specific EditActions for Bold and Italic commands.
3153         https://bugs.webkit.org/show_bug.cgi?id=108842.
3154         <rdar://problem/13098252>
3155
3156         Reviewed by Ryosuke Niwa.
3157
3158         * UIProcess/WebEditCommandProxy.cpp:
3159         (WebKit::WebEditCommandProxy::nameForEditAction):
3160
3161 2013-02-04  Anders Carlsson  <andersca@apple.com>
3162
3163         Use a separate queue for the connection watchdog callback in the web process
3164         https://bugs.webkit.org/show_bug.cgi?id=108844
3165
3166         Reviewed by Andreas Kling.
3167
3168         Don't pass the connection work queue to the didCloseOnConnectionWorkQueue callback.
3169         Instead, create a new, temporary work queue where the exit call will be dispatched to.
3170
3171         * Platform/CoreIPC/Connection.cpp:
3172         (CoreIPC::Connection::connectionDidClose):
3173         * Platform/CoreIPC/Connection.h:
3174         (Connection):
3175         * Shared/ChildProcess.cpp:
3176         (WebKit::didCloseOnConnectionWorkQueue):
3177
3178 2013-02-04  Tim Horton  <timothy_horton@apple.com>
3179
3180         Allow TiledCoreAnimationDrawingArea overlay layers to become tiled
3181         https://bugs.webkit.org/show_bug.cgi?id=108729
3182         <rdar://problem/13047546>
3183
3184         Reviewed by Anders Carlsson.
3185
3186         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
3187         (TiledCoreAnimationDrawingArea): Add didCommitChangesForLayer and storage for the
3188         current PlatformLayer corresponding to m_pageOverlayLayer.
3189         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
3190         (WebKit::TiledCoreAnimationDrawingArea::flushLayers): Update the TileCache's visible rect.
3191         (WebKit::TiledCoreAnimationDrawingArea::setExposedRect): Forward exposed rect changes to the page overlay layer, if it's tiled.
3192         (WebKit::TiledCoreAnimationDrawingArea::mainFrameScrollabilityChanged): Forward scrollability changes to the page overlay layer, if it's tiled.
3193         (WebKit::TiledCoreAnimationDrawingArea::createPageOverlayLayer): Allow the page overlay layer to become tiled. Update its exposed rect and whether or not it respects the exposed rect if it's tiled upon creation.
3194         (WebKit::TiledCoreAnimationDrawingArea::didCommitChangesForLayer): If a GraphicsLayer's platform layer changes (because it switched to or from a tiled layer), reparent it. If it's switching to a tiled layer, update the exposed rect and whether or not it should respect the exposed rect.
3195
3196 2013-02-04  Anders Carlsson  <andersca@apple.com>
3197
3198         Use UNUSED_PARAM instead of C style comments.
3199
3200         * UIProcess/Storage/StorageManager.cpp:
3201         (WebKit::StorageManager::createStorageArea):
3202
3203 2013-02-04  Christophe Dumez  <dchris@gmail.com>
3204
3205         [EFL][WK2] Stop using libsoup in ewk_url_scheme_request
3206         https://bugs.webkit.org/show_bug.cgi?id=108816
3207
3208         Reviewed by Anders Carlsson.
3209
3210         As we are trying to minimize use of external dependencies in our WK2 EFL
3211         API implementation, we should stop using libsoup in
3212         ewk_url_scheme_request and use the WK2 C API instead.
3213
3214         * UIProcess/API/efl/ewk_url_scheme_request.cpp:
3215         (EwkUrlSchemeRequest::EwkUrlSchemeRequest):
3216
3217 2013-02-04  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
3218
3219         [WK2][EFL] Weird stripe at the end of the page
3220         https://bugs.webkit.org/show_bug.cgi?id=108820
3221
3222         Reviewed by Noam Rosenthal.
3223
3224         The page scroll bound was artificially enlarged by one causing the artifact appearance.
3225
3226         * UIProcess/PageViewportController.cpp:
3227         (WebKit::PageViewportController::boundContentsPositionAtScale):
3228
3229 2013-02-04  David Kilzer  <ddkilzer@apple.com>
3230
3231         Sort WebKit2 Xcode project file
3232
3233         * WebKit2.xcodeproj/project.pbxproj:
3234
3235 2013-02-04  Simon Hausmann  <simon.hausmann@digia.com>
3236
3237         [WK2][Qt] Replace WebPageGroup usage for user scripts with WKPageGroupRef
3238         https://bugs.webkit.org/show_bug.cgi?id=108651
3239
3240         Reviewed by Sam Weinig.
3241
3242         It's straight-forward port towards the C API.
3243
3244         * UIProcess/API/qt/qquickwebview.cpp:
3245         (QQuickWebViewPrivate::initialize):
3246         (readUserScript):
3247         (QQuickWebViewPrivate::updateUserScripts):
3248         * UIProcess/API/qt/qquickwebview_p_p.h:
3249         (QQuickWebViewPrivate):
3250
3251 2013-02-04  Balazs Kelemen  <kbalazs@webkit.org>
3252
3253         [Soup] Wrap SoupSession by NetworkStorageSession
3254         https://bugs.webkit.org/show_bug.cgi?id=108615
3255
3256         Reviewed by Alexey Proskuryakov.
3257
3258         * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
3259         (WebKit::WebFrameNetworkingContext::storageSession):
3260         * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
3261         (WebFrameNetworkingContext):
3262
3263 2013-02-03  David Kilzer  <ddkilzer@apple.com>
3264
3265         Upstream ENABLE_PDFKIT_PLUGIN settting
3266         <http://webkit.org/b/108792>
3267
3268         Reviewed by Tim Horton.
3269
3270         * Configurations/FeatureDefines.xcconfig: Disable PDFKIT_PLUGIN
3271         on iOS since PDFKit is a Mac-only framework.
3272
3273 2013-02-01  Alexey Proskuryakov  <ap@apple.com>
3274
3275         Silently block one more directory needed for NSApplication initialization.
3276
3277         Reviewed by Sam Weinig.
3278
3279         * WebProcess/com.apple.WebProcess.sb.in:
3280
3281 2013-02-03  KwangYong Choi  <ky0.choi@samsung.com>
3282
3283         Fix build warning after r141648
3284         https://bugs.webkit.org/show_bug.cgi?id=108784
3285
3286         Reviewed by Kentaro Hara.
3287
3288         Fix -Wunused-parameter build warning.
3289
3290         * UIProcess/Storage/StorageManager.cpp:
3291         (WebKit::StorageManager::createStorageArea):
3292         (WebKit::StorageManager::destroyStorageArea):
3293
3294 2013-02-03  Joanmarie Diggs  <jdiggs@igalia.com>
3295
3296         [GTK] Make distcheck fails
3297         https://bugs.webkit.org/show_bug.cgi?id=108756
3298
3299         Reviewed by Kentaro Hara.
3300
3301         * GNUmakefile.list.am: Remove header files which no longer exist
3302
3303 2013-02-02  Sam Weinig  <sam@webkit.org>
3304
3305         Remove more LegacyReceivers
3306         https://bugs.webkit.org/show_bug.cgi?id=108758
3307
3308         Reviewed by Anders Carlsson.
3309
3310         * UIProcess/Downloads/DownloadProxy.cpp:
3311         * UIProcess/Downloads/DownloadProxy.messages.in:
3312         * UIProcess/WebApplicationCacheManagerProxy.cpp:
3313         * UIProcess/WebApplicationCacheManagerProxy.h:
3314         (WebApplicationCacheManagerProxy):
3315         * UIProcess/WebApplicationCacheManagerProxy.messages.in:
3316         * UIProcess/WebCookieManagerProxy.cpp:
3317         * UIProcess/WebCookieManagerProxy.h:
3318         (WebCookieManagerProxy):
3319         * UIProcess/WebCookieManagerProxy.messages.in:
3320         * UIProcess/WebDatabaseManagerProxy.cpp:
3321         * UIProcess/WebDatabaseManagerProxy.h:
3322         (WebDatabaseManagerProxy):
3323         * UIProcess/WebDatabaseManagerProxy.messages.in:
3324         * UIProcess/mac/RemoteLayerTreeHost.h:
3325         (RemoteLayerTreeHost):
3326         * UIProcess/mac/RemoteLayerTreeHost.messages.in:
3327         * UIProcess/mac/RemoteLayerTreeHost.mm:
3328         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
3329         * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
3330         (WebApplicationCacheManager):
3331         * WebProcess/ApplicationCache/WebApplicationCacheManager.messages.in:
3332         * WebProcess/Cookies/WebCookieManager.cpp:
3333         * WebProcess/Cookies/WebCookieManager.h:
3334         (WebCookieManager):
3335         * WebProcess/Cookies/WebCookieManager.messages.in:
3336         * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
3337         * WebProcess/WebCoreSupport/WebDatabaseManager.h:
3338         (WebDatabaseManager):
3339         * WebProcess/WebCoreSupport/WebDatabaseManager.messages.in:
3340
3341 2013-02-02  Sam Weinig  <sam@webkit.org>
3342
3343         Convert CustomProtocolManagerProxy, CustomProtocolManager and AuthenticationManager to be non-LegacyReceivers
3344         https://bugs.webkit.org/show_bug.cgi?id=108757
3345
3346         Reviewed by Anders Carlsson.
3347
3348         * Shared/Authentication/AuthenticationManager.cpp:
3349         * Shared/Authentication/AuthenticationManager.h:
3350         (AuthenticationManager):
3351         * Shared/Authentication/AuthenticationManager.messages.in:
3352         * Shared/Network/CustomProtocols/CustomProtocolManager.h:
3353         (CustomProtocolManager):
3354         * Shared/Network/CustomProtocols/CustomProtocolManager.messages.in:
3355         * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
3356         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
3357         (CustomProtocolManagerProxy):
3358         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
3359         * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
3360
3361 2013-02-02  Christophe Dumez  <christophe.dumez@intel.com>
3362
3363         [EFL][WK2] Use C API inside ewk_file_chooser_request
3364         https://bugs.webkit.org/show_bug.cgi?id=107811
3365
3366         Reviewed by Sam Weinig.
3367
3368         Use C API inside ewk_file_chooser_request instead of
3369         accessing the internal C++ classes directly, to
3370         avoid violating API layering.
3371
3372         * UIProcess/API/efl/ewk_file_chooser_request.cpp:
3373         (EwkFileChooserRequest::EwkFileChooserRequest):
3374         (EwkFileChooserRequest::~EwkFileChooserRequest):
3375         (EwkFileChooserRequest::allowMultipleFiles):
3376         (EwkFileChooserRequest::acceptedMIMETypes):
3377         (EwkFileChooserRequest::cancel):
3378         (EwkFileChooserRequest::chooseFiles):
3379         (ewk_file_chooser_request_accepted_mimetypes_get):
3380         (ewk_file_chooser_request_files_choose):
3381         (ewk_file_chooser_request_file_choose):
3382         * UIProcess/API/efl/ewk_file_chooser_request_private.h:
3383         (EwkFileChooserRequest::create):
3384         (EwkFileChooserRequest):
3385         * UIProcess/efl/PageUIClientEfl.cpp:
3386         (WebKit::PageUIClientEfl::runOpenPanel):
3387
3388 2013-02-02  Sam Weinig  <sam@webkit.org>
3389
3390         Stop keeping a frame tree in the UIProcess
3391         https://bugs.webkit.org/show_bug.cgi?id=81728
3392
3393         Reviewed by Oliver Hunt.
3394
3395         This patch removes the parent/child relationships of WebFrameProxys
3396         in the UIProcess
3397
3398         * UIProcess/API/C/WKFrame.cpp:
3399         (WKFrameCopyChildFrames):
3400         (WKFrameGetParentFrame):
3401         * UIProcess/API/C/WKFrame.h:
3402         Null out the implementations of WKFrameCopyChildFrames and WKFrameGetParentFrame,
3403         but keep them around as their symbols are still needed for nightlies.
3404
3405         * UIProcess/WebFrameProxy.cpp:
3406         (WebKit::WebFrameProxy::WebFrameProxy):
3407         (WebKit::WebFrameProxy::disconnect):
3408         * UIProcess/WebFrameProxy.h:
3409         Remove parent/child connections.
3410
3411         * UIProcess/WebPageProxy.cpp:
3412         (WebKit::WebPageProxy::didCreateSubframe):
3413         (WebKit::WebPageProxy::didRemoveFrameFromHierarchy):
3414         * UIProcess/WebPageProxy.h:
3415         * UIProcess/WebPageProxy.messages.in:
3416         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
3417         (WebKit::WebFrameLoaderClient::didSaveToPageCache):
3418         (WebKit::WebFrameLoaderClient::didRestoreFromPageCache):
3419         * WebProcess/WebPage/WebFrame.cpp:
3420         (WebKit::WebFrame::createSubframe):
3421         Remove/Update messages that only served to update the parent/child connection.
3422
3423 2013-02-02  Sam Weinig  <sam@webkit.org>
3424
3425         Make it possible to modify the connection from ChildProcessProxy subclasses.
3426
3427         Reviewed by Anders Carlsson.
3428
3429         * Shared/ChildProcessProxy.cpp:
3430         (WebKit::ChildProcessProxy::ChildProcessProxy):
3431         (WebKit::ChildProcessProxy::didFinishLaunching):
3432         (WebKit::ChildProcessProxy::clearConnection):
3433         (WebKit::ChildProcessProxy::connectionWillOpen):
3434         (WebKit::ChildProcessProxy::connectionWillClose):
3435         * Shared/ChildProcessProxy.h:
3436         (ChildProcessProxy):
3437         * UIProcess/WebProcessProxy.cpp:
3438         (WebKit::WebProcessProxy::WebProcessProxy):
3439         (WebKit::WebProcessProxy::connectionWillOpen):
3440         (WebKit::WebProcessProxy::connectionWillClose):
3441         * UIProcess/WebProcessProxy.h:
3442         (WebProcessProxy):
3443
3444 2013-02-02  David Kilzer  <ddkilzer@apple.com>
3445
3446         Upstream iOS FeatureDefines
3447         <http://webkit.org/b/108753>
3448
3449         Reviewed by Anders Carlsson.
3450
3451         * Configurations/FeatureDefines.xcconfig:
3452         - ENABLE_DEVICE_ORIENTATION: Add iOS configurations.
3453         - ENABLE_PLUGIN_PROXY_FOR_VIDEO: Ditto.
3454         - FEATURE_DEFINES: Add ENABLE_PLUGIN_PROXY_FOR_VIDEO.  Add
3455           PLATFORM_NAME variant to reduce future merge conflicts. 
3456
3457 2013-02-02  Csaba Osztrogonác  <ossy@webkit.org>
3458
3459         [Qt][WK2] Unreviewed buildfix after r141648.
3460
3461         * DerivedSources.pri:
3462
3463 2013-02-02  Zan Dobersek  <zdobersek@igalia.com>
3464
3465         Follow-up to r141682. Adding build targets for the files that should be generated from the new message.in file.
3466
3467         Unreviewed.
3468
3469         * GNUmakefile.list.am:
3470
3471 2013-02-01  Zan Dobersek  <zdobersek@igalia.com>
3472
3473         Unreviewed GTK build fix after r141648.
3474
3475         * GNUmakefile.am: Add UIProcess/Storage to the list of paths that
3476         should be searched for *.messages.in files.
3477
3478 2013-02-01  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3479
3480         Unreviewed build fix after r141648
3481
3482         Needs to add StorageManager.messages.in to CMakeLists.txt.
3483
3484         * CMakeLists.txt:
3485
3486 2013-02-01  Benjamin Poulain  <bpoulain@apple.com>
3487
3488         Build fix for CustomProtocolManagerMac after r141658.
3489
3490         * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
3491         (WebKit::CustomProtocolManager::supplementName): I accidentally typed "const" twice twice.
3492
3493 2013-02-01  Benjamin Poulain  <bpoulain@apple.com>
3494
3495         [WK2] Use light supplement names instead of static AtomicStrings
3496         https://bugs.webkit.org/show_bug.cgi?id=108570
3497
3498         Reviewed by Anders Carlsson.
3499
3500         Since all the supplement names are just string literals and are all different,
3501         we can just use their pointer as the key in the supplement hashmaps.
3502
3503         This is lighter and faster than using AtomicString. WebCore already moved to this
3504         in Supplementable.
3505
3506         * NetworkProcess/NetworkProcess.h:
3507         (WebKit::NetworkProcess::addSupplement):
3508         (NetworkProcess):
3509         * Shared/Authentication/AuthenticationManager.cpp:
3510         (WebKit::AuthenticationManager::supplementName):
3511         * Shared/Authentication/AuthenticationManager.h:
3512         (AuthenticationManager):
3513         * Shared/Network/CustomProtocols/CustomProtocolManager.h:
3514         (CustomProtocolManager):
3515         * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
3516         (WebKit::CustomProtocolManager::supplementName):
3517         * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
3518         (WebKit::WebNotificationManagerProxy::supplementName):
3519         * UIProcess/Notifications/WebNotificationManagerProxy.h:
3520         (WebNotificationManagerProxy):
3521         * UIProcess/WebApplicationCacheManagerProxy.cpp:
3522         (WebKit::WebApplicationCacheManagerProxy::supplementName):
3523         * UIProcess/WebApplicationCacheManagerProxy.h:
3524         (WebApplicationCacheManagerProxy):
3525         * UIProcess/WebContext.h:
3526         (WebContext):
3527         * UIProcess/WebCookieManagerProxy.cpp:
3528         (WebKit::WebCookieManagerProxy::supplementName):
3529         * UIProcess/WebCookieManagerProxy.h:
3530         (WebCookieManagerProxy):
3531         * UIProcess/WebDatabaseManagerProxy.cpp:
3532         (WebKit::WebDatabaseManagerProxy::supplementName):
3533         * UIProcess/WebDatabaseManagerProxy.h:
3534         (WebDatabaseManagerProxy):
3535         * UIProcess/WebGeolocationManagerProxy.cpp:
3536         (WebKit::WebGeolocationManagerProxy::supplementName):
3537         * UIProcess/WebGeolocationManagerProxy.h:
3538         (WebGeolocationManagerProxy):
3539         * UIProcess/WebKeyValueStorageManagerProxy.cpp:
3540         (WebKit::WebKeyValueStorageManagerProxy::supplementName):
3541         * UIProcess/WebKeyValueStorageManagerProxy.h:
3542         (WebKeyValueStorageManagerProxy):
3543         * UIProcess/WebMediaCacheManagerProxy.cpp:
3544         (WebKit::WebMediaCacheManagerProxy::supplementName):
3545         * UIProcess/WebMediaCacheManagerProxy.h:
3546         (WebMediaCacheManagerProxy):
3547         * UIProcess/WebResourceCacheManagerProxy.cpp:
3548         (WebKit::WebResourceCacheManagerProxy::supplementName):