Redundant LegacyReceiver attribute in WebPage.messages.in
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2013-01-24  Jae Hyun Park  <jae.park@company100.net>
2
3         Redundant LegacyReceiver attribute in WebPage.messages.in
4         https://bugs.webkit.org/show_bug.cgi?id=107875
5
6         Reviewed by Anders Carlsson.
7
8         To generate WebPageMessageReceiver with legacy, just one LegacyReceiver
9         attribute in WebPage.messages.in is enough. This patch removes this
10         redundant attribute.
11
12         * WebProcess/WebPage/WebPage.messages.in:
13
14 2013-01-24  Anders Carlsson  <andersca@apple.com>
15
16         Fix release build.
17
18         * WebProcess/Storage/StorageAreaProxy.cpp:
19         (WebKit::StorageAreaProxy::length):
20
21 2013-01-24  Alexey Proskuryakov  <ap@apple.com>
22
23         <rdar://problem/9971916> [WK2] Update sandbox extension usage
24         https://bugs.webkit.org/show_bug.cgi?id=107861
25
26         Reviewed by Sam Weinig.
27
28         * Shared/SandboxExtension.h:
29         * Shared/mac/SandboxExtensionMac.mm:
30         (WebKit::wkSandboxExtensionType):
31         * UIProcess/Downloads/DownloadProxy.cpp:
32         (WebKit::DownloadProxy::decideDestinationWithSuggestedFilename):
33         * UIProcess/WebContext.cpp:
34         (WebKit::WebContext::createNewWebProcess):
35         (WebKit::WebContext::processDidFinishLaunching):
36         (WebKit::WebContext::startMemorySampler):
37         * WebProcess/com.apple.WebProcess.sb.in:
38
39 2013-01-24  Brady Eidson  <beidson@apple.com>
40
41         Move Authentication and Downloads from WebProcess to Shared.
42         https://bugs.webkit.org/show_bug.cgi?id=107879
43
44         Reviewed by Anders Carlsson.
45
46         * Shared/Authentication/AuthenticationManager.cpp: Renamed from Source/WebKit2/WebProcess/Authentication/AuthenticationManager.cpp.
47         * Shared/Authentication/AuthenticationManager.h: Renamed from Source/WebKit2/WebProcess/Authentication/AuthenticationManager.h.
48         * Shared/Authentication/AuthenticationManager.messages.in: Renamed from Source/WebKit2/WebProcess/Authentication/AuthenticationManager.messages.in.
49         * Shared/Authentication/mac/AuthenticationManager.mac.mm: Renamed from Source/WebKit2/WebProcess/Authentication/mac/AuthenticationManager.mac.mm.
50         * Shared/Downloads/Download.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/Download.cpp.
51         * Shared/Downloads/Download.h: Renamed from Source/WebKit2/WebProcess/Downloads/Download.h.
52         * Shared/Downloads/DownloadAuthenticationClient.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/DownloadAuthenticationClient.cpp.
53         * Shared/Downloads/DownloadAuthenticationClient.h: Renamed from Source/WebKit2/WebProcess/Downloads/DownloadAuthenticationClient.h.
54         * Shared/Downloads/DownloadManager.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/DownloadManager.cpp.
55         * Shared/Downloads/DownloadManager.h: Renamed from Source/WebKit2/WebProcess/Downloads/DownloadManager.h.
56         * Shared/Downloads/cfnet/DownloadCFNet.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/cfnet/DownloadCFNet.cpp.
57         * Shared/Downloads/curl/DownloadCurl.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/curl/DownloadCurl.cpp.
58         * Shared/Downloads/efl/DownloadSoupErrorsEfl.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/efl/DownloadSoupErrorsEfl.cpp.
59         * Shared/Downloads/gtk/DownloadSoupErrorsGtk.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/gtk/DownloadSoupErrorsGtk.cpp.
60         * Shared/Downloads/mac/DownloadMac.mm: Renamed from Source/WebKit2/WebProcess/Downloads/mac/DownloadMac.mm.
61         * Shared/Downloads/qt/DownloadQt.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/qt/DownloadQt.cpp.
62         * Shared/Downloads/qt/QtFileDownloader.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/qt/QtFileDownloader.cpp.
63         * Shared/Downloads/qt/QtFileDownloader.h: Renamed from Source/WebKit2/WebProcess/Downloads/qt/QtFileDownloader.h.
64         * Shared/Downloads/soup/DownloadSoup.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/soup/DownloadSoup.cpp.
65         * Shared/Downloads/soup/DownloadSoupErrors.h: Renamed from Source/WebKit2/WebProcess/Downloads/soup/DownloadSoupErrors.h.
66
67         * CMakeLists.txt:
68         * GNUmakefile.list.am:
69         * Target.pri:
70         * WebKit2.xcodeproj/project.pbxproj:
71
72 2013-01-24  Seokju Kwon  <seokju.kwon@gmail.com>
73
74         [EFL] Unreviewed build fix after r140711
75         https://bugs.webkit.org/show_bug.cgi?id=107873
76
77         Unreviewed build fix.
78
79         Build break after r140711.
80
81         * CMakeLists.txt: Move WebKeyValueStorageManager to WebProcess/Storage.
82
83 2013-01-24  Jae Hyun Park  <jae.park@company100.net>
84
85         Coordinated Graphics: remove SurfaceUpdateInfo::encode/decode
86         https://bugs.webkit.org/show_bug.cgi?id=107794
87
88         Reviewed by Anders Carlsson.
89
90         We want to remove the dependency on CoreIPC from SurfaceUpdateInfo
91         because we will extract Coordinated Graphics from WK2. Since
92         SurfaceUpdateInfo is only used in Coordinated Graphics, this patch
93         moves it to Shared/CoordinatedGraphics, and removes CoreIPC
94         dependency.
95
96         No new tests, no change in behavior.
97
98         * CMakeLists.txt:
99         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
100         (CoreIPC::::encode):
101         (CoreIPC):
102         (CoreIPC::::decode):
103         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
104         (WebKit):
105         * Shared/CoordinatedGraphics/SurfaceUpdateInfo.h: Renamed from Source/WebKit2/Shared/SurfaceUpdateInfo.h.
106         (WebKit):
107         (SurfaceUpdateInfo):
108         (WebKit::SurfaceUpdateInfo::SurfaceUpdateInfo):
109         * Shared/SurfaceUpdateInfo.cpp: Removed.
110         * Target.pri:
111
112 2013-01-24  Anders Carlsson  <andersca@apple.com>
113
114         More StorageAreaProxy cleanup
115         https://bugs.webkit.org/show_bug.cgi?id=107870
116
117         Reviewed by Beth Dakin.
118
119         Remove some unnecessary 'WebCore::' qualifications, 
120         and implement StorageNamespaceProxy::storageArea.
121         
122         * WebProcess/Storage/StorageAreaProxy.cpp:
123         * WebProcess/Storage/StorageAreaProxy.h:
124         * WebProcess/Storage/StorageNamespaceProxy.cpp:
125
126 2013-01-24  Sam Weinig  <sam@webkit.org>
127
128         Cleanup sandbox initialization a bit
129         https://bugs.webkit.org/show_bug.cgi?id=107847
130
131         Reviewed by Alexey Proskuryakov.
132
133         * NetworkProcess/NetworkProcess.cpp:
134         (WebKit::NetworkProcess::initializeSandbox):
135         * NetworkProcess/NetworkProcess.h:
136         * NetworkProcess/mac/NetworkProcessMac.mm:
137         (WebKit::NetworkProcess::initializeSandbox):
138         * PluginProcess/PluginProcess.h:
139         * Shared/ChildProcess.cpp:
140         (WebKit::ChildProcess::initialize):
141         (WebKit::ChildProcess::initializeSandbox):
142         * Shared/ChildProcess.h:
143         (ChildProcess):
144         * Shared/SandboxInitializationParameters.h:
145         (SandboxInitializationParameters):
146         (WebKit::SandboxInitializationParameters::mode):
147         (WebKit::SandboxInitializationParameters::setOverrideSandboxProfilePath):
148         (WebKit::SandboxInitializationParameters::overrideSandboxProfilePath):
149         (WebKit::SandboxInitializationParameters::setSandboxProfile):
150         (WebKit::SandboxInitializationParameters::sandboxProfile):
151         (WebKit::SandboxInitializationParameters::SandboxInitializationParameters):
152         (WebKit::SandboxInitializationParameters::~SandboxInitializationParameters):
153         * Shared/mac/ChildProcessMac.mm:
154         (WebKit::ChildProcess::platformInitialize):
155         (WebKit::ChildProcess::initializeSandbox):
156         * Shared/mac/SandboxInitialiationParametersMac.mm:
157         (WebKit::SandboxInitializationParameters::SandboxInitializationParameters):
158         * WebProcess/WebProcess.cpp:
159         (WebKit::WebProcess::initializeSandbox):
160         * WebProcess/WebProcess.h:
161         * WebProcess/mac/WebProcessMac.mm:
162         (WebKit::ChildProcess::initializeSandbox):
163
164 2013-01-24  Anders Carlsson  <andersca@apple.com>
165
166         Add stubbed out StorageAreaProxy class
167         https://bugs.webkit.org/show_bug.cgi?id=107864
168
169         Reviewed by Beth Dakin.
170
171         * WebKit2.xcodeproj/project.pbxproj:
172         * WebProcess/Storage/StorageAreaProxy.cpp: Added.
173         * WebProcess/Storage/StorageAreaProxy.h: Added.
174
175 2013-01-24  Csaba Osztrogonác  <ossy@webkit.org>
176
177         Unreviewed trivial buildfix after r140711.
178
179         * DerivedSources.pri:
180         * Target.pri:
181
182 2013-01-24  Mark Hahnenberg  <mhahnenberg@apple.com>
183
184         Objective-C API: Rename JSValue.h/APIJSValue.h to JSCJSValue.h/JSValue.h
185         https://bugs.webkit.org/show_bug.cgi?id=107327
186
187         Reviewed by Filip Pizlo.
188
189         We're renaming these two files, so we have to replace the names everywhere.
190
191         * WebProcess/WebPage/WebPage.cpp:
192
193 2013-01-24  Dean Jackson  <dino@apple.com>
194
195         Allow some plugin snapshot UI content to come from Injected Bundle
196         https://bugs.webkit.org/show_bug.cgi?id=107852
197
198         Reviewed by Anders Carlsson.
199
200         Hook up three new methods: plugInStartLabelTitle, plugInStartLabelSubtitle and
201         plugInExtraStyleSheet to allow some custom styling and content to come
202         from the InjectedBundle.
203
204         * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Callbacks added to
205         WKBundlePageUIClient structure.
206         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Stub implementations
207         of the three new methods.
208         (WebKit::InjectedBundlePageUIClient::plugInStartLabelTitle):
209         (WebKit::InjectedBundlePageUIClient::plugInStartLabelSubtitle):
210         (WebKit::InjectedBundlePageUIClient::plugInExtraStyleSheet):
211         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
212         (InjectedBundlePageUIClient):
213         * WebProcess/WebCoreSupport/WebChromeClient.cpp: Call into the injected bundle
214         for each of these methods.
215         (WebKit::WebChromeClient::plugInStartLabelTitle):
216         (WebKit::WebChromeClient::plugInStartLabelSubtitle):
217         (WebKit::WebChromeClient::plugInExtraStyleSheet):
218         * WebProcess/WebCoreSupport/WebChromeClient.h:
219         (WebChromeClient): Declare the virtual methods in the Chrome
220         Client so that they can accessed from WebCore eventually.
221
222 2013-01-24  Anders Carlsson  <andersca@apple.com>
223
224         Add stubbed out StorageNamespaceProxy class
225         https://bugs.webkit.org/show_bug.cgi?id=107846
226
227         Reviewed by Sam Weinig.
228
229         Add new class.
230
231         * WebKit2.xcodeproj/project.pbxproj:
232         * WebProcess/Storage/StorageNamespaceProxy.cpp: Added.
233         * WebProcess/Storage/StorageNamespaceProxy.h: Added.
234
235 2013-01-24  Anders Carlsson  <andersca@apple.com>
236
237         Move WebKeyValueStorageManager to WebProcess/Storage.
238
239         Rubber-stamped by Sam Weinig.
240
241         Try this again, with DerivedSources.make correctly updated this time.
242
243         * DerivedSources.make:
244         * WebKit2.xcodeproj/project.pbxproj:
245         * WebProcess/Storage/WebKeyValueStorageManager.cpp: Renamed from Source/WebKit2/WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp.
246         * WebProcess/Storage/WebKeyValueStorageManager.h: Renamed from Source/WebKit2/WebProcess/KeyValueStorage/WebKeyValueStorageManager.h.
247         * WebProcess/Storage/WebKeyValueStorageManager.messages.in: Renamed from Source/WebKit2/WebProcess/KeyValueStorage/WebKeyValueStorageManager.messages.in.
248
249 2013-01-24  Christophe Dumez  <christophe.dumez@intel.com>
250
251         [EFL][WK2] Use C API inside ewk_favicon_database
252         https://bugs.webkit.org/show_bug.cgi?id=107680
253
254         Reviewed by Kenneth Rohde Christiansen.
255
256         Use C API inside ewk_favicon_database instead of
257         accessible the C++ classes and violating layering.
258         We still rely on some C++ methods but this will be
259         addressed later since there is no equivalent in
260         the C API and it will require more refactoring.
261
262         * UIProcess/API/efl/ewk_context.cpp:
263         (EwkContext::ensureFaviconDatabase):
264         * UIProcess/API/efl/ewk_favicon_database.cpp:
265         (EwkFaviconDatabase::EwkFaviconDatabase):
266         (EwkFaviconDatabase::~EwkFaviconDatabase):
267         (EwkFaviconDatabase::iconURLForPageURL):
268         (EwkFaviconDatabase::iconForPageURL):
269         (EwkFaviconDatabase::getIconSurfaceSynchronously):
270         (EwkFaviconDatabase::iconDataReadyForPageURL):
271         (ewk_favicon_database_async_icon_get):
272         * UIProcess/API/efl/ewk_favicon_database_private.h:
273         (EwkFaviconDatabase::create):
274         (EwkFaviconDatabase):
275
276 2013-01-24  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
277
278         [EFL][WK2] Rename EwkViewImpl class to EwkView
279         https://bugs.webkit.org/show_bug.cgi?id=107719
280
281         Reviewed by Andreas Kling.
282
283         Rename EwkViewImpl class to EwkView, due to ewk view
284         refactoring plan (https://bugs.webkit.org/show_bug.cgi?id=107662#c1).
285
286         * PlatformEfl.cmake:
287         * UIProcess/API/C/efl/WKView.cpp:
288         (WKViewCreate):
289         (WKViewCreateWithFixedLayout):
290         (WKViewGetPage):
291         (WKViewCreateSnapshot):
292         * UIProcess/API/efl/EwkView.cpp: Renamed from Source/WebKit2/UIProcess/API/efl/EwkViewImpl.cpp.
293         (pageViewMap):
294         (EwkView::addToPageViewMap):
295         (EwkView::removeFromPageViewMap):
296         (EwkView::viewFromPageViewMap):
297         (EwkView::EwkView):
298         (EwkView::~EwkView):
299         (EwkView::smartData):
300         (EwkView::fromEvasObject):
301         (EwkView::wkPage):
302         (EwkView::setCursor):
303         (EwkView::setDeviceScaleFactor):
304         (EwkView::deviceScaleFactor):
305         (EwkView::transformFromScene):
306         (EwkView::transformToScene):
307         (EwkView::transformToScreen):
308         (EwkView::layerTreeRenderer):
309         (EwkView::displayTimerFired):
310         (EwkView::update):
311         (EwkView::enterFullScreen):
312         (EwkView::exitFullScreen):
313         (EwkView::windowGeometry):
314         (EwkView::setWindowGeometry):
315         (EwkView::setImageData):
316         (EwkView::size):
317         (EwkView::isFocused):
318         (EwkView::isVisible):
319         (EwkView::title):
320         (EwkView::inputMethodContext):
321         (EwkView::themePath):
322         (EwkView::setThemePath):
323         (EwkView::customTextEncodingName):
324         (EwkView::setCustomTextEncodingName):
325         (EwkView::setMouseEventsEnabled):
326         (EwkView::setTouchEventsEnabled):
327         (EwkView::informIconChange):
328         (EwkView::createGLSurface):
329         (EwkView::enterAcceleratedCompositingMode):
330         (EwkView::exitAcceleratedCompositingMode):
331         (EwkView::requestColorPicker):
332         (EwkView::dismissColorPicker):
333         (EwkView::showContextMenu):
334         (EwkView::hideContextMenu):
335         (EwkView::requestPopupMenu):
336         (EwkView::closePopupMenu):
337         (EwkView::requestJSAlertPopup):
338         (EwkView::requestJSConfirmPopup):
339         (EwkView::requestJSPromptPopup):
340         (EwkView::informDatabaseQuotaReached):
341         (EwkView::informURLChange):
342         (EwkView::windowFeatures):
343         (EwkView::createNewPage):
344         (EwkView::close):
345         (EwkView::onMouseDown):
346         (EwkView::onMouseUp):
347         (EwkView::onMouseMove):
348         (EwkView::feedTouchEvents):
349         (EwkView::onTouchDown):
350         (EwkView::onTouchUp):
351         (EwkView::onTouchMove):
352         (EwkView::onFaviconChanged):
353         (EwkView::takeSnapshot):
354         * UIProcess/API/efl/EwkView.h: Renamed from Source/WebKit2/UIProcess/API/efl/EwkViewImpl.h.
355         (WebKit):
356         (WebCore):
357         (EwkView):
358         (EwkView::view):
359         (EwkView::page):
360         (EwkView::ewkContext):
361         (EwkView::settings):
362         (EwkView::backForwardList):
363         (EwkView::url):
364         (EwkView::faviconURL):
365         (EwkView::mouseEventsEnabled):
366         (EwkView::touchEventsEnabled):
367         (EwkView::setNeedsSurfaceResize):
368         (EwkView::smartCallback):
369         (EwkView::pageClient):
370         (EwkView::setPageScaleFactor):
371         (EwkView::pageScaleFactor):
372         (EwkView::setPagePosition):
373         (EwkView::pagePosition):
374         (EwkView::isHardwareAccelerated):
375         (EwkView::setDrawsBackground):
376         (EwkView::evasGLContext):
377         (EwkView::evasGLSurface):
378         * UIProcess/API/efl/ewk_context_menu.cpp:
379         (EwkContextMenu::EwkContextMenu):
380         * UIProcess/API/efl/ewk_context_menu_private.h:
381         (EwkContextMenu::create):
382         (EwkContextMenu):
383         * UIProcess/API/efl/ewk_download_job.cpp:
384         (EwkDownloadJob::EwkDownloadJob):
385         (EwkDownloadJob::view):
386         * UIProcess/API/efl/ewk_download_job_private.h:
387         (EwkDownloadJob::create):
388         (EwkDownloadJob):
389         * UIProcess/API/efl/ewk_popup_menu.cpp:
390         (EwkPopupMenu::EwkPopupMenu):
391         (EwkPopupMenu::close):
392         * UIProcess/API/efl/ewk_popup_menu_private.h:
393         (EwkPopupMenu::create):
394         (EwkPopupMenu):
395         * UIProcess/API/efl/ewk_settings.cpp:
396         (EwkSettings::preferences):
397         * UIProcess/API/efl/ewk_settings_private.h:
398         (EwkSettings::create):
399         (EwkSettings::EwkSettings):
400         (EwkSettings):
401         * UIProcess/API/efl/ewk_view.cpp:
402         (createEwkView):
403         (ewk_view_base_add):
404         * UIProcess/API/efl/ewk_view.h:
405         * UIProcess/API/efl/ewk_view_private.h:
406         * UIProcess/API/efl/ewk_window_features.cpp:
407         (EwkWindowFeatures::EwkWindowFeatures):
408         (EwkWindowFeatures::setToolbarVisible):
409         (EwkWindowFeatures::setStatusBarVisible):
410         (EwkWindowFeatures::setMenuBarVisible):
411         (EwkWindowFeatures::setResizable):
412         * UIProcess/API/efl/ewk_window_features_private.h:
413         (EwkWindowFeatures::create):
414         (EwkWindowFeatures):
415         * UIProcess/cairo/BackingStoreCairo.cpp:
416         (WebKit::BackingStore::incorporateUpdate):
417         * UIProcess/efl/ContextHistoryClientEfl.cpp:
418         (WebKit::ContextHistoryClientEfl::didNavigateWithNavigationData):
419         (WebKit::ContextHistoryClientEfl::didPerformClientRedirect):
420         (WebKit::ContextHistoryClientEfl::didPerformServerRedirect):
421         (WebKit::ContextHistoryClientEfl::didUpdateHistoryTitle):
422         * UIProcess/efl/ContextMenuClientEfl.cpp:
423         (ContextMenuClientEfl::ContextMenuClientEfl):
424         * UIProcess/efl/ContextMenuClientEfl.h:
425         (WebKit::ContextMenuClientEfl::create):
426         (ContextMenuClientEfl):
427         * UIProcess/efl/DownloadManagerEfl.cpp:
428         (WebKit::DownloadManagerEfl::decideDestinationWithSuggestedFilename):
429         (WebKit::DownloadManagerEfl::didFail):
430         (WebKit::DownloadManagerEfl::didCancel):
431         (WebKit::DownloadManagerEfl::didFinish):
432         (WebKit::DownloadManagerEfl::registerDownload):
433         * UIProcess/efl/DownloadManagerEfl.h:
434         (DownloadManagerEfl):
435         * UIProcess/efl/FindClientEfl.cpp:
436         (WebKit::FindClientEfl::didFindString):
437         (WebKit::FindClientEfl::didFailToFindString):
438         (WebKit::FindClientEfl::FindClientEfl):
439         * UIProcess/efl/FindClientEfl.h:
440         (WebKit::FindClientEfl::create):
441         (FindClientEfl):
442         * UIProcess/efl/FormClientEfl.cpp:
443         (WebKit::FormClientEfl::willSubmitForm):
444         (WebKit::FormClientEfl::FormClientEfl):
445         * UIProcess/efl/FormClientEfl.h:
446         (WebKit::FormClientEfl::create):
447         (FormClientEfl):
448         * UIProcess/efl/InputMethodContextEfl.cpp:
449         (WebKit::InputMethodContextEfl::InputMethodContextEfl):
450         (WebKit::InputMethodContextEfl::onIMFInputSequenceComplete):
451         (WebKit::InputMethodContextEfl::onIMFPreeditSequenceChanged):
452         (WebKit::InputMethodContextEfl::updateTextInputState):
453         * UIProcess/efl/InputMethodContextEfl.h:
454         (WebKit::InputMethodContextEfl::create):
455         (InputMethodContextEfl):
456         * UIProcess/efl/PageClientBase.cpp:
457         (WebKit::PageClientBase::PageClientBase):
458         (WebKit::PageClientBase::view):
459         (WebKit::PageClientBase::createDrawingAreaProxy):
460         (WebKit::PageClientBase::setViewNeedsDisplay):
461         (WebKit::PageClientBase::viewSize):
462         (WebKit::PageClientBase::isViewFocused):
463         (WebKit::PageClientBase::isViewVisible):
464         (WebKit::PageClientBase::processDidCrash):
465         (WebKit::PageClientBase::didRelaunchProcess):
466         (WebKit::PageClientBase::toolTipChanged):
467         (WebKit::PageClientBase::setCursor):
468         (WebKit::PageClientBase::createPopupMenuProxy):
469         (WebKit::PageClientBase::createContextMenuProxy):
470         (WebKit::PageClientBase::enterAcceleratedCompositingMode):
471         (WebKit::PageClientBase::exitAcceleratedCompositingMode):
472         (WebKit::PageClientBase::updateTextInputState):
473         (WebKit::PageClientBase::handleDownloadRequest):
474         * UIProcess/efl/PageClientBase.h:
475         (PageClientBase):
476         * UIProcess/efl/PageClientDefaultImpl.cpp:
477         (WebKit::PageClientDefaultImpl::PageClientDefaultImpl):
478         (WebKit::PageClientDefaultImpl::updateViewportSize):
479         (WebKit::PageClientDefaultImpl::convertToDeviceSpace):
480         (WebKit::PageClientDefaultImpl::convertToUserSpace):
481         (WebKit::PageClientDefaultImpl::didChangeContentsSize):
482         * UIProcess/efl/PageClientDefaultImpl.h:
483         (WebKit::PageClientDefaultImpl::create):
484         (PageClientDefaultImpl):
485         * UIProcess/efl/PageClientLegacyImpl.cpp:
486         (WebKit::PageClientLegacyImpl::PageClientLegacyImpl):
487         (WebKit::PageClientLegacyImpl::didCommitLoad):
488         (WebKit::PageClientLegacyImpl::updateViewportSize):
489         (WebKit::PageClientLegacyImpl::didChangeViewportProperties):
490         (WebKit::PageClientLegacyImpl::didChangeContentsSize):
491         (WebKit::PageClientLegacyImpl::pageDidRequestScroll):
492         (WebKit::PageClientLegacyImpl::didRenderFrame):
493         (WebKit::PageClientLegacyImpl::pageTransitionViewportReady):
494         * UIProcess/efl/PageClientLegacyImpl.h:
495         (WebKit::PageClientLegacyImpl::create):
496         (PageClientLegacyImpl):
497         * UIProcess/efl/PageLoadClientEfl.cpp:
498         (WebKit::PageLoadClientEfl::didReceiveTitleForFrame):
499         (WebKit::PageLoadClientEfl::didReceiveIntentForFrame):
500         (WebKit::PageLoadClientEfl::registerIntentServiceForFrame):
501         (WebKit::PageLoadClientEfl::didChangeProgress):
502         (WebKit::PageLoadClientEfl::didFinishLoadForFrame):
503         (WebKit::PageLoadClientEfl::didFailLoadWithErrorForFrame):
504         (WebKit::PageLoadClientEfl::didStartProvisionalLoadForFrame):
505         (WebKit::PageLoadClientEfl::didReceiveServerRedirectForProvisionalLoadForFrame):
506         (WebKit::PageLoadClientEfl::didFailProvisionalLoadWithErrorForFrame):
507         (WebKit::PageLoadClientEfl::didCommitLoadForFrame):
508         (WebKit::PageLoadClientEfl::didChangeBackForwardList):
509         (WebKit::PageLoadClientEfl::didSameDocumentNavigationForFrame):
510         (WebKit::PageLoadClientEfl::didReceiveAuthenticationChallengeInFrame):
511         (WebKit::PageLoadClientEfl::PageLoadClientEfl):
512         * UIProcess/efl/PageLoadClientEfl.h:
513         (WebKit::PageLoadClientEfl::create):
514         (PageLoadClientEfl):
515         (WebKit::PageLoadClientEfl::view):
516         * UIProcess/efl/PagePolicyClientEfl.cpp:
517         (WebKit::PagePolicyClientEfl::decidePolicyForNavigationAction):
518         (WebKit::PagePolicyClientEfl::decidePolicyForNewWindowAction):
519         (WebKit::PagePolicyClientEfl::PagePolicyClientEfl):
520         * UIProcess/efl/PagePolicyClientEfl.h:
521         (WebKit::PagePolicyClientEfl::create):
522         (PagePolicyClientEfl):
523         * UIProcess/efl/PageUIClientEfl.cpp:
524         (WebKit::PageUIClientEfl::PageUIClientEfl):
525         (WebKit::PageUIClientEfl::close):
526         (WebKit::PageUIClientEfl::takeFocus):
527         (WebKit::PageUIClientEfl::focus):
528         (WebKit::PageUIClientEfl::unfocus):
529         (WebKit::PageUIClientEfl::runJavaScriptAlert):
530         (WebKit::PageUIClientEfl::runJavaScriptConfirm):
531         (WebKit::PageUIClientEfl::runJavaScriptPrompt):
532         (WebKit::PageUIClientEfl::toolbarsAreVisible):
533         (WebKit::PageUIClientEfl::setToolbarsAreVisible):
534         (WebKit::PageUIClientEfl::menuBarIsVisible):
535         (WebKit::PageUIClientEfl::setMenuBarIsVisible):
536         (WebKit::PageUIClientEfl::statusBarIsVisible):
537         (WebKit::PageUIClientEfl::setStatusBarIsVisible):
538         (WebKit::PageUIClientEfl::isResizable):
539         (WebKit::PageUIClientEfl::setIsResizable):
540         (WebKit::PageUIClientEfl::getWindowFrame):
541         (WebKit::PageUIClientEfl::setWindowFrame):
542         (WebKit::PageUIClientEfl::exceededDatabaseQuota):
543         (WebKit::PageUIClientEfl::runOpenPanel):
544         (WebKit::PageUIClientEfl::createNewPage):
545         (WebKit::PageUIClientEfl::showColorPicker):
546         (WebKit::PageUIClientEfl::hideColorPicker):
547         * UIProcess/efl/PageUIClientEfl.h:
548         (WebKit::PageUIClientEfl::create):
549         (PageUIClientEfl):
550         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
551         (WebKit::PageViewportControllerClientEfl::PageViewportControllerClientEfl):
552         (WebKit::PageViewportControllerClientEfl::drawingArea):
553         (WebKit::PageViewportControllerClientEfl::updateViewportSize):
554         (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
555         (WebKit::PageViewportControllerClientEfl::setViewportPosition):
556         (WebKit::PageViewportControllerClientEfl::setPageScaleFactor):
557         (WebKit::PageViewportControllerClientEfl::didResumeContent):
558         (WebKit::PageViewportControllerClientEfl::didChangeVisibleContents):
559         * UIProcess/efl/PageViewportControllerClientEfl.h:
560         (WebKit::PageViewportControllerClientEfl::create):
561         (PageViewportControllerClientEfl):
562         * UIProcess/efl/VibrationClientEfl.cpp:
563         (VibrationClientEfl::vibrateCallback):
564         (VibrationClientEfl::cancelVibrationCallback):
565         (VibrationClientEfl::create):
566         (VibrationClientEfl::VibrationClientEfl):
567         (VibrationClientEfl::~VibrationClientEfl):
568         * UIProcess/efl/VibrationClientEfl.h:
569         (VibrationClientEfl):
570         * UIProcess/efl/WebContextMenuProxyEfl.cpp:
571         (WebKit::WebContextMenuProxyEfl::WebContextMenuProxyEfl):
572         (WebKit::WebContextMenuProxyEfl::showContextMenu):
573         (WebKit::WebContextMenuProxyEfl::hideContextMenu):
574         * UIProcess/efl/WebContextMenuProxyEfl.h:
575         (WebKit::WebContextMenuProxyEfl::create):
576         (WebContextMenuProxyEfl):
577         * UIProcess/efl/WebFullScreenManagerProxyEfl.cpp:
578         (WebKit::WebFullScreenManagerProxy::enterFullScreen):
579         (WebKit::WebFullScreenManagerProxy::exitFullScreen):
580         * UIProcess/efl/WebInspectorProxyEfl.cpp:
581         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
582         * UIProcess/efl/WebPageProxyEfl.cpp:
583         (WebKit::WebPageProxy::viewWidget):
584         * UIProcess/efl/WebPopupMenuProxyEfl.cpp:
585         (WebKit::WebPopupMenuProxyEfl::WebPopupMenuProxyEfl):
586         (WebKit::WebPopupMenuProxyEfl::showPopupMenu):
587         (WebKit::WebPopupMenuProxyEfl::hidePopupMenu):
588         * UIProcess/efl/WebPopupMenuProxyEfl.h:
589         (WebKit::WebPopupMenuProxyEfl::create):
590         (WebPopupMenuProxyEfl):
591
592 2013-01-24  Andras Becsi  <andras.becsi@digia.com>
593
594         Remove nonexistent header from WebKit2/Target.pri
595
596         Unreviewed cleanup after r139919.
597
598         * Target.pri:
599
600 2013-01-24  Michael Brüning  <michael.bruning@digia.com>
601
602         [Qt][WK2] Pages / resources cannot be loaded from qrc files.
603         https://bugs.webkit.org/show_bug.cgi?id=107031
604
605         Reviewed by Jocelyn Turcotte.
606
607         Enables WebKit2 Qt applications to load files from the bundled
608         qrc files. This is achieved by adding a url scheme handler for
609         the "qrc" scheme using the application scheme handler and ignoring
610         all handlers for the qrc application scheme that the application might
611         set.
612
613         * UIProcess/API/qt/qquickurlschemedelegate.cpp:
614         (QQuickQrcSchemeDelegate::QQuickQrcSchemeDelegate):
615         (QQuickQrcSchemeDelegate::readResourceAndSend):
616         * UIProcess/API/qt/qquickurlschemedelegate_p.h:
617         (QQuickQrcSchemeDelegate):
618         * UIProcess/API/qt/qquickwebview.cpp:
619         (QQuickWebViewPrivate::initialize):
620         (QQuickWebViewExperimental::schemeDelegates_Append):
621         (QQuickWebViewExperimental::invokeApplicationSchemeHandler):
622         * UIProcess/API/qt/tests/qmltests/WebView/tst_applicationScheme.qml:
623         * UIProcess/API/qt/tests/qmltests/common/qrctest.html: Added.
624         * UIProcess/API/qt/tests/qmltests/resources.qrc:
625
626 2013-01-24  Krzysztof Czech  <k.czech@samsung.com>
627
628         [EFL][WK2] Expose accessibility hierarchy in WebKit2-EFL.
629         https://bugs.webkit.org/show_bug.cgi?id=106216
630
631         Reviewed by Andreas Kling.
632
633         Create WebPage's accessibility object on WebPage initialization.
634         Wrap around WebCore's accessibility objects.
635         Updating accessibility hierarchy. Expands accessibility implementation
636         of WebKit-GTK to be used in EFL.
637
638         * PlatformEfl.cmake:
639         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
640         (WebKit::WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld):
641         * WebProcess/WebPage/WebPage.h:
642         (WebPage):
643         * WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp:
644         (webPageAccessibilityObjectGetIndexInParent):
645         (web_page_accessibility_object_init):
646         * WebProcess/WebPage/efl/WebPageEfl.cpp:
647         (WebKit::WebPage::platformInitialize):
648         (WebKit):
649         (WebKit::WebPage::updateAccessibilityTree):
650
651 2013-01-23  Seokju Kwon  <seokju.kwon@gmail.com>
652
653         [EFL] Unreviewed build fix after r140605
654         https://bugs.webkit.org/show_bug.cgi?id=107787
655
656         Unreviewed build fix.
657
658         Build break after r140605.
659
660         * UIProcess/WebBatteryManagerProxy.cpp:
661         * UIProcess/WebBatteryManagerProxy.h:
662         (WebBatteryManagerProxy):
663         * UIProcess/WebNetworkInfoManagerProxy.cpp:
664         * UIProcess/WebNetworkInfoManagerProxy.h:
665         (WebNetworkInfoManagerProxy):
666         * UIProcess/WebVibrationProxy.cpp:
667         * UIProcess/WebVibrationProxy.h:
668         (WebVibrationProxy):
669         * UIProcess/soup/WebSoupRequestManagerProxy.cpp:
670         * UIProcess/soup/WebSoupRequestManagerProxy.h:
671         (WebSoupRequestManagerProxy):
672         * WebProcess/Battery/WebBatteryManager.cpp:
673         * WebProcess/Battery/WebBatteryManager.h:
674         (WebBatteryManager):
675         * WebProcess/NetworkInfo/WebNetworkInfoManager.cpp:
676         * WebProcess/NetworkInfo/WebNetworkInfoManager.h:
677         (WebNetworkInfoManager):
678         * WebProcess/soup/WebSoupRequestManager.cpp:
679         * WebProcess/soup/WebSoupRequestManager.h:
680         (WebSoupRequestManager):
681
682 2013-01-23  Sam Weinig  <sam@webkit.org>
683
684         Cleanup the names of the WebKit2 xpc services
685         https://bugs.webkit.org/show_bug.cgi?id=107759
686
687         Reviewed by Anders Carlsson.
688
689         Renames:
690             com.apple.WebKit2.WebProcessService -> com.apple.WebKit.WebContent
691             com.apple.WebKit2.WebProcessServiceForWebKitDevelopment -> com.apple.WebKit.WebContent.Development
692
693         * Configurations/BaseXPCService.xcconfig: Copied from Source/WebKit2/Configurations/WebProcessService.xcconfig.
694         * Configurations/WebContentService.xcconfig: Copied from Source/WebKit2/Configurations/WebProcessService.xcconfig.
695         * Configurations/WebContentServiceForDevelopment.xcconfig: Copied from Source/WebKit2/Configurations/WebProcessServiceForWebKitDevelopment.xcconfig.
696         * Configurations/WebProcessService.xcconfig: Removed.
697         * Configurations/WebProcessServiceForWebKitDevelopment.xcconfig: Removed.
698         Rename config files to match new service names and add base config.
699
700         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
701         (WebKit::connectToWebProcessServiceForWebKitDevelopment):
702         (WebKit::createWebProcessServiceForWebKitDevelopment):
703         (WebKit::createWebProcessService):
704         * WebKit2.xcodeproj/project.pbxproj:
705         * WebKit2Service: Removed.
706         * WebProcessService/Info.plist:
707         * WebProcessServiceForWebKitDevelopment/Info.plist:
708         Update for new names.
709
710 2013-01-23  Seulgi Kim  <seulgikim@company100.net>
711
712         Coordinated Graphics : Reduce the number of calls to Functional and number of IPC messages by sending the created/deleted layers in a vector.
713         https://bugs.webkit.org/show_bug.cgi?id=107625
714
715         Reviewed by Benjamin Poulain.
716
717         Currently, the number of messages sent by CoordinatedLayerTreeHost is
718         equal to the number of layers created/deleted even though they requested
719         in the same cycle.
720         It's not good since CoreIPC creates functional before sending messages,
721         and CoordinatedLayerTreeHostProxy creates functional before
722         create/delete layers.
723
724         This patch makes CoordinatedLayerTreeHost send just one
725         CreateCompositingLayers message and CoordinatedLayerTreeHostProxy create
726         just one functional in a cycle. The same work has been done with
727         DeleteCompositingLayers message.
728
729         This patch will reduce the number of calls to Functional and number of
730         IPC messages by sending the created/deleted layers in a vector.
731
732         No new tests, no change in behavior.
733
734         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
735         (WebKit::CoordinatedLayerTreeHostProxy::createCompositingLayers):
736         (WebKit::CoordinatedLayerTreeHostProxy::deleteCompositingLayers):
737         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
738         (CoordinatedLayerTreeHostProxy):
739         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
740         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
741         (WebKit::LayerTreeRenderer::createLayers):
742         (WebKit):
743         (WebKit::LayerTreeRenderer::deleteLayers):
744         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
745         (LayerTreeRenderer):
746         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
747         (WebKit::CoordinatedLayerTreeHost::createCompositingLayers):
748         (WebKit::CoordinatedLayerTreeHost::deleteCompositingLayers):
749
750 2013-01-23  Huang Dongsung  <luxtella@company100.net>
751
752         Coordinated Graphics: Add LegacyReceiver to messages.in files.
753         https://bugs.webkit.org/show_bug.cgi?id=107760
754
755         Reviewed by Anders Carlsson.
756
757         After r140605, LegacyReceiver attribute is needed to use recevier specific
758         memeber functions.
759
760         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
761         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.messages.in:
762
763 2013-01-23  Sheriff Bot  <webkit.review.bot@gmail.com>
764
765         Unreviewed, rolling out r140612.
766         http://trac.webkit.org/changeset/140612
767         https://bugs.webkit.org/show_bug.cgi?id=107768
768
769          broke the build (Requested by smfr on #webkit).
770
771         * WebKit2.xcodeproj/project.pbxproj:
772         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp: Renamed from Source/WebKit2/WebProcess/Storage/WebKeyValueStorageManager.cpp.
773         (WebKit):
774         (WebKit::WebKeyValueStorageManager::supplementName):
775         (WebKit::WebKeyValueStorageManager::WebKeyValueStorageManager):
776         (WebKit::WebKeyValueStorageManager::initialize):
777         (WebKit::keyValueStorageOriginIdentifiers):
778         (WebKit::WebKeyValueStorageManager::dispatchDidGetKeyValueStorageOrigins):
779         (WebKit::WebKeyValueStorageManager::getKeyValueStorageOrigins):
780         (WebKit::WebKeyValueStorageManager::didFinishLoadingOrigins):
781         (WebKit::WebKeyValueStorageManager::dispatchDidModifyOrigin):
782         (WebKit::WebKeyValueStorageManager::deleteEntriesForOrigin):
783         (WebKit::WebKeyValueStorageManager::deleteAllEntries):
784         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.h: Renamed from Source/WebKit2/WebProcess/Storage/WebKeyValueStorageManager.h.
785         (WebKit):
786         (WebKeyValueStorageManager):
787         (WebKit::WebKeyValueStorageManager::localStorageDirectory):
788         (WebKit::WebKeyValueStorageManager::indexedDBDatabaseDirectory):
789         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.messages.in: Renamed from Source/WebKit2/WebProcess/Storage/WebKeyValueStorageManager.messages.in.
790
791 2013-01-23  Ian Vollick  <vollick@chromium.org>
792
793         Introduce the "stacking container" concept.
794         https://bugs.webkit.org/show_bug.cgi?id=107734
795
796         Reviewed by Simon Fraser.
797
798         A stacking container is treated just like a stacking context. That
799         is, it has z-order lists, it and its descendants are stacked as a
800         unit, and when the RenderLayerCompositor does its overlap testing,
801         the composited regions for all layer lists take effect only once the
802         stacking container is done being processed.
803
804         This patch also adds the function RenderLayer::isStackingContainer().
805         Currently, this is equivalent to RenderLayer::isStackingContext(),
806         but in future, the definition of stacking container will be broadened
807         to encompass more than just stacking contexts.
808
809         Other than the addition of this extra function, the patch is mostly
810         comprised of name changes. Any code that used to refer to the
811         stacking context concept, but didn't necessarily require a stacking
812         context in the strict, CSS-sense, was switched to refer to stacking
813         container. No functionality was changed.
814
815         No new tests, no change in functionality.
816
817         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
818         (WebKit::updateOffsetFromViewportForSelf):
819
820 2013-01-23  Anders Carlsson  <andersca@apple.com>
821
822         Move Move WebKeyValueStorageManager to WebProcess/Storage.
823
824         Rubber-stamped by Sam Weinig.
825
826         * WebKit2.xcodeproj/project.pbxproj:
827         * WebProcess/Storage/WebKeyValueStorageManager.cpp: Renamed from Source/WebKit2/WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp.
828         * WebProcess/Storage/WebKeyValueStorageManager.h: Renamed from Source/WebKit2/WebProcess/KeyValueStorage/WebKeyValueStorageManager.h.
829         * WebProcess/Storage/WebKeyValueStorageManager.messages.in: Renamed from Source/WebKit2/WebProcess/KeyValueStorage/WebKeyValueStorageManager.messages.in.
830
831 2013-01-23  Anders Carlsson  <andersca@apple.com>
832
833         Remove LegacyReceiver from a couple of .messages.in files
834         https://bugs.webkit.org/show_bug.cgi?id=107749
835
836         Reviewed by Beth Dakin.
837
838         * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
839         (WebKit):
840         * UIProcess/Notifications/WebNotificationManagerProxy.h:
841         (WebNotificationManagerProxy):
842         * UIProcess/Notifications/WebNotificationManagerProxy.messages.in:
843         * UIProcess/WebGeolocationManagerProxy.cpp:
844         * UIProcess/WebGeolocationManagerProxy.h:
845         (WebGeolocationManagerProxy):
846         * UIProcess/WebGeolocationManagerProxy.messages.in:
847         * UIProcess/WebIconDatabase.cpp:
848         * UIProcess/WebIconDatabase.h:
849         (WebIconDatabase):
850         * UIProcess/WebIconDatabase.messages.in:
851         * UIProcess/WebKeyValueStorageManagerProxy.cpp:
852         * UIProcess/WebKeyValueStorageManagerProxy.h:
853         (WebKeyValueStorageManagerProxy):
854         * UIProcess/WebKeyValueStorageManagerProxy.messages.in:
855         * UIProcess/WebMediaCacheManagerProxy.cpp:
856         * UIProcess/WebMediaCacheManagerProxy.h:
857         (WebMediaCacheManagerProxy):
858         * UIProcess/WebMediaCacheManagerProxy.messages.in:
859         * UIProcess/WebResourceCacheManagerProxy.cpp:
860         * UIProcess/WebResourceCacheManagerProxy.h:
861         (WebResourceCacheManagerProxy):
862         * UIProcess/WebResourceCacheManagerProxy.messages.in:
863         * WebProcess/Geolocation/WebGeolocationManager.cpp:
864         * WebProcess/Geolocation/WebGeolocationManager.h:
865         (WebGeolocationManager):
866         * WebProcess/Geolocation/WebGeolocationManager.messages.in:
867         * WebProcess/IconDatabase/WebIconDatabaseProxy.cpp:
868         * WebProcess/IconDatabase/WebIconDatabaseProxy.h:
869         (WebIconDatabaseProxy):
870         * WebProcess/IconDatabase/WebIconDatabaseProxy.messages.in:
871         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp:
872         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.h:
873         (WebKeyValueStorageManager):
874         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.messages.in:
875         * WebProcess/MediaCache/WebMediaCacheManager.cpp:
876         * WebProcess/MediaCache/WebMediaCacheManager.h:
877         (WebMediaCacheManager):
878         * WebProcess/MediaCache/WebMediaCacheManager.messages.in:
879         * WebProcess/Notifications/WebNotificationManager.cpp:
880         * WebProcess/Notifications/WebNotificationManager.h:
881         (WebNotificationManager):
882         * WebProcess/Notifications/WebNotificationManager.messages.in:
883         * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
884         * WebProcess/ResourceCache/WebResourceCacheManager.h:
885         (WebResourceCacheManager):
886         * WebProcess/ResourceCache/WebResourceCacheManager.messages.in:
887         * WebProcess/WebPage/WebPageGroupProxy.cpp:
888         (WebKit):
889         * WebProcess/WebPage/WebPageGroupProxy.h:
890         (WebPageGroupProxy):
891         * WebProcess/WebPage/WebPageGroupProxy.messages.in:
892
893 2013-01-23  Anders Carlsson  <andersca@apple.com>
894
895         Message receiver generation should work in terms of MessageReceiver objects
896         https://bugs.webkit.org/show_bug.cgi?id=107742
897
898         Reviewed by Beth Dakin.
899
900         The generated message receiver code should generate the MessageReceiver
901         member functions didReceiveMessage and didReceiveSyncMessage instead of
902         receiver specific member functions.
903
904         * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
905         * NetworkProcess/NetworkProcess.messages.in:
906         * NetworkProcess/NetworkResourceLoader.messages.in:
907         * PluginProcess/PluginControllerProxy.messages.in:
908         * PluginProcess/PluginProcess.messages.in:
909         * PluginProcess/WebProcessConnection.messages.in:
910         * Scripts/webkit2/messages.py:
911         (generate_message_handler):
912         * Scripts/webkit2/messages_unittest.py:
913         * Scripts/webkit2/model.py:
914         (MessageReceiver.__init__):
915         (MessageReceiver.has_attribute):
916         * Scripts/webkit2/parser.py:
917         (parse):
918         * Shared/Network/CustomProtocols/CustomProtocolManager.messages.in:
919         * Shared/Plugins/NPObjectMessageReceiver.messages.in:
920         * Shared/WebConnection.messages.in:
921         * Shared/mac/SecItemShim.messages.in:
922         * SharedWorkerProcess/SharedWorkerProcess.messages.in:
923         * UIProcess/Downloads/DownloadProxy.messages.in:
924         * UIProcess/DrawingAreaProxy.messages.in:
925         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
926         * UIProcess/Network/NetworkProcessProxy.messages.in:
927         * UIProcess/Notifications/WebNotificationManagerProxy.messages.in:
928         * UIProcess/Plugins/PluginProcessProxy.messages.in:
929         * UIProcess/SharedWorkers/SharedWorkerProcessProxy.messages.in:
930         * UIProcess/WebApplicationCacheManagerProxy.messages.in:
931         * UIProcess/WebContext.messages.in:
932         * UIProcess/WebCookieManagerProxy.messages.in:
933         * UIProcess/WebDatabaseManagerProxy.messages.in:
934         * UIProcess/WebFullScreenManagerProxy.messages.in:
935         * UIProcess/WebGeolocationManagerProxy.messages.in:
936         * UIProcess/WebIconDatabase.messages.in:
937         * UIProcess/WebInspectorProxy.messages.in:
938         * UIProcess/WebKeyValueStorageManagerProxy.messages.in:
939         * UIProcess/WebMediaCacheManagerProxy.messages.in:
940         * UIProcess/WebPageProxy.messages.in:
941         * UIProcess/WebProcessProxy.messages.in:
942         * UIProcess/WebResourceCacheManagerProxy.messages.in:
943         * UIProcess/mac/RemoteLayerTreeHost.messages.in:
944         * UIProcess/mac/SecItemShimProxy.messages.in:
945         * WebProcess/ApplicationCache/WebApplicationCacheManager.messages.in:
946         * WebProcess/Authentication/AuthenticationManager.h:
947         * WebProcess/Authentication/AuthenticationManager.messages.in:
948         * WebProcess/Cookies/WebCookieManager.messages.in:
949         * WebProcess/FullScreen/WebFullScreenManager.messages.in:
950         * WebProcess/Geolocation/WebGeolocationManager.messages.in:
951         * WebProcess/IconDatabase/WebIconDatabaseProxy.messages.in:
952         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.messages.in:
953         * WebProcess/MediaCache/WebMediaCacheManager.messages.in:
954         * WebProcess/Network/NetworkProcessConnection.messages.in:
955         * WebProcess/Network/WebResourceLoader.messages.in:
956         * WebProcess/Notifications/WebNotificationManager.messages.in:
957         * WebProcess/Plugins/PluginProcessConnection.messages.in:
958         * WebProcess/Plugins/PluginProxy.messages.in:
959         * WebProcess/ResourceCache/WebResourceCacheManager.messages.in:
960         * WebProcess/WebCoreSupport/WebDatabaseManager.messages.in:
961         * WebProcess/WebPage/DrawingArea.messages.in:
962         * WebProcess/WebPage/EventDispatcher.messages.in:
963         * WebProcess/WebPage/WebInspector.messages.in:
964         * WebProcess/WebPage/WebPage.messages.in:
965         * WebProcess/WebPage/WebPageGroupProxy.messages.in:
966         * WebProcess/WebProcess.messages.in:
967
968 2013-01-23  Huang Dongsung  <luxtella@company100.net>
969
970         Coordinated Graphics: remove CoordinatedLayerInfo::encode/decode.
971         https://bugs.webkit.org/show_bug.cgi?id=107644
972
973         Reviewed by Anders Carlsson.
974
975         We want to remove the dependency on CoreIPC from CoordinatedLayerInfo because we
976         will extract Coordinated Graphics from WK2.
977
978         * CMakeLists.txt:
979         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
980         (CoreIPC::::encode):
981         (CoreIPC):
982         (CoreIPC::::decode):
983         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
984         (WebKit):
985         * Shared/CoordinatedGraphics/CoordinatedLayerInfo.cpp: Removed.
986         * Shared/CoordinatedGraphics/CoordinatedLayerInfo.h:
987         * Target.pri:
988
989 2013-01-23  Kenneth Rohde Christiansen  <kenneth@webkit.org>
990
991         [WK2] Replace some internal API usage in EwkView with C API
992         https://bugs.webkit.org/show_bug.cgi?id=107652
993
994         Reviewed by Benjamin Poulain.
995
996         * UIProcess/API/efl/ewk_view.cpp:
997         (ewk_view_url_set):
998         (ewk_view_reload):
999         (ewk_view_reload_bypass_cache):
1000         (ewk_view_stop):
1001         (ewk_view_load_progress_get):
1002         (ewk_view_scale_set):
1003         (ewk_view_scale_get):
1004         (ewk_view_device_pixel_ratio_get):
1005         (ewk_view_back):
1006         (ewk_view_forward):
1007         (ewk_view_back_possible):
1008         (ewk_view_forward_possible):
1009         (ewk_view_html_string_load):
1010         (ewk_view_text_find):
1011         (ewk_view_text_find_highlight_clear):
1012         (ewk_view_text_matches_count):
1013         (ewk_view_inspector_show):
1014         (ewk_view_inspector_close):
1015
1016 2013-01-23  Alexey Proskuryakov  <ap@apple.com>
1017
1018         Build fix.
1019
1020         * Platform/CoreIPC/Connection.cpp: (CoreIPC::Connection::sendSyncMessage):
1021         Copy/paste trouble fix.
1022
1023 2013-01-23  Alexey Proskuryakov  <ap@apple.com>
1024
1025         <rdar://problem/13064414> REGRESSION(r139514): didFailToSendSyncMessage is not called by Connection
1026         https://bugs.webkit.org/show_bug.cgi?id=107715
1027
1028         Reviewed by Anders Carlsson.
1029
1030         * Platform/CoreIPC/Connection.cpp:
1031         (CoreIPC::Connection::sendSyncMessage):
1032         (CoreIPC::Connection::sendSyncMessageFromSecondaryThread):
1033         Correcting a misapplied edit - didFailToSendSyncMessage should be kept in main
1034         thread message sending, not in secondary thread.
1035
1036 2013-01-23  Brady Eidson  <beidson@apple.com>
1037
1038         Recursion handling cancelled authentication challenges in NetworkProcess
1039         <rdar://problem/13024541> and https://bugs.webkit.org/show_bug.cgi?id=107702
1040
1041         Reviewed by Alexey Proskuryakov.
1042
1043         This turned in to both a bug fix with authentication and a minimal refactoring of NetworkResourceLoader.
1044
1045         - Rename ::stop to ::resourceHandleStopped
1046         - Move all cleanup code to ::resourceHandleStopped
1047         - Schedule a resourceHandleStopped call when an authentication cancellation occurs
1048         - Tell the WebResourceLoader to cancel when an authentication cancellation occurs
1049
1050         * NetworkProcess/NetworkResourceLoader.cpp:
1051         (WebKit::NetworkResourceLoader::~NetworkResourceLoader):
1052         (WebKit::NetworkResourceLoader::start):
1053         (WebKit::NetworkResourceLoader::performStops):
1054         (WebKit::NetworkResourceLoader::resourceHandleStopped):
1055         (WebKit::NetworkResourceLoader::didFail):
1056         (WebKit::NetworkResourceLoader::receivedAuthenticationCancellation):
1057         * NetworkProcess/NetworkResourceLoader.h:
1058
1059         * WebProcess/Network/WebResourceLoader.cpp:
1060         (WebKit::WebResourceLoader::cancelResourceLoader):
1061         * WebProcess/Network/WebResourceLoader.h:
1062         * WebProcess/Network/WebResourceLoader.messages.in:
1063
1064 2013-01-23  Christophe Dumez  <christophe.dumez@intel.com>
1065
1066         [EFL][WK2] Use C API inside ewk_cookie_manager
1067         https://bugs.webkit.org/show_bug.cgi?id=107661
1068
1069         Reviewed by Alexey Proskuryakov.
1070
1071         Use C API inside ewk_cookie_manager instead of
1072         accessing C++ classes directly and violating
1073         layering.
1074
1075         * PlatformEfl.cmake:
1076         * UIProcess/API/C/soup/WKCookieManagerSoup.cpp: Added.
1077         (toSoupCookiePersistentStorageType):
1078         (WKCookieManagerSetCookiePersistentStorage): Add C API for setting
1079         the persistent storage path and type when using libsoup.
1080         * UIProcess/API/C/soup/WKCookieManagerSoup.h: Added.
1081         * UIProcess/API/efl/ewk_context.cpp:
1082         (EwkContext::cookieManager):
1083         * UIProcess/API/efl/ewk_cookie_manager.cpp:
1084         (EwkCookieManager::EwkCookieManager):
1085         (EwkCookieManager::~EwkCookieManager):
1086         (EwkCookieManager::setPersistentStorage):
1087         (EwkCookieManager::setHTTPAcceptPolicy):
1088         (EwkCookieManager::clearHostnameCookies):
1089         (EwkCookieManager::clearAllCookies):
1090         (EwkCookieManager::watchChanges):
1091         (EwkCookieManager::getHostNamesWithCookies):
1092         (EwkCookieManager::getHTTPAcceptPolicy):
1093         (ewk_cookie_manager_persistent_storage_set):
1094         (ewk_cookie_manager_hostname_cookies_clear):
1095         * UIProcess/API/efl/ewk_cookie_manager_private.h:
1096         (EwkCookieManager::create):
1097         (EwkCookieManager):
1098
1099 2013-01-22  Anders Carlsson  <andersca@apple.com>
1100
1101         Use a platforom strategy for local storage
1102         https://bugs.webkit.org/show_bug.cgi?id=107600
1103
1104         Reviewed by Andreas Kling.
1105
1106         Update for new storage strategy.
1107
1108         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1109         (WebKit::WebPlatformStrategies::createStorageStrategy):
1110         (WebKit):
1111         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
1112         (WebPlatformStrategies):
1113
1114 2013-01-21  Kentaro Hara  <haraken@chromium.org>
1115
1116         Implement UIEvent constructor
1117         https://bugs.webkit.org/show_bug.cgi?id=107430
1118
1119         Reviewed by Adam Barth.
1120
1121         Editor's draft: https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm
1122
1123         UIEvent constructor is implemented under a DOM4_EVENTS_CONSTRUCTOR flag,
1124         which is enabled on Safari and Chromium for now.
1125
1126         * Configurations/FeatureDefines.xcconfig:
1127
1128 2013-01-22  Alexey Proskuryakov  <ap@apple.com>
1129
1130         Move sandbox initialization to ChildProcess
1131         https://bugs.webkit.org/show_bug.cgi?id=107486
1132
1133         Reviewed by Sam Weinig.
1134
1135         * NetworkProcess/NetworkProcess.h:
1136         * NetworkProcess/NetworkProcess.cpp:
1137         (WebKit::NetworkProcess::initializeSandbox): Removed. We no longer need this function
1138         to be implemented in each process type.
1139
1140         * NetworkProcess/mac/NetworkProcessMac.mm:
1141         (WebKit::initializeSandbox): Removed a custom (and incomplete) implementation.
1142         (WebKit::NetworkProcess::processUpdateSandboxInitializationParameters): Clear
1143         sandbox profile path in parameters, telling ChildProcess to not enter a sandbox.
1144
1145         * PluginProcess/PluginProcess.h:
1146         * PluginProcess/mac/PluginProcessMac.mm:
1147         Added FIXMEs, saying that we should switch to ChildProcess implementation.
1148
1149         * Shared/ChildProcess.cpp: Dummy implementations for other platforms.
1150
1151         * Shared/ChildProcess.h: Added processUpdateSandboxInitializationParameters, which
1152         child processes will override to change sandbox initialization parameters.
1153
1154         * Shared/SandboxInitializationParameters.h: Added.
1155         * Shared/mac/SandboxInitialiationParametersMac.mm: Added.
1156         Abstracts out sandbox parameter vector for coding safety. Encapsulates other
1157         things that subclasses will want to do differently.
1158
1159         * Shared/mac/ChildProcessMac.mm: (WebKit::ChildProcess::initializeSandbox):
1160         Added a shared implementation, based largely on WebProcess version.
1161
1162         * SharedWorkerProcess/mac/SharedWorkerProcessMac.mm: Removed custom sandboxing code.
1163
1164         * WebKit2.xcodeproj/project.pbxproj: Added SandboxInitializationParameters files.
1165
1166         * WebProcess/WebProcess.cpp:
1167         * WebProcess/WebProcess.h:
1168         Updated dummy implementations to match ChildProcess.
1169
1170         * WebProcess/mac/WebProcessMac.mm:
1171         (WebKit): Moved sandboxing code to ChildProcess.
1172         (WebKit::WebProcess::processUpdateSandboxInitializationParameters): Override
1173         profile path, because default one doesn't work for WebProcessService.
1174
1175 2013-01-22  Joseph Pecoraro  <pecoraro@apple.com>
1176
1177         [Mac] Enable Page Visibility (PAGE_VISIBILITY_API)
1178         https://bugs.webkit.org/show_bug.cgi?id=107230
1179
1180         Reviewed by David Kilzer.
1181
1182         * Configurations/FeatureDefines.xcconfig:
1183
1184 2013-01-22  Joseph Pecoraro  <pecoraro@apple.com>
1185
1186         Remove empty file WebPageProxyMessageKinds.h
1187         https://bugs.webkit.org/show_bug.cgi?id=107335
1188
1189         Reviewed by Kentaro Hara.
1190
1191         * GNUmakefile.list.am:
1192         * Shared/CoreIPCSupport/WebPageProxyMessageKinds.h: Removed.
1193
1194 2013-01-22  Tim Horton  <timothy_horton@apple.com>
1195
1196         PDFPlugin: Build PDFPlugin everywhere, enable at runtime
1197         https://bugs.webkit.org/show_bug.cgi?id=107117
1198
1199         Reviewed by Alexey Proskuryakov.
1200
1201         Since PDFLayerController SPI is all forward-declared, the plugin should build
1202         on all Mac platforms, and can be enabled at runtime.
1203
1204         * Configurations/FeatureDefines.xcconfig:
1205
1206 2013-01-21  Dirk Schulze  <dschulze@adobe.com>
1207
1208         Add build flag for Canvas's Path object (disabled by default)
1209         https://bugs.webkit.org/show_bug.cgi?id=107473
1210
1211         Reviewed by Dean Jackson.
1212
1213         Add CANVAS_PATH build flag to build systems.
1214
1215         * Configurations/FeatureDefines.xcconfig:
1216
1217 2013-01-21  Jinwoo Song  <jinwoo7.song@samsung.com>
1218
1219         [EFL][WK2] Add APIs to set/get view source mode
1220         https://bugs.webkit.org/show_bug.cgi?id=106633
1221
1222         Reviewed by Gyuyoung Kim.
1223
1224         Added APIs to set/get view source mode for enabling to load
1225         the source code of the web page.
1226
1227         * UIProcess/API/efl/ewk_view.cpp:
1228         (ewk_view_source_mode_set):
1229         (ewk_view_source_mode_get):
1230         * UIProcess/API/efl/ewk_view.h:
1231         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
1232         (TEST_F):
1233         * UIProcess/WebPageProxy.cpp:
1234         (WebKit::WebPageProxy::WebPageProxy):
1235         (WebKit::WebPageProxy::setMainFrameInViewSourceMode):
1236         * UIProcess/WebPageProxy.h:
1237         (WebKit::WebPageProxy::mainFrameInViewSourceMode):
1238         (WebPageProxy):
1239
1240 2013-01-21  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
1241
1242         [EFL][WK2] Implement WebInspector::localizedStringsURL() on EFL
1243         https://bugs.webkit.org/show_bug.cgi?id=107363
1244
1245         Reviewed by Benjamin Poulain.
1246
1247         Implement WebInspector::localizedStringsURL() method to return the
1248         file URL of the localizedStrings.js.
1249
1250         This prevents printing warnings about "Localized string not found" in
1251         the console and fixes Web inspector related failing tests on the bots.
1252
1253         * WebProcess/WebPage/efl/WebInspectorEfl.cpp:
1254         (WebKit::WebInspector::localizedStringsURL):
1255
1256 2013-01-21  Kiran Muppala  <cmuppala@apple.com>
1257
1258         Enable process suppression by default on Mac
1259         https://bugs.webkit.org/show_bug.cgi?id=106804
1260
1261         Reviewed by Alexey Proskuryakov.
1262
1263         * UIProcess/WebContext.cpp:
1264         (WebKit::WebContext::WebContext): Change initialized value of
1265         m_processSuppressionEnabled from false to true.
1266         * UIProcess/mac/WebContextMac.mm:
1267         (WebKit::WebContext::platformInitialize): Since process suppression
1268         is no longer disabled on construction, do not disable it for global
1269         child processes either.  Instead enable occlusion notifications as
1270         they are needed to trigger process suppression.
1271
1272 2013-01-17  Andy Estes  <aestes@apple.com>
1273
1274         Add a USE() macro for content filtering code
1275         https://bugs.webkit.org/show_bug.cgi?id=107098
1276
1277         Reviewed by Mark Rowe.
1278
1279         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
1280         (InitWebCoreSystemInterface): Use USE(CONTENT_FILTERING).
1281
1282 2013-01-21  Anders Carlsson  <andersca@apple.com>
1283
1284         Don't null out the IPC connection in ChildProcess:terminate
1285         https://bugs.webkit.org/show_bug.cgi?id=107469
1286         <rdar://problem/13015294>
1287
1288         Reviewed by Dan Bernstein.
1289
1290         We already invalidate the connection, and Connection::sendMessage checks if a connection
1291         is valid and bails if it isn't, so the only thing that nulling out the connection here does
1292         is that it would force us to add random connection null checks everywhere.
1293
1294         * Shared/ChildProcess.cpp:
1295         (WebKit::ChildProcess::terminate):
1296
1297 2013-01-21  Joone Hur  <joone.hur@intel.com>
1298
1299         [EFL] API unit tests are running extremely slow on the bots
1300         https://bugs.webkit.org/show_bug.cgi?id=104665
1301
1302         Reviewed by Gyuyoung Kim.
1303
1304         Clear HTTP cache files before running the unit tests, which prevents 
1305         performance degradation due to so many cache files.
1306
1307         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
1308         (EWK2UnitTest::EWK2UnitTestBase::SetUp):
1309
1310 2013-01-21  Gustavo Noronha Silva  <gns@gnome.org>
1311
1312         REGRESSION (r140285): GTK uses WKPageResourceLoadClient which was removed
1313         https://bugs.webkit.org/show_bug.cgi?id=107421
1314
1315         Unreviewed buildfix.
1316
1317         * GNUmakefile.list.am:
1318         * UIProcess/API/gtk/WebKitResourceLoadClient.cpp: Removed.
1319         * UIProcess/API/gtk/WebKitResourceLoadClient.h: Removed.
1320         * UIProcess/API/gtk/WebKitWebView.cpp: No longer attach unexisting ResourceLoadClient.
1321         (webkitWebViewConstructed):
1322
1323 2013-01-21  Sheriff Bot  <webkit.review.bot@gmail.com>
1324
1325         Unreviewed, rolling out r139781.
1326         http://trac.webkit.org/changeset/139781
1327         https://bugs.webkit.org/show_bug.cgi?id=107443
1328
1329         This patch seems to cause flakiness on Qt (Requested by chris-
1330         qBT_work on #webkit).
1331
1332         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1333         (WebKit::CoordinatedLayerTreeHost::forceRepaintAsync):
1334
1335 2013-01-21  Thiago Marcos P. Santos  <thiago.santos@intel.com>
1336
1337         REGRESSION (r140285): EFL uses WKPageResourceLoadClient which was removed
1338         https://bugs.webkit.org/show_bug.cgi?id=107417
1339
1340         Reviewed by Gyuyoung Kim.
1341
1342         We had no choice but remove the ResourceLoadClientEfl after r140285
1343         and thus our public API signals depending on it. The test_ewk2_auth_request
1344         unit test was skipped because it depends these signals and will be fixed in a
1345         different patch.
1346
1347         * PlatformEfl.cmake:
1348         * UIProcess/API/efl/EWebKit2.h:
1349         * UIProcess/API/efl/EwkViewCallbacks.h:
1350         * UIProcess/API/efl/EwkViewImpl.cpp:
1351         (EwkViewImpl::EwkViewImpl):
1352         * UIProcess/API/efl/EwkViewImpl.h:
1353         (WebKit):
1354         (EwkViewImpl):
1355         * UIProcess/API/efl/ewk_resource.cpp: Removed.
1356         * UIProcess/API/efl/ewk_resource.h: Removed.
1357         * UIProcess/API/efl/ewk_resource_private.h: Removed.
1358         * UIProcess/API/efl/ewk_view.cpp:
1359         * UIProcess/API/efl/ewk_view.h:
1360         * UIProcess/efl/ResourceLoadClientEfl.cpp: Removed.
1361         * UIProcess/efl/ResourceLoadClientEfl.h: Removed.
1362
1363 2013-01-20  Viatcheslav Ostapenko  <sl.ostapenko@samsung.com>
1364
1365         Remove support getting per-resource callbacks in the UIProcess
1366         https://bugs.webkit.org/show_bug.cgi?id=107405
1367
1368         Reviewed by Sam Weinig.
1369
1370         EFL, GTK and Qt WebKit2 build fixes after r140285.
1371         Remove from build WebResourceLoadClient.{cpp,h} deleted by r140285.
1372
1373         * CMakeLists.txt:
1374         * GNUmakefile.list.am:
1375         * Target.pri:
1376
1377 2013-01-20  Sam Weinig  <sam@webkit.org>
1378
1379         Remove support getting per-resource callbacks in the UIProcess
1380         https://bugs.webkit.org/show_bug.cgi?id=107405
1381
1382         Reviewed by Anders Carlsson.
1383
1384         Removes support for the WKPageResourceLoadClient. Access to per-resource
1385         callbacks are still available in the bundle, and via the WebInspector.
1386
1387         * UIProcess/API/C/WKPage.cpp:
1388         * UIProcess/API/C/WKPage.h:
1389         * UIProcess/WebPageProxy.cpp:
1390         * UIProcess/WebPageProxy.h:
1391         * UIProcess/WebPageProxy.messages.in:
1392         Stop handling per-resource messages and forwarding them to the API.
1393
1394         * UIProcess/WebResourceLoadClient.cpp: Removed.
1395         * UIProcess/WebResourceLoadClient.h: Removed.
1396         * WebKit2.xcodeproj/project.pbxproj:
1397         Remove the files.
1398
1399         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1400         (WebKit::WebFrameLoaderClient::assignIdentifierToInitialRequest):
1401         (WebKit::WebFrameLoaderClient::dispatchWillSendRequest):
1402         (WebKit::WebFrameLoaderClient::dispatchDidReceiveResponse):
1403         (WebKit::WebFrameLoaderClient::dispatchDidReceiveContentLength):
1404         (WebKit::WebFrameLoaderClient::dispatchDidFinishLoading):
1405         (WebKit::WebFrameLoaderClient::dispatchDidFailLoading):
1406         Stop sending per-resource messages to the UIProcess.
1407
1408 2013-01-20  Gustavo Noronha Silva  <gns@gnome.org>
1409
1410         Unreviewed. Simple indentation fix.
1411
1412         * GNUmakefile.am:
1413
1414 2013-01-20  Alexey Proskuryakov  <ap@apple.com>
1415
1416         Remove obsolete plug-in sandboxing code.
1417         https://bugs.webkit.org/show_bug.cgi?id=107362
1418
1419         Reviewed by Darin Adler.
1420
1421         * WebKit2.xcodeproj/project.pbxproj:
1422         * DerivedSources.make:
1423         * PluginProcess/mac/com.apple.WebKit.PluginProcess.sb.in: Removed.
1424
1425         * PluginProcess/mac/PluginProcessMac.mm:
1426         (WebKit::initializeSandbox): Fixed a memory leak in code that stays.
1427
1428         * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
1429         (WebKit::NPN_GetValue):
1430
1431         * WebProcess/Plugins/Netscape/mac/NetscapeSandboxFunctions.h:
1432         * WebProcess/Plugins/Netscape/mac/NetscapeSandboxFunctions.mm:
1433         Removed API related parts. Remaining code will move to a better place in a follow-up
1434         patch, just keeping it here for easier reviewing.
1435         (enterSandbox): Removed no longer used arguments.
1436
1437 2013-01-17  Sam Weinig  <sam@webkit.org>
1438
1439         Don't initialize AppKit for processes that don't use it
1440         https://bugs.webkit.org/show_bug.cgi?id=107216
1441
1442         Reviewed by Alexey Proskuryakov.
1443
1444         * PluginProcess/mac/PluginProcessMainMac.mm:
1445         (WebKit::PluginProcessMainDelegate::doPreInitializationWork):
1446         * WebProcess/mac/WebProcessMainMac.mm:
1447         (WebKit::WebProcessMainDelegate::doPreInitializationWork):
1448         Move AppKit initialization to the two places it is used, the WebProcessMain and the PluginProcessMain.
1449
1450         * Shared/ChildProcess.cpp:
1451         (WebKit::ChildProcess::initialize):
1452         Remove redundant call to InitializeWebKit2().
1453
1454         * Shared/mac/ChildProcessMain.h:
1455         (WebKit::ChildProcessMain):
1456         Remove initialization of AppKit now that the delegate does it if necessary,
1457         and move InitializeWebKit2() to after delegate.doPreInitializationWork(), so
1458         the delegate has a chance to set things up it, in this case, calling 
1459         RunLoop::setUseApplicationRunLoopOnMainRunLoop if needed.
1460
1461         * PluginProcess/mac/PluginProcessMac.mm:
1462         (WebKit::PluginProcess::platformInitializePluginProcess):
1463         * WebProcess/mac/WebProcessMac.mm:
1464         (WebKit::WebProcess::platformInitializeProcess):
1465         Remove now redundant call to RunLoop::setUseApplicationRunLoopOnMainRunLoop().
1466
1467         * WebProcess/mac/WebProcessServiceEntryPoints.mm:
1468         (WebKit::WebProcessServiceEventHandler):
1469         (webProcessServiceMain):
1470         (initializeWebProcessForWebProcessServiceForWebKitDevelopment):
1471         Call WebCore::RunLoop::setUseApplicationRunLoopOnMainRunLoop() and make call to InitializeWebKit2()
1472         more consistent.
1473
1474 2013-01-18  Tim Horton  <timothy_horton@apple.com>
1475
1476         [wk2] Intrinsic content size should report a flexible width if the content is not wider than the minimum layout width
1477         https://bugs.webkit.org/show_bug.cgi?id=107334
1478         <rdar://problem/12960009>
1479
1480         Reviewed by Anders Carlsson.
1481
1482         * UIProcess/API/mac/WKView.mm:
1483         (-[WKView _setIntrinsicContentSize:]): If the content is laid-out at or below the minimum layout width, it's flexible; otherwise, we need to inform autolayout that we require more space via our intrinsic content size.
1484         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1485         (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage): Allow auto-sizing to expand its width beyond the minimum if needed.
1486         * WebProcess/WebPage/WebPage.cpp:
1487         (WebKit::WebPage::setMinimumLayoutWidth): Allow auto-sizing to expand its width beyond the minimum if needed.
1488
1489 2013-01-18  Alexey Proskuryakov  <ap@apple.com>
1490
1491         <rdar://problem/13042826> REGRESSION (r139985): Full Screen Youtube loses keyboard and mouse control
1492         https://bugs.webkit.org/show_bug.cgi?id=107191
1493
1494         Reviewed by Darin Adler.
1495
1496         Moved initialization from platformInitializePluginProcess to platformInitializeProcess,
1497         because the former is called too late. In r139985, I used a correct location for
1498         WebProcess, but not for PluginProcess.
1499
1500         * PluginProcess/mac/PluginProcessMac.mm:
1501         (WebKit::PluginProcess::platformInitializeProcess):
1502         (WebKit::PluginProcess::platformInitializePluginProcess):
1503
1504 2013-01-18  Brady Eidson  <beidson@apple.com>
1505
1506         Rework NetworkProcess resource load identifiers.
1507         <rdar://problem/12934449> and https://bugs.webkit.org/show_bug.cgi?id=107192
1508
1509         Reviewed by Alexey Proskuryakov.
1510
1511         Having the NetworkProcess vend out identifiers to WebProcesses was a bad idea.
1512         This patch reverts that so that WebProcesses are in control of their own unique identifiers.
1513
1514         The NetworkProcess doesn't need identifiers at all.
1515         It can represent outstanding loads with the loaders themselves.
1516
1517         This patch adds a "SchedulableLoader" base class for normal and synchronous loaders.
1518         It reworks each use of identifiers into using SchedulableLoaders instead.
1519
1520         This also gave an opportunity to move the serving of pending requests for a host into the 
1521         HostRecord itself which cleans certain things up nicely.
1522
1523         Change HostRecord to have queues of SchedulableLoaders instead of identifiers.
1524         Make HostRecord responsible for actually starting the loaders in its queues:
1525         * NetworkProcess/HostRecord.cpp:
1526         (WebKit::HostRecord::~HostRecord):
1527         (WebKit::HostRecord::scheduleResourceLoader):
1528         (WebKit::HostRecord::addLoaderInProgress):
1529         (WebKit::HostRecord::removeLoader):
1530         (WebKit::HostRecord::hasRequests):
1531         (WebKit::HostRecord::servePendingRequestsForQueue):
1532         (WebKit::HostRecord::servePendingRequests):
1533         (WebKit::HostRecord::limitsRequests):
1534         * NetworkProcess/HostRecord.h:
1535         (WebKit::HostRecord::create): HostRecord is now also RefCounted. new and delete are so 2004.
1536
1537         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
1538         (WebKit::NetworkConnectionToWebProcess::scheduleResourceLoad): Create the loader then schedule
1539           it with the scheduler, instead of having the scheduler create it.
1540         (WebKit::NetworkConnectionToWebProcess::performSynchronousLoad):
1541         (WebKit::NetworkConnectionToWebProcess::removeLoadIdentifier):
1542         * NetworkProcess/NetworkConnectionToWebProcess.h:
1543         * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
1544
1545         Remove maps and sets of identifiers, replacing them with sets of SchedulableLoaders where needed.
1546         Rely on HostRecords to actually manage sets of SchedulableLoaders.
1547         Rely on HostRecord to do the actual serving of its pending requests:
1548         * NetworkProcess/NetworkResourceLoadScheduler.cpp:
1549         (WebKit::NetworkResourceLoadScheduler::NetworkResourceLoadScheduler):
1550         (WebKit::NetworkResourceLoadScheduler::scheduleLoader):
1551         (WebKit::NetworkResourceLoadScheduler::hostForURL):
1552         (WebKit::NetworkResourceLoadScheduler::removeLoader):
1553         (WebKit::NetworkResourceLoadScheduler::receivedRedirect):
1554         (WebKit::NetworkResourceLoadScheduler::servePendingRequests):
1555         (WebKit::NetworkResourceLoadScheduler::removeScheduledLoaders):
1556         (WebKit::NetworkResourceLoadScheduler::scheduleRemoveLoader):
1557         * NetworkProcess/NetworkResourceLoadScheduler.h:
1558
1559         A new base class for all loaders that the scheduler and HostRecords might need to know about:
1560         * NetworkProcess/SchedulableLoader.cpp:
1561         (WebKit::SchedulableLoader::SchedulableLoader):
1562         (WebKit::SchedulableLoader::~SchedulableLoader):
1563         * NetworkProcess/SchedulableLoader.h:
1564         (WebKit::SchedulableLoader::loadParameters):
1565         (WebKit::SchedulableLoader::connectionToWebProcess):
1566         (WebKit::SchedulableLoader::isSynchronous):
1567         (WebKit::SchedulableLoader::setHostRecord):
1568         (WebKit::SchedulableLoader::hostRecord):
1569
1570         Change to inherit from SchedulableLoader, removing some of the duplicated data and methods:
1571         * NetworkProcess/NetworkResourceLoader.cpp:
1572         (WebKit::NetworkResourceLoader::NetworkResourceLoader):
1573         (WebKit::NetworkResourceLoader::connection):
1574         (WebKit::NetworkResourceLoader::destinationID):
1575         (WebKit::NetworkResourceLoader::start):
1576         (WebKit::NetworkResourceLoader::stop):
1577         (WebKit::NetworkResourceLoader::didReceiveResponse):
1578         (WebKit::NetworkResourceLoader::didFail):
1579         (WebKit::NetworkResourceLoader::willSendRequest):
1580         (WebKit::NetworkResourceLoader::shouldUseCredentialStorage):
1581         * NetworkProcess/NetworkResourceLoader.h:
1582         (WebKit::NetworkResourceLoader::create):
1583
1584         Change to inherit from SchedulableLoader, removing some of the duplicated data and methods:
1585         * NetworkProcess/SyncNetworkResourceLoader.cpp:
1586         (WebKit::SyncNetworkResourceLoader::SyncNetworkResourceLoader):
1587         (WebKit::SyncNetworkResourceLoader::start):
1588         * NetworkProcess/SyncNetworkResourceLoader.h:
1589         (WebKit::SyncNetworkResourceLoader::create):
1590         (WebKit::SyncNetworkResourceLoader::isSynchronous):
1591
1592         Fold the WebProcess resource load identifier in with the load parameters:
1593         * Shared/Network/NetworkResourceLoadParameters.cpp:
1594         (WebKit::NetworkResourceLoadParameters::NetworkResourceLoadParameters):
1595         (WebKit::NetworkResourceLoadParameters::encode):
1596         (WebKit::NetworkResourceLoadParameters::decode):
1597         * Shared/Network/NetworkResourceLoadParameters.h:
1598         (WebKit::NetworkResourceLoadParameters::identifier):
1599
1600         The identifier is preset in the WebProcess and doesn't come from the NetworkProcess,
1601         so the message to schedule a load can now be asynchronous:
1602         * WebProcess/Network/WebResourceLoadScheduler.cpp:
1603         (WebKit::WebResourceLoadScheduler::scheduleLoad):
1604
1605         Update to include a WebProcess generated identifier along with synchronous loads:
1606         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1607         (WebKit::WebPlatformStrategies::loadResourceSynchronously):
1608         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
1609
1610         * WebKit2.xcodeproj/project.pbxproj:
1611
1612 2013-01-18  Huang Dongsung  <luxtella@company100.net>
1613
1614         Coordinated Graphics: CoordinatedTile::updateBackBuffer() returns a dirty rect.
1615         https://bugs.webkit.org/show_bug.cgi?id=107196
1616
1617         Reviewed by Kenneth Rohde Christiansen.
1618
1619         Currently, CoordinatedTile::updateBackBuffer() always returns an empty vector.
1620         This patch makes CoordinatedTile::updateBackBuffer() return a correct dirty rect.
1621
1622         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedTile.cpp:
1623         (WebKit::CoordinatedTile::updateBackBuffer):
1624
1625 2013-01-17  Tim Horton  <timothy_horton@apple.com>
1626
1627         [WK2] Minimum layout width auto-sizing should use FrameView::enableAutoSizeMode so that it can shrink the viewport
1628         https://bugs.webkit.org/show_bug.cgi?id=107200
1629         <rdar://problem/12849029>
1630
1631         Reviewed by Simon Fraser.
1632
1633         Make use of FrameView's auto-size mode to allow WKView's computed intrinsic content
1634         size to shrink below the current viewport size.
1635
1636         * UIProcess/WebPageProxy.cpp:
1637         (WebKit::WebPageProxy::setMinimumLayoutWidth): Forward minimumLayoutWidth changes to WebPage.
1638         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
1639         (WebKit::TiledCoreAnimationDrawingAreaProxy::sendUpdateGeometry): Remove minimumLayoutWidth argument on updateGeometry.
1640         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1641         (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage): Enable auto-size mode on the new FrameView if needed.
1642         * WebProcess/WebPage/DrawingArea.h:
1643         (WebKit::DrawingArea::updateGeometry): Remove minimumLayoutWidth argument.
1644         * WebProcess/WebPage/DrawingArea.messages.in: Remove minimumLayoutWidth argument on updateGeometry.
1645         * WebProcess/WebPage/WebPage.cpp:
1646         (WebKit::WebPage::WebPage): Initialize m_minimumLayoutWidth to 0.
1647         (WebKit::WebPage::setMinimumLayoutWidth): Keep track of minimumLayoutWidth on WebPage. Update auto-sizing state if needed.
1648         * WebProcess/WebPage/WebPage.h:
1649         (WebKit::WebPage::minimumLayoutWidth):
1650         * WebProcess/WebPage/WebPage.messages.in: Add SetMinimumLayoutWidth.
1651         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1652         (TiledCoreAnimationDrawingArea): Remove storage for m_minimumLayoutWidth. We can get it from WebPage instead.
1653         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1654         (WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea):
1655         (WebKit::TiledCoreAnimationDrawingArea::mainFrameContentSizeChanged): Grab minimumLayoutWidth from WebPage.
1656         (WebKit::TiledCoreAnimationDrawingArea::updateGeometry): Don't setSize() if auto-sizing is enabled; FrameView will do the right thing.
1657
1658 2013-01-17  Jon Lee  <jonlee@apple.com>
1659
1660         Do not track user interaction for plugins that are not snapshotted
1661         https://bugs.webkit.org/show_bug.cgi?id=107211
1662         <rdar://problem/12967277>
1663
1664         Reviewed by Dean Jackson.
1665
1666         When the user interacts with a snapshotted plug-in, we extend that plug-in origin's
1667         expiration date. However, plug-ins may not be snapshotted for other reasons than the
1668         user's initial opt-in. In this case, that plug-in's origin might be not be in the cached
1669         table. This is an edge case that was not initially considered.
1670
1671         * WebProcess/WebProcess.cpp:
1672         (WebKit::WebProcess::plugInDidReceiveUserInteraction): Convert the assertion to an if
1673         check, and return early if the entry is not found in the cache table.
1674
1675 2013-01-17  Alexey Proskuryakov  <ap@apple.com>
1676
1677         REGRESSION (r139516): NetworkResourceLoadScheduler::receivedRedirect is not called.
1678
1679         Rubber-stamped by Brady Eidson.
1680
1681         * NetworkProcess/NetworkResourceLoader.cpp:
1682         (WebKit::NetworkResourceLoader::willSendRequest): Reverted a small part of r139516.
1683
1684 2013-01-17  Huang Dongsung  <luxtella@company100.net>
1685
1686         Coordinated Graphics: Remove redundant behaviors in LayerTreeRenderer.
1687         https://bugs.webkit.org/show_bug.cgi?id=107084
1688
1689         Reviewed by Noam Rosenthal.
1690
1691         There are two changes.
1692         1. It is redundant to call GraphicsLayer::removeFromParent() or
1693         GraphicsLayer::removeAllChildren() before deleting GraphicsLayer, because the
1694         destructor of GraphicsLayerTextureMapper removes a parent and all children.
1695         2. LayerTreeRenderer::setRootLayerID() does not need to remove all children of
1696         rootLayer because this method can be called only once.
1697
1698         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
1699         (WebKit::LayerTreeRenderer::deleteLayer):
1700         (WebKit::LayerTreeRenderer::setRootLayerID):
1701         (WebKit::LayerTreeRenderer::purgeGLResources):
1702
1703 2013-01-17  Timothy Hatcher  <timothy@apple.com>
1704
1705         Make logging console messages to STDOUT work in WebKit2 via a new setting.
1706
1707         https://bugs.webkit.org/show_bug.cgi?id=107157
1708
1709         Reviewed by Joseph Pecoraro.
1710
1711         * Shared/WebPreferencesStore.h:
1712         * UIProcess/API/C/WKPreferences.cpp:
1713         (WKPreferencesSetLogsPageMessagesToSystemConsoleEnabled): Added.
1714         (WKPreferencesGetLogsPageMessagesToSystemConsoleEnabled): Added.
1715         * UIProcess/API/C/WKPreferencesPrivate.h:
1716         * UIProcess/WebInspectorProxy.cpp:
1717         (WebKit::createInspectorPageGroup): Enable logging in debug builds.
1718         * WebProcess/WebPage/WebPage.cpp:
1719         (WebKit::WebPage::updatePreferences): Set new setting in WebCore.
1720
1721 2013-01-17  Brady Eidson  <beidson@apple.com>
1722
1723         Each NetworkConnectionToWebProcess should keep its own map of NetworkResourceLoaders
1724         https://bugs.webkit.org/show_bug.cgi?id=107166
1725
1726         Reviewed by Alexey Proskuryakov.
1727
1728         NetworkConnectionToWebProcess now keeps its own id->loader map so it can directly address them as needed:
1729         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
1730         (WebKit::NetworkConnectionToWebProcess::~NetworkConnectionToWebProcess):
1731         (WebKit::NetworkConnectionToWebProcess::didReceiveMessage):
1732         (WebKit::NetworkConnectionToWebProcess::didClose):
1733         (WebKit::NetworkConnectionToWebProcess::scheduleResourceLoad):
1734         (WebKit::NetworkConnectionToWebProcess::removeLoadIdentifier):
1735         * NetworkProcess/NetworkConnectionToWebProcess.h:
1736
1737         NetworkResourceLoadScheduler no longer keeps an identifier -> loader map:
1738         * NetworkProcess/NetworkResourceLoadScheduler.cpp:
1739         (WebKit::NetworkResourceLoadScheduler::scheduleResourceLoad):
1740         (WebKit::NetworkResourceLoadScheduler::removeLoadIdentifier):
1741         * NetworkProcess/NetworkResourceLoadScheduler.h:
1742
1743         There is no longer such a thing as NetworkConnectionToWebProcessObserver:
1744         * NetworkProcess/NetworkResourceLoader.cpp:
1745         (WebKit::NetworkResourceLoader::NetworkResourceLoader):
1746         (WebKit::NetworkResourceLoader::~NetworkResourceLoader):
1747         (WebKit::NetworkResourceLoader::connectionToWebProcessDidClose):
1748         * NetworkProcess/NetworkResourceLoader.h:
1749
1750 2013-01-17  Tim Horton  <timothy_horton@apple.com>
1751
1752         Remove an incorrect ASSERT() after r140002.
1753
1754         Reviewed by Simon Fraser.
1755
1756         setRootCompositingLayer(null) is valid now.
1757
1758         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1759         (WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer):
1760
1761 2013-01-17  Poul Sysolyatin  <psytonx@gmail.com>
1762
1763         32-bit build for Qt5 on Mac OS fails.
1764         https://bugs.webkit.org/show_bug.cgi?id=107094
1765
1766         We need to define NS_BUILD_32_LIKE_64 for 32-bit build for Mac OS.
1767         Fixed 32-bit build detection for support Qt5.
1768
1769         Reviewed by Benjamin Poulain.
1770
1771         * Target.pri:
1772
1773 2013-01-17  Martin Robinson  <mrobinson@igalia.com>
1774
1775         [GTK] Build with LevelDB when IndexedDB is enabled
1776         https://bugs.webkit.org/show_bug.cgi?id=103220
1777
1778         Reviewed by Gustavo Noronha Silva.
1779
1780         * GNUmakefile.am: When IndexedDatabase is enabled add the leveldb convenience
1781         library to the shared library link phase.
1782
1783 2013-01-17  Tim Horton  <timothy_horton@apple.com>
1784
1785         [WK2] TiledCoreAnimationDrawingArea should unparent its layer tree when requested
1786         https://bugs.webkit.org/show_bug.cgi?id=107108
1787         <rdar://problem/12549879>
1788
1789         Reviewed by Darin Adler and Simon Fraser.
1790
1791         Currently, TiledCoreAnimationDrawingArea returns early if asked to unparent
1792         its layer tree, to prevent flashing when switching tabs. We have new plans
1793         to alleviate the flashing, but first, we should reinstate unparenting the root layer,
1794         to allow underlying libraries to better manage the memory backing all compositing layers.
1795
1796         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1797         (WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer):
1798
1799 2013-01-17  Tim Horton  <timothy_horton@apple.com>
1800
1801         Fix the Mac build sans ENABLE(CSS_FILTERS)
1802
1803         Reviewed by Darin Adler.
1804
1805         Include FloatRect in RemoteGraphicsLayer.mm; it's included by chance currently,
1806         via something that must be compiled out without CSS_FILTERS (or SVG, or shaders, or something).
1807
1808         * WebProcess/WebPage/mac/RemoteGraphicsLayer.mm:
1809
1810 2013-01-16  Alexey Proskuryakov  <ap@apple.com>
1811
1812         Don't use NSApplication run loop in NetworkProcess
1813         https://bugs.webkit.org/show_bug.cgi?id=107061
1814
1815         Reviewed by Anders Carlsson.
1816
1817         Only WebProcess and PluginProcess should use Cocoa APIs that require the run loop.
1818
1819         * PluginProcess/mac/PluginProcessMac.mm:
1820         (WebKit::PluginProcess::platformInitializePluginProcess):
1821         * WebProcess/mac/WebProcessMac.mm:
1822         (WebKit::WebProcess::platformInitializeProcess):
1823
1824 2013-01-16  Alexey Proskuryakov  <ap@apple.com>
1825
1826         Update sandbox rules after r128003
1827         https://bugs.webkit.org/show_bug.cgi?id=106840
1828
1829         Reviewed by Darin Adler.
1830
1831         * WebProcess/com.apple.WebProcess.sb.in: Additional Lion only fixes.
1832
1833 2013-01-16  Sam Weinig  <sam@webkit.org>
1834
1835         Make debug-safari --target-web-process work again
1836         https://bugs.webkit.org/show_bug.cgi?id=107088
1837
1838         Reviewed by Anders Carlsson.
1839
1840         --target-web-process was made harder to use during recent refactoring
1841         by requiring users to pass a -ui-process-name parameter in addition to
1842         the -client-executable. Instead, we should conjure up that name from
1843         the information we already have at our disposal.
1844
1845         * WebProcess/mac/WebProcessMainMac.mm:
1846         (WebKit::WebProcessMainDelegate::getConnectionIdentifier):
1847         Simplify by making the non-client-executable path use the base
1848         class implementation.
1849
1850         (WebKit::WebProcessMainDelegate::getClientIdentifier):
1851         Ditto.
1852
1853         (WebKit::WebProcessMainDelegate::getClientProcessName):
1854         Added. Create a client process name (its actually not too important what it is, as it
1855         is only used to show a name in Activity Monitor) from the passed in client executable
1856         path.
1857
1858 2013-01-16  Sam Weinig  <sam@webkit.org>
1859
1860         Fix crashes on the bots.
1861
1862         The WebKit LoaderStrategy for loading synchronously was only implemented
1863         for the case where you have a network process. When you don't, we should
1864         be using the base implementation.
1865
1866         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1867         (WebKit::WebPlatformStrategies::loadResourceSynchronously):
1868
1869 2013-01-16  Sam Weinig  <sam@webkit.org>
1870
1871         Update Owners file.
1872
1873         * Owners:
1874
1875 2013-01-16  Sam Weinig  <sam@webkit.org>
1876
1877         Remove unused AddLoadInProgress message
1878         https://bugs.webkit.org/show_bug.cgi?id=107077
1879
1880         Reviewed by Dan Bernstein.
1881
1882         Dead code is dead.
1883
1884         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
1885         * NetworkProcess/NetworkConnectionToWebProcess.h:
1886         * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
1887
1888 2013-01-16  Anders Carlsson  <andersca@apple.com>
1889
1890         Fix crash when destroying a plug-in with pending URL requests
1891         https://bugs.webkit.org/show_bug.cgi?id=107075
1892         <rdar://problem/12513871>
1893
1894         Reviewed by Sam Weinig.
1895
1896         In PluginView::destroyPluginAndReset, make sure to cancel any outstanding URL requests since the PluginView
1897         object will stay around and would otherwise start loading URLs from stopped plug-ins.
1898
1899         * WebProcess/Plugins/PluginView.cpp:
1900         (WebKit::PluginView::Stream::start):
1901         Assert that the plug-in is alive.
1902         
1903         (WebKit::PluginView::destroyPluginAndReset):
1904         Empty out the pending URL requests vector and stop the timer.
1905
1906 2013-01-16  Jaehun Lim  <ljaehun.lim@samsung.com>
1907
1908         [EFL][WK2] PageUIClientEfl should keep in sync with WKPageUIClient
1909         https://bugs.webkit.org/show_bug.cgi?id=107060
1910
1911         Reviewed by Benjamin Poulain.
1912
1913         Rearrange the order of functions in PageUIClientEfl.
1914         Rename closePage() to close().
1915
1916         * UIProcess/API/efl/EwkViewImpl.cpp:
1917         (EwkViewImpl::close):
1918         * UIProcess/API/efl/EwkViewImpl.h:
1919         (EwkViewImpl):
1920         * UIProcess/efl/PageUIClientEfl.cpp:
1921         (WebKit::PageUIClientEfl::PageUIClientEfl):
1922         (WebKit::PageUIClientEfl::close):
1923         (WebKit::PageUIClientEfl::takeFocus):
1924         (WebKit::PageUIClientEfl::focus):
1925         (WebKit::PageUIClientEfl::unfocus):
1926         (WebKit::PageUIClientEfl::getWindowFrame):
1927         (WebKit::PageUIClientEfl::setWindowFrame):
1928         (WebKit::PageUIClientEfl::createNewPage):
1929         (WebKit::PageUIClientEfl::showColorPicker):
1930         (WebKit::PageUIClientEfl::hideColorPicker):
1931         * UIProcess/efl/PageUIClientEfl.h:
1932         (PageUIClientEfl):
1933
1934 2013-01-16  Brady Eidson  <beidson@apple.com>
1935
1936         Synchronous XMLHTTPRequests need to go to the NetworkProcess.
1937         <rdar://problem/12951765> and https://bugs.webkit.org/show_bug.cgi?id=106826
1938
1939         Reviewed by Sam Weinig and Alexey Proskuryakov.
1940
1941         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1942         (WebKit::WebPlatformStrategies::loadResourceSynchronously): Entry point for WebCore to get
1943           synchronous requests to the NetworkProcess.
1944         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
1945
1946         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
1947         (WebKit::NetworkConnectionToWebProcess::performSynchronousLoad): Create a SyncNetworkResourceLoader
1948           and schedule it.
1949         * NetworkProcess/NetworkConnectionToWebProcess.h:
1950         * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
1951
1952         * NetworkProcess/NetworkResourceLoadScheduler.cpp:
1953         (WebKit::NetworkResourceLoadScheduler::scheduleSyncNetworkResourceLoader):
1954         (WebKit::NetworkResourceLoadScheduler::servePendingRequestsForHost): Serve synchronous loaders
1955           before async loaders.
1956         * NetworkProcess/NetworkResourceLoadScheduler.h:
1957
1958         A class that encapsulates a synchronous load request and the CoreIPC reply to be made once it is complete:
1959         * NetworkProcess/SyncNetworkResourceLoader.cpp: Added.
1960         (WebKit::SyncNetworkResourceLoader::SyncNetworkResourceLoader):
1961         (WebKit::SyncNetworkResourceLoader::start):
1962         * NetworkProcess/SyncNetworkResourceLoader.h: Copied from Source/WebKit2/NetworkProcess/HostRecord.h.
1963         (WebKit::SyncNetworkResourceLoader::create):
1964         (WebKit::SyncNetworkResourceLoader::setIdentifier):
1965         (WebKit::SyncNetworkResourceLoader::identifier):
1966         (WebKit::SyncNetworkResourceLoader::loadParameters):
1967
1968         Add a second queue of sync loaders:
1969         * NetworkProcess/HostRecord.h:
1970         (WebKit::HostRecord::syncLoadersPending):
1971
1972         Add comments to explicitly spell out the current reliance on some messages that are currently synchronous:
1973         * NetworkProcess/NetworkResourceLoader.cpp:
1974         (WebKit::NetworkResourceLoader::willSendRequest):
1975         (WebKit::NetworkResourceLoader::canAuthenticateAgainstProtectionSpace):
1976
1977         * WebKit2.xcodeproj/project.pbxproj:
1978
1979 2013-01-16  Alexey Proskuryakov  <ap@apple.com>
1980
1981         WebProcess should not access ~/Library/Caches/com.apple.WebProcess
1982         https://bugs.webkit.org/show_bug.cgi?id=107055
1983
1984         Reviewed by Anders Carlsson.
1985
1986         * WebProcess/com.apple.WebProcess.sb.in: Remove the rule allowing access.
1987
1988         * WebProcess/mac/WebProcessMac.mm: (WebKit::WebProcess::platformInitializeWebProcess):
1989         Use a correct cache directory even if NetworkProcess is in use. Not all loading has
1990         moved to this process yet.
1991
1992 2013-01-16  Anders Carlsson  <andersca@apple.com>
1993
1994         Remove CoreIPCMessageKinds.h
1995         https://bugs.webkit.org/show_bug.cgi?id=107048
1996
1997         Reviewed by Beth Dakin.
1998
1999         Use named IPC messages instead.
2000
2001         * Platform/CoreIPC/Connection.cpp:
2002         (CoreIPC::Connection::sendSyncReply):
2003         (CoreIPC::Connection::processIncomingMessage):
2004         (CoreIPC::Connection::dispatchSyncMessage):
2005         * Platform/CoreIPC/CoreIPCMessageKinds.h: Removed.
2006         * Platform/CoreIPC/MessageID.h:
2007         (MessageID):
2008         (CoreIPC::MessageID::stripMostSignificantBit):
2009         (CoreIPC::MessageID::operator==):
2010         * Platform/CoreIPC/mac/ConnectionMac.cpp:
2011         (CoreIPC::Connection::open):
2012         (CoreIPC::Connection::receiveSourceEventHandler):
2013         * WebKit2.xcodeproj/project.pbxproj:
2014
2015 2013-01-15  Jer Noble  <jer.noble@apple.com>
2016
2017         Add a Setting to disable QTKit media engine.
2018         https://bugs.webkit.org/show_bug.cgi?id=106972
2019
2020         Reviewed by Eric Carlson.
2021
2022         Add a WebKit2 API to access WebCore QTKitEnabled settings.
2023
2024         * Shared/WebPreferencesStore.h:
2025         * UIProcess/API/C/WKPreferences.cpp:
2026         (WKPreferencesSetQTKitEnabled): Pass through to WebCore.
2027         (WKPreferencesGetQTKitEnabled): Ditto.
2028         * UIProcess/API/C/WKPreferences.h:
2029         * WebProcess/WebPage/WebPage.cpp:
2030         (WebKit::WebPage::updatePreferences): Synchronize WebKit2/WebCore settings.
2031
2032 2013-01-16  Kiran Muppala  <cmuppala@apple.com>
2033
2034         Groundwork to enable process suppression by default on Mac
2035         https://bugs.webkit.org/show_bug.cgi?id=106513
2036
2037         Reviewed by Alexey Proskuryakov.
2038
2039         Process suppression has so far been controlled by a user default and
2040         disabled by default.  This patch provides the groundwork to enable it by
2041         default and adds a private API to enable/disable it on a per-context
2042         basis.
2043
2044         * Shared/mac/ChildProcessMac.mm:
2045         (WebKit::ChildProcess::platformInitialize): Add comment about
2046         initilization of application occlusion state.
2047         * UIProcess/API/C/mac/WKContextPrivateMac.cpp: Added.
2048         (WKContextGetProcessSuppressionEnabled):
2049         (WKContextSetProcessSuppressionEnabled):
2050         Add private API to enable/disable process suppression on a per-context
2051         basis.
2052         * UIProcess/API/C/mac/WKContextPrivateMac.h: Added.
2053         * UIProcess/Network/NetworkProcessProxy.cpp:
2054         (WebKit::NetworkProcessProxy::didFinishLaunching): Check if owning
2055         context has process suppression enabled before updating application
2056         occlusion state.
2057         * UIProcess/WebProcessProxy.cpp:
2058         (WebKit::WebProcessProxy::didFinishLaunching): Ditto.
2059         * UIProcess/Plugins/PluginProcessProxy.cpp:
2060         (WebKit::PluginProcessProxy::didFinishLaunching): Check if
2061         process suppression is enabled for global child processes before
2062         updating application occlusion state.
2063         * UIProcess/SharedWorkers/SharedWorkerProcessProxy.cpp:
2064         (WebKit::SharedWorkerProcessProxy::didFinishLaunching): Ditto.
2065         * UIProcess/WebContext.cpp:
2066         (WebKit::WebContext::create): Remove call to
2067         initializeProcessSuppressionSupport, since platformInitialize has been
2068         modified to perform initialization.
2069         (WebKit::WebContext::WebContext): Initialize new member variable
2070         m_processSuppressionEnabled to false.
2071         * UIProcess/WebContext.h:
2072         (WebKit::WebContext::processSuppressionEnabled): Remove "Support"
2073         from the method name.
2074         * UIProcess/mac/WebContextMac.mm:
2075         (WebKit::updateGlobalChildProcessesApplicationOcclusionState):
2076         (WebKit::applicationOcclusionStateChanged): Update the application
2077         occlusion state of child processes having process suppresion enabled.
2078         (WebKit::applicationBecameVisible):
2079         (WebKit::applicationBecameOccluded):
2080         Simplify by moving code to applicationOcclusionStateChanged.
2081         (WebKit::registerOcclusionNotificationHandlers): Fix typos.
2082         (WebKit::unregisterOcclusionNotificationHandlers): Add
2083         method to unregister occlusion notification handlers when no context
2084         has process suppression enabled.
2085         (WebKit::enableOcclusionNotifications):
2086         (WebKit::disableOcclusionNotifications):
2087         (WebKit::enableProcessSuppressionForGlobalChildProcesses):
2088         (WebKit::disableProcessSuppressionForGlobalChildProcesses):
2089         (WebKit::processSuppressionIsEnabledForAnyContext):
2090         (WebKit::processSuppressionIsEnabledForAllContexts):
2091         (WebKit::WebContext::platformInitialize): Disable process suppression
2092         for global child processes since process suppression is disabled for a
2093         context on construction.
2094         (WebKit::WebContext::setProcessSuppressionEnabled):
2095         (WebKit::WebContext::updateChildProcessesApplicationOcclusionState):
2096         (WebKit::WebContext::applicationIsOccluded):
2097         (WebKit::WebContext::processSuppressionEnabledForGlobalChildProcesses):
2098         (WebKit::WebContext::processSuppressionEnabledChanged): Update child
2099         processes application occlusion state, enable/disable occlusion
2100         notifications and enable/disable process suppression for global child
2101         processes.
2102         * WebKit2.xcodeproj/project.pbxproj:
2103
2104 2013-01-15  Anders Carlsson  <andersca@apple.com>
2105
2106         Merge LayerTreeHostCA and LayerTreeHostMac
2107         https://bugs.webkit.org/show_bug.cgi?id=106967
2108
2109         Reviewed by Sam Weinig.
2110
2111         There's no need to have a LayerTreeHostCA base class anymore, just merge it into LayerTreeHostMac.
2112
2113         * WebKit2.xcodeproj/project.pbxproj:
2114         * WebProcess/WebPage/ca/LayerTreeHostCA.cpp: Removed.
2115         * WebProcess/WebPage/ca/LayerTreeHostCA.h: Removed.
2116         * WebProcess/WebPage/mac/LayerTreeHostMac.h:
2117         (LayerTreeHostMac):
2118         * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
2119         (WebKit::LayerTreeHostMac::LayerTreeHostMac):
2120         (WebKit::LayerTreeHostMac::~LayerTreeHostMac):
2121         (WebKit::LayerTreeHostMac::layerTreeContext):
2122         (WebKit::LayerTreeHostMac::setShouldNotifyAfterNextScheduledLayerFlush):
2123         (WebKit):
2124         (WebKit::LayerTreeHostMac::setRootCompositingLayer):
2125         (WebKit::LayerTreeHostMac::invalidate):
2126         (WebKit::LayerTreeHostMac::setNonCompositedContentsNeedDisplay):
2127         (WebKit::LayerTreeHostMac::scrollNonCompositedContents):
2128         (WebKit::LayerTreeHostMac::forceRepaint):
2129         (WebKit::LayerTreeHostMac::sizeDidChange):
2130         (WebKit::LayerTreeHostMac::deviceScaleFactorDidChange):
2131         (WebKit::LayerTreeHostMac::didInstallPageOverlay):
2132         (WebKit::LayerTreeHostMac::didUninstallPageOverlay):
2133         (WebKit::LayerTreeHostMac::setPageOverlayNeedsDisplay):
2134         (WebKit::LayerTreeHostMac::pauseRendering):
2135         (WebKit::LayerTreeHostMac::resumeRendering):
2136         (WebKit::LayerTreeHostMac::setLayerHostingMode):
2137         (WebKit::LayerTreeHostMac::notifyAnimationStarted):
2138         (WebKit::LayerTreeHostMac::notifyFlushRequired):
2139         (WebKit::LayerTreeHostMac::paintContents):
2140         (WebKit::LayerTreeHostMac::deviceScaleFactor):
2141         (WebKit::LayerTreeHostMac::flushLayers):
2142         (WebKit::LayerTreeHostMac::initialize):
2143         (WebKit::LayerTreeHostMac::performScheduledLayerFlush):
2144         (WebKit::LayerTreeHostMac::flushPendingLayerChanges):
2145         (WebKit::LayerTreeHostMac::createPageOverlayLayer):
2146         (WebKit::LayerTreeHostMac::destroyPageOverlayLayer):
2147
2148 2013-01-15  Tim Horton  <timothy_horton@apple.com>
2149
2150         Clamp TileCache visibleRect to WKView's visibleRect
2151         https://bugs.webkit.org/show_bug.cgi?id=106601
2152         <rdar://problem/12843164>
2153
2154         Reviewed by Simon Fraser.
2155
2156         Some clients expand the WKView to be much larger than what is visible on screen, and
2157         control scrolling with their own view. Currently, we will create tiles for the entire
2158         view, consuming a great deal of memory, and can sometimes factor scrollbars which can
2159         never exist into layout. Piggyback on WKView SPI (the property minimumWidthForAutoLayout,
2160         renamed from minimumLayoutWidth) to drop into a mode where we disable main frame scrolling
2161         and respect the WKView's visibleRect when creating tiles.
2162
2163         * UIProcess/API/mac/WKView.mm:
2164         (-[WKView setFrameSize:]): Update the page's viewExposedRect from our visibleRect.
2165         (-[WKView _updateWindowAndViewFrames]): Update the page's viewExposedRect from our visibleRect.
2166         (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]): The main frame is scrollable by default.
2167         (-[WKView enableFrameSizeUpdates]): If frame size updates become enabled, update the
2168         page's viewExposedRect from our visibleRect.
2169         (-[WKView setMinimumLayoutWidth:]): Rename minimumLayoutWidth property to minimumWidthForAutoLayout.
2170         Warn once if the old one is used.
2171         (-[WKView minimumWidthForAutoLayout]):
2172         (-[WKView setMinimumWidthForAutoLayout:]): Adjust the minimum layout width, whether the main frame
2173         is scrollable, and update the page's viewExposedRect if needed.
2174         * UIProcess/API/mac/WKViewPrivate.h: Added minimumWidthForAutoLayout property.
2175         * UIProcess/WebPageProxy.h:
2176         (WebPageProxy): Add viewExposedRectChanged/setMainFrameIsScrollable.
2177         * UIProcess/mac/WebPageProxyMac.mm:
2178         (WebKit::WebPageProxy::viewExposedRectChanged): Forward viewExposedRectChanged to WebPage.
2179         (WebKit::WebPageProxy::setMainFrameIsScrollable): Forward setMainFrameIsScrollable to WebPage.
2180         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2181         (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage): Disable scrollbars and scrolling if
2182         main frame scrollability is disabled.
2183         * WebProcess/WebPage/DrawingArea.h:
2184         (WebKit::DrawingArea::setExposedRect): Added empty default implementation.
2185         (WebKit::DrawingArea::mainFrameScrollabilityChanged): Added empty default implementation.
2186         (DrawingArea):
2187         * WebProcess/WebPage/WebPage.cpp:
2188         (WebKit::WebPage::windowAndViewFramesChanged): We don't need the WebCore:: namespace.
2189         (WebKit::WebPage::viewExposedRectChanged): Forward exposed rect changes to DrawingArea (only TiledCoreAnimationDrawingArea cares, for now).
2190         (WebKit::WebPage::setMainFrameIsScrollable): Forward scrollability changes to DrawingArea and the main FrameView.
2191         (WebKit::WebPage::drawRectToImage): We don't need the WebCore:: namespace.
2192         * WebProcess/WebPage/WebPage.h:
2193         (WebPage): Add mainFrameIsScrollable, viewExposedRectChanged, setMainFrameIsScrollable, and storage for m_mainFrameIsScrollable.
2194         (WebKit::WebPage::mainFrameIsScrollable):
2195         * WebProcess/WebPage/WebPage.messages.in: Add ViewExposedRectChanged and SetMainFrameIsScrollable messages.
2196         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
2197         (TiledCoreAnimationDrawingArea):
2198         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
2199         (WebKit::TiledCoreAnimationDrawingArea::setExposedRect): Forward new exposed rect to TiledBacking (only TileCache cares, for now).
2200         (WebKit::TiledCoreAnimationDrawingArea::mainFrameScrollabilityChanged): Ask TiledBacking to clip to the exposedRect if main frame scrolling is disabled.
2201         (WebKit::TiledCoreAnimationDrawingArea::updateGeometry): Use size instead of viewSize in case we've changed it because of m_minimumLayoutWidth.
2202         (WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer): Update exposedRect and clipsToExposedRect.
2203
2204 2013-01-15  Enrica Casucci  <enrica@apple.com>
2205
2206         Add a new set of WebKit2 APIs for text search and
2207         search results management.
2208         https://bugs.webkit.org/show_bug.cgi?id=106834.
2209         <rdar://problem/12597159>
2210
2211         Reviewed by Simon Fraser.
2212         
2213         Adding new API to perform text search in WebKit2 without using
2214         the stock UI. The new interface provides all the information
2215         necessary to write a custom UI for search. The main logic is
2216         implemented in the new functions added to FindController.
2217
2218         Added new TextWebKitAPI test.
2219
2220         * UIProcess/API/C/WKPage.cpp:
2221         (WKPageFindStringMatches): Added.
2222         (WKPageGetImageForFindMatch): Added.
2223         (WKPageSelectFindMatch): Added.
2224         (WKPageSetPageFindMatchesClient): Added.
2225         * UIProcess/API/C/WKPage.h: Added the new API definitions.
2226         * UIProcess/WebFindClient.cpp: Added new client callbacks.
2227         (WebKit::WebFindMatchesClient::didFindStringMatches):
2228         (WebKit::WebFindMatchesClient::didGetImageForMatchResult):
2229         * UIProcess/WebFindClient.h:
2230         (WebFindMatchesClient): Added.
2231         * UIProcess/WebPageProxy.cpp: Added proxy methods.
2232         (WebKit::WebPageProxy::initializeFindMatchesClient):
2233         (WebKit::WebPageProxy::findStringMatches):
2234         (WebKit::WebPageProxy::getImageForFindMatch):
2235         (WebKit::WebPageProxy::selectFindMatch):
2236         (WebKit::WebPageProxy::didGetImageForFindMatch):
2237         (WebKit::WebPageProxy::didFindStringMatches):
2238         * UIProcess/WebPageProxy.h:
2239         * UIProcess/WebPageProxy.messages.in:
2240         * WebProcess/WebPage/FindController.cpp:
2241         (WebKit::FindController::findStringMatches): Finds all the matching
2242         text according to the find options. All the matching text ranges are
2243         stored in a vector until the next call to findStringMatches or until
2244         hideFindUI is called. The message that is sent back to the UI process
2245         contains a vector containing an entry for each find match (i.e. for each
2246         range) and each entry is represented by a vector of the corresponding
2247         text rects. It also returns the index in the vector of matches corresponding
2248         to the first match after the user selection.
2249         If there is no selection the index is always 0 and if there are no
2250         matches after the user selection, the index returned is -1.
2251         (WebKit::FindController::getFindIndicatorBitmapAndRect): Helper function
2252         to share code between updateFindIndicator and getImageForFindMatch.
2253         (WebKit::FindController::getImageForFindMatch): Creates the image corresponding
2254         to the text matched at the given match index.
2255         (WebKit::FindController::selectFindMatch): creates a selection for the range
2256         corresponding to the given match index.
2257         (WebKit::FindController::hideFindUI): Added logic to clear the vector
2258         of matched ranges.
2259         (WebKit::FindController::updateFindIndicator): Updated to use the
2260         new helper function getFindIndicatorBitmapAndRect.
2261         * WebProcess/WebPage/FindController.h:
2262         * WebProcess/WebPage/WebPage.cpp:
2263         (WebKit::WebPage::findStringMatches):
2264         (WebKit::WebPage::getImageForFindMatch):
2265         (WebKit::WebPage::selectFindMatch):
2266         * WebProcess/WebPage/WebPage.h:
2267         * WebProcess/WebPage/WebPage.messages.in:
2268
2269 2013-01-15  Anders Carlsson  <andersca@apple.com>
2270
2271         Rename LayerTreeHostCAMac to LayerTreeHostMac.
2272
2273         Rubber-stamped by Deth Bakin.
2274
2275         * WebKit2.xcodeproj/project.pbxproj:
2276         * WebProcess/WebPage/LayerTreeHost.cpp:
2277         * WebProcess/WebPage/mac/LayerTreeHostMac.h: Renamed from Source/WebKit2/WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.h.
2278         * WebProcess/WebPage/mac/LayerTreeHostMac.mm: Renamed from Source/WebKit2/WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.mm.
2279
2280 2013-01-15  Dominik Röttsches  <dominik.rottsches@intel.com>
2281
2282         [CoordinatedGraphics] Deadlock when running abspos-child-container-changes-from-relative-to-static.html
2283         https://bugs.webkit.org/show_bug.cgi?id=106884
2284
2285         Reviewed by Benjamin Poulain.
2286
2287         We need to return false if m_waitingForUIProcess is true since otherwise
2288         we'll not really repaint in performScheduledLayerFlush() and the
2289         UI process will wait forever. Returning false leads to executing the layer flush
2290         synchronously and immediately, then acknowledging the
2291         callback to the WebProcess - which resolves the deadlock.
2292
2293         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2294         (WebKit::CoordinatedLayerTreeHost::forceRepaintAsync): Return false in order to trigger a synchronous repaint if m_waitingForUIProcess is true.
2295
2296 2013-01-15  Simon Fraser  <simon.fraser@apple.com>
2297
2298         Allow tiled WKViews to have transparent backgrounds
2299         https://bugs.webkit.org/show_bug.cgi?id=106400
2300
2301         Reviewed by Anders Carlsson.
2302
2303         When WKViews were set to have transparent backgrounds, they still
2304         obscured content behind the view, for several reasons.
2305         
2306         First, when in tiled scrolling mode, WKView set the background
2307         of its layer to opaque white. Fix by using the clearColor (effectively
2308         removing the background color) if the view has a non-opaque background.
2309         
2310         Second, RenderLayerBacking just looked at FrameViews's isTransparent()
2311         when deciding to make TileCache tiles non-opaque, but it also needs to
2312         consider FrameViews with a non-opaque base background color. The
2313         same logic was necessary to avoid setting an opaque white background
2314         color on the TileCache layer.
2315         
2316         Finally, for views with non-opaque backgrounds, we don't want to display
2317         linen, so RenderLayerCompositor::requiresOverhangAreasLayer() was changed
2318         to return false in that case.
2319
2320         * UIProcess/API/mac/WKView.mm:
2321         (-[WKView updateLayer]):
2322
2323 2013-01-14  Dean Jackson  <dino@apple.com>
2324
2325         [ANGLE] Update ANGLE in WebKit
2326         https://bugs.webkit.org/show_bug.cgi?id=106274
2327
2328         Unreviewed attempted build fix.
2329
2330         The khrplatform.h file is now a public header without a directory
2331         prefix. Update the include path to look in the right place.
2332
2333         * PlatformEfl.cmake:
2334
2335 2013-01-14  Alexey Proskuryakov  <ap@apple.com>
2336
2337         <rdar://problem/12524710> Update sandbox rules after r128003
2338         https://bugs.webkit.org/show_bug.cgi?id=106840
2339
2340         Reviewed by Anders Carlsson.
2341
2342         * WebProcess/com.apple.WebProcess.sb.in:
2343
2344 2013-01-14  Huang Dongsung  <luxtella@company100.net>
2345
2346         [EFL] REGRESSION(r139189): MiniBrowser renders abnormally with -r option.
2347         https://bugs.webkit.org/show_bug.cgi?id=106512
2348
2349         Reviewed by Kenneth Rohde Christiansen.
2350
2351         PageViewportController handles only pageScaleFactor after r139189. So
2352         PageViewportControllerClientEFL calls EwkView::setScaleFactor() with
2353         pageScaleFactor instead of pageScaleFactor * deviceScaleFactor.
2354
2355         This patch makes EwkView handle pageScaleFactor.
2356         1. EwkView uses pageScaleFactor * deviceScaleFactor when drawing in
2357         the device unit.
2358         2. EwkView uses pageScaleFactor when notifying the scale to
2359         PageViewportController.
2360
2361         * UIProcess/API/efl/EwkViewImpl.cpp:
2362         (EwkViewImpl::EwkViewImpl):
2363         (EwkViewImpl::deviceScaleFactor):
2364         (EwkViewImpl::transformFromScene):
2365         (EwkViewImpl::displayTimerFired):
2366         * UIProcess/API/efl/EwkViewImpl.h:
2367         (EwkViewImpl):
2368         (EwkViewImpl::setPageScaleFactor):
2369         (EwkViewImpl::pageScaleFactor):
2370         * UIProcess/PageViewportController.cpp:
2371         (WebKit::PageViewportController::didRenderFrame):
2372         * UIProcess/PageViewportControllerClient.h:
2373         (PageViewportControllerClient):
2374         * UIProcess/efl/PageClientLegacyImpl.cpp:
2375         (WebKit::PageClientLegacyImpl::updateViewportSize):
2376         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
2377         (WebKit::PageViewportControllerClientEfl::setViewportPosition):
2378         (WebKit::PageViewportControllerClientEfl::setPageScaleFactor):
2379         (WebKit::PageViewportControllerClientEfl::didResumeContent):
2380         * UIProcess/efl/PageViewportControllerClientEfl.h:
2381         (PageViewportControllerClientEfl):
2382         * UIProcess/qt/PageViewportControllerClientQt.cpp:
2383         (WebKit::PageViewportControllerClientQt::setPageScaleFactor):
2384         * UIProcess/qt/PageViewportControllerClientQt.h:
2385         (PageViewportControllerClientQt):
2386
2387 2013-01-14  Max Vujovic  <mvujovic@adobe.com>
2388
2389         [ANGLE] Update ANGLE in WebKit
2390         https://bugs.webkit.org/show_bug.cgi?id=106274
2391
2392         Reviewed by Dean Jackson.
2393
2394         Update ANGLE to r1641.
2395
2396         * PlatformEfl.cmake: Add ANGLE/include to the include directories list because ShaderLang.h
2397         now includes "KHR/khrplatform.h", which is located in ANGLE/include/KHR/khrplatform.h.
2398
2399 2013-01-14  Alexey Proskuryakov  <ap@apple.com>
2400
2401         NetworkProcess scheduler never resumes resource loads that were postponed
2402         due to connection limit
2403         https://bugs.webkit.org/show_bug.cgi?id=106821
2404
2405         Reviewed by Brady Eidson.
2406
2407         * NetworkProcess/NetworkResourceLoadScheduler.cpp:
2408         (WebKit::NetworkResourceLoadScheduler::servePendingRequests):
2409         * NetworkProcess/NetworkResourceLoadScheduler.h:
2410         Remove an uninitialized variable that could prevent loading.
2411
2412 2013-01-11  Balazs Kelemen  <kbalazs@webkit.org>
2413
2414         [Qt][WK2] plugin tests assert in debug
2415         https://bugs.webkit.org/show_bug.cgi?id=106659
2416
2417         Reviewed by Benjamin Poulain.
2418
2419         Fixed the misuse of String::split.
2420
2421         * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
2422         (WebKit::truncateToSingleLine):
2423         Add an assert to make sure this function works well. I just walked there
2424         while debugging the bug, and although it was innocent, adding this assertion
2425         is logical.
2426         * UIProcess/Plugins/qt/PluginProcessProxyQt.cpp:
2427         (WebKit::PluginProcessProxy::scanPlugin):
2428         The ASSERT was wrong. We have three lines, each ends in a newline, so split
2429         with allowEmptyEntries=true will devide it to 4 substrings.
2430
2431 2013-01-11  Filip Pizlo  <fpizlo@apple.com>
2432
2433         JITThunks should not compile only because of luck
2434         https://bugs.webkit.org/show_bug.cgi?id=105696
2435
2436         Rubber stamped by Sam Weinig.
2437
2438         * Shared/APIObject.cpp:
2439         * Shared/linux/WebMemorySamplerLinux.cpp:
2440         * UIProcess/WebContext.cpp:
2441         * WebProcess/WebPage/WebPage.cpp:
2442         * WebProcess/efl/WebProcessMainEfl.cpp:
2443
2444 2013-01-11  Huang Dongsung  <luxtella@company100.net>
2445
2446         Coordinated Graphics: Remove the dependency of WebCoordinatedSurface::Handle from Coordinated Graphics.
2447         https://bugs.webkit.org/show_bug.cgi?id=104347
2448
2449         Reviewed by Noam Rosenthal.
2450
2451         It is a preparation patch for Threaded Coordinated Graphics on WK1.
2452
2453         Currently, UpdateAtlas and CoordinatedImageBacking use
2454         WebCoordinatedSurface::Handle, but WebCoordinatedSurface::Handle can be
2455         used only IPC-based Coordinated Graphics. So this patch removes the
2456         dependency of WebCoordinatedSurface::Handle from UpdateAtlas and
2457         CoordinatedImageBacking. Now CoordinatedLayerTreeHost converts the
2458         handle to a WebCoordinatedSurface.
2459
2460         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedImageBacking.cpp:
2461         (WebKit::CoordinatedImageBacking::update):
2462         (WebKit::CoordinatedImageBacking::releaseSurfaceIfNeeded):
2463         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedImageBacking.h:
2464         (Coordinator):
2465         (CoordinatedImageBacking):
2466         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2467         (WebKit::CoordinatedLayerTreeHost::updateImageBacking):
2468         (WebKit::CoordinatedLayerTreeHost::createUpdateAtlas):
2469         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
2470         (WebKit):
2471         (CoordinatedLayerTreeHost):
2472         * WebProcess/WebPage/CoordinatedGraphics/UpdateAtlas.cpp:
2473         (WebKit::UpdateAtlas::UpdateAtlas):
2474         (WebKit::UpdateAtlas::~UpdateAtlas):
2475         (WebKit::UpdateAtlas::beginPaintingOnAvailableBuffer):
2476         * WebProcess/WebPage/CoordinatedGraphics/UpdateAtlas.h:
2477         (UpdateAtlasClient):
2478         (UpdateAtlas):
2479
2480 2013-01-11  Alexey Proskuryakov  <ap@apple.com>
2481
2482         [WK2] Network process unblocks all waiting threads when any sync reply arrives
2483         https://bugs.webkit.org/show_bug.cgi?id=106713
2484
2485         Reviewed by Brady Eidson.
2486
2487         Switch to sending sync CoreIPC messages, which is now possible.
2488
2489         * NetworkProcess/NetworkConnectionToWebProcess.h:
2490         * NetworkProcess/NetworkConnectionToWebProcess.cpp: (WebKit::NetworkConnectionToWebProcess::didClose):
2491         We no longer have response maps.
2492
2493         * NetworkProcess/NetworkResourceLoader.cpp:
2494         (WebKit::NetworkResourceLoader::willSendRequest): Just send a sync message.
2495         (WebKit::NetworkResourceLoader::canAuthenticateAgainstProtectionSpace): Ditto.
2496         (WebKit::NetworkResourceLoader::didReceiveDataArray): Added an unrelated assertion.
2497
2498         * NetworkProcess/NetworkResourceLoader.h:
2499         * NetworkProcess/NetworkResourceLoader.messages.in:
2500         Removed no longer used reply messages and their handlers.
2501
2502         * Shared/BlockingResponseMap.h: Removed a bool version, which was not perfectly
2503         safe, and only used in NetworkProcess.
2504         (BlockingResponseMap::didReceiveResponse): Updated a still valid FIXME to not refer
2505         to network process.
2506         (BlockingResponseMap::cancel): Ditto.
2507
2508         * WebProcess/Network/NetworkProcessConnection.h:
2509         * WebProcess/Network/NetworkProcessConnection.cpp:
2510         (WebKit::NetworkProcessConnection::didReceiveSyncMessage):
2511         Plumbing to handle sync messages.
2512
2513         * WebProcess/Network/WebResourceLoader.cpp:
2514         (WebKit::WebResourceLoader::willSendRequest):
2515         (WebKit::WebResourceLoader::canAuthenticateAgainstProtectionSpace):
2516         * WebProcess/Network/WebResourceLoader.h:
2517         * WebProcess/Network/WebResourceLoader.messages.in:
2518         Updated (simplified) sync messages and their handlers.
2519
2520 2013-01-11  Alexey Proskuryakov  <ap@apple.com>
2521
2522         [WK2] Make it possible to send sync messages from secondary threads
2523         https://bugs.webkit.org/show_bug.cgi?id=106708
2524
2525         Apply another review comment (overlooked a "ditto").
2526
2527         * Platform/CoreIPC/Connection.cpp:
2528         (CoreIPC::Connection::sendSyncMessage):
2529
2530 2013-01-11  Alexey Proskuryakov  <ap@apple.com>
2531
2532         [WK2] Make it possible to send sync messages from secondary threads
2533         https://bugs.webkit.org/show_bug.cgi?id=106708
2534
2535         Reviewed by Anders Carlsson.
2536
2537         It is hugely beneficial to implement sync messages at Connection level, because
2538         ad hoc code that blocks a thread and wakes it up when a reply arrives on main
2539         thread can't be made equally performant. A CoreOPC MessageDecoder can be moved across
2540         threads, which can't be done with a decoded argument passed by reference to client code.
2541
2542         Sync messages from secondary threads are tracked in much simpler data structure
2543         than client thread ones, because we don't need to be concerned with incoming messages.
2544
2545         * Platform/CoreIPC/Connection.cpp:
2546         (Connection::SecondaryThreadPendingSyncReply):
2547         (CoreIPC::Connection::SecondaryThreadPendingSyncReply::SecondaryThreadPendingSyncReply):
2548         (CoreIPC::Connection::createSyncMessageEncoder):
2549         (CoreIPC::Connection::sendSyncMessage):
2550         (CoreIPC::Connection::sendSyncMessageFromSecondaryThread):
2551         (CoreIPC::Connection::processIncomingSyncReply):
2552         (CoreIPC::Connection::connectionDidClose):
2553
2554         * Platform/CoreIPC/Connection.h: Also corrected a misleading comment.
2555
2556 2013-01-11  Dan Bernstein  <mitz@apple.com>
2557
2558         Exclude unused resources.
2559
2560         Reviewed by Darin Adler.
2561
2562         * Configurations/WebKit2.xcconfig: Defined EXCLUDED_SOURCE_FILE_NAMES.
2563
2564 2013-01-11  Anders Carlsson  <andersca@apple.com>
2565
2566         Incoming synchronous messages can sometimes arrive out of order
2567         https://bugs.webkit.org/show_bug.cgi?id=106677
2568         <rdar://problem/12889499>
2569
2570         Reviewed by Andreas Kling.
2571
2572         In cases where synchronous messages come in more than one connection at the same time, we can sometimes deliver
2573         the synchronous messages before any pending asynchronous messages on that connection. This breaks FIFO ordering.
2574
2575         Fix this by separating the "dispatch all incoming synchronous messages" phase out into multiple phases, so we'll
2576         schedule one call per connection instead of one call for all connections.
2577
2578         * Platform/CoreIPC/Connection.cpp:
2579         (Connection::SyncMessageState):
2580         (CoreIPC::Connection::SyncMessageState::SyncMessageState):
2581         (CoreIPC::Connection::SyncMessageState::processIncomingMessage):
2582         (CoreIPC::Connection::SyncMessageState::dispatchMessages):
2583         (CoreIPC::Connection::SyncMessageState::dispatchMessageAndResetDidScheduleDispatchMessagesForConnection):
2584         (CoreIPC::Connection::waitForSyncReply):
2585
2586 2013-01-11  Zan Dobersek  <zandobersek@gmail.com>
2587
2588         Unreviewed. Build fix for the GTK debug builds of WebKit2 after r139415.
2589
2590         * WebProcess/gtk/WebGtkExtensionManager.cpp:
2591
2592 2013-01-11  Carlos Garcia Campos  <cgarcia@igalia.com>
2593
2594         [GTK] Remove support for global extensions in WebKit2 GTK+
2595         https://bugs.webkit.org/show_bug.cgi?id=106646
2596
2597         Reviewed by Xan Lopez.
2598
2599         We have now API to set the web extensions directory. A global web
2600         estensions directory doesn't make sense anymore.
2601
2602         * WebProcess/gtk/WebGtkExtensionManager.cpp:
2603         (WebKit::WebGtkExtensionManager::scanModules): Only scan the given
2604         directory for modules.
2605         (WebKit::WebGtkExtensionManager::initialize): Load modules found
2606         in the given directory only.
2607         * WebProcess/gtk/WebGtkExtensionManager.h:
2608         (WebGtkExtensionManager): Remove appendModuleDirectories().
2609
2610 2013-01-11  KwangYong Choi  <ky0.choi@samsung.com>
2611
2612         [EFL][WK2] Add ewk_view_page_contents_get() API
2613         https://bugs.webkit.org/show_bug.cgi?id=106440
2614
2615         Reviewed by Gyuyoung Kim.
2616
2617         Add ewk_view_page_contents_get() API for getting contents of the current page.
2618         Currently, it supports only MHTML type.
2619
2620         * UIProcess/API/efl/ewk_view.cpp:
2621         (Ewk_Page_Contents_Context):
2622         (ewkViewPageContentsCallback):
2623         (ewk_view_page_contents_get):
2624         * UIProcess/API/efl/ewk_view.h:
2625         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
2626         (PageContentsCallback):
2627         (TEST_F):
2628
2629 2013-01-11  Krzysztof Czech  <k.czech@samsung.com>
2630
2631         [WK2] Missing HAVE(ACCESSIBILITY) guards to some atk/ accessibility files.
2632         https://bugs.webkit.org/show_bug.cgi?id=106447
2633
2634         Reviewed by Andreas Kling.
2635
2636         Files do not have HAVE(ACCESSIBILITY) guards.
2637         This is source of potential build breakes, when macro is not enabled.
2638
2639         * WebProcess/WebPage/atk/WebPageAccessibilityObject.h:
2640         * WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp:
2641
2642 2013-01-11  KwangYong Choi  <ky0.choi@samsung.com>
2643
2644         [EFL] Fix unused parameter build error
2645         https://bugs.webkit.org/show_bug.cgi?id=106639
2646
2647         Reviewed by Kentaro Hara.
2648
2649         Use UNUSED_PARAM macro to fix build error.
2650
2651         * UIProcess/API/efl/ewk_color_picker.cpp:
2652         (ewk_color_picker_color_set):
2653         (ewk_color_picker_color_get):
2654         * UIProcess/API/efl/ewk_context.cpp:
2655         (ewk_context_additional_plugin_path_set):
2656         * UIProcess/API/efl/ewk_settings.cpp:
2657         (ewk_settings_fullscreen_enabled_set):
2658         (ewk_settings_fullscreen_enabled_get):
2659         * UIProcess/API/efl/ewk_view.cpp:
2660         (ewk_view_intent_deliver):
2661         (ewk_view_feed_touch_event):
2662         (ewk_view_touch_events_enabled_set):
2663         (ewk_view_touch_events_enabled_get):
2664         (ewk_view_fullscreen_exit):
2665
2666 2013-01-10  Carlos Garcia Campos  <cgarcia@igalia.com>
2667
2668         [GTK] Add API to set the web extensions directory to WebKit2 GTK+
2669         https://bugs.webkit.org/show_bug.cgi?id=106462
2670
2671         Reviewed by Xan Lopez.
2672
2673         * UIProcess/API/gtk/WebKitWebContext.cpp:
2674         (webkit_web_context_set_web_extensions_directory): Set
2675         the given directory as injected bundle initialization user data.
2676         * UIProcess/API/gtk/WebKitWebContext.h:
2677         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbol.
2678         * UIProcess/API/gtk/tests/TestWebExtensions.cpp:
2679         (beforeAll): Update the test to use
2680         webkit_web_context_set_web_extensions_directory()
2681         instead of setting the WEBKIT_WEB_EXTENSIONS_PATH env var.
2682         * WebProcess/gtk/WebGtkExtensionManager.cpp:
2683         (WebKit::WebGtkExtensionManager::scanModules): Append the given
2684         additional web extensions directory to the list of directories to
2685         scan for modules.
2686         (WebKit::WebGtkExtensionManager::initialize): Get the additional
2687         web extensions directory from initialization user data and pass it
2688         to scanModules().
2689         * WebProcess/gtk/WebGtkExtensionManager.h:
2690         (WebGtkExtensionManager): Add userData parameter.
2691         * WebProcess/gtk/WebGtkInjectedBundleMain.cpp:
2692         (WKBundleInitialize): Pass initialization user data to
2693         WebGtkExtensionManager.
2694
2695 2013-01-10  Huang Dongsung  <luxtella@company100.net>
2696
2697         [Qt][EFL] Rename from xxxContentsScale() to xxxScale() in PageViewportController.
2698         https://bugs.webkit.org/show_bug.cgi?id=106537
2699
2700         Reviewed by Kenneth Rohde Christiansen.
2701
2702         Rename 3 methods to match the terms of ViewportAttributes.
2703
2704         * UIProcess/API/qt/qwebkittest.cpp:
2705         (QWebKitTest::viewport):
2706         (QWebKitTest::contentsScale):
2707         * UIProcess/PageViewportController.h:
2708         (WebKit::PageViewportController::minimumScale):
2709         (WebKit::PageViewportController::maximumScale):
2710         (WebKit::PageViewportController::currentScale):
2711         * UIProcess/qt/PageViewportControllerClientQt.cpp:
2712         (WebKit::PageViewportControllerClientQt::zoomToAreaGestureEnded):
2713
2714 2013-01-10  Michael Pruett  <michael@68k.org>
2715
2716         [WK2] Set IndexedDB database path in WK2
2717         https://bugs.webkit.org/show_bug.cgi?id=106257
2718
2719         Reviewed by Benjamin Poulain.
2720
2721         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp:
2722         (WebKit::WebKeyValueStorageManager::initialize):
2723         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.h:
2724         (WebKeyValueStorageManager):
2725         (WebKit::WebKeyValueStorageManager::indexedDBDatabaseDirectory):
2726         * WebProcess/WebPage/WebPageGroupProxy.cpp:
2727         (WebKit::WebPageGroupProxy::WebPageGroupProxy):
2728
2729 2013-01-10  Tim Horton  <timothy_horton@apple.com>
2730
2731         Ensure that WebPageProxy's notion of pageScaleFactor is reset on didCommitLoad
2732         https://bugs.webkit.org/show_bug.cgi?id=103290
2733         <rdar://problem/12752467>
2734
2735         Reviewed by Darin Adler.
2736
2737         When a standard main frame load is committed, we reset the WebPage's
2738         pageScaleFactor, if it's not the default. However, if the previous
2739         page had a full-main-frame plugin that was handling page scaling itself,
2740         WebPageProxy can have a cached pageScaleFactor != 1, while WebPage
2741         now (since the plugin that was overriding (set)pageScaleFactor is gone)
2742         has a pageScaleFactor of 1, causing us to skip the call to reset the
2743         WebPage's pageScaleFactor.
2744
2745         Therefore, when WebPageProxy is notified that a standard main-frame load
2746         is committed, reset its cached notion of the pageScaleFactor.
2747
2748         * UIProcess/WebPageProxy.cpp:
2749         (WebKit::WebPageProxy::didCommitLoadForFrame): Add a parameter which corresponds to FrameLoadType, so we can
2750         determine whether a frame load is of FrameLoadTypeStandard (which matches the check to reset page scale in
2751         WebFrameLoaderClient::didCommitLoad), so we can reset m_pageScaleFactor.
2752         * UIProcess/WebPageProxy.h:
2753         (WebPageProxy): Add frameLoadType parameter to didCommitLoadForFrame.
2754         * UIProcess/WebPageProxy.messages.in: Add frameLoadType parameter to didCommitLoadForFrame.
2755         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2756         (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad): Pass frameLoadType parameter to didCommitLoadForFrame.
2757
2758 2013-01-10  Tim Horton  <timothy_horton@apple.com>
2759
2760         PDFPlugin: Cmd-/+ should affect PDF page scale
2761         https://bugs.webkit.org/show_bug.cgi?id=103285
2762         <rdar://problem/12710469>
2763
2764         Reviewed by Darin Adler.
2765
2766         Plugins which support handling page scale themselves should also handle
2767         page zoom, as it is a very similar concept.
2768
2769         This patch disables text zoom in the case of a main-frame plugin which supports
2770         page scale factor changes, as it is not needed in the PDFPlugin case
2771         (we can't do text-only scale for PDF), but it could be added later if needed.
2772
2773         * UIProcess/WebPageProxy.cpp:
2774         (WebKit::WebPageProxy::pageZoomFactorDidChange):
2775         * UIProcess/WebPageProxy.h:
2776         (WebPageProxy):
2777         * UIProcess/WebPageProxy.messages.in:
2778         Add WebPageProxy::pageZoomFactorDidChange, to notify WebPageProxy of
2779         out-of-band page zoom factor changes (in this case, from PluginView).
2780
2781         * WebProcess/Plugins/PluginView.cpp:
2782         (WebKit::PluginView::setPageScaleFactor):
2783         Update WebPageProxy's notion of the current page zoom whenever PluginView
2784         is notified of a page scale factor change.
2785
2786         * WebProcess/WebPage/WebPage.cpp:
2787         (WebKit::WebPage::setTextZoomFactor): We don't support text zoom in plugins, but
2788         we also don't want it to silently act on the Frame if we have a plugin that
2789         purports to handle page scale itself. Return early if this is the case.
2790         (WebKit::WebPage::pageZoomFactor): For plugins that support page scale factor,
2791         we equate page scale and page zoom. Return the PluginView's page scale factor
2792         in place of the Frame's page zoom factor.
2793         (WebKit::WebPage::setPageZoomFactor): Make page zoom changes in the aforementioned
2794         case affect the PluginView's page scale.
2795         (WebKit::WebPage::setPageAndTextZoomFactors): Ditto.
2796
2797 2013-01-10  Tim Horton  <timothy_horton@apple.com>
2798
2799         PDFPlugin: Header cleanup
2800         https://bugs.webkit.org/show_bug.cgi?id=106540
2801
2802         Reviewed by Andreas Kling.
2803
2804         * WebProcess/Plugins/PDF/PDFPlugin.mm: Remove some unneeded headers.
2805
2806 2013-01-10  Zan Dobersek  <zandobersek@gmail.com>
2807
2808         Remove the ENABLE_ANIMATION_API feature define occurences
2809         https://bugs.webkit.org/show_bug.cgi?id=106544
2810
2811         Reviewed by Simon Fraser.
2812
2813         The Animation API code was removed in r137243. The ENABLE_ANIMATION_API
2814         feature define handling still lingers in various build systems and configurations
2815         but is of no use, so it should be removed.
2816
2817         * Configurations/FeatureDefines.xcconfig:
2818
2819 2013-01-10  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2820
2821         [EFL][WK2] Contents gets blurry when page is scrolled down
2822         https://bugs.webkit.org/show_bug.cgi?id=106545
2823
2824         Reviewed by Kenneth Rohde Christiansen.
2825
2826         The bound values for scrolling also should be pixel aligned, otherwise
2827         it leads to page contents blurriness when the page is scrolled down.
2828
2829         * UIProcess/PageViewportController.cpp:
2830         (WebKit::PageViewportController::pageDidRequestScroll):
2831
2832 2013-01-10  Carlos Garcia Campos  <cgarcia@igalia.com>
2833
2834         [GTK] Add support for loading web process extensions
2835         https://bugs.webkit.org/show_bug.cgi?id=105631
2836
2837         Reviewed by Gustavo Noronha Silva.
2838
2839         * GNUmakefile.am: Link to libWebCoreDOM.la and build injected
2840         bundle lib.
2841         * GNUmakefile.list.am: Add new files to compilation.
2842         * UIProcess/API/gtk/WebKitWebContext.cpp:
2843         (injectedBundleDirectory): Helper funtion to get the injected
2844         bundle directory.
2845         (injectedBundleFilename): Helper funtion to get the injected undle
2846         library full path.
2847         (createDefaultWebContext): Create the WebContext with an injected
2848         bundle path.
2849         * UIProcess/API/gtk/WebKitWebView.cpp:
2850         (webkit_web_view_get_page_id): Return the identifier of the web
2851         page associated to the web view.
2852         * UIProcess/API/gtk/WebKitWebView.h:
2853         * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml: Add new chapter for
2854         web extensions.
2855         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbols.
2856         * UIProcess/API/gtk/docs/webkit2gtk.types: Add new types.
2857         * UIProcess/API/gtk/tests/GNUmakefile.am: Add new files to compilation.
2858         * UIProcess/API/gtk/tests/TestMain.cpp:
2859         (main):
2860         * UIProcess/API/gtk/tests/TestWebExtensions.cpp: Added.
2861         (testWebExtension):
2862         (beforeAll):
2863         (afterAll):
2864         * UIProcess/API/gtk/tests/WebExtensionTest.cpp: Added.
2865         (methodCallCallback):
2866         (webkit_web_extension_initialize):
2867         * UIProcess/API/gtk/tests/WebKitTestBus.cpp: Added.
2868         (WebKitTestBus::WebKitTestBus):
2869         (WebKitTestBus::run):
2870         (WebKitTestBus::~WebKitTestBus):
2871         (WebKitTestBus::connection):
2872         (onNameAppeared):
2873         (WebKitTestBus::createProxy):
2874         * UIProcess/API/gtk/tests/WebKitTestBus.h: Added.
2875         (WebKitTestBus):
2876         * WebProcess/InjectedBundle/API/gtk/WebKitWebExtension.cpp: Added.
2877         (_WebKitWebExtensionPrivate):
2878         (webkitWebExtensionPageCreated): Create a WebKitWebPage for the
2879         newly crated page and emit WebKitWebExtension::page-created
2880         signals.
2881         (webkitWebExtensionPageDestroy): Remove the page from the map.
2882         (didCreatePage): Call webkitWebExtensionPageCreated().
2883         (willDestroyPage): Call webkitWebExtensionPageDestroy().
2884         (webkitWebExtensionCreate): Create a new WebKitWebExtension and
2885         initialize the injected bundle client.
2886         (webkit_web_extension_get_page): Return the WebKitWebPage for the
2887         given page identifier.
2888         * WebProcess/InjectedBundle/API/gtk/WebKitWebExtension.h: Added.
2889         (_WebKitWebExtension):
2890         (_WebKitWebExtensionClass):
2891         * WebProcess/InjectedBundle/API/gtk/WebKitWebExtensionDefines.h: Added.
2892         * WebProcess/InjectedBundle/API/gtk/WebKitWebExtensionPrivate.h: Added.
2893         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp: Added.
2894         (_WebKitWebPagePrivate):
2895         (webkit_web_page_class_init):
2896         (webkitWebPageCreate): Create a new WebKitWebPage.
2897         (webkit_web_page_get_dom_document): Return the WebKitDOMDocument
2898         loaded in the WebKitWebPage.
2899         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.h: Added.
2900         (_WebKitWebPage):
2901         (_WebKitWebPageClass):
2902         * WebProcess/InjectedBundle/API/gtk/WebKitWebPagePrivate.h: Added.
2903         * WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h: Added.
2904         * WebProcess/gtk/WebGtkExtensionManager.cpp: Added.
2905         (WebKit::WebGtkExtensionManager::shared): Return the global shared
2906         instance.
2907         (WebKit::WebGtkExtensionManager::WebGtkExtensionManager):
2908         (WebKit::WebGtkExtensionManager::appendModuleDirectories): Add
2909         directories to scan for modules.
2910         (WebKit::WebGtkExtensionManager::scanModules): Scan for modules.
2911         (WebKit::WebGtkExtensionManager::initialize): Load and initialize
2912         the modules found.
2913         * WebProcess/gtk/WebGtkExtensionManager.h: Added.
2914         * WebProcess/gtk/WebGtkInjectedBundleMain.cpp: Added.
2915         (WKBundleInitialize): Initialize WebGtkExtensionManager.
2916
2917 2013-01-10  Huang Dongsung  <luxtella@company100.net>
2918
2919         REGRESSION(r139189): pixel alignment must be performed in device units.
2920         https://bugs.webkit.org/show_bug.cgi?id=106504
2921
2922         Reviewed by Kenneth Rohde Christiansen.
2923
2924         After r139189, pixel alignment is performed in UI units. If deviceScaleFactor is
2925         fractional number, adjusted scroll position can blur non-composited layer.
2926
2927         * UIProcess/PageViewportController.cpp:
2928         (WebKit::PageViewportController::pixelAlignedFloatPoint):
2929
2930 2013-01-10  Arnaud Renevier  <a.renevier@sisa.samsung.com>
2931
2932         [WK2] [Gtk] web inspector is not visible.
2933         https://bugs.webkit.org/show_bug.cgi?id=106050
2934
2935         Reviewed by Carlos Garcia Campos.
2936
2937         Use webkitWebViewBaseAddWebInspector when adding web inspector to
2938         webview in order to make webview aware of its existence.
2939
2940         Use gtk_container_add when adding web inspector wiew to its own window
2941         because m_inspectorWindow is not a WebKitWebViewBase.
2942
2943         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
2944         (WebKit::WebInspectorProxy::createInspectorWindow):
2945         (WebKit::WebInspectorProxy::platformAttach):
2946
2947 2013-01-09  Seokju Kwon  <seokju.kwon@gmail.com>
2948
2949         [WK2][EFL] Add guard around NativeWebTouchEvent
2950         https://bugs.webkit.org/show_bug.cgi?id=105846
2951
2952         Reviewed by Benjamin Poulain.
2953
2954         Fix EFL build without TOUCH_EVENTS.
2955
2956         * Shared/efl/NativeWebTouchEventEfl.cpp: Add TOUCH_EVENTS guard.
2957
2958 2013-01-09  Huang Dongsung  <luxtella@company100.net>
2959
2960         Remove deviceScaleFactor argument in computeMinimumScaleFactorForContentContained().
2961         https://bugs.webkit.org/show_bug.cgi?id=106500
2962
2963         Reviewed by Kenneth Rohde Christiansen.
2964
2965         deviceScaleFactor argument is not used after r139189.
2966
2967         * UIProcess/PageViewportController.cpp:
2968         (WebKit::PageViewportController::updateMinimumScaleToFit):
2969
2970 2013-01-09  Huang Dongsung  <luxtella@company100.net>
2971
2972         [QT][EFL][WK2] Rename scale members in PageViewportController.
2973         https://bugs.webkit.org/show_bug.cgi?id=106499
2974
2975         Reviewed by Kenneth Rohde Christiansen.
2976
2977         Rename from m_contentsScale to m_pageScaleFactor and from devicePixelRatio() to
2978         deviceScaleFactor() to match terms of WebCore.
2979
2980         * UIProcess/API/qt/qwebkittest.cpp:
2981         (QWebKitTest::devicePixelRatio):
2982         * UIProcess/PageViewportController.cpp:
2983         (WebKit::PageViewportController::PageViewportController):
2984         (WebKit::PageViewportController::deviceScaleFactor):
2985         (WebKit::PageViewportController::pixelAlignedFloatPoint):
2986         (WebKit::PageViewportController::boundContentsPosition):
2987         (WebKit::PageViewportController::didRenderFrame):
2988         (WebKit::PageViewportController::didChangeContentsVisibility):
2989         (WebKit::PageViewportController::syncVisibleContents):
2990         (WebKit::PageViewportController::visibleContentsSize):
2991         (WebKit::PageViewportController::applyScaleAfterRenderingContents):
2992         (WebKit::PageViewportController::updateMinimumScaleToFit):
2993         * UIProcess/PageViewportController.h:
2994         (PageViewportController):
2995         (WebKit::PageViewportController::currentContentsScale):
2996         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
2997         (WebKit::PageViewportControllerClientEfl::updateViewportSize):
2998
2999 2013-01-09  KyungTae Kim  <ktf.kim@samsung.com>
3000
3001         [WK2][soup] Get rid of LocalTerminationDisabler
3002         https://bugs.webkit.org/show_bug.cgi?id=106510
3003
3004         Unreviewed build fix.
3005
3006         With r139257(bug 106501), the LocalTerminationDisabler was removed from WebKit::ChildProcess.
3007         So, it should be removed on setCookiePersistentStorage, too.
3008
3009         * WebProcess/Cookies/soup/WebCookieManagerSoup.cpp:
3010         (WebKit::WebCookieManager::setCookiePersistentStorage):
3011
3012 2013-01-09  Alexey Proskuryakov  <ap@apple.com>
3013
3014         [WK2] Get rid of LocalTerminationDisabler
3015         https://bugs.webkit.org/show_bug.cgi?id=106501
3016
3017         Reviewed by Anders Carlsson.
3018
3019         LocalTerminationDisabler is no-op - termination timer can't fire inside its scope
3020         even if not stopped.
3021
3022         * PluginProcess/PluginProcess.cpp:
3023         (WebKit::PluginProcess::getSitesWithData):
3024         (WebKit::PluginProcess::clearSiteData):
3025         * Shared/ChildProcess.h:
3026         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
3027         (WebKit::WebApplicationCacheManager::getApplicationCacheOrigins):
3028         (WebKit::WebApplicationCacheManager::deleteEntriesForOrigin):
3029         (WebKit::WebApplicationCacheManager::deleteAllEntries):
3030         (WebKit::WebApplicationCacheManager::setAppCacheMaximumSize):
3031         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp:
3032         (WebKit::WebKeyValueStorageManager::getKeyValueStorageOrigins):
3033         (WebKit::WebKeyValueStorageManager::deleteEntriesForOrigin):
3034         (WebKit::WebKeyValueStorageManager::deleteAllEntries):
3035         * WebProcess/MediaCache/WebMediaCacheManager.cpp:
3036         (WebKit::WebMediaCacheManager::getHostnamesWithMediaCache):
3037         (WebKit::WebMediaCacheManager::clearCacheForHostname):
3038         (WebKit::WebMediaCacheManager::clearCacheForAllHostnames):
3039         * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
3040         (WebKit::WebResourceCacheManager::getCacheOrigins):
3041         (WebKit::WebResourceCacheManager::clearCacheForOrigin):
3042         (WebKit::WebResourceCacheManager::clearCacheForAllOrigins):
3043         * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
3044         (WebKit::WebDatabaseManager::getDatabasesByOrigin):
3045         (WebKit::WebDatabaseManager::getDatabaseOrigins):
3046         (WebKit::WebDatabaseManager::deleteDatabaseWithNameForOrigin):
3047         (WebKit::WebDatabaseManager::deleteDatabasesForOrigin):
3048         (WebKit::WebDatabaseManager::deleteAllDatabases):
3049         (WebKit::WebDatabaseManager::setQuotaForOrigin):
3050         * WebProcess/WebProcess.cpp:
3051         (WebKit::WebProcess::getSitesWithPluginData):
3052         (WebKit::WebProcess::clearPluginSiteData):
3053
3054 2013-01-09  Kiran Muppala  <cmuppala@apple.com>
3055
3056         Add user defaults to override system proxy settings for NetworkProcess on Mac
3057         https://bugs.webkit.org/show_bug.cgi?id=104197
3058
3059         Reviewed by Brady Eidson.
3060
3061         For internal testing and debugging, it is useful to have a defaults write to set the HTTP and HTTPS proxy specific to a
3062         WebKit2 client application and not affect the system proxy settings on Mac.
3063
3064         * NetworkProcess/mac/NetworkProcessMac.mm:
3065         (WebKit::overrideSystemProxies): Add helper method to parse proxy URLs and populate settings dictionary passed
3066         to WKCFNetworkSetOverrideSystemProxySettings.
3067         (WebKit::NetworkProcess::platformInitializeNetworkProcess): Call overrideSystemProxies if process creation parameters for
3068         http proxy or https proxy is set.
3069         * Shared/Network/NetworkProcessCreationParameters.cpp: Add httpProxy and httpsProxy process creation parameters on Mac.
3070         (WebKit::NetworkProcessCreationParameters::encode):
3071         (WebKit::NetworkProcessCreationParameters::decode):
3072         * Shared/Network/NetworkProcessCreationParameters.h:
3073         * UIProcess/mac/WebContextMac.mm:
3074         (WebKit::WebContext::platformInitializeNetworkProcess): Initialize httpProxy and httpsProxy process creation parameters
3075         based on the value of WebKit2HTTPProxyDefaultsKey and WebKit2HTTPSProxyDefaultsKey user default respectively.
3076
3077 2013-01-09  Alexey Proskuryakov  <ap@apple.com>
3078
3079         Local builds of NetworkProcess should have a process icon
3080         https://bugs.webkit.org/show_bug.cgi?id=106489
3081
3082         Reviewed by Mark Rowe.
3083
3084         * Resources/WebKit.icns: Copied from Source/WebKit2/WebProcess/mac/WebKit.icns.
3085         * WebProcess/mac/WebKit.icns: Removed.
3086         Copied to a shared location. We don't have different icons, so just using WebKit one.
3087
3088         * Configurations/NetworkProcess.xcconfig:
3089         * NetworkProcess/Info.plist:
3090         * WebKit2.xcodeproj/project.pbxproj:
3091         Same changes as for WebProcess.
3092
3093 2013-01-09  Andras Becsi  <andras.becsi@digia.com>
3094
3095         [Qt][WK2] Fix a typo in in the double-tap-to-zoom logic
3096
3097         Rubber-stamped by Csaba Osztrogonác.
3098
3099         The qMin for the upper boundary of the scale was accidentally
3100         changed to qMax in r139189, change it back to fix the Qt API tests.
3101
3102         * UIProcess/qt/PageViewportControllerClientQt.cpp:
3103         (WebKit::PageViewportControllerClientQt::zoomToAreaGestureEnded):
3104
3105 2013-01-09  Andras Becsi  <andras.becsi@digia.com>
3106
3107         [Qt][EFL][WK2] Remove redundant device pixel ratio adjustment from PageViewportController
3108         https://bugs.webkit.org/show_bug.cgi?id=106355
3109
3110         Reviewed by Kenneth Rohde Christiansen.
3111
3112         Since r137597 Qt uses the device pixel ratio of the underlying
3113         platform window as the device pixel ratio in WebCore.
3114         The tiles are rendered with the effective scale (scale adjusted with
3115         the device scale factor) and the projection matrix is also adjusted
3116         with the device pixel ratio when painting.
3117         As a result we can follow the same approach as QtQuick and all the
3118         coordinates in PageViewportController need to be in device independent
3119         pixels (UI pixels) thus we do no longer need to adjust with the device
3120         pixel ratio when calculating the viewport attributes.
3121         This simplifies the logic significantly and increases robustness,
3122         but does not allow to set a custom device pixel ratio different from
3123         the factor of the underlying platform (eg. for testing purposes).
3124         This patch is conceptually a follow-up of r137597 and fixes layout
3125         and canvas size on retina display.
3126
3127         * UIProcess/PageViewportController.cpp:
3128         (WebKit::PageViewportController::PageViewportController):
3129         (WebKit::PageViewportController::innerBoundedViewportScale):
3130         (WebKit::PageViewportController::outerBoundedViewportScale):
3131         (WebKit::PageViewportController::pixelAlignedFloatPoint):
3132         (WebKit::PageViewportController::boundContentsPosition):
3133         (WebKit::PageViewportController::didRenderFrame):
3134         (WebKit::PageViewportController::pageTransitionViewportReady):
3135         (WebKit::PageViewportController::didChangeContentsVisibility):
3136         (WebKit::PageViewportController::syncVisibleContents):
3137         (WebKit::PageViewportController::visibleContentsSize):
3138         (WebKit::PageViewportController::applyScaleAfterRenderingContents):
3139         (WebKit::PageViewportController::updateMinimumScaleToFit):
3140         * UIProcess/PageViewportController.h:
3141         (WebKit::PageViewportController::currentContentsScale):
3142         (PageViewportController):
3143         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
3144         (WebKit::PageViewportControllerClientEfl::updateViewportSize):
3145         Adjust the viewport size with the device pixel ratio to keep previous
3146         behaviour.
3147         * UIProcess/qt/PageViewportControllerClientQt.cpp:
3148         (WebKit::PageViewportControllerClientQt::focusEditableArea):
3149         (WebKit::PageViewportControllerClientQt::zoomToAreaGestureEnded):
3150         * UIProcess/qt/QtWebPageSGNode.cpp:
3151         (WebKit::ContentsSGNode::clipRect):
3152         * WebProcess/WebPage/WebPage.cpp:
3153         (WebKit::WebPage::sendViewportAttributesChanged):
3154
3155 2013-01-09  Carlos Garcia Campos  <cgarcia@igalia.com>
3156
3157         Unreviewed. Fix make distcheck.
3158
3159         * GNUmakefile.list.am: Add missing headers.
3160
3161 2013-01-08  Sam Weinig  <sam@webkit.org>
3162
3163         Add Owners file.
3164
3165         * Owners: Added.
3166
3167 2013-01-08  Anders Carlsson  <andersca@apple.com>
3168
3169         Unbreak the world.
3170
3171         * WebProcess/com.apple.WebProcess.sb.in:
3172
3173 2013-01-08  Anders Carlsson  <andersca@apple.com>
3174
3175         Silence a sandbox violation
3176         https://bugs.webkit.org/show_bug.cgi?id=106386
3177         <rdar://problem/12976435>
3178
3179         Reviewed by Andreas Kling.
3180
3181         * WebProcess/com.apple.WebProcess.sb.in:
3182
3183 2013-01-08  Sam Weinig  <sam@webkit.org>
3184
3185         This should be camel case. Must remove to fix.
3186
3187         * OWNERS: Removed.
3188
3189 2013-01-08  Alexey Proskuryakov  <ap@apple.com>
3190
3191         <rdar://problem/12944813> Network process temporary and cache directories are not set correctly
3192
3193         Reviewed by Sam Weinig.
3194
3195         Set DIRHELPER_USER_DIR_SUFFIX, like we do for WebProcess. Also while in this function,
3196         enabled sandbox-style file quarantine.
3197
3198         * NetworkProcess/mac/NetworkProcessMac.mm:
3199         (WebKit::NetworkProcess::initializeSandbox):
3200
3201 2013-01-08  Anders Carlsson  <andersca@apple.com>
3202
3203         Use correct capitalization in service name
3204         https://bugs.webkit.org/show_bug.cgi?id=106368
3205
3206         Reviewed by Andreas Kling.
3207
3208         * WebProcess/com.apple.WebProcess.sb.in:
3209
3210 2013-01-08  Anders Carlsson  <andersca@apple.com>
3211
3212         Tweak sandbox profile
3213         https://bugs.webkit.org/show_bug.cgi?id=106362
3214         <rdar://problem/12884745>
3215
3216         Reviewed by Sam Weinig.
3217
3218         * WebProcess/com.apple.WebProcess.sb.in:
3219         Allow access to com.apple.CoreServices.launchservicesd.
3220
3221 2013-01-08  Sam Weinig  <sam@webkit.org>
3222
3223         Add OWNERS file.
3224
3225         * OWNERS: Added.
3226
3227 2013-01-08  Mark Lam  <mark.lam@apple.com>
3228
3229         Removed the need for the ProposedDatabase mechanism.
3230         https://bugs.webkit.org/show_bug.cgi?id=106292.
3231
3232         Reviewed by Sam Weinig.
3233
3234         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3235         (WebKit::WebChromeClient::exceededDatabaseQuota):
3236         * WebProcess/WebCoreSupport/WebChromeClient.h:
3237         (WebChromeClient):
3238
3239 2013-01-08  Sam Weinig  <sam@webkit.org>
3240
3241         Remove dead Connection members in ChildProcess subclasses (and their users)
3242         https://bugs.webkit.org/show_bug.cgi?id=106347
3243         <rdar://problem/12973955>
3244
3245         Reviewed by Alexey Proskuryakov.
3246
3247         This also fixes a crash when entering fullscreen with a plug-in.
3248
3249         * PluginProcess/PluginProcess.h:
3250         Remove dead m_connection member.
3251
3252         * PluginProcess/mac/PluginProcessMac.mm:
3253         (WebKit::PluginProcess::setModalWindowIsShowing):
3254         (WebKit::PluginProcess::setFullscreenWindowIsShowing):
3255         Replace use of m_connection, which is dead, with parentProcessConnection().
3256
3257         * SharedWorkerProcess/SharedWorkerProcess.h:
3258         (SharedWorkerProcess):
3259         Remove dead m_connection member.
3260
3261         * SharedWorkerProcess/SharedWorkerProcess.cpp:
3262         (WebKit::SharedWorkerProcess::createWebProcessConnection):
3263         Replace use of m_connection, which is dead, with parentProcessConnection().
3264
3265 2013-01-07  Alexey Proskuryakov  <ap@apple.com>
3266
3267         [WK2] NetworkProcess should have a Keychain shim
3268         https://bugs.webkit.org/show_bug.cgi?id=106286
3269
3270         Reviewed by Sam Weinig.
3271
3272         Renamed WebProcessShim to SecItemShim. Use it with NetworkProcess, too.
3273
3274         * WebProcess/mac/SecItemShimLibrary.h: Copied from Source/WebKit2/WebProcess/mac/WebProcessShim.h.
3275         * WebProcess/mac/SecItemShimLibrary.mm: Copied from Source/WebKit2/WebProcess/mac/WebProcessShim.mm.
3276         This code lives in SecItemShim.dylib.
3277         "Library" in the name is to avoid conflicting with SecItemShim class in WebKit2.
3278
3279         * Shared/mac/SecItemShim.cpp:
3280         (WebKit::sendSecItemRequest):
3281         (WebKit::SecItemShim::initialize):
3282         * Shared/mac/SecItemShim.h:
3283         Take a ChildProcess pointer at initialization instead of using using WebProcess::shared().
3284
3285         * UIProcess/Launcher/mac/ProcessLauncherMac.mm: (WebKit::addDYLDEnvironmentAdditions):
3286         Use SecItemShim with NetworkProcess too.
3287
3288         * NetworkProcess/NetworkProcess.cpp:
3289         (WebKit::NetworkProcess::initializeConnection):
3290         * NetworkProcess/NetworkProcess.h:
3291         * NetworkProcess/mac/NetworkProcessMac.mm:
3292         (WebKit::NetworkProcess::platformInitializeNetworkProcess):
3293         * UIProcess/Network/NetworkProcessProxy.cpp:
3294         (WebKit::NetworkProcessProxy::didFinishLaunching):
3295         * WebKit2.xcodeproj/project.pbxproj:
3296         * WebProcess/WebProcess.cpp:
3297         (WebKit::WebProcess::initializeConnection):
3298         * WebProcess/mac/WebProcessMac.mm:
3299         (WebKit::WebProcess::platformInitializeProcess):
3300         * WebProcess/mac/WebProcessMainMac.mm:
3301         (WebKit::WebProcessMainDelegate::doPreInitializationWork):
3302         * WebProcess/mac/WebProcessServiceEntryPoints.mm:
3303         (webProcessServiceMain):
3304         (initializeWebProcessForWebProcessServiceForWebKitDevelopment):
3305         * WebProcess/mac/WebProcessShim.h: Removed.
3306         * WebProcess/mac/WebProcessShim.mm: Removed.
3307         * WebProcessService/Info.plist:
3308
3309 2013-01-08  Kihong Kwon  <kihong.kwon@samsung.com>
3310
3311         Add DeviceProximityController to support Device Proximity Events.
3312         https://bugs.webkit.org/show_bug.cgi?id=97630
3313
3314         Reviewed by Hajime Morita.
3315
3316         Add initial WebDeviceProximityClient class which is inherited DeviceProximityClient.
3317         But startUpdating and stopUpdating need to be implemented.
3318
3319         * CMakeLists.txt:
3320         * WebProcess/WebCoreSupport/WebDeviceProximityClient.cpp: Added.
3321         (WebKit):
3322         (WebKit::WebDeviceProximityClient::WebDeviceProximityClient):
3323         (WebKit::WebDeviceProximityClient::startUpdating):
3324         (WebKit::WebDeviceProximityClient::stopUpdating):
3325         (WebKit::WebDeviceProximityClient::hasLastData):
3326         * WebProcess/WebCoreSupport/WebDeviceProximityClient.h: Added.
3327         (WebKit):
3328         (WebDeviceProximityClient):
3329         (WebKit::WebDeviceProximityClient::~WebDeviceProximityClient):
3330         * WebProcess/WebPage/WebPage.cpp:
3331         (WebKit::WebPage::WebPage):
3332
3333 2013-01-03  Sergio Villar Senin  <svillar@igalia.com>
3334
3335         [GTK] Add WebP image support
3336         https://bugs.webkit.org/show_bug.cgi?id=105915
3337
3338         Reviewed by Martin Robinson.
3339
3340         * GNUmakefile.am: link against WebP library.
3341
3342 2013-01-08  Csaba Osztrogonác  <ossy@webkit.org>
3343
3344         [Qt][Win] Unreviewed buildfix, partially revert
3345         r139003, because Qt port still uses these files.
3346
3347         * Platform/CoreIPC/win/BinarySemaphoreWin.cpp: Added.
3348         * Platform/CoreIPC/win/ConnectionWin.cpp: Added.
3349         * Platform/win/SharedMemoryWin.cpp: Added.
3350         * Platform/win/WorkQueueWin.cpp: Added.
3351
3352 2013-01-07  Christophe Dumez  <christophe.dumez@intel.com>
3353
3354         [CoordinatedGraphics] compositing/repaint/resize-repaint.html is failing
3355         https://bugs.webkit.org/show_bug.cgi?id=104637
3356
3357         Reviewed by Noam Rosenthal.
3358
3359         r137526 attempted to fix excessive repainting when compositing layers
3360         change size. However, the fix did not suffice for ports using Coordinated
3361         Graphics because CoordinatedGraphicsLayer::setSize() was calling
3362         setNeedsDisplay() causing a full repaint.
3363
3364         This patch removes the call to setNeedsDisplay() in
3365         CoordinatedGraphicsLayer::setSize() so that we don't unconditionally
3366         repaint CoordinatedGraphics layers when their size changes.
3367
3368         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
3369         (WebCore::CoordinatedGraphicsLayer::setSize):
3370
3371 2013-01-07  Christophe Dumez  <christophe.dumez@intel.com>
3372
3373         [CoordinatedGraphics] Support invalidation tracking for CoordinatedGraphicsLayer
3374         https://bugs.webkit.org/show_bug.cgi?id=106002
3375
3376         Reviewed by Noam Rosenthal.
3377
3378         Add calls to addRepaintRect() to CoordinatedGraphicsLayer so that
3379         we can track invalidation in the composited layer.
3380
3381         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
3382         (WebCore::CoordinatedGraphicsLayer::setContentsNeedsDisplay):
3383         (WebCore::CoordinatedGraphicsLayer::setNeedsDisplay): Pass a FloatRect instead
3384         of an IntRect to setNeedsDisplayInRect() since it is what it expects.
3385         (WebCore::CoordinatedGraphicsLayer::setNeedsDisplayInRect):
3386
3387 2013-01-07  Anders Carlsson  <andersca@apple.com>
3388
3389         Remove PLATFORM(WIN) #ifdefs
3390         https://bugs.webkit.org/show_bug.cgi?id=106279
3391
3392         Reviewed by Sam Weinig.
3393
3394         * Platform/CoreIPC/BinarySemaphore.cpp:
3395         * Platform/CoreIPC/Connection.cpp:
3396         (CoreIPC::Connection::waitForSyncReply):
3397         * Platform/CoreIPC/Connection.h:
3398         (Client):
3399         * Platform/Module.cpp:
3400         (WebKit::Module::Module):
3401         * Platform/Module.h:
3402         (Module):
3403         * Platform/PlatformProcessIdentifier.h:
3404         (WebKit):
3405         * Shared/CommandLine.h:
3406         (CommandLine):
3407         * Shared/FontSmoothingLevel.h:
3408         * Shared/LayerTreeContext.h:
3409         (LayerTreeContext):
3410         * Shared/NativeWebKeyboardEvent.h:
3411         (NativeWebKeyboardEvent):
3412         * Shared/NativeWebMouseEvent.h:
3413         (NativeWebMouseEvent):
3414         * Shared/NativeWebWheelEvent.h:
3415         (NativeWebWheelEvent):
3416         * Shared/PlatformPopupMenuData.cpp:
3417         (WebKit::PlatformPopupMenuData::PlatformPopupMenuData):
3418         (WebKit::PlatformPopupMenuData::encode):
3419         (WebKit::PlatformPopupMenuData::decode):
3420         * Shared/PlatformPopupMenuData.h:
3421         (PlatformPopupMenuData):
3422         * Shared/Plugins/PluginModuleInfo.h:
3423         (PluginModuleInfo):
3424         (WebKit::PluginModuleInfo::isolatedCopy):
3425         * Shared/ShareableBitmap.h:
3426         (ShareableBitmap):
3427         * Shared/WebCoreArgumentCoders.h:
3428         * Shared/WebEvent.h:
3429         (WebMouseEvent):
3430         * Shared/WebEventConversion.cpp:
3431         (WebKit::WebKit2PlatformMouseEvent::WebKit2PlatformMouseEvent):
3432         * Shared/WebMouseEvent.cpp:
3433         (WebKit::WebMouseEvent::WebMouseEvent):
3434         (WebKit::WebMouseEvent::encode):
3435         (WebKit::WebMouseEvent::decode):
3436         * Shared/WebPageCreationParameters.cpp:
3437         (WebKit::WebPageCreationParameters::encode):
3438         (WebKit::WebPageCreationParameters::decode):
3439         * Shared/WebPageCreationParameters.h:
3440         (WebPageCreationParameters):
3441         * Shared/WebPreferencesStore.h:
3442         (WebKit):
3443         * Shared/WebProcessCreationParameters.cpp:
3444         (WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
3445         (WebKit::WebProcessCreationParameters::encode):
3446         (WebKit::WebProcessCreationParameters::decode):
3447         * Shared/WebProcessCreationParameters.h:
3448         (WebProcessCreationParameters):
3449         * Shared/WebURLRequest.h:
3450         * Shared/WebURLResponse.h:
3451         * Shared/cg/ShareableBitmapCG.cpp:
3452         (WebKit::ShareableBitmap::makeCGImageCopy):
3453         * UIProcess/API/C/WKAPICast.h:
3454         (WebKit::toFontSmoothingLevel):
3455         (WebKit::toAPI):
3456         * UIProcess/API/C/WKPage.cpp:
3457         * UIProcess/BackingStore.h:
3458         (BackingStore):
3459         * UIProcess/PageClient.h:
3460         (WebKit):
3461         (PageClient):
3462         * UIProcess/WebContext.cpp:
3463         (WebKit::WebContext::WebContext):
3464         * UIProcess/WebContext.h:
3465         (WebContext):
3466         * UIProcess/WebFullScreenManagerProxy.h:
3467         (WebKit):
3468         * UIProcess/