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