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