Add a didFocusTextField callback to the injected bundle form client
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2013-03-07  Anders Carlsson  <andersca@apple.com>
2
3         Add a didFocusTextField callback to the injected bundle form client
4         https://bugs.webkit.org/show_bug.cgi?id=111771
5
6         Reviewed by Andreas Kling.
7
8         Add a new client callback that's invoked whenever a text input field is focused.
9
10         * Shared/APIClientTraits.cpp:
11         (WebKit):
12         * Shared/APIClientTraits.h:
13         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
14         * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
15         (WebKit::InjectedBundlePageFormClient::didFocusTextField):
16         (WebKit):
17         * WebProcess/InjectedBundle/InjectedBundlePageFormClient.h:
18         (InjectedBundlePageFormClient):
19         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
20         (WebKit::WebChromeClient::focusedNodeChanged):
21
22 2013-03-07  Tim Horton  <timothy_horton@apple.com>
23
24         Null-check the page overlay before trying to use it.
25
26         Reviewed by Simon Fraser.
27
28         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
29         (WebKit::TiledCoreAnimationDrawingArea::scroll):
30
31 2013-03-07  Zan Dobersek  <zdobersek@igalia.com>
32
33         [GTK] Limit the supported compilers to GCC >= 4.7 and Clang >= 3.0
34         https://bugs.webkit.org/show_bug.cgi?id=109932
35
36         Reviewed by Martin Robinson.
37
38         * GNUmakefile.am: Replace references to SYMBOL_VISIBILITY_INLINES and SYMBOL_VISIBILITY variables with the actual flags.
39         They are now available by default due to the limited set of supported compilers.
40
41 2013-03-05  Gustavo Noronha Silva  <gns@gnome.org>
42
43         [GTK] Enable translations for WebKit2
44         https://bugs.webkit.org/show_bug.cgi?id=111398
45
46         Reviewed by Martin Robinson.
47
48         * GNUmakefile.am: define PACKAGE_LOCALE_DIR when building WebProcess's main module.
49         * WebProcess/gtk/WebProcessMainGtk.cpp:
50         (WebKit::WebProcessMainGtk): register the i18n domain name, and prefer UTF-8, since
51         we're GTK+; at the moment we're just using the same name as WebKitGTK+, pro: the
52         translation module can be reused, con: you can't have different versions of
53         WebKitGTK+ and WebKit2GTK+ installed, because the module would not be fit for reuse
54         in that case.
55         * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
56         (WebKit::childSetupFunction): do not set LC_ALL environment variable explicitly,
57         the child process will already inherit the environment of the parent, which should
58         have all the variables set properly.
59
60 2013-03-06  Alexey Proskuryakov  <ap@apple.com>
61
62         SandboxExtension::createHandle raises an uncaught Objective-C exception if path is empty
63         https://bugs.webkit.org/show_bug.cgi?id=111689
64
65         Reviewed by Filip Pizlo.
66
67         * Shared/mac/SandboxExtensionMac.mm: (WebKit::SandboxExtension::createHandle):
68         Use a function from WebCore platform layer instead of Foundation one equivalent.
69         We already do this elsewhere in this file.
70
71 2013-03-06  Tim Horton  <timothy_horton@apple.com>
72
73         [wk2] Page overlays shouldn't dirty the entire layer when flushing if the main frame can't scroll
74         https://bugs.webkit.org/show_bug.cgi?id=111662
75         <rdar://problem/13355808>
76
77         Reviewed by Simon Fraser.
78
79         Instead of setNeedsDisplay()ing the whole page overlay layer every time through
80         TCADA::flushLayers, do it at scroll time instead. Repainting on scroll is
81         necessary to keep things painted in the right place when we scroll (the overlay
82         is fixed to the size of the view), but is quite wasteful in apps that don’t scroll.
83
84         This works with threaded scrolling because overlay installation forces us
85         into main-thread scrolling mode.
86
87         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
88         (WebKit::TiledCoreAnimationDrawingArea::scroll):
89         (WebKit::TiledCoreAnimationDrawingArea::flushLayers):
90
91 2013-03-06  Tim Horton  <timothy_horton@apple.com>
92
93         [wk2] Page overlays should use the accelerated drawing setting instead of hardcoding it on
94         https://bugs.webkit.org/show_bug.cgi?id=111654
95         <rdar://problem/13364085>
96
97         Reviewed by Simon Fraser.
98
99         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
100         (WebKit::TiledCoreAnimationDrawingArea::updatePreferences):
101         (WebKit::TiledCoreAnimationDrawingArea::createPageOverlayLayer):
102
103 2013-03-06  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
104
105         [EFL][WK2] Enable interactive form validation for email and url input type validation
106         https://bugs.webkit.org/show_bug.cgi?id=111026
107
108         Reviewed by Laszlo Gombos.
109
110         WebKit EFL can check if input value is valid by enabling this feature.
111
112         * UIProcess/API/efl/EwkView.cpp:
113         (EwkView::EwkView):
114
115 2013-03-06  Alexey Proskuryakov  <ap@apple.com>
116
117         [Mac] Synthetic ResourceResponses cannot be sent over IPC without losing most information
118         https://bugs.webkit.org/show_bug.cgi?id=111623
119
120         Reviewed by Brady Eidson.
121
122         * Shared/WebCoreArgumentCoders.cpp:
123         * Shared/WebCoreArgumentCoders.h:
124         (CoreIPC::::encode): Made the decision on whether to serialize WebCore data in
125         ResourceResponse dynamic. If the platform data is out of date, we need both
126         (because some platforms use encodePlatformData() to pass additional information).
127         (CoreIPC::::decode): Decode platform data first, because this overwrites the ResourceResponse.
128
129         * Shared/mac/WebCoreArgumentCodersMac.mm: (CoreIPC::::encodePlatformData): Don't
130         encode NSURLResponse if it's out of date. We may have a bad NSURLResponse with 0
131         status code given to client, but it was almost certainly the same on sending side.
132         WebCore doesn't mutate real responses - it either keeps them as is, or builds
133         entirely synthetic ones.
134
135 2013-03-04  Jer Noble  <jer.noble@apple.com>
136
137         Default mouse cursor behavior should be auto-hide for full screen video with custom controls
138         https://bugs.webkit.org/show_bug.cgi?id=107601
139
140         Reviewed by Beth Dakin.
141
142         Enable the CURSOR_VISIBILITY feature.
143
144         * Configurations/FeatureDefines.xcconfig:
145
146 2013-03-06  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
147
148         [GTK][WK2] Implement WebInspector::localizedStringsURL() to return the file URL of localizedStrings.js
149         https://bugs.webkit.org/show_bug.cgi?id=111448
150
151         Reviewed by Alexey Proskuryakov.
152
153         Implement WebInspector::localizedStringsURL() method to return the
154         file URL of the localizedStrings.js.
155
156         This prevents printing warnings about "Localized string not found" in
157         the console.
158
159         * WebProcess/WebPage/gtk/WebInspectorGtk.cpp:
160         (WebKit::WebInspector::localizedStringsURL):
161
162 2013-03-06  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
163
164         [EFL][WK2] REGRESSION(r143582): API test EWK2UnitTestBase.ewk_view_contents_size_changed failing
165         https://bugs.webkit.org/show_bug.cgi?id=110608
166
167         Reviewed by Kenneth Rohde Christiansen.
168
169         Test was expecting ContentsSizeChanged signal from ViewClientEfl, but
170         WebView was not calling client callback if useFixedLayout() is true.
171
172         This patch prevent early return if useFixedLayout() is true and call
173         client callback didChangeContentsSize(), which will emit the signal.
174
175         * UIProcess/efl/ViewClientEfl.cpp:
176         (WebKit::ViewClientEfl::didChangeContentsSize):
177         * UIProcess/efl/WebView.cpp:
178         (WebKit::WebView::didChangeContentsSize):
179
180 2013-03-06  Manuel Rego Casasnovas  <rego@igalia.com>
181
182         [WK2][GTK] Fix unit test WebKit2APITests/WebKitWebView/mouse-target
183         https://bugs.webkit.org/show_bug.cgi?id=82866
184
185         Reviewed by Martin Robinson.
186
187         Test was failing because of new media controls needs more space to be
188         painted than just 10x10 pixels. This is similar to r144070.
189
190         * UIProcess/API/gtk/tests/TestWebKitWebView.cpp:
191         (testWebViewMouseTarget): Modified HTML in order to give more space to the media controls.
192
193 2013-03-06  Tim Horton  <timothy_horton@apple.com>
194
195         [wk2] Page Overlays: Hook up the layer border/repaint counter setting to the overlay layer
196         https://bugs.webkit.org/show_bug.cgi?id=111547
197         <rdar://problem/13355801>
198
199         Reviewed by Simon Fraser.
200
201         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
202         (WebKit::TiledCoreAnimationDrawingArea::updatePreferences):
203         (WebKit::TiledCoreAnimationDrawingArea::createPageOverlayLayer):
204         Keep the page overlay layer's debug border and repaint counter settings updated.
205
206 2013-03-06  Geoffrey Garen  <ggaren@apple.com>
207
208         Joing the adoptNS/adoptCF/adoptRef club.
209         https://bugs.webkit.org/show_bug.cgi?id=111467
210
211         Reviewed by Darin Adler.
212
213         Responding to review comments by Darin Adler.
214
215         * NetworkProcess/mac/NetworkProcessMac.mm:
216         (WebKit::NetworkProcess::platformInitializeNetworkProcess):
217         * WebProcess/mac/WebProcessMac.mm:
218         (WebKit::WebProcess::platformInitializeWebProcess): Tighten up this code
219         by reducing extraneous local variables.
220
221 2013-03-05  Alexey Proskuryakov  <ap@apple.com>
222
223         Track sandbox extensions for blobs in NetworkProcess
224         https://bugs.webkit.org/show_bug.cgi?id=111484
225
226         Reviewed by Sam Weinig.
227
228         * WebKit2.xcodeproj/project.pbxproj:
229         * NetworkProcess/FileAPI: Added.
230         * NetworkProcess/FileAPI/NetworkBlobRegistry.cpp: Added.
231         * NetworkProcess/FileAPI/NetworkBlobRegistry.h: Added.
232         Added a registry that wraps normal in-process "BlobRegistryImpl", and also tracks
233         sandbox extensions for blobs. It will also track process connections, so that
234         blobs could be removed when a process crashes.
235
236         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
237         (WebKit::NetworkConnectionToWebProcess::registerBlobURL):
238         (WebKit::NetworkConnectionToWebProcess::registerBlobURLFromURL):
239         (WebKit::NetworkConnectionToWebProcess::unregisterBlobURL):
240         Use NetworkBlobRegistry.
241
242         * NetworkProcess/SchedulableLoader.h:
243         * NetworkProcess/SchedulableLoader.cpp:
244         (WebKit::SchedulableLoader::SchedulableLoader): Add extensions for blobs, both in
245         request URL and in request data.
246         (WebKit::SchedulableLoader::consumeSandboxExtensions): Request may now have multiple
247         extensions.
248         (WebKit::SchedulableLoader::invalidateSandboxExtensions): Ditto.
249
250         * Shared/FileAPI/BlobRegistrationData.cpp: Fixed extension creation - actually
251         store the result.
252
253 2013-03-06  Andras Becsi  <andras.becsi@digia.com>
254
255         [Qt][WK2] Fix the Mac build after r144787
256         https://bugs.webkit.org/show_bug.cgi?id=111569
257
258         Reviewed by Csaba Osztrogonác.
259
260         Use uint_64 explicitly instead of size_t.
261
262         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
263         (CoreIPC::::encode):
264         (CoreIPC::::decode):
265
266 2013-03-05  Kent Tamura  <tkent@chromium.org>
267
268         Rename WebCore/editing/visible_units.* to VisibleUnits.*
269         https://bugs.webkit.org/show_bug.cgi?id=111426
270
271         Reviewed by Alexey Proskuryakov.
272
273         * WebProcess/WebPage/mac/WebPageMac.mm:
274
275 2013-03-06  Zeno Albisser  <zeno@webkit.org>
276
277         DataReference::vector() should be const.
278         https://bugs.webkit.org/show_bug.cgi?id=109928
279
280         Reviewed by Anders Carlsson.
281
282         * Platform/CoreIPC/DataReference.h:
283         (CoreIPC::DataReference::vector):
284
285 2013-03-06  Luiz Agostini  <luiz.agostini@nokia.com>
286
287         Accelerated overflow scrolling for Coordinated Graphics.
288         https://bugs.webkit.org/show_bug.cgi?id=110323
289
290         Reviewed by Noam Rosenthal.
291         Signed off for WebKit2 by Simon Fraser.
292
293         A scroll offset is applied to individual layers on UI process and the
294         web process is notified assynchronously.
295         The new API WKCoordinatedScene may be used to scroll layers in the UI process.
296
297         * CMakeLists.txt:
298
299         Encoding and decoding the new members of CoordinatedGraphicsLayerState.
300
301         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
302         (CoreIPC::::encode):
303         (CoreIPC::::decode):
304
305         Adding acceleratedCompositingForOverflowScrollEnabled to WebPreferencesStore.
306
307         * Shared/WebPreferencesStore.h:
308         * WebProcess/WebPage/WebPage.cpp:
309         (WebKit::WebPage::updatePreferences):
310
311         New API WKCoordinatedScene is used to scroll layers on UI side.
312
313         * UIProcess/API/CoordinatedGraphics/WKCoordinatedScene.cpp:
314         * UIProcess/API/CoordinatedGraphics/WKCoordinatedScene.h:
315         * UIProcess/CoordinatedGraphics/WKCoordinatedSceneAPICast.h:
316
317         A new message is used to send scroll commit messages to web process.
318
319         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
320         (WebKit::CoordinatedLayerTreeHostProxy::commitScrollOffset):
321         (WebKit):
322         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
323         (CoordinatedLayerTreeHostProxy):
324         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
325         (WebKit::CoordinatedLayerTreeHost::~CoordinatedLayerTreeHost):
326         (WebKit::CoordinatedLayerTreeHost::detachLayer):
327         (WebKit::CoordinatedLayerTreeHost::createGraphicsLayer):
328         (WebKit::CoordinatedLayerTreeHost::setVisibleContentsRect):
329         (WebKit::CoordinatedLayerTreeHost::purgeBackingStores):
330         (WebKit::CoordinatedLayerTreeHost::commitScrollOffset):
331         (WebKit):
332         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
333         (CoordinatedLayerTreeHost):
334         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.messages.in:
335
336 2013-03-06  Huang Dongsung  <luxtella@company100.net>
337
338         [EFL][WK2] Convert from device view size to UI view size only in EwkView.
339         https://bugs.webkit.org/show_bug.cgi?id=110197
340
341         Reviewed by Kenneth Rohde Christiansen.
342
343         Signed off for WebKit2 by Benjamin Poulain.
344
345         Device scale factor is a property of the physical display, so only EwkView
346         should deal with converting device view size to UI (a.k.a Density Independent Pixel)
347         view size. It increases readability because we can regard a view size in
348         other classes (e.g. WebView, PageViewportController, WebPage) except for
349         EwkView as UI size.
350
351         * UIProcess/API/efl/EwkView.cpp:
352         (EwkView::setDeviceScaleFactor):
353         (EwkView::setDeviceSize):
354         (EwkView::size):
355         (EwkView::deviceSize):
356         (EwkView::scheduleUpdateDisplay):
357         (EwkView::createGLSurface):
358         (EwkView::handleEvasObjectCalculate):
359         * UIProcess/API/efl/EwkView.h:
360         (EwkView):
361         * UIProcess/efl/WebView.cpp:
362         (WebKit::WebView::paintToCurrentGLContext):
363         (WebKit::WebView::updateViewportSize):
364
365 2013-03-06  Christophe Dumez  <ch.dumez@sisa.samsung.com>
366
367         [EFL][WK2] Use Vector::reserveInitialCapacity() in WebEventFactory::createWebTouchEvent()
368         https://bugs.webkit.org/show_bug.cgi?id=111530
369
370         Reviewed by Benjamin Poulain.
371
372         In WebEventFactory::createWebTouchEvent(), when constructing the vector of touch points,
373         we already know in advance the total number of touch points. Therefore, we should
374         leverage WTF::Vector::reserveInitialCapacity() and WTF::Vector::uncheckedAppend() to save
375         some capacity checks.
376
377         * Shared/efl/WebEventFactory.cpp:
378         (WebKit::WebEventFactory::createWebTouchEvent):
379
380 2013-03-05  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
381
382         [WK2][EFL] Enable asynchronous spell checking by default
383         https://bugs.webkit.org/show_bug.cgi?id=111295
384
385         Reviewed by Benjamin Poulain.
386
387         Asynchronous spell checking feature is disabled by default for wk2 platforms.
388         It means all requests of spell checking are sent synchronously.
389
390         WebKit-EFL implements requestCheckingOfString method which allows
391         to check spelling asynchronously.
392
393         * UIProcess/API/efl/EwkView.cpp:
394         (EwkView::EwkView):
395
396 2013-03-05  Kondapally Kalyan  <kalyan.kondapally@intel.com>
397
398         [EFL] Ensure right format is used in SnapshotImageGL.
399         https://bugs.webkit.org/show_bug.cgi?id=111333
400
401         Reviewed by Benjamin Poulain.
402
403         GL_BGRA format is not standard for glReadPixels with GLES.
404         This patch ensures that GL_RGBA is used in SnapshotImageGL
405         while using GLES.
406
407         * UIProcess/API/efl/SnapshotImageGL.cpp:
408         (getImageSurfaceFromFrameBuffer):
409
410 2013-03-05  Geoffrey Garen  <ggaren@apple.com>
411
412         Each web process truncates the disk cache to zero on launch
413         https://bugs.webkit.org/show_bug.cgi?id=111467
414
415         Reviewed by Darin Adler.
416
417         Let's not do that.
418
419         * WebProcess/mac/WebProcessMac.mm:
420         (WebKit::WebProcess::platformInitializeWebProcess):
421
422 2013-03-05  Anders Carlsson  <andersca@apple.com>
423
424         Reset the values if there is a quota error
425         https://bugs.webkit.org/show_bug.cgi?id=111500
426
427         Reviewed by Beth Dakin.
428
429         * WebProcess/Storage/StorageAreaProxy.cpp:
430         (WebKit::StorageAreaProxy::didSetItem):
431         (WebKit::StorageAreaProxy::resetValues):
432         (WebKit):
433         * WebProcess/Storage/StorageAreaProxy.h:
434         (StorageAreaProxy):
435
436 2013-03-05  Anders Carlsson  <andersca@apple.com>
437
438         Keep track of pending value changes in StorageAreaProxy
439         https://bugs.webkit.org/show_bug.cgi?id=111496
440
441         Reviewed by Beth Dakin.
442
443         Add a HashCountedSet to keep track of the number of pending value
444         changes for a given key. If we get incoming storage events from other
445         processes while we have pending value changes, ignore the events.
446
447         * WebProcess/Storage/StorageAreaProxy.cpp:
448         (WebKit::StorageAreaProxy::setItem):
449         (WebKit::StorageAreaProxy::didSetItem):
450         (WebKit::StorageAreaProxy::dispatchStorageEvent):
451         (WebKit::StorageAreaProxy::shouldApplyChangesForKey):
452         (WebKit):
453         * WebProcess/Storage/StorageAreaProxy.h:
454         (StorageAreaProxy):
455
456 2013-03-05  Ryuan Choi  <ryuan.choi@samsung.com>
457
458         [EFL] Build break with latest EFL libraries
459         https://bugs.webkit.org/show_bug.cgi?id=111028
460
461         Reviewed by Dirk Pranke.
462
463         * PlatformEfl.cmake: Added ECORE_XXX_INCLUDE_DIRS.
464
465 2013-03-05  Anders Carlsson  <andersca@apple.com>
466
467         Use a named parameter for whether a quota error ocurred or not
468         https://bugs.webkit.org/show_bug.cgi?id=111490
469
470         Reviewed by Beth Dakin.
471
472         This is clearer than setItem returning true on error.
473         Also, actually set the item in the storage map.
474
475         * UIProcess/Storage/StorageManager.cpp:
476         (StorageManager::StorageArea):
477         (WebKit::StorageManager::StorageArea::setItem):
478         (WebKit::StorageManager::setItem):
479
480 2013-03-05  Kiran Muppala  <cmuppala@apple.com>
481
482         Use new assertion API for process suppression on Mac
483         https://bugs.webkit.org/show_bug.cgi?id=111387
484
485         Reviewed by Alexey Proskuryakov.
486
487         * Shared/ChildProcess.h:
488         (WebKit::ChildProcess::processSuppressionEnabled): Rename
489         m_processVisibleAssertion to m_processSuppressionAssertion.
490         * Shared/mac/ChildProcessMac.mm:
491         (WebKit::ChildProcess::setProcessSuppressionEnabled): Ditto. And,
492         replace calls to WKNSProcessInfoProcessAssertionWithTypes() with call to
493         -[NSProcessInfo beginSuspensionOfSystemBehaviors:].
494
495 2013-03-05  Anders Carlsson  <andersca@apple.com>
496
497         Move storageType() to StorageAreaProxy
498         https://bugs.webkit.org/show_bug.cgi?id=111488
499
500         Reviewed by Andreas Kling.
501
502         * WebProcess/Storage/StorageAreaProxy.cpp:
503         (WebKit::StorageAreaProxy::StorageAreaProxy):
504         (WebKit::StorageAreaProxy::storageType):
505         (WebKit::StorageAreaProxy::disabledByPrivateBrowsingInFrame):
506         * WebProcess/Storage/StorageAreaProxy.h:
507         (StorageAreaProxy):
508         * WebProcess/Storage/StorageNamespaceProxy.cpp:
509         * WebProcess/Storage/StorageNamespaceProxy.h:
510
511 2013-03-05  Jeffrey Pfau  <jpfau@apple.com>
512
513         Clear associated cache partitions when deleting origins' cache
514         https://bugs.webkit.org/show_bug.cgi?id=111383
515
516         Reviewed by Maciej Stachowiak.
517
518         Clear the cache partitions associated with the origin being cleared.
519
520         * WebProcess/ResourceCache/cf/WebResourceCacheManagerCFNet.cpp:
521         (WebKit):
522         (WebKit::partitionName):
523         (WebKit::WebResourceCacheManager::clearCFURLCacheForHostNames):
524
525 2013-03-05  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
526
527         [WK2][EFL] WebPageProxy::setThemePath() should check that the page is valid
528         https://bugs.webkit.org/show_bug.cgi?id=109917
529
530         Reviewed by Alexey Proskuryakov.
531
532         WebPageProxy::setThemePath() should check that the page is valid before
533         sending IPC message.
534
535         * UIProcess/efl/WebPageProxyEfl.cpp:
536         (WebKit::WebPageProxy::setThemePath):
537
538 2013-03-05  Alexey Proskuryakov  <ap@apple.com>
539
540         <rdar://problem/13269245> Crashes creating WebKit processes in WKSandboxExtensionConsume
541         https://bugs.webkit.org/show_bug.cgi?id=111456
542
543         Reviewed by Anders Carlsson.
544
545         It's too late to be draconian about this condition here, crashing doesn't help
546         diagnose what went wrong when creating a sandbox extension.
547
548         Other SandboxExtension functions already have null checks for WKSandboxExtensionRef,
549         and so should consumePermanently().
550
551         * Shared/mac/SandboxExtensionMac.mm:
552         (WebKit::SandboxExtension::createHandle): For now, added logging when extension
553         creation fails. If that proves insufficiently helpful in practice, we can change
554         to a CRASH() later.
555         (WebKit::SandboxExtension::createHandleForTemporaryFile): Ditto.
556         (WebKit::SandboxExtension::consumePermanently): Gracefully fail if there is no extension
557         to consume.
558
559 2013-03-05  Gwang Yoon Hwang  <ryumiel@company100.net>
560
561         Coordinated Graphics: CoordinatedGraphicsLayer makes CoordinatedGraphicsScene perform via CoordinatedGraphicsState.
562         https://bugs.webkit.org/show_bug.cgi?id=108294
563
564         Reviewed by Anders Carlsson.
565
566         There are two changes in WK2.
567         1. Change CoordinatedLayerTreeHostProxy to use CoordinatedGraphicsState.
568         2. Add encode/decode of CoordinatedGraphicsState in CoordinatedGraphicsArgumentCoders.
569
570         This patch is based on Dongsung Huang, and Noam's work in
571         https://bugs.webkit.org/show_bug.cgi?id=108294
572
573         No new tests, covered by existing tests.
574
575         * Scripts/webkit2/messages.py:
576         (headers_for_type):
577         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
578         (CoreIPC::::encode):
579             Encoding UpdateImageBacking and CreateUpdateAtlas can fail when
580             encoding WebCoordinatedSurface::Handle fails, but we don't
581             recover in the case.
582         (CoreIPC::::decode):
583         (CoreIPC):
584         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
585         (WebCore):
586         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
587         (WebKit::CoordinatedLayerTreeHostProxy::commitCoordinatedGraphicsState):
588         (WebKit):
589         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
590         (WebCore):
591         (CoordinatedLayerTreeHostProxy):
592         (WebKit::CoordinatedLayerTreeHostProxy::coordinatedGraphicsScene):
593         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
594         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
595         (WebKit::CoordinatedLayerTreeHost::flushPendingLayerChanges):
596         (WebKit::CoordinatedLayerTreeHost::initializeRootCompositingLayerIfNeeded):
597         (WebKit::CoordinatedLayerTreeHost::syncLayerState):
598         (WebKit::CoordinatedLayerTreeHost::prepareCustomFilterProxiesIfNeeded):
599         (WebKit):
600         (WebKit::CoordinatedLayerTreeHost::updateImageBacking):
601         (WebKit::CoordinatedLayerTreeHost::setBackgroundColor):
602         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
603         (CoordinatedLayerTreeHost):
604
605 2013-03-05  Sam Weinig  <sam@webkit.org>
606
607         Follow up to https://bugs.webkit.org/show_bug.cgi?id=111453, forgot to mark the files as Private.
608
609         * WebKit2.xcodeproj/project.pbxproj:
610
611 2013-03-05  Sam Weinig  <sam@webkit.org>
612
613         Elevate accessors of C-SPI API variants to Objective-C SPI
614         https://bugs.webkit.org/show_bug.cgi?id=111453
615         <rdar://problem/13340357>
616
617         Reviewed by Alexey Proskuryakov.
618
619         * Shared/mac/ObjCObjectGraphCoders.mm:
620         * UIProcess/API/mac/WKBrowsingContextControllerInternal.h:
621         * UIProcess/API/mac/WKBrowsingContextControllerPrivate.h:
622         * UIProcess/API/mac/WKBrowsingContextGroup.mm:
623         * UIProcess/API/mac/WKBrowsingContextGroupPrivate.h: Renamed from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextGroupInternal.h.
624         * UIProcess/API/mac/WKProcessGroup.mm:
625         * UIProcess/API/mac/WKProcessGroupPrivate.h: Copied from Source/WebKit2/UIProcess/API/mac/WKProcessGroupInternal.h.
626         * UIProcess/API/mac/WKView.mm:
627         * WebKit2.xcodeproj/project.pbxproj:
628         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.mm:
629         (-[WKWebProcessPlugInController _bundleRef]):
630         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInPrivate.h: Renamed from Source/WebKit2/UIProcess/API/mac/WKProcessGroupInternal.h.
631         Add access to C-SPI WebKit types as Objective-C SPI.
632
633 2013-03-04  Alexey Proskuryakov  <ap@apple.com>
634
635         Make AsyncFileReader work without ScriptExecutionContext
636         https://bugs.webkit.org/show_bug.cgi?id=111376
637
638         Reviewed by Anders Carlsson.
639
640         * NetworkProcess/NetworkResourceLoader.cpp:
641         * NetworkProcess/NetworkResourceLoader.h:
642         Removed a dummy implementation of createAsyncFileStream, which is no longer needed.
643
644 2013-03-05  Alexey Proskuryakov  <ap@apple.com>
645
646         <rdar://problem/13345116> REGRESSION: Child processes get access to user cache
647         and temporary directories instead of private ones
648
649         Reviewed by Sam Weinig.
650
651         * Shared/mac/ChildProcessMac.mm: (WebKit::ChildProcess::initializeSandbox):
652         Restore the correct order of calls, so sandbox parameters respect WebKit pseudo
653         containers.
654
655 2013-03-05  David Kilzer  <ddkilzer@apple.com>
656
657         BUILD FIX (r144698): Only enable SPEECH_SYNTHESIS for Mac
658         <http://webkit.org/b/106742>
659
660         Fixes the following build failures:
661
662             Undefined symbols for architecture i386:
663               "__ZTVN7WebCore25PlatformSpeechSynthesizerE", referenced from:
664                   __ZN7WebCore25PlatformSpeechSynthesizerC2EPNS_31PlatformSpeechSynthesizerClientE in PlatformSpeechSynthesizer.o
665               NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
666               "__ZN7WebCore25PlatformSpeechSynthesizer19initializeVoiceListEv", referenced from:
667                   __ZN7WebCore25PlatformSpeechSynthesizerC2EPNS_31PlatformSpeechSynthesizerClientE in PlatformSpeechSynthesizer.o
668             ld: symbol(s) not found for architecture i386
669
670         * Configurations/FeatureDefines.xcconfig:
671         - Only set ENABLE_SPEECH_SYNTHESIS for the macosx platform.
672
673 2013-03-05  Tim Horton  <timothy_horton@apple.com>, Grzegorz Czajkowski  <g.czajkowski@samsung.com>
674
675         [WK2] WTR needs an implementation of setAsynchronousSpellCheckingEnabled
676         https://bugs.webkit.org/show_bug.cgi?id=81042
677
678         Reviewed by Enrica Casucci.
679
680         Expose WK2 setting to enable/disabled asynchronous spell checking.
681         It's used by WebKitTestRunner to reset the setting at the beginning
682         of the test.
683         WebKit2 ports might be interested in this setting if they are going
684         to enable this feature.
685
686         * Shared/WebPreferencesStore.h:
687         * UIProcess/API/C/WKPreferences.cpp:
688         (WKPreferencesSetAsynchronousSpellCheckingEnabled):
689         (WKPreferencesGetAsynchronousSpellCheckingEnabled):
690         * UIProcess/API/C/WKPreferences.h:
691         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
692         (WKBundleSetAsynchronousSpellCheckingEnabled):
693         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
694         * WebProcess/InjectedBundle/InjectedBundle.cpp:
695         (WebKit::InjectedBundle::setAsynchronousSpellCheckingEnabled):
696         * WebProcess/InjectedBundle/InjectedBundle.h:
697         * WebProcess/WebPage/WebPage.cpp:
698         (WebKit::WebPage::updatePreferences):
699
700 2013-03-03  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
701
702         [WK2][EFL] Add requestCheckingOfString implementation.
703         https://bugs.webkit.org/show_bug.cgi?id=108172
704
705         Reviewed by Hajime Morrita.
706
707         Provide implementation of 'requestCheckingOfString' for WK2-EFL.
708         It uses the unified text checker feature.
709
710         * UIProcess/efl/TextCheckerEfl.cpp:
711         (WebKit::TextChecker::requestCheckingOfString):
712
713 2013-03-04  Chris Fleizach  <cfleizach@apple.com>
714
715         Support WebSpeech - Speech Synthesis
716         https://bugs.webkit.org/show_bug.cgi?id=106742
717
718         Reviewed by Simon Fraser.
719
720         Enable speech synthesis for the Mac.
721
722         * Configurations/FeatureDefines.xcconfig:
723
724 2013-03-04  Anders Carlsson  <andersca@apple.com>
725
726         UI process storage areas should hold on to storage maps
727         https://bugs.webkit.org/show_bug.cgi?id=111374
728
729         Reviewed by Beth Dakin.
730
731         Pass the session storage quota size through to the storage area constructor and
732         create a StorageMap with the given quota size.
733
734         * UIProcess/Storage/StorageManager.cpp:
735         (StorageManager::StorageArea):
736         (WebKit::StorageManager::StorageArea::create):
737         (WebKit::StorageManager::StorageArea::StorageArea):
738         (StorageManager::SessionStorageNamespace):
739         (WebKit::StorageManager::SessionStorageNamespace::create):
740         (WebKit::StorageManager::SessionStorageNamespace::SessionStorageNamespace):
741         (WebKit::StorageManager::SessionStorageNamespace::getOrCreateStorageArea):
742         (WebKit::StorageManager::createSessionStorageNamespace):
743         (WebKit::StorageManager::createSessionStorageNamespaceInternal):
744         * UIProcess/Storage/StorageManager.h:
745         (StorageManager):
746         * UIProcess/WebPageProxy.cpp:
747         (WebKit::WebPageProxy::WebPageProxy):
748
749 2013-03-04  Raphael Kubo da Costa  <raphael.kubo.da.costa@intel.com>
750
751         Unreviewed build fix after r144675.
752
753         Work around picky/old C++ compilers by separating the '>>' in
754         nested templates with a space.
755
756         * UIProcess/Storage/StorageManager.cpp:
757         (StorageManager::StorageArea):
758
759 2013-03-04  Anders Carlsson  <andersca@apple.com>
760
761         More work on UI side storage
762         https://bugs.webkit.org/show_bug.cgi?id=111370
763
764         Reviewed by Andreas Kling.
765
766         Add a DispatchStorageEvent message and begin hooking it up.
767
768         * UIProcess/Storage/StorageManager.cpp:
769         (StorageManager::StorageArea):
770         (WebKit::StorageManager::StorageArea::setItem):
771         (WebKit):
772         (WebKit::StorageManager::StorageArea::dispatchEvents):
773         (WebKit::StorageManager::setItem):
774         (WebKit::StorageManager::findStorageArea):
775         * UIProcess/Storage/StorageManager.h:
776         (StorageManager):
777         * UIProcess/Storage/StorageManager.messages.in:
778         * WebProcess/Storage/StorageAreaProxy.cpp:
779         (WebKit::StorageAreaProxy::setItem):
780         (WebKit::StorageAreaProxy::dispatchStorageEvent):
781         (WebKit):
782         * WebProcess/Storage/StorageAreaProxy.h:
783         (StorageAreaProxy):
784         * WebProcess/Storage/StorageAreaProxy.messages.in:
785
786 2013-03-04  Jer Noble  <jer.noble@apple.com>
787
788         Unreviewed build fix: wrap references to PluginInfoStore with 
789         guards for platforms which do not enable NETSCAPE_PLUGIN_AP.
790
791         * UIProcess/WebContext.cpp:
792         (WebKit::WebContext::WebContext):
793         (WebKit::WebContext::~WebContext):
794         * UIProcess/WebContext.h:
795
796 2013-03-04  Anders Carlsson  <andersca@apple.com>
797
798         Create and destroy storage areas in the UI process
799         https://bugs.webkit.org/show_bug.cgi?id=111361
800
801         Reviewed by Sam Weinig.
802
803         * UIProcess/Storage/StorageManager.cpp:
804         (StorageManager::StorageArea):
805         Keep track of listener connection and storage area ID pairs.
806         
807         (WebKit::StorageManager::StorageArea::~StorageArea):
808         Assert that we don't have any listeners left.
809
810         (WebKit::StorageManager::StorageArea::addListener):
811         Add the pair to the set of listeners.
812         
813         (WebKit::StorageManager::StorageArea::removeListener):
814         Remove the pair from the set of listeners.
815         
816         (WebKit::StorageManager::SessionStorageNamespace::getOrCreateStorageArea):
817         Given an origin, look up or create the storage area.
818
819         (WebKit::StorageManager::createStorageArea):
820         Create the storage area if it doesn't already exist.
821
822         (WebKit::StorageManager::destroyStorageArea):
823         Look up the storage area and destroy it.
824
825         * UIProcess/Storage/StorageManager.h:
826         Add a map of open storage areas.
827
828 2013-03-04  Jer Noble  <jer.noble@apple.com>
829
830         Add API to allow WK2 clients to query the list of installed plug-ins.
831         https://bugs.webkit.org/show_bug.cgi?id=111245
832
833         Reviewed by Alexey Proskuryakov.
834
835         Add API in WKContext, implemented by WebContext, that allows callers to register a callback 
836         retrieve an array containing installed plugin information. This API is exposed through WebContext 
837         because it owns the PluginInfoStore used to fulfill the request.
838
839         Bump the WKContextClient API by 1:
840         * Shared/APIClientTraits.cpp:
841         * Shared/APIClientTraits.h:
842         * UIProcess/API/C/WKContext.h:
843
844         Add a client protocol to PluginInfoStore to notify the client when plugIn information has been
845         successfully loaded:
846         * UIProcess/Plugins/PluginInfoStore.cpp:
847         (WebKit::PluginInfoStore::PluginInfoStore): Initialize m_client to 0.
848         (WebKit::PluginInfoStore::loadPluginsIfNecessary): If the client is present, notify after loading the plugin store.
849         * UIProcess/Plugins/PluginInfoStore.h:
850         (WebKit::PluginInfoStoreClient::~PluginInfoStoreClient): Default destructor.
851         (WebKit::PluginInfoStoreClient::PluginInfoStoreClient): Default constructor.
852         (WebKit::PluginInfoStore::setClient): Simple setter.
853         (WebKit::PluginInfoStore::client): Simple getter.
854
855         * UIProcess/WebContext.cpp:
856         (WebKit::WebContext::WebContext): Set self as the client of PluginInfoStore.
857         (WebKit::WebContext::~WebContext): Clear the client of PluginInfoStore.
858         (WebKit::WebContext::pluginInfoStoreDidLoadPlugins): Pass the callback to own client.
859         * UIProcess/WebContext.h:
860         * UIProcess/WebContextClient.cpp:
861         (WebKit::WebContextClient::plugInInformationBecameAvailable): Pass the callback to the registered WK callback, if present.
862         * UIProcess/WebContextClient.h:
863
864 2013-03-04  Tim Horton  <timothy_horton@apple.com>
865
866         PDFPlugin: Hook up Services
867         https://bugs.webkit.org/show_bug.cgi?id=111246
868         <rdar://problem/13062672>
869
870         Reviewed by Alexey Proskuryakov.
871
872         Make the Application->Services menu work when the focused selection is a PDFPlugin.
873
874         * Shared/EditorState.cpp:
875         (WebKit::EditorState::encode):
876         (WebKit::EditorState::decode):
877         * Shared/EditorState.h:
878         (WebKit::EditorState::EditorState):
879         (EditorState):
880         Add isInPlugin property to EditorState.
881
882         * UIProcess/API/mac/WKView.mm:
883         (-[WKView validRequestorForSendType:returnType:]):
884         If the selection is currently in a Plugin, we only currently have the ability
885         to retrieve the selection as a plain-text string, so restrict sendType to NSStringPboardType.
886
887         * WebProcess/Plugins/PDF/SimplePDFPlugin.h:
888         * WebProcess/Plugins/Plugin.h:
889         * WebProcess/Plugins/PluginView.h:
890         * WebProcess/Plugins/PluginProxy.h:
891         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
892         Add getStringSelection.
893
894         * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h:
895         Add pdfLayerController:didChangeSelection: delegate method.
896
897         * WebProcess/Plugins/PDF/PDFPlugin.h:
898         (PDFPlugin):
899         Add getStringSelection and notifySelectionChanged.
900
901         * WebProcess/Plugins/PDF/PDFPlugin.mm:
902         (-[WKPDFLayerControllerDelegate pdfLayerController:didChangeSelection:]):
903         Forward selection change notifications to our PDFPlugin.
904
905         (WebKit::PDFPlugin::notifySelectionChanged):
906         Forward selection change notifications to our WebPage.
907
908         (WebKit::PDFPlugin::getStringSelection):
909         Retrieve PDFLayerController's selection as a plain text string.
910         
911         * WebProcess/Plugins/PluginView.cpp:
912         (WebKit::PluginView::countFindMatches):
913         (WebKit::PluginView::findString):
914         Drive-bys, check for existance and initialization of the plugin before using it.
915
916         (WebKit::PluginView::getStringSelection): Added.
917
918         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
919         (WebKit::WebEditorClient::respondToChangedSelection):
920         Use didChangeSelection instead of sending the EditorStateChanged message directly.
921
922         * WebProcess/WebPage/WebPage.cpp:
923         (WebKit::WebPage::editorState):
924         If a plugin is focused and has a selection, return a EditorState that reflects that.
925         Since PDFs aren't editable (when editing annotations, the plugin doesn't have focus),
926         I'm not adding support for the editing-related properties when a plugin has focus.
927
928         (WebKit::WebPage::focusedPluginViewForFrame):
929         (WebKit::WebPage::pluginViewForFrame):
930         Make these class methods instead of static functions so we can use them from
931         WebPageMac too, instead of duplicating code there.
932
933         (WebKit::WebPage::didChangeSelection): Added.
934
935         * WebProcess/WebPage/WebPage.h:
936         Add didChangeSelection and [focused]PluginViewForFrame.
937
938         * WebProcess/WebPage/mac/WebPageMac.mm:
939         (WebKit::WebPage::getStringSelectionForPasteboard):
940         Defer to the focused plugin (if it exists) when retrieving the plain-text selection.
941
942 2013-03-04  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
943
944         [WK2][EFL] Add callbacks to the WKViewClient to handle Web Process crash and relaunch
945         https://bugs.webkit.org/show_bug.cgi?id=109828
946
947         Reviewed by Kenneth Rohde Christiansen.
948
949         Providing WKViewClient with Web Process crash and Web Process relaunch
950         callbacks brings better design as WebView should not be aware of
951         EFL-specific code handling the corresponding events.
952
953         The implementation of the mentioned Web Process callbacks was also added.
954
955         * UIProcess/API/C/efl/WKView.cpp:
956         (WKViewSetThemePath):
957         * UIProcess/API/C/efl/WKView.h:
958         * UIProcess/efl/ViewClientEfl.cpp:
959         (WebKit::ViewClientEfl::webProcessCrashed):
960         (WebKit):
961         (WebKit::ViewClientEfl::webProcessDidRelaunch):
962         (WebKit::ViewClientEfl::ViewClientEfl):
963         * UIProcess/efl/ViewClientEfl.h:
964         (ViewClientEfl):
965         * UIProcess/efl/WebView.cpp:
966         (WebKit::WebView::setThemePath):
967
968             Accepts WTF::String instead of WKStringRef as it is
969             more appropriate for C++ API implementation class.
970
971         (WebKit::WebView::processDidCrash):
972         (WebKit::WebView::didRelaunchProcess):
973         * UIProcess/efl/WebView.h:
974         (WebView):
975         * UIProcess/efl/WebViewClient.cpp:
976         (WebKit::WebViewClient::webProcessCrashed):
977         (WebKit):
978         (WebKit::WebViewClient::webProcessDidRelaunch):
979         * UIProcess/efl/WebViewClient.h:
980
981 2013-03-04  Anders Carlsson  <andersca@apple.com>
982
983         Complete the plug-in URL string before sending it to the UI process
984         https://bugs.webkit.org/show_bug.cgi?id=111355
985         <rdar://problem/13326713>
986
987         Reviewed by Andreas Kling.
988
989         If the URL is not absolute, we won't be able to find it by path extension in the plug-in info store.
990
991         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
992         (WebKit::WebChromeClient::unavailablePluginButtonClicked):
993
994 2013-03-04  Carlos Garcia Campos  <cgarcia@igalia.com>
995
996         [GTK] Some WebKit2 GTK+ unit tests are failing in 32 bits bot
997         https://bugs.webkit.org/show_bug.cgi?id=111346
998
999         Reviewed by Martin Robinson.
1000
1001         The problem is the use of a temporary CString object in the macro
1002         g_assert_cmpstr. It's a common mistake because we usually forget
1003         that g_assert_cmpstr is not a function but a macro, that expands
1004         to multiple lines. This patch adds a new macro ASSERT_CMP_CSTRING
1005         with the same implementation that g_assert_cmpstr, but using
1006         CStrings instead of const char*. It fixes all the cases where a
1007         temporary CString was used in g_assert_cmpstr, and uses the new
1008         macro also for the cases where we were caching the CString just
1009         for g_assert_cmpstr.
1010
1011         * UIProcess/API/gtk/tests/TestDownloads.cpp:
1012         (testDownloadRemoteFile):
1013         * UIProcess/API/gtk/tests/TestInspectorServer.cpp:
1014         (testInspectorServerPageList):
1015         * UIProcess/API/gtk/tests/TestLoaderClient.cpp:
1016         * UIProcess/API/gtk/tests/TestMain.h:
1017         * UIProcess/API/gtk/tests/TestResources.cpp:
1018         * UIProcess/API/gtk/tests/TestWebKitFaviconDatabase.cpp:
1019         (testGetFaviconURI):
1020         * UIProcess/API/gtk/tests/TestWebKitSettings.cpp:
1021         (assertThatUserAgentIsSentInHeaders):
1022         (testWebKitSettingsUserAgent):
1023
1024 2013-03-04  Kunihiko Sakamoto  <ksakamoto@chromium.org>
1025
1026         Add build flag for FontLoader
1027         https://bugs.webkit.org/show_bug.cgi?id=111289
1028
1029         Reviewed by Benjamin Poulain.
1030
1031         Add ENABLE_FONT_LOAD_EVENTS build flag (disabled by default).
1032
1033         * Configurations/FeatureDefines.xcconfig:
1034
1035 2013-03-03  Tim Horton  <timothy_horton@apple.com>
1036
1037         PDFPlugin: Rename delegate method from openWithPreview to openWithNativeApplication
1038         https://bugs.webkit.org/show_bug.cgi?id=111258
1039
1040         Reviewed by Alexey Proskuryakov.
1041
1042         * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h:
1043         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1044         (-[WKPDFLayerControllerDelegate openWithNativeApplication]):
1045         Rename from openWithPreview to openWithNativeApplication to match PDFKit.
1046
1047 2013-03-03  Huang Dongsung  <luxtella@company100.net>
1048
1049         [EFL][QT][WK2] Turn on ApplyDeviceScaleFactorInCompositor always.
1050         https://bugs.webkit.org/show_bug.cgi?id=110298
1051
1052         Reviewed by Kenneth Rohde Christiansen.
1053
1054         Currently, EFL and Qt turn on ApplyDeviceScaleFactorInCompositor when using
1055         fixed layout, but ApplyDeviceScaleFactorInCompositor is not related to fixed
1056         layout. It is confusing that a platform WebView deals with device view size or
1057         DIP view size case by case. So this patch always turns on
1058         ApplyDeviceScaleFactorInCompositor.
1059
1060         In addition, move the code that turns on ScrollingCoordinatorEnabled to
1061         CoordinatedLayerTreeHost.
1062
1063         * UIProcess/API/efl/EwkView.cpp:
1064         (EwkView::setDeviceScaleFactor):
1065             We should make WebPage know new DIP size.
1066         (EwkView::setSize):
1067             When we set ApplyDeviceScaleFactorInCompositor to true, make WebPage
1068             know the DIP size as a view size.
1069         * UIProcess/efl/WebView.cpp:
1070         (WebKit::WebView::updateViewportSize):
1071         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1072         (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
1073         * WebProcess/WebPage/DrawingAreaImpl.cpp:
1074         (WebKit::DrawingAreaImpl::DrawingAreaImpl):
1075         * WebProcess/WebPage/WebPage.cpp:
1076         (WebKit::WebPage::setUseFixedLayout):
1077             WebPage sends the DIP size to Web Process even when we don't use fixed layout.
1078
1079 2013-03-03  Sam Weinig  <sam@webkit.org>
1080
1081         Shared Web Workers have an incorrect visible process name
1082         https://bugs.webkit.org/show_bug.cgi?id=111277
1083
1084         Reviewed by Dan Bernstein.
1085
1086         * SharedWorkerProcess/SharedWorkerProcess.cpp:
1087         (WebKit::SharedWorkerProcess::initializeSharedWorkerProcess):
1088         * SharedWorkerProcess/SharedWorkerProcess.h:
1089         (SharedWorkerProcess):
1090         * SharedWorkerProcess/mac/SharedWorkerProcessMac.mm:
1091         (WebKit::SharedWorkerProcess::initializeProcessName):
1092         The SharedWorkerProcess is not an internet plug-in!
1093
1094 2013-03-03  Adam Barth  <abarth@webkit.org>
1095
1096         Unreviewed attempted build fix. Adds back some includes removed in
1097         http://trac.webkit.org/changeset/144565.
1098
1099         * Shared/WebRenderLayer.cpp:
1100         * Shared/WebRenderObject.cpp:
1101         * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
1102         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1103         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1104         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1105         * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
1106         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1107         * WebProcess/Plugins/PluginView.cpp:
1108         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
1109         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1110         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1111         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
1112         * WebProcess/WebPage/mac/WebPageMac.mm:
1113         * WebProcess/WebProcess.cpp:
1114         * WebProcess/soup/WebProcessSoup.cpp:
1115
1116 2013-03-03  Adam Barth  <abarth@webkit.org>
1117
1118         Unreviewed rollout of http://trac.webkit.org/r144530
1119         As described in https://bugs.webkit.org/show_bug.cgi?id=111167 and
1120         https://bugs.webkit.org/show_bug.cgi?id=111035, this patch caused a
1121         large number of ASSERTs in chromium-win.
1122
1123         * NetworkProcess/HostRecord.h:
1124         * NetworkProcess/NetworkResourceLoadScheduler.h:
1125         * NetworkProcess/NetworkResourceLoader.h:
1126         (WebCore):
1127         * Shared/WebRenderLayer.cpp:
1128         * Shared/WebRenderObject.cpp:
1129         * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
1130         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1131         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1132         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1133         * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
1134         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1135         * WebProcess/Plugins/PluginView.cpp:
1136         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
1137         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1138         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1139         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
1140         * WebProcess/WebPage/mac/WebPageMac.mm:
1141         * WebProcess/WebProcess.cpp:
1142         * WebProcess/soup/WebProcessSoup.cpp:
1143
1144 2013-03-02  Sam Weinig  <sam@webkit.org>
1145
1146         WebKit2 is missing the setShowsURLsInToolTips preference
1147         https://bugs.webkit.org/show_bug.cgi?id=111259
1148         <rdar://problem/12991891>
1149
1150         Reviewed by Maciej Stachowiak.
1151
1152         * Shared/WebPreferencesStore.h:
1153         * UIProcess/API/C/WKPreferences.cpp:
1154         (WKPreferencesSetShowsURLsInToolTipsEnabled):
1155         (WKPreferencesGetShowsURLsInToolTipsEnabled):
1156         * UIProcess/API/C/WKPreferencesPrivate.h:
1157         * WebProcess/WebPage/WebPage.cpp:
1158         (WebKit::WebPage::updatePreferences):
1159         Pipe it through.
1160
1161 2013-03-02  Benjamin Poulain  <bpoulain@apple.com>
1162
1163         Move computedStyleIncludingVisitedInfo from TestRunner to Internals
1164         https://bugs.webkit.org/show_bug.cgi?id=109772
1165
1166         Reviewed by Andreas Kling.
1167
1168         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1169         * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
1170         * WebProcess/WebPage/WebFrame.cpp:
1171         * WebProcess/WebPage/WebFrame.h:
1172         (WebFrame):
1173
1174 2013-03-01  Kiran Muppala  <cmuppala@apple.com>
1175
1176         Remove call to set task priority of WebKit2 processes on Mac
1177         https://bugs.webkit.org/show_bug.cgi?id=111239
1178
1179         Reviewed by Darin Adler.
1180
1181         Remove call to set task prioirty of WebKit2 processes on Mac as it
1182         is no longer necessary.
1183
1184         * Shared/mac/ChildProcessMac.mm:
1185         (WebKit::ChildProcess::platformInitialize): Remove call to setpriority().
1186
1187 2013-02-28  Alexey Proskuryakov  <ap@apple.com>
1188
1189         Reduce amount of rebuilding when touching networking headers
1190         https://bugs.webkit.org/show_bug.cgi?id=111035
1191
1192         Reviewed by Eric Seidel.
1193
1194         Adding includes that are now necessary because WebCore headers don't have them
1195         any more.
1196
1197         * NetworkProcess/HostRecord.h:
1198         * NetworkProcess/NetworkResourceLoadScheduler.h:
1199         * NetworkProcess/NetworkResourceLoader.h:
1200         * Shared/WebRenderLayer.cpp:
1201         * Shared/WebRenderObject.cpp:
1202         * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
1203         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1204         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1205         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1206         * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
1207         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1208         * WebProcess/Plugins/PluginView.cpp:
1209         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
1210         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1211         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1212         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
1213         * WebProcess/WebPage/mac/WebPageMac.mm:
1214         * WebProcess/WebProcess.cpp:
1215         * WebProcess/soup/WebProcessSoup.cpp:
1216
1217 2013-02-28  Alexey Proskuryakov  <ap@apple.com>
1218
1219         Make in-memory blobs work in NetworkProcess
1220         https://bugs.webkit.org/show_bug.cgi?id=111132
1221
1222         Reviewed by Sam Weinig.
1223
1224         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
1225         (WebKit::NetworkConnectionToWebProcess::registerBlobURL):
1226         (WebKit::NetworkConnectionToWebProcess::registerBlobURLFromURL):
1227         (WebKit::NetworkConnectionToWebProcess::unregisterBlobURL):
1228         * NetworkProcess/NetworkConnectionToWebProcess.h:
1229         Implement BlobRegistry interface by using BlobRegistryImpl (same one as used in
1230         WebProcess in non-PPT mode).
1231
1232         * NetworkProcess/NetworkConnectionToWebProcess.messages.in: Added three messages
1233         needed for BlobRegistry.
1234
1235         * NetworkProcess/NetworkProcess.cpp:
1236         * NetworkProcess/NetworkProcessPlatformStrategies.cpp: Added.
1237         * NetworkProcess/NetworkProcessPlatformStrategies.h: Added.
1238         Added a mostly empty platform strategy, just for FormData to talk to BlobRegistry.
1239         Perhaps we'll find a way to avoid this WebCore code path in NetworkProcess, because
1240         we obviously know which registry implementation is in use in this process.
1241
1242         * Shared/FileAPI: Added.
1243         * Shared/FileAPI/BlobRegistrationData.cpp: Added.
1244         * Shared/FileAPI/BlobRegistrationData.h: Added.
1245         Added a class for passing BlobData and extension handles over IPC.
1246         This uses a trick with mutable a member to avoid copying decoded BlobStorageData.
1247
1248         * WebKit2.xcodeproj/project.pbxproj:
1249         * WebProcess/FileAPI: Added.
1250         * WebProcess/FileAPI/BlobRegistryProxy.cpp: Added.
1251         * WebProcess/FileAPI/BlobRegistryProxy.h: Added.
1252         A proxy implementation of BlobRegistry that just sends requests over IPC. We only
1253         need async ones.
1254
1255         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1256         (WebKit::WebPlatformStrategies::createBlobRegistry):
1257         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
1258         Create an appropriate BlobRegistry.
1259
1260 2013-03-01  Zan Dobersek  <zdobersek@igalia.com>
1261
1262         Uncomment ENABLE_SVG guards to avoid having WebKitPluginProcess link
1263         against libWebCoreSVG.la when SVG is disabled.
1264
1265         Rubber-stamped by Gustavo Noronha.
1266
1267         * GNUmakefile.am:
1268
1269 2013-02-28  Sam Weinig  <sam@webkit.org>
1270
1271         Add SPI for marking a WebView as doing things on behalf of another process
1272         https://bugs.webkit.org/show_bug.cgi?id=111125
1273
1274         Reviewed by Alexey Proskuryakov.
1275
1276         * NetworkProcess/mac/RemoteNetworkingContext.h:
1277         * NetworkProcess/mac/RemoteNetworkingContext.mm:
1278         (WebKit::RemoteNetworkingContext::sourceApplicationAuditData):
1279         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
1280         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
1281         (WebKit::WebFrameNetworkingContext::sourceApplicationAuditData):
1282         Stub out sourceApplicationAuditData() client function.
1283
1284 2013-03-01  Sheriff Bot  <webkit.review.bot@gmail.com>
1285
1286         Unreviewed, rolling out r144422 and r144424.
1287         http://trac.webkit.org/changeset/144422
1288         http://trac.webkit.org/changeset/144424
1289         https://bugs.webkit.org/show_bug.cgi?id=111167
1290
1291         Caused over 20 tests to fail assertion on Chromium Win port as
1292         ASSERTION FAILED: m_platformRequestUpdated (Requested by
1293         toyoshim on #webkit).
1294
1295         * NetworkProcess/HostRecord.h:
1296         * NetworkProcess/NetworkResourceLoadScheduler.h:
1297         * NetworkProcess/NetworkResourceLoader.h:
1298         (WebCore):
1299         * Shared/WebRenderLayer.cpp:
1300         * Shared/WebRenderObject.cpp:
1301         * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
1302         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1303         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1304         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1305         * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
1306         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1307         * WebProcess/Plugins/PluginView.cpp:
1308         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
1309         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1310         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1311         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
1312         * WebProcess/WebPage/mac/WebPageMac.mm:
1313         * WebProcess/WebProcess.cpp:
1314         * WebProcess/soup/WebProcessSoup.cpp:
1315
1316 2013-03-01  Andras Becsi  <andras.becsi@digia.com>
1317
1318         [Qt][WK2] Fix failing API tests after r143935
1319         https://bugs.webkit.org/show_bug.cgi?id=111086
1320
1321         Reviewed by Jocelyn Turcotte.
1322
1323         Convert a leftorver resume call to the new resumeAndUpdateContent() call
1324         in PageViewportControllerClientQt so that the notifications about zoom
1325         animation state changes reach the API tests.
1326
1327         * UIProcess/qt/PageViewportControllerClientQt.cpp:
1328         (WebKit::PageViewportControllerClientQt::scaleAnimationStateChanged):
1329
1330 2013-03-01  Grzegorz Czajkowski  <g.czajkowski@samsung.com>, Mariusz Grzegorczyk <mariusz.g@samsung.com>
1331
1332         [WK2] Asynchronous spell checking implementation
1333         https://bugs.webkit.org/show_bug.cgi?id=109577
1334
1335         Reviewed by Enrica Casucci.
1336
1337         Associate the abstract 'WebCore::TextCheckingRequest' object with the unique identifier
1338         on WebProcess side. The request data from the 'TextCheckingRequest' are retrieved and
1339         passed to the UIProcess. The WK2 client (TextChecker{Gtk/Mac/Efl/Qt}.cpp) gets
1340         the 'TextCheckerCompletion' object with the request data and possibility to notify
1341         the WebProcess about the spelling results.
1342         Finally, the WebPage object calls on the proper 'TextCheckingRequest' object
1343         didSuccess/didCancel method to notify the WebCore about the spelling result.
1344
1345         * CMakeLists.txt:
1346         * GNUmakefile.list.am:
1347         Add 'TextCheckerCompletion.{h/cpp}' to the WebKit2 cmake based and
1348         WK2-Gtk+ builds.
1349
1350         * Scripts/webkit2/messages.py:
1351         (headers_for_type):
1352         Add exception for 'TextCheckingRequestData' class to properly find header
1353         file for it.
1354
1355         * Shared/WebCoreArgumentCoders.cpp:
1356         * Shared/WebCoreArgumentCoders.h:
1357         Teach 'ArgumentCoder' how to encode/decode 'TextCheckingRequestData' class.
1358
1359         * Target.pri:
1360         Add 'TextCheckerCompletion.{h/cpp}' to the WK2-Qt build.
1361
1362         * UIProcess/TextChecker.h:
1363         Add 'requestCheckingOfString' method to the TextChecker's interface.
1364
1365         * UIProcess/TextCheckerCompletion.cpp: Added.
1366         (WebKit::TextCheckerCompletion::create):
1367         (WebKit::TextCheckerCompletion::TextCheckerCompletion):
1368
1369         (WebKit::TextCheckerCompletion::spellDocumentTag):
1370         Return the WebPageProxy's spellDocumentTag as the client might be
1371         interested in from which page the request came.
1372
1373         (WebKit::TextCheckerCompletion::textCheckingRequestData):
1374         Allow to retrieve 'TextCheckingRequestData' object.
1375
1376         (WebKit::TextCheckerCompletion::didFinishCheckingText):
1377         (WebKit::TextCheckerCompletion::didCancelCheckingText):
1378         Notify the 'WebPageProxy' object that the given request has been
1379         handled or canceled.
1380
1381         * UIProcess/TextCheckerCompletion.h: Added.
1382         Introduce a new class for WK2 to retrieve the request data and
1383         call didFinishCheckingText/didCancelCheckingText.
1384
1385         * UIProcess/WebPageProxy.cpp:
1386         (WebKit::WebPageProxy::requestCheckingOfString):
1387         Create 'TextCheckerCompletion' object and pass it
1388         to the 'TextChecker::requestCheckingOfString' method.
1389
1390         (WebKit::WebPageProxy::didFinishCheckingText):
1391         (WebKit::WebPageProxy::didCancelCheckingText):
1392         Send the messages to WebProcess that the given request has been
1393         handled or canceled.
1394
1395         * UIProcess/WebPageProxy.h:
1396         (WebPageProxy):
1397         Add public declarations for 'didFinishCheckingText', 'didCancelCheckingText'.
1398         Add private declarations for 'requestCheckingOfString'.
1399         Move the 'spellDocumentTag()' method to to the public section to be
1400         accessible from 'TextCheckerCompletion' class.
1401
1402         * UIProcess/WebPageProxy.messages.in:
1403         A new entry for 'RequestCheckingOfString'.
1404
1405         * UIProcess/efl/TextCheckerEfl.cpp:
1406         (WebKit::TextChecker::requestCheckingOfString):
1407         (WebKit):
1408         * UIProcess/gtk/TextCheckerGtk.cpp:
1409         (WebKit::TextChecker::requestCheckingOfString):
1410         (WebKit):
1411         * UIProcess/mac/TextCheckerMac.mm:
1412         (WebKit::TextChecker::requestCheckingOfString):
1413         (WebKit):
1414         * UIProcess/qt/TextCheckerQt.cpp:
1415         (WebKit::TextChecker::requestCheckingOfString):
1416         (WebKit):
1417         Add dummy implementations for 'requestCheckingOfString'.
1418
1419         * WebKit2.xcodeproj/project.pbxproj:
1420         Add 'TextCheckerCompletion.{h/cpp} to Mac build.
1421
1422         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1423         (WebKit::generateTextCheckingRequestID):
1424         Helper function to generate the unique identifier for the abstract
1425         'TextCheckingRequest' object.
1426
1427         (WebKit::WebEditorClient::requestCheckingOfString):
1428         Associate 'TextCheckingRequest' with the unique identifier and add them
1429         to the map object.
1430         Get the request data and send it to the UIProcess.
1431
1432         * WebProcess/WebPage/WebPage.cpp:
1433         (WebKit::WebPage::addTextCheckingRequest):
1434         Add the identifier and the request to the map object.
1435
1436         (WebKit::WebPage::didFinishCheckingText):
1437         (WebKit::WebPage::didCancelCheckingText):
1438         Call didSucceed/didCancel on the 'TextCheckingRequest' to notify the WebCore
1439         about spellcheking results.
1440         Remove the request from the map object.
1441
1442         * WebProcess/WebPage/WebPage.h:
1443         Add declarations for 'addTextCheckingRequest', 'didFinishCheckingText' and
1444         'didCancelCheckingText.'
1445
1446         * WebProcess/WebPage/WebPage.messages.in:
1447         Add a new entry for DidFinishCheckingText, DidCancelCheckingText.
1448
1449 2013-02-28  Alexey Proskuryakov  <ap@apple.com>
1450
1451         Reduce amount of rebuilding when touching networking headers
1452         https://bugs.webkit.org/show_bug.cgi?id=111035
1453
1454         Reviewed by Eric Seidel.
1455
1456         Adding includes that are now necessary because WebCore headers don't have them
1457         any more.
1458
1459         * NetworkProcess/HostRecord.h:
1460         * NetworkProcess/NetworkResourceLoadScheduler.h:
1461         * NetworkProcess/NetworkResourceLoader.h:
1462         * Shared/WebRenderLayer.cpp:
1463         * Shared/WebRenderObject.cpp:
1464         * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
1465         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1466         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1467         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1468         * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
1469         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1470         * WebProcess/Plugins/PluginView.cpp:
1471         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
1472         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1473         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1474         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
1475         * WebProcess/WebPage/mac/WebPageMac.mm:
1476         * WebProcess/WebProcess.cpp:
1477         * WebProcess/soup/WebProcessSoup.cpp:
1478
1479 2013-02-28  Seokju Kwon  <seokju.kwon@gmail.com>
1480
1481         [WK2] Refactoring : Fix indentation and braces in WebInspectorClient.h|cpp
1482         https://bugs.webkit.org/show_bug.cgi?id=109925
1483
1484         Reviewed by Benjamin Poulain.
1485
1486         The contents of an outermost namespace block should not be indented.
1487         And One-line control clauses should not use braces.
1488
1489         * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
1490         (WebKit::WebInspectorClient::closeInspectorFrontend):
1491         * WebProcess/WebCoreSupport/WebInspectorClient.h:
1492         (WebCore):
1493
1494 2013-02-28  Kiran Muppala  <cmuppala@apple.com>
1495
1496         Add a pre-bootstrap message for NetworkProcess XPC service
1497         https://bugs.webkit.org/show_bug.cgi?id=111127
1498
1499         Reviewed by Sam Weinig.
1500
1501         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm:
1502         (WebKit::XPCServiceEventHandler): Hold on to the pre-bootstrap message.
1503         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.mm:
1504         (WebKit::XPCServiceEventHandler): Ditto.
1505         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
1506         (WebKit::connectToService): Send a pre-bootstrap message for NetworkProcess
1507         XPC service.
1508
1509 2013-02-28  Conrad Shultz  <conrad_shultz@apple.com>
1510
1511         Need API to control page underlay color
1512         https://bugs.webkit.org/show_bug.cgi?id=110918
1513
1514         Reviewed by Simon Fraser.
1515
1516         * Shared/WebPageCreationParameters.cpp:
1517         (WebKit::WebPageCreationParameters::encode):
1518         Encode underlayColor.
1519         (WebKit::WebPageCreationParameters::decode):
1520         Decode underlayColor.
1521
1522         * Shared/WebPageCreationParameters.h:
1523         (WebPageCreationParameters):
1524         Add underlayColor member.
1525
1526         * UIProcess/API/mac/WKView.mm:
1527         (-[WKView underlayColor]):
1528         Accessor; retrieves the WebCore::Color from the WebPageProxy and converts it to an NSColor.
1529         (-[WKView setUnderlayColor:]):
1530         Mutator; converts the NSColor to a WebCore::Color and passes it to the WebPageProxy.
1531
1532         * UIProcess/API/mac/WKViewPrivate.h:
1533         Add underlayColor @property.
1534
1535         * UIProcess/WebPageProxy.cpp:
1536         (WebKit::WebPageProxy::setUnderlayColor):
1537         Mutator; dispatches SetUnderlayColor to WebPage.
1538         (WebKit::WebPageProxy::creationParameters):
1539         Set the parameters' underlayColor member appropriately.
1540
1541         * UIProcess/WebPageProxy.h:
1542         Declare new member functions and variable.
1543         (WebKit::WebPageProxy::underlayColor):
1544         Accessor.
1545
1546         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1547         (WebKit::WebChromeClient::underlayColor):
1548         Return the associated WebPage's underlayColor.
1549
1550         * WebProcess/WebCoreSupport/WebChromeClient.h:
1551         (WebChromeClient):
1552         Declare underlayColor().
1553
1554         * WebProcess/WebPage/WebPage.cpp:
1555         (WebKit::WebPage::WebPage):
1556         Apply any underlayColor that was supplied as part of the WebPageCreationParameters.
1557
1558         * WebProcess/WebPage/WebPage.h:
1559         Declare new member functions and variable.
1560         (WebKit::WebPage::underlayColor):
1561         Accessor.
1562
1563         * WebProcess/WebPage/WebPage.messages.in:
1564         Add SetUnderlayColor message.
1565
1566 2013-02-28  Anders Carlsson  <andersca@apple.com>
1567
1568         Add the notion of an allowed connection to SessionStorageNamespace
1569         https://bugs.webkit.org/show_bug.cgi?id=111122
1570
1571         Reviewed by Sam Weinig.
1572
1573         Group together each session storage namespace with an allowed connection.
1574         This will help ensure that rouge web processes will not be able to access session storage
1575         from pages in other processes.
1576         
1577         * UIProcess/Storage/StorageManager.cpp:
1578         (StorageManager::SessionStorageNamespace):
1579         (WebKit::StorageManager::SessionStorageNamespace::allowedConnection):
1580         (WebKit::StorageManager::SessionStorageNamespace::create):
1581         (WebKit::StorageManager::SessionStorageNamespace::SessionStorageNamespace):
1582         (WebKit::StorageManager::SessionStorageNamespace::setAllowedConnection):
1583         Add an m_allowedConnection member variable, as well as setters and getters.
1584
1585         (WebKit::StorageManager::createSessionStorageNamespace):
1586         Take an optional allowed connection. (It can be null if the process has not finished launching).
1587
1588         (WebKit::StorageManager::setAllowedSessionStorageNamespaceConnection):
1589         New function to set the allowed connection for a session storage namespace.
1590
1591         (WebKit::StorageManager::createStorageArea):
1592         Add another FIXME.
1593
1594         (WebKit::StorageManager::createSessionStorageNamespaceInternal):
1595         Pass the connection to the SessionStorageNamespace constructor.
1596
1597         (WebKit::StorageManager::setAllowedSessionStorageNamespaceConnectionInternal):
1598         Set the allowed connection.
1599
1600         * UIProcess/WebPageProxy.cpp:
1601         (WebKit::WebPageProxy::WebPageProxy):
1602         Pass the connection to createSessionStorageNamespace.
1603
1604         (WebKit::WebPageProxy::connectionWillOpen):
1605         Call setAllowedSessionStorageNamespaceConnection.
1606         
1607         (WebKit::WebPageProxy::connectionWillClose):
1608         Call setAllowedSessionStorageNamespaceConnection with a null connection.
1609
1610         * UIProcess/WebProcessProxy.cpp:
1611         (WebKit::WebProcessProxy::connectionWillOpen):
1612         Call connectionWillOpen on all pages.
1613
1614         (WebKit::WebProcessProxy::connectionWillClose):
1615         Call connectionWillClose on all pages.
1616
1617 2013-02-28  Kiran Muppala  <cmuppala@apple.com>
1618
1619         Add private API to disable WKView window occlusion detection
1620         https://bugs.webkit.org/show_bug.cgi?id=111107
1621
1622         Reviewed by Simon Fraser.
1623
1624         * UIProcess/API/mac/WKView.mm:
1625         (-[WKView _enableWindowOcclusionNotifications]): Check if occlusion
1626         detection is enabled before enabling notifications.
1627         (windowBecameOccluded): Ditto before changing window occlusion state.
1628         (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
1629         Initialize occlusion detection enabled flag to "YES".
1630         (-[WKView windowOcclusionDetectionEnabled]):
1631         (-[WKView setWindowOcclusionDetectionEnabled:]):
1632         * UIProcess/API/mac/WKViewPrivate.h:
1633
1634 2013-02-28  Anders Carlsson  <andersca@apple.com>
1635
1636         Add the notion of an allowed connection to SessionStorageNamespace
1637         https://bugs.webkit.org/show_bug.cgi?id=111122
1638
1639         Reviewed by Sam Weinig.
1640
1641         Group together each session storage namespace with an allowed connection.
1642         This will help ensure that rouge web processes will not be able to access session storage
1643         from pages in other processes.
1644         
1645         * UIProcess/Storage/StorageManager.cpp:
1646         (StorageManager::SessionStorageNamespace):
1647         (WebKit::StorageManager::SessionStorageNamespace::allowedConnection):
1648         (WebKit::StorageManager::SessionStorageNamespace::create):
1649         (WebKit::StorageManager::SessionStorageNamespace::SessionStorageNamespace):
1650         (WebKit::StorageManager::SessionStorageNamespace::setAllowedConnection):
1651         Add an m_allowedConnection member variable, as well as setters and getters.
1652
1653         (WebKit::StorageManager::createSessionStorageNamespace):
1654         Take an optional allowed connection. (It can be null if the process has not finished launching).
1655
1656         (WebKit::StorageManager::setAllowedSessionStorageNamespaceConnection):
1657         New function to set the allowed connection for a session storage namespace.
1658
1659         (WebKit::StorageManager::createStorageArea):
1660         Add another FIXME.
1661
1662         (WebKit::StorageManager::createSessionStorageNamespaceInternal):
1663         Pass the connection to the SessionStorageNamespace constructor.
1664
1665         (WebKit::StorageManager::setAllowedSessionStorageNamespaceConnectionInternal):
1666         Set the allowed connection.
1667
1668         * UIProcess/WebPageProxy.cpp:
1669         (WebKit::WebPageProxy::WebPageProxy):
1670         Pass the connection to createSessionStorageNamespace.
1671
1672         (WebKit::WebPageProxy::connectionWillOpen):
1673         Call setAllowedSessionStorageNamespaceConnection.
1674         
1675         (WebKit::WebPageProxy::connectionWillClose):
1676         Call setAllowedSessionStorageNamespaceConnection with a null connection.
1677
1678         * UIProcess/WebProcessProxy.cpp:
1679         (WebKit::WebProcessProxy::connectionWillOpen):
1680         Call connectionWillOpen on all pages.
1681
1682         (WebKit::WebProcessProxy::connectionWillClose):
1683         Call connectionWillClose on all pages.
1684
1685 2013-02-28  Anders Carlsson  <andersca@apple.com>
1686
1687         Implement more StorageAreaProxy member functions
1688         https://bugs.webkit.org/show_bug.cgi?id=111103
1689
1690         Reviewed by Sam Weinig.
1691
1692         * Shared/SecurityOriginData.cpp:
1693         (WebKit::SecurityOriginData::securityOrigin):
1694         * Shared/SecurityOriginData.h:
1695         Add helper to create a WebCore::SecurityOrigin from a SecurityOriginData object.
1696
1697         * WebProcess/Storage/StorageAreaProxy.cpp:
1698         (WebKit::StorageAreaProxy::key):
1699         Fill the storage map and call through to StorageMap::key.
1700
1701         (WebKit::StorageAreaProxy::contains):
1702         Fill the storage map and call through to StorageMap::contains.
1703
1704         (WebKit::StorageAreaProxy::memoryBytesUsedByCache):
1705         Return 0; this matches StorageAreaImpl.
1706
1707 2013-02-28  Tim Horton  <timothy_horton@apple.com>
1708
1709         PDFPlugin: PDF orientation isn't respected when printing or print-previewing
1710         https://bugs.webkit.org/show_bug.cgi?id=110925
1711         <rdar://problem/13008621>
1712
1713         Reviewed by Alexey Proskuryakov.
1714
1715         * WebProcess/WebPage/mac/WebPageMac.mm:
1716         (WebKit::drawPDFPage): Teach drawPDFPage about PDFPage's rotation property, and use it
1717         to swap the PDF's cropbox. Painting now matches PDFViewController's historical behavior.
1718
1719 2013-02-28  Sam Weinig  <sam@webkit.org>
1720
1721         Don't install unused XPCServices on Lion
1722         <rdar://problem/13264712>
1723
1724         Rubber-stamped by Anders Carlsson
1725
1726         * Configurations/BaseXPCService.xcconfig:
1727
1728 2013-02-28  David Kilzer  <ddkilzer@apple.com>
1729
1730         BUILD FIX (r144221): SetSmartInsertDeleteEnabled should be wrapped in PLATFORM(MAC)
1731
1732         * WebProcess/WebPage/WebPage.messages.in: Move
1733         SetSmartInsertDeleteEnabled from USE(APPKIT) to PLATFORM(MAC).
1734
1735 2013-02-27  Csaba Osztrogonác  <ossy@webkit.org>
1736
1737         [WK2] One more unreviewed buildfix for EFL, GTK and Qt after r144218.
1738
1739         * CMakeLists.txt:
1740         * GNUmakefile.list.am:
1741         * Target.pri:
1742         * WebProcess/Storage/StorageNamespaceProxy.cpp:
1743         (WebKit::StorageNamespaceProxy::copy):
1744
1745 2013-02-27  Zan Dobersek  <zdobersek@igalia.com>
1746
1747         Unreviewed (speculative) build fixes for EFL, GTK and Qt after r144218.
1748
1749         * CMakeLists.txt:
1750         * DerivedSources.pri:
1751         * GNUmakefile.list.am:
1752         * Target.pri:
1753
1754 2013-02-27  John Bauman  <jbauman@chromium.org>
1755
1756         Plugin in iframe may not display
1757         https://bugs.webkit.org/show_bug.cgi?id=109879
1758
1759         Reviewed by Simon Fraser.
1760
1761         Update geometry when cliprect changes.
1762
1763         * WebProcess/Plugins/PluginView.cpp:
1764         (WebKit::PluginView::clipRectChanged):
1765         * WebProcess/Plugins/PluginView.h:
1766
1767 2013-02-27  Jer Noble  <jer.noble@apple.com>
1768
1769         REGRESSION (48533): Full-frame plugins stopped working (download instead of loading the plugin)
1770         https://bugs.webkit.org/show_bug.cgi?id=111003
1771
1772         Reviewed by Anders Carlsson.
1773
1774         Also query the Page's pluginData when determining whether a given MIME type can be shown.
1775
1776         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
1777         (WKBundlePageCanShowMIMEType):
1778         * WebProcess/WebPage/WebPage.cpp:
1779         (WebKit::WebPage::canShowMIMEType):
1780         * WebProcess/WebPage/WebPage.h:
1781
1782 2013-02-27  Manuel Rego Casasnovas  <rego@igalia.com>
1783
1784         Add smartInsertDeleteEnabled setting to WebCore::Page
1785         https://bugs.webkit.org/show_bug.cgi?id=107840
1786
1787         Reviewed by Ryosuke Niwa.
1788
1789         * Shared/WebPageCreationParameters.cpp:
1790         (WebKit::WebPageCreationParameters::encode):
1791         (WebKit::WebPageCreationParameters::decode): Remove code related to
1792         isSmartInsertDeleteEnabled.
1793         * Shared/WebPageCreationParameters.h:
1794         (WebPageCreationParameters): Remove isSmartInsertDeleteEnabled.
1795         * Shared/WebPreferencesStore.h:
1796         (WebKit): Add macro for smartInsertDeleteEnabled setting.
1797         * UIProcess/API/C/WKPreferences.cpp:
1798         (WKPreferencesSetSmartInsertDeleteEnabled):
1799         (WKPreferencesGetSmartInsertDeleteEnabled): Implement methods using the
1800         new setting.
1801         * UIProcess/API/C/WKPreferencesPrivate.h: Add new methods headers.
1802         * UIProcess/WebPageProxy.cpp:
1803         (WebKit::WebPageProxy::initializeWebPage): Set smartInsertDeleteEnabled
1804         setting using m_isSmartInsertDeleteEnabled to keep initial value on Mac.
1805         (WebKit::WebPageProxy::creationParameters): Remove usage of
1806         parameters.isSmartInsertDeleteEnabled.
1807         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1808         (WebKit::WebEditorClient::smartInsertDeleteEnabled): Enable method for
1809         all platforms.
1810         * WebProcess/WebPage/WebPage.cpp:
1811         (WebKit::WebPage::WebPage): Remove m_isSmartInsertDeleteEnabled
1812         initialization.
1813         (WebKit::WebPage::updatePreferences): Set smartInsertDeleteEnabled
1814         setting.
1815         (WebKit::WebPage::isSmartInsertDeleteEnabled): Implement method using
1816         settings.
1817         (WebKit):
1818         (WebKit::WebPage::setSmartInsertDeleteEnabled): Implement method using
1819         settings.
1820         * WebProcess/WebPage/WebPage.h:
1821         (WebPage): Enable methods dealing with smartInsertDeleteEnabled for all
1822         platforms and remove m_isSmartInsertDeleteEnabled as it will be a
1823         setting.
1824
1825
1826 2013-02-27  Anders Carlsson  <andersca@apple.com>
1827
1828         More storage scaffolding
1829         https://bugs.webkit.org/show_bug.cgi?id=110997
1830
1831         Reviewed by Andreas Kling.
1832
1833         * DerivedSources.make:
1834         Add StorageAreaProxy.
1835         
1836         * UIProcess/Storage/StorageManager.cpp:
1837         (WebKit::StorageManager::setItem):
1838         Send back a DidSetItem message.
1839         
1840         * WebKit2.xcodeproj/project.pbxproj:
1841         Add generated files.
1842
1843         * WebProcess/Storage/StorageAreaProxy.cpp:
1844         (WebKit::StorageAreaProxy::StorageAreaProxy):
1845         Add the message receiver.
1846         
1847         (WebKit::StorageAreaProxy::~StorageAreaProxy):
1848         Remove the message receiver.
1849         
1850         (WebKit::StorageAreaProxy::didSetItem):
1851         add stub.
1852
1853         * WebProcess/Storage/StorageAreaProxy.h:
1854         (StorageAreaProxy):
1855         * WebProcess/Storage/StorageAreaProxy.messages.in: Added.
1856
1857 2013-02-27  Sam Weinig  <sam@webkit.org>
1858
1859         REGRESSION: Loading flash switches to discrete graphics, 100 MB on membuster
1860         <rdar://problem/13229828>
1861
1862         Reviewed by Dan Bernstein.
1863
1864         Due the change in CFBundleIdentifier, the WebProcess and PluginProcess were
1865         unnecessarily muxing (they used to be whitelisted by OpenGL) to the discrete
1866         GPU.
1867
1868         * PluginProcess/EntryPoint/mac/LegacyProcess/Info.plist:
1869         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64.Info.plist:
1870         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist:
1871         * WebProcess/EntryPoint/mac/LegacyProcess/Info.plist:
1872         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info.plist:
1873         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist:
1874         Add NSSupportsAutomaticGraphicsSwitching YES.
1875
1876         * WebKit2.xcodeproj/project.pbxproj:
1877         Re-add the PluginService.32-64.Info.plist plist to the project file.
1878
1879 2013-02-26  Alexey Proskuryakov  <ap@apple.com>
1880
1881         Don't add a body to platform request until necessary
1882         https://bugs.webkit.org/show_bug.cgi?id=110900
1883
1884         Reviewed by Brady Eidson.
1885
1886         * NetworkProcess/NetworkResourceLoader.cpp:
1887         (WebKit::NetworkResourceLoader::willSendRequest): Restore body after IPC. There
1888         is no way for the client to change it.
1889
1890         * Shared/Downloads/mac/DownloadMac.mm:
1891         (WebKit::Download::start):
1892         (WebKit::Download::startWithHandle):
1893         Pass UpdateHTTPBody when passing a request to NSURLConnection.
1894
1895         * Shared/mac/WebCoreArgumentCodersMac.mm: (CoreIPC::::encodePlatformData):
1896         Never serialize the request body. It's slow, and sometimes impossible, so just
1897         keeping things consistent.
1898
1899         * Shared/mac/WebURLRequestMac.mm: (WebKit::WebURLRequest::platformRequest):
1900         Pass DoNotUpdateHTTPBody, as we can't update it outside NetworkProcess.
1901
1902         * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
1903         (WebKit::CustomProtocolManagerProxy::startLoading): Ditto.
1904
1905         * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp:
1906         (WebKit::InjectedBundlePageResourceLoadClient::willSendRequestForFrame):
1907         Restore existing body after a client call..
1908
1909         * WebProcess/WebPage/mac/WebPageMac.mm: (WebKit::WebPage::platformCanHandleRequest):
1910         Pass DoNotUpdateHTTPBody, as we can't update it outside NetworkProcess.
1911
1912 2013-02-27  Glenn Adams  <glenn@skynav.com>
1913
1914         Add ENABLE_CSS3_TEXT_LINE_BREAK flag.
1915         https://bugs.webkit.org/show_bug.cgi?id=110944
1916
1917         Reviewed by Dean Jackson.
1918
1919         * Configurations/FeatureDefines.xcconfig:
1920
1921 2013-02-27  Michael Brüning  <michael.bruning@digia.com>
1922
1923         [Qt][WK2] Replace use of WebPreferences with use of WKPrefences C API
1924         https://bugs.webkit.org/show_bug.cgi?id=108952
1925
1926         Reviewed by Simon Hausmann.
1927
1928         Signed off for WebKit2 by Benjamin Poulain.
1929
1930         This patch moves the view classes and preferences in the Qt API
1931         to use the C API for accessing and manipulating preferences as
1932         part of the cleanup and move towards using the C API as base for
1933         the Qt WebKit2 API.
1934
1935         Adds the function WebKit::adoptToQString for convenience when
1936         dealing with QString and copied String objects.
1937
1938         Removes the ScrollAnimatorEnabled options from QWebPreferences.
1939
1940         * UIProcess/API/cpp/qt/WKStringQt.cpp:
1941         (WebKit::adoptToQString):
1942         * UIProcess/API/cpp/qt/WKStringQt.h:
1943         (WebKit):
1944         * UIProcess/API/qt/qquickwebview.cpp:
1945         (QQuickWebViewPrivate::initialize):
1946         * UIProcess/API/qt/qwebpreferences.cpp:
1947         (QWebPreferencesPrivate::testAttribute):
1948         (QWebPreferencesPrivate::setAttribute):
1949         (QWebPreferencesPrivate::setFontFamily):
1950         (QWebPreferencesPrivate::fontFamily):
1951         (QWebPreferencesPrivate::setFontSize):
1952         (QWebPreferencesPrivate::fontSize):
1953         * UIProcess/API/qt/qwebpreferences_p.h:
1954         * UIProcess/API/qt/qwebpreferences_p_p.h:
1955
1956 2013-02-26  Anders Carlsson  <andersca@apple.com>
1957
1958         Implement StorageAreaProxy::getItem and StorageAreaProxy::setItem
1959         https://bugs.webkit.org/show_bug.cgi?id=110927
1960
1961         Reviewed by Sam Weinig.
1962
1963         * UIProcess/Storage/StorageManager.cpp:
1964         (WebKit::StorageManager::setItem):
1965         * UIProcess/Storage/StorageManager.h:
1966         Add empty stub.
1967         
1968         * UIProcess/Storage/StorageManager.messages.in:
1969         Add SetItem message.
1970
1971         * WebProcess/Storage/StorageAreaProxy.cpp:
1972         (WebKit::StorageAreaProxy::getItem):
1973         Fill the storage map and get the item from it.
1974
1975         (WebKit::StorageAreaProxy::setItem):
1976         Update the storage map and send a SetItem message to the UI process.
1977
1978 2013-02-26  Anders Carlsson  <andersca@apple.com>
1979
1980         StorageAreaProxy should hold on to a StorageMap and not a HashMap
1981         https://bugs.webkit.org/show_bug.cgi?id=110919
1982
1983         Reviewed by Jessie Berlin.
1984
1985         Create a storage map instead of a hash map.
1986
1987         * WebProcess/Storage/StorageAreaProxy.cpp:
1988         (WebKit::StorageAreaProxy::length):
1989         (WebKit::StorageAreaProxy::loadValuesIfNeeded):
1990         * WebProcess/Storage/StorageAreaProxy.h:
1991         (WebCore):
1992         (StorageAreaProxy):
1993
1994 2013-02-26  Anders Carlsson  <andersca@apple.com>
1995
1996         Fix a copy/paste error in WebLoaderClient::didBlockInsecurePluginVersion
1997         https://bugs.webkit.org/show_bug.cgi?id=110914
1998         <rdar://problem/13297581>
1999
2000         Reviewed by Beth Dakin.
2001
2002         Pass kWKErrorCodeInsecurePlugInVersion to the pluginDidFail callback.
2003
2004         * UIProcess/WebLoaderClient.cpp:
2005         (WebKit::WebLoaderClient::didBlockInsecurePluginVersion):
2006
2007 2013-02-26  Jer Noble  <jer.noble@apple.com>
2008
2009         Unreviewed build fix; use correct macro for platform name in FeatureDefines.xcconfig.
2010
2011         * Configurations/FeatureDefines.xcconfig:
2012
2013 2013-02-26  Manuel Rego Casasnovas  <rego@igalia.com>
2014
2015         [WK2][GTK] REGRESSION (r143463): unit test failure in WebKit2APITests/TestContextMenu
2016         https://bugs.webkit.org/show_bug.cgi?id=110869
2017
2018         Reviewed by Martin Robinson.
2019
2020         Test was failing because of new media controls needs more space to be
2021         painted than just 10x10 pixels.
2022
2023         * UIProcess/API/gtk/tests/TestContextMenu.cpp:
2024         (testContextMenuDefaultMenu): Modified test in order to give more space
2025         to the media controls.
2026
2027 2013-02-26  Dean Jackson  <dino@apple.com>
2028
2029         Draw intermediate snapshots if possible
2030         https://bugs.webkit.org/show_bug.cgi?id=110811
2031
2032         Reviewed by Simon Fraser.
2033
2034         After http://webkit.org/b/110495 we delayed snapshotting until we've
2035         received a nice image, but this made the page look like it is broken.
2036         We should draw any intermediate snapshots that we find, which might
2037         include content such as progress bars/spinners.
2038
2039         * WebProcess/Plugins/PluginView.cpp:
2040         (WebKit): Reinstate 60 attempts at snapshots before giving up.
2041         (WebKit::PluginView::isAcceleratedCompositingEnabled): We do not
2042         want accelerated compositing enabled when we are trying to capture
2043         snapshots.
2044
2045 2013-02-26  Andras Becsi  <andras.becsi@digia.com>
2046
2047         Remove nonexistent StringPairVector.h from Target.pri after r142839
2048
2049         Unreviewed gardening.
2050
2051         * Target.pri:
2052
2053 2013-02-26  Simon Hausmann  <simon.hausmann@digia.com>
2054
2055         Unreviewed trivial !ENABLE(NETSCAPE_PLUGIN_API) build fix
2056
2057         Add an intermediate pluginName string variable instead of
2058         accessing plugin.info outside the feature #ifdef.
2059
2060         * UIProcess/WebPageProxy.cpp:
2061         (WebKit::WebPageProxy::unavailablePluginButtonClicked):
2062
2063 2013-02-25  Huang Dongsung  <luxtella@company100.net>
2064
2065         Coordinated Graphics: remove redundant update of non compositing layer.
2066         https://bugs.webkit.org/show_bug.cgi?id=110444
2067
2068         Reviewed by Noam Rosenthal.
2069
2070         Currently, we update non compositing layer when the page scrolled. However, it
2071         is not needed, because TiledBackingStore can scroll without tile update.
2072
2073         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2074         (WebKit::CoordinatedLayerTreeHost::scrollNonCompositedContents):
2075         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
2076         (CoordinatedLayerTreeHost):
2077
2078 2013-02-25  Jer Noble  <jer.noble@apple.com>
2079
2080         REGRESSION(r143981): Crash in WebFrameLoaderClient::dispatchDidStartProvisionalLoad()
2081         https://bugs.webkit.org/show_bug.cgi?id=110848
2082
2083         Reviewed by Ryosuke Niwa.
2084
2085         NULL-check the result of document->documentElement().
2086
2087         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2088         (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
2089
2090 2013-02-25  Anders Carlsson  <andersca@apple.com>
2091
2092         Add a new unavailablePluginButtonClicked callback that takes a WKDictionary of plug-in information
2093         https://bugs.webkit.org/show_bug.cgi?id=110821
2094
2095         Reviewed by Beth Dakin.
2096
2097         * UIProcess/API/C/WKPage.cpp:
2098         (WKPageGetPluginInformationPluginspageAttributeURLKey):
2099         (WKPageGetPluginInformationPluginURLKey):
2100         Add two new API key getters.
2101         
2102         * UIProcess/API/C/WKPage.h:
2103         Add a new callback and deprecate the old callback.
2104         
2105         * UIProcess/WebLoaderClient.cpp:
2106         (WebKit::WebLoaderClient::didFailToInitializePlugin):
2107         (WebKit::WebLoaderClient::didBlockInsecurePluginVersion):
2108         (WebKit::WebLoaderClient::pluginLoadPolicy):
2109         Make the pluginInformationDictionary a static member function of WebPageProxy so it
2110         can be called from WebUIClient as well.
2111         
2112         * UIProcess/WebPageProxy.cpp:
2113         (WebKit::WebPageProxy::getPluginPath):
2114         Pass the bundle version as well.
2115
2116         (WebKit::WebPageProxy::pluginInformationPluginspageAttributeURLKey):
2117         (WebKit::WebPageProxy::pluginInformationPluginURLKey):
2118         Add two new keys.
2119
2120         (WebKit::WebPageProxy::pluginInformationDictionary):
2121         Handle more keys.
2122
2123         (WebKit::WebPageProxy::unavailablePluginButtonClicked):
2124         Get the plug-in bundle identifier and version.
2125
2126         * UIProcess/WebPageProxy.messages.in:
2127         Pass along more information; the frame and page URLs.
2128
2129         * UIProcess/WebUIClient.cpp:
2130         (WebKit::WebUIClient::unavailablePluginButtonClicked):
2131         Call the new callback if it's supported.
2132
2133         * UIProcess/WebUIClient.h:
2134         (WebUIClient):
2135         * UIProcess/mac/WebInspectorProxyMac.mm:
2136         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
2137         Update for API changes.
2138
2139         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2140         (WebKit::WebChromeClient::unavailablePluginButtonClicked):
2141         Ensure that the pluginspage attribute is a valid URL.
2142
2143 2013-02-21  Jeffrey Pfau  <jpfau@apple.com>
2144
2145         Optionally partition cache to prevent using cache for tracking
2146         https://bugs.webkit.org/show_bug.cgi?id=110269
2147
2148         Reviewed by Maciej Stachowiak.
2149
2150         Update WKSI bindings and add feature defines.
2151
2152         * Configurations/FeatureDefines.xcconfig: Add defines for cache partitioning and public suffix list usage
2153         * WebCoreSupport/WebSystemInterface.mm:
2154         (InitWebCoreSystemInterface):
2155
2156 2013-02-25  Jer Noble  <jer.noble@apple.com>
2157
2158         Normalize ENABLE_ENCRYPTED_MEDIA definitions across all FeatureDefines files.
2159         https://bugs.webkit.org/show_bug.cgi?id=110806
2160
2161         Ensure both ENCRYPTED_MEDIA and ENCRYPTED_MEDIA_V2 are enabled on macosx_1090.
2162
2163         Reviewed by Alexey Proskuryakov.
2164
2165         * Configurations/FeatureDefines.xcconfig:
2166
2167 2013-02-25  Jer Noble  <jer.noble@apple.com>
2168
2169         Full screen mode should not exit when application resigns active state.
2170         https://bugs.webkit.org/show_bug.cgi?id=106129
2171
2172         Reviewed by Darin Adler.
2173
2174         Now that full screen windows get their own full screen space, there is no reason to exit full
2175         screen mode when the application resigns active state. Instead, the windowserver will bring the
2176         space containing the newly active application to the foreground. The user can then swipe back
2177         to the full screen space (or use Mission Control) to get back to the full screen window.
2178
2179         * UIProcess/mac/WKFullScreenWindowController.mm:
2180         (-[WKFullScreenWindowController windowDidLoad]): Remove the applicationDidResignActive: notification from WKFullScreenWindowController.
2181
2182 2013-02-25  Jer Noble  <jer.noble@apple.com>
2183
2184         Safari shows empty window and paints webpage in full-screen background
2185         https://bugs.webkit.org/show_bug.cgi?id=103712
2186
2187         Reviewed by Darin Adler.
2188
2189         When canceling full screen mode due to a provisional load, exit normally instead of closing the
2190         full screen window controller. Additionally, to ensure full screen is cancelled when the enclosing
2191         frame around a full screen iframe is navigated, check to see if the navigating document contains
2192         a full screen element, rather than checking whether the document itself is full screen.
2193
2194         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2195         (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
2196
2197 2013-02-25  Anders Carlsson  <andersca@apple.com>
2198
2199         Fix build.
2200
2201         * UIProcess/WebPageProxy.cpp:
2202         (WebKit::WebPageProxy::didBlockInsecurePluginVersion):
2203
2204 2013-02-25  Anders Carlsson  <andersca@apple.com>
2205
2206         Add a new pluginDidFail callback that takes a WKDictionary of plug-in information
2207         https://bugs.webkit.org/show_bug.cgi?id=110793
2208         <rdar://problem/13265303>
2209
2210         Reviewed by Sam Weinig.
2211
2212         Add a new pluginDidFail callback that takes a WKDictionaryRef and also pass in the
2213         frame and page URLs.
2214
2215         * UIProcess/API/C/WKPage.h:
2216         * UIProcess/WebLoaderClient.cpp:
2217         (WebKit::pluginInformationDictionary):
2218         (WebKit::WebLoaderClient::didFailToInitializePlugin):
2219         (WebKit::WebLoaderClient::didBlockInsecurePluginVersion):
2220         (WebKit::WebLoaderClient::pluginLoadPolicy):
2221         * UIProcess/WebLoaderClient.h:
2222         * UIProcess/WebPageProxy.cpp:
2223         (WebKit::WebPageProxy::didFailToInitializePlugin):
2224         (WebKit::WebPageProxy::didBlockInsecurePluginVersion):
2225         * UIProcess/WebPageProxy.h:
2226         * UIProcess/WebPageProxy.messages.in:
2227         * WebProcess/Plugins/PluginView.cpp:
2228         (WebKit::PluginView::didFailToInitializePlugin):
2229         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2230         (WebKit::WebFrameLoaderClient::createJavaAppletWidget):
2231         * WebProcess/WebPage/WebPage.cpp:
2232         (WebKit::WebPage::createPlugin):
2233
2234 2013-02-25  Tim Horton  <timothy_horton@apple.com>
2235
2236         PDFPlugin: Tab between text annotations
2237         https://bugs.webkit.org/show_bug.cgi?id=106539
2238         <rdar://problem/12751789>
2239
2240         Reviewed by Darin Adler.
2241
2242         Use [PDFLayerController activateNextAnnotation:] to advance focus when the tab key is hit while inside a PDF form.
2243
2244         Also, a drive-by fix to make the lifetime of PDFPluginAnnotationEventListener's m_annotation pointer more explicit.
2245
2246         * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h: Add activateNextAnnotation: SPI.
2247         * WebProcess/Plugins/PDF/PDFPlugin.h:
2248         (PDFPlugin): Add focus(Next|Previous)Annotation.
2249         * WebProcess/Plugins/PDF/PDFPlugin.mm:
2250         (WebKit::PDFPlugin::focusNextAnnotation): Ask PDFLayerController to focus the next annotation.
2251         (WebKit::PDFPlugin::focusPreviousAnnotation): Ask PDFLayerController to focus the next annotation.
2252         * WebProcess/Plugins/PDF/PDFPluginAnnotation.h: Drive-by, initialize m_parent to 0.
2253         (WebKit::PDFPluginAnnotation::PDFPluginAnnotationEventListener::setAnnotation): Added.
2254         * WebProcess/Plugins/PDF/PDFPluginAnnotation.mm:
2255         (WebKit::PDFPluginAnnotation::attach): Use eventNames() instead of string literals.
2256         (WebKit::PDFPluginAnnotation::~PDFPluginAnnotation): Clear the event listener's reference to its annotation.
2257         (WebKit::PDFPluginAnnotation::PDFPluginAnnotationEventListener::handleEvent): Null-check the event listener's annotation.
2258         * WebProcess/Plugins/PDF/PDFPluginTextAnnotation.h:
2259         (WebKit::PDFPluginTextAnnotation::PDFPluginTextAnnotation): Create our PDFPluginTextAnnotationEventListener.
2260         (PDFPluginTextAnnotationEventListener): Added an event listener (for keydown events in form fields).
2261         (WebKit::PDFPluginTextAnnotation::PDFPluginTextAnnotationEventListener::create):
2262         (WebKit::PDFPluginTextAnnotation::PDFPluginTextAnnotationEventListener::setTextAnnotation):
2263         (WebKit::PDFPluginTextAnnotation::PDFPluginTextAnnotationEventListener::PDFPluginTextAnnotationEventListener):
2264         * WebProcess/Plugins/PDF/PDFPluginTextAnnotation.mm:
2265         (WebKit::PDFPluginTextAnnotation::~PDFPluginTextAnnotation): Unregister our keydown event listener.
2266         (WebKit::PDFPluginTextAnnotation::createAnnotationElement): Register our keydown event listener.
2267         (WebKit::PDFPluginTextAnnotation::PDFPluginTextAnnotationEventListener::handleEvent): Ask PDFPlugin to focus
2268         the next/previous annotation when the tab key is pressed (Shift-Tab goes backwards).
2269
2270 2013-02-25  Alexey Proskuryakov  <ap@apple.com>
2271
2272         <rdar://problem/12976385> Remove rule to silence attempts to create the ~/Library/Caches/com.apple.WebKit2.WebProcessService directory
2273
2274         Reviewed by Anders Carlsson.
2275
2276         * WebProcess/com.apple.WebProcess.sb.in: Remove the obsolete rule. We no longer
2277         have a "WebProcessService".
2278
2279 2013-02-25  Andras Becsi  <andras.becsi@digia.com>
2280
2281         [Qt][WK2] Remove unneeded method didResumeContent from PageViewportController clients
2282         https://bugs.webkit.org/show_bug.cgi?id=110751
2283
2284         Reviewed by Jocelyn Turcotte.
2285
2286         This is a clean-up in the PageViewportController clients that removes leftover
2287         code from previous design that is partially unused and unnecessary, to simplify
2288         the interaction between PageViewportController and clients.
2289
2290         * UIProcess/PageViewportController.cpp:
2291         (WebKit::PageViewportController::resumeContent):
2292         * UIProcess/PageViewportControllerClient.h:
2293         (PageViewportControllerClient):
2294         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
2295         * UIProcess/efl/PageViewportControllerClientEfl.h:
2296         (PageViewportControllerClientEfl):
2297         * UIProcess/qt/PageViewportControllerClientQt.cpp:
2298         (WebKit::PageViewportControllerClientQt::animateContentRectVisible):
2299         (WebKit::PageViewportControllerClientQt::flickMoveEnded):
2300         (WebKit::PageViewportControllerClientQt::resumeAndUpdateContent):
2301         (WebKit::PageViewportControllerClientQt::pinchGestureCancelled):
2302         * UIProcess/qt/PageViewportControllerClientQt.h:
2303         (PageViewportControllerClientQt):
2304
2305 2013-02-25  Andreas Kling  <akling@apple.com>
2306
2307         Reduce amount of code that includes StylePropertySet.h
2308         <http://webkit.org/b/101149>
2309
2310         Reviewed by Antti Koivisto.
2311
2312         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
2313
2314 2013-02-24  Andreas Kling  <akling@apple.com>
2315
2316         Reduce include graph of JSDOMBinding.h
2317         <http://webkit.org/b/110709>
2318
2319         Reviewed by Antti Koivisto.
2320
2321         * Shared/WebRenderObject.cpp:
2322         (WebKit::WebRenderObject::WebRenderObject):
2323         * WebProcess/Storage/StorageAreaProxy.cpp:
2324
2325 2013-02-22  Sam Weinig  <sam@webkit.org>
2326
2327         Add temporary work around for 32-bit plugins not working in production builds as XPCServices
2328         https://bugs.webkit.org/show_bug.cgi?id=110680
2329         <rdar://problem/13236883>
2330
2331         Reviewed by Anders Carlsson.
2332
2333         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
2334         (WebKit::shouldUseXPC):
2335         Temporarily don't use XPC for plug-ins for Safari while we figure out why the
2336         32-bit XPCService is being built universal.
2337
2338 2013-02-22  Tim Horton  <timothy_horton@apple.com>
2339
2340         [WK2] The root and page overlay layers should be the size of the view, not the content
2341         https://bugs.webkit.org/show_bug.cgi?id=110660
2342         <rdar://problem/13096456>
2343
2344         Reviewed by Simon Fraser.
2345
2346         Use the view size for the size of the root and page overlay layers.
2347         For one, we never update these layers' sizes when the content size changes, causing size mismatches.
2348         In addition, there's no reason an overlay shouldn't be able to draw outside of the bounds of the content.
2349
2350         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
2351         (WebKit::TiledCoreAnimationDrawingArea::updateGeometry):
2352         (WebKit::TiledCoreAnimationDrawingArea::createPageOverlayLayer):
2353
2354 2013-02-22  Anders Carlsson  <andersca@apple.com>
2355
2356         pluginLoadStrategy should take a WKDictionaryRef for extensibility
2357         https://bugs.webkit.org/show_bug.cgi?id=110656
2358         <rdar://problem/13265303>
2359
2360         Reviewed by Jessie Berlin.
2361
2362         Change pluginLoadStrategy to take a WKDictionaryRef instead of a number of parameters;
2363         this lets us add more plug-in information if needed. Also add the page URL and rename documentURL to frameURL.
2364
2365         * UIProcess/API/C/WKPage.cpp:
2366         (WKPageGetPluginInformationBundleIdentifierKey):
2367         (WKPageGetPluginInformationBundleVersionKey):
2368         (WKPageGetPluginInformationDisplayNameKey):
2369         (WKPageGetPluginInformationFrameURLKey):
2370         (WKPageGetPluginInformationMIMETypeKey):
2371         (WKPageGetPluginInformationPageURLKey):
2372         * UIProcess/API/C/WKPage.h:
2373         * UIProcess/WebLoaderClient.cpp:
2374         (WebKit):
2375         (WebKit::WebLoaderClient::pluginLoadPolicy):
2376         * UIProcess/WebLoaderClient.h:
2377         (WebLoaderClient):
2378         * UIProcess/WebPageProxy.cpp:
2379         (WebKit::WebPageProxy::getPluginPath):
2380         (WebKit::WebPageProxy::pluginInformationBundleIdentifierKey):
2381         (WebKit):
2382         (WebKit::WebPageProxy::pluginInformationBundleVersionKey):
2383         (WebKit::WebPageProxy::pluginInformationDisplayNameKey):
2384         (WebKit::WebPageProxy::pluginInformationFrameURLKey):
2385         (WebKit::WebPageProxy::pluginInformationMIMETypeKey):
2386         (WebKit::WebPageProxy::pluginInformationPageURLKey):
2387         * UIProcess/WebPageProxy.h:
2388         (WebPageProxy):
2389         * UIProcess/WebPageProxy.messages.in:
2390         * WebProcess/WebPage/WebPage.cpp:
2391         (WebKit::WebPage::createPlugin):
2392         (WebKit::WebPage::canPluginHandleResponse):
2393
2394 2013-02-22  Anders Carlsson  <andersca@apple.com>
2395
2396         Move pluginLoadPolicy to the page loader client
2397         https://bugs.webkit.org/show_bug.cgi?id=110635
2398         <rdar://problem/13265303>
2399         
2400         Reviewed by Sam Weinig.
2401
2402         Move the pluginLoadPolicy callback to the page loader client where it belongs.
2403
2404         * UIProcess/API/C/WKPage.h:
2405         * UIProcess/WebLoaderClient.cpp:
2406         (WebKit::toWKPluginLoadPolicy):
2407         (WebKit):
2408         (WebKit::toPluginModuleLoadPolicy):
2409         (WebKit::WebLoaderClient::pluginLoadPolicy):
2410         * UIProcess/WebLoaderClient.h:
2411         (WebLoaderClient):
2412         * UIProcess/WebPageProxy.cpp:
2413         (WebKit::WebPageProxy::getPluginPath):
2414         * UIProcess/WebUIClient.cpp:
2415         (WebKit):
2416         * UIProcess/WebUIClient.h:
2417         (WebUIClient):
2418         * UIProcess/mac/WebInspectorProxyMac.mm:
2419         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
2420
2421 2013-02-21  Jer Noble  <jer.noble@apple.com>
2422
2423         Two video contollers appear after exiting the fullscreen video when using menubar to exit.
2424         https://bugs.webkit.org/show_bug.cgi?id=110506
2425
2426         Reviewed by Eric Carlson.
2427
2428         When we are notified that the fullscreen window is about to exit fullscreen mode unrequested,
2429         call requestExitFullScreen(), as that will result in Document::webkitExitFullScreen() correctly
2430         tearing down the fullscreen state.
2431
2432         * UIProcess/mac/WKFullScreenWindowController.mm:
2433         (-[WKFullScreenWindowController _startExitFullScreenAnimationWithDuration:]):
2434
2435 2013-02-22  Balazs Kelemen  <kbalazs@webkit.org>
2436
2437         Yet another unreviewed buildfix after r143714.
2438
2439         * UIProcess/efl/WebView.cpp:
2440         (WebKit::WebView::paintToCairoSurface):
2441
2442 2013-02-22  Balazs Kelemen  <kbalazs@webkit.org>
2443
2444         Unreviewed preventive buildfix after my last commit.
2445
2446         * UIProcess/API/efl/EwkView.cpp:
2447         * UIProcess/efl/WebView.cpp:
2448
2449 2013-02-22  Balazs Kelemen  <kbalazs@webkit.org>
2450
2451         [CoordGfx] Minor cleanup in CoordinatedGraphicsScene::paintToGraphicsContext
2452         https://bugs.webkit.org/show_bug.cgi?id=109824
2453
2454         Reviewed by Andreas Kling.
2455
2456         Avoid ugly ifdefs by using PlatformGraphicsContext.
2457
2458         * UIProcess/API/efl/EwkView.cpp:
2459         (EwkView::displayTimerFired):
2460
2461 2013-02-22  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2462
2463         [WK2][EFL] Remove declaration of non-existent functions from EwkView
2464         https://bugs.webkit.org/show_bug.cgi?id=110572
2465
2466         Reviewed by Kenneth Rohde Christiansen.
2467
2468         Removed declarations of non-existent EwkView::paintToCurrentGLContext() and
2469         EwkView::paintToCairoSurface(cairo_surface_t*) that were accidentally
2470         left at r143699.
2471
2472         * UIProcess/API/efl/EwkView.h:
2473         (EwkView):
2474
2475 2013-02-22  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2476
2477         [WK2][EFL] Clean up PageViewportControllerClientEfl class
2478         https://bugs.webkit.org/show_bug.cgi?id=110438
2479
2480         Reviewed by Andreas Kling.
2481
2482         Cleaned up PageViewportControllerClientEfl class from unused methods
2483         and class members, eliminated access to WK2 internals from this class.
2484
2485         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
2486         (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
2487         * UIProcess/efl/PageViewportControllerClientEfl.h:
2488         (WebKit::PageViewportControllerClientEfl::~PageViewportControllerClientEfl):
2489         (PageViewportControllerClientEfl):
2490         * UIProcess/efl/WebView.cpp:
2491         (WebKit::WebView::WebView):
2492         (WebKit::WebView::updateViewportSize):
2493
2494 2013-02-22  Michał Pakuła vel Rutka  <m.pakula@samsung.com>
2495
2496         [WK2][EFL][GTK][Qt] Add context menu item tags for C API
2497         https://bugs.webkit.org/show_bug.cgi?id=109815
2498
2499         Reviewed by Anders Carlsson.
2500
2501         This patch adds context menu item tags used by EFL, GTK and Qt ports, defined in
2502         WebCore to WK2 C API.
2503
2504         * Shared/API/c/WKContextMenuItemTypes.h:
2505         * Shared/API/c/WKSharedAPICast.h:
2506         (WebKit::toAPI):
2507         (WebKit::toImpl):
2508
2509 2013-02-22  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2510
2511         [WK2][EFL] Move AC code from EwkView to WebView
2512         https://bugs.webkit.org/show_bug.cgi?id=110216
2513
2514         Reviewed by Anders Carlsson.
2515
2516         Accelerated compositing code is moved from EwkView to WebView.
2517         Added new WKView API to be used from EwkView instead of direct accessing
2518         to coordinated graphics scene.
2519
2520         * UIProcess/API/C/efl/WKView.cpp:
2521         (WKViewSetUserViewportTranslation):
2522         (WKViewUserViewportToContents):
2523         (WKViewPaintToCurrentGLContext):
2524         (WKViewPaintToCairoSurface):
2525         * UIProcess/API/C/efl/WKView.h:
2526
2527             Added WKView API functions.
2528
2529         * UIProcess/API/efl/EwkView.cpp:
2530         (EwkView::EwkView):
2531         (EwkView::displayTimerFired):
2532         (EwkView::feedTouchEvent):
2533         (EwkView::createGLSurface):
2534         (EwkView::handleEvasObjectCalculate):
2535         (EwkView::handleEwkViewMouseWheel):
2536         (EwkView::handleEwkViewMouseDown):
2537         (EwkView::handleEwkViewMouseUp):
2538         (EwkView::handleEwkViewMouseMove):
2539         * UIProcess/API/efl/EwkView.h:
2540         (EwkView):
2541
2542             Using new WKView API.
2543
2544         * UIProcess/efl/WebView.cpp:
2545         (WebKit::WebView::initialize):
2546         (WebKit):
2547         (WebKit::WebView::paintToCurrentGLContext):
2548         (WebKit::WebView::paintToCairoSurface):
2549         (WebKit::WebView::userViewportToContents):
2550         (WebKit::WebView::transformFromScene):
2551         (WebKit::WebView::transformToScene):
2552         (WebKit::WebView::coordinatedGraphicsScene):
2553         (WebKit::WebView::enterAcceleratedCompositingMode):
2554         (WebKit::WebView::exitAcceleratedCompositingMode):
2555         * UIProcess/efl/WebView.h:
2556         (WebCore):
2557         (WebKit::WebView::setUserViewportTranslation):
2558         (WebView):
2559
2560             Added WebView methods to support new WKView API.
2561
2562 2013-02-21  Dima Gorbik  <dgorbik@apple.com>
2563
2564         QuickTime plugin doesn't load when accelerated compositing is disabled
2565         https://bugs.webkit.org/show_bug.cgi?id=110534
2566
2567         Reviewed by Anders Carlsson.
2568
2569         We shouldn't disable accelerated compositing for plugins, because
2570         plugins such as QuickTime rely on this and will try to set other drawing
2571         models that we don't support.
2572
2573         * WebProcess/Plugins/PluginView.cpp:
2574         (WebKit::PluginView::isAcceleratedCompositingEnabled):
2575
2576 2013-02-21  Dean Jackson  <dino@apple.com>
2577
2578         Plug-in snapshotting code always accepts first snapshot
2579         https://bugs.webkit.org/show_bug.cgi?id=110495
2580
2581         Reviewed by Tim Horton.
2582
2583         When we detect a plugin that can be snapshotted we start capturing
2584         images until we find one that we believe isn't blank, or we timeout.
2585         I introduced a regression recently where we swap renderers as
2586         soon as the snapshot arrives, whether or not is is blank.
2587
2588         The fix was to have the embedder (currently only WK2) be the one
2589         who tells the HTMLPlugInElement to start displaying snapshots.
2590
2591         * WebProcess/Plugins/PluginView.cpp:
2592         (WebKit::PluginView::pluginSnapshotTimerFired): When we find a
2593         snapshot that we like, tell the HTMLPlugInElement to move to
2594         the snapshot view.
2595
2596 2013-02-21  Carlos Garcia Campos  <cgarcia@igalia.com>
2597
2598         Unreviewed. Fix make distcheck.
2599
2600         * GNUmakefile.am: Add -DBUILDING_WEBKIT flags to introspection
2601         scanner.
2602         * GNUmakefile.list.am: Add missing header to compilation and
2603         remove one that no longer exists.
2604
2605 2013-02-21  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2606
2607         [WK2][EFL] Move PageViewportController and PageViewportControllerClientEfl out from WebView
2608         https://bugs.webkit.org/show_bug.cgi?id=110345
2609
2610         Reviewed by Andreas Kling.
2611
2612         WebView does not need to know about both PageViewportController and 
2613         PageViewportControllerClientEfl. Considering the fact that PageViewportController
2614         will stop being WK2 internal and will be based on WK2 C API, it 
2615         should be owned by EwkView rather than WebView.
2616
2617         This patch is also a preparation for WKViewClient API extension to cover all
2618         the places where PageViewportController and PageViewportControllerClientEfl
2619         are accessed directly from WebView at the moment.
2620
2621         * UIProcess/API/efl/EwkView.cpp:
2622         (EwkView::EwkView):
2623         * UIProcess/API/efl/EwkView.h:
2624         (WebKit):
2625         (EwkView::pageViewportControllerClient):
2626         (EwkView::pageViewportController):
2627         (EwkView):
2628         * UIProcess/efl/WebView.cpp:
2629         (WebKit::WebView::didCommitLoad):
2630         (WebKit::WebView::updateViewportSize):
2631         (WebKit::WebView::didChangeContentsSize):
2632         (WebKit::WebView::didChangeViewportProperties):
2633         (WebKit::WebView::pageDidRequestScroll):
2634         (WebKit::WebView::didRenderFrame):
2635         (WebKit::WebView::pageTransitionViewportReady):
2636         * UIProcess/efl/WebView.h:
2637         (WebView):
2638
2639 2013-02-20  Tim Horton  <timothy_horton@apple.com>
2640
2641         Provide WKView SPI to defer telling the WebPageProxy and WebProcess about changes in the hosting window
2642         https://bugs.webkit.org/show_bug.cgi?id=110415
2643         <rdar://problem/13095405>
2644
2645         Reviewed by Simon Fraser.
2646
2647         * UIProcess/API/mac/WKView.mm: Add _viewInWindowChangesDeferredCount and _viewInWindowChangeWasDeferred to WKViewData.
2648         (-[WKView viewDidMoveToWindow]): If we're deferring window changes, don't include the ViewIsInWindow flag
2649         when sending viewStateDidChange. Instead, save the fact that we want to do that later aside.
2650         (-[WKView beginDeferringViewInWindowChanges]):
2651         (-[WKView endDeferringViewInWindowChanges]): Straightforward begin/end pair. When we exit the last pair and
2652         have a pending window change, let the WebPageProxy know. WebPageProxy will do the check to ensure that
2653         the in-window state has actually changed.
2654         (-[WKView isDeferringViewInWindowChanges]):
2655         * UIProcess/API/mac/WKViewPrivate.h: 
2656
2657 2013-02-20  Kiran Muppala  <cmuppala@apple.com>
2658
2659         Disable window occlusion notifications for App Store on Mac.
2660         https://bugs.webkit.org/show_bug.cgi?id=110417
2661
2662         Reviewed by Simon Fraser.
2663
2664         Temporary fix to workaround issues with window occlusion notifications
2665         in App Store.
2666
2667         * UIProcess/API/mac/WKView.mm:
2668         (+[WKView _registerWindowOcclusionNotificationHandlers]): Return early
2669         if the main bundle identifier matches that of App Store.
2670
2671 2013-02-20  Mark Rowe  <mrowe@apple.com>
2672
2673         <https://webkit.org/b/110410> Specify the plug-in process / service entitlements via the Xcode configuration.
2674
2675         This is the modern mechanism for applying entitlements to production builds,
2676         and it simplifies the maintenance of entitlements going forward. It also allows
2677         us to fix the new XPC PluginServices to have the same entitlements as PluginProcess.
2678
2679         Reviewed by Alexey Proskuryakov.
2680
2681         * Configurations/Base.xcconfig: Ad-hoc sign all WebKit2 components.
2682         * Configurations/PluginProcess.xcconfig: Specify the entitlements to use.
2683         * Configurations/PluginService.32.xcconfig: Ditto.
2684         * Configurations/PluginService.64.xcconfig: Ditto.
2685         * Configurations/PluginService.Development.xcconfig: Ditto.
2686         * Configurations/PluginService.entitlements: Renamed from Source/WebKit2/PluginProcess/mac/PluginProcess.entitlements.
2687         Move the entitlements in to the Configurations directory to make them easier to find.
2688         * PluginProcess/mac/add-entitlements.sh: Removed. In my testing the dependency issue mentioned
2689         in the script is not an issue with current versions of Xcode. If we see it again we can come
2690         up with a workaround that doesn't involve performing the signing via a script phase.
2691         * WebKit2.xcodeproj/project.pbxproj:
2692
2693 2013-02-20  Mark Rowe  <mrowe@apple.com>
2694
2695         <https://webkit.org/b/110409> Remove duplication between 32- and 64-bit PluginService plists.
2696
2697         Reviewed by Dan Bernstein.
2698
2699         The only difference between the plists was the CFBundleIdentifier. Since the values are the
2700         same as the product name, we can just use the value of the PRODUCT_NAME configuration setting.
2701
2702         * Configurations/PluginService.32.xcconfig:
2703         * Configurations/PluginService.64.xcconfig:
2704         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64.Info.plist: Renamed from Source/WebKit2/PluginProcess/EntryPoint/mac/XPCService/PluginService.32/Info.plist.
2705         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/Info.plist: Removed.
2706
2707 2013-02-20  Simon Fraser  <simon.fraser@apple.com>
2708
2709         Zoomed, slow-scrolling pages keep recreating tiles when scrolled
2710         https://bugs.webkit.org/show_bug.cgi?id=110379
2711
2712         Reviewed by Tim Horton.
2713
2714         Make the visible rect and exposed rects passed through
2715         the drawing area to the tile cache FloatRects instead of IntRects.
2716
2717         * UIProcess/API/mac/WKView.mm:
2718         (-[WKView setFrameSize:]):
2719         (-[WKView _updateWindowAndViewFrames]):
2720         (-[WKView enableFrameSizeUpdates]):
2721         (-[WKView setMinimumWidthForAutoLayout:]):
2722         * UIProcess/WebPageProxy.h:
2723         * UIProcess/mac/WebPageProxyMac.mm:
2724         (WebKit::WebPageProxy::viewExposedRectChanged):
2725         * WebProcess/WebPage/DrawingArea.h:
2726         (WebKit::DrawingArea::setExposedRect):
2727         * WebProcess/WebPage/WebPage.cpp:
2728         (WebKit::WebPage::viewExposedRectChanged):
2729         * WebProcess/WebPage/WebPage.h:
2730         * WebProcess/WebPage/WebPage.messages.in:
2731         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
2732         (TiledCoreAnimationDrawingArea):
2733         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
2734         (WebKit::TiledCoreAnimationDrawingArea::setExposedRect):
2735
2736 2013-02-20  Dirk Schulze  <krit@webkit.org>
2737
2738         Enable CANVAS_PATH flag
2739         https://bugs.webkit.org/show_bug.cgi?id=108508
2740
2741         Reviewed by Simon Fraser.
2742
2743         Enable CANVAS_PATH flag on trunk.
2744
2745         * Configurations/FeatureDefines.xcconfig:
2746
2747 2013-02-20  Laszlo Gombos  <l.gombos@samsung.com>
2748
2749         Remove unnecessary includes for Platform.h from headers
2750         https://bugs.webkit.org/show_bug.cgi?id=110300
2751
2752         Reviewed by Alexey Proskuryakov.
2753
2754         wtf/Platform.h only need to be included in a few places directly    
2755         as it is included in config.h. Remove the unnecessay duplicate as    
2756         it can be confusing.
2757
2758         * Shared/PrintInfo.h:
2759
2760 2013-02-20  Huang Dongsung  <luxtella@company100.net>
2761
2762         [WK2] Remove m_viewportSize in WebPage.
2763         https://bugs.webkit.org/show_bug.cgi?id=110311
2764
2765         Reviewed by Anders Carlsson.
2766
2767         EFL and Qt use m_viewSize as a contents size while Apple use it as a viewport
2768         size, so EFL and Qt introduced m_viewportSize to make WebPage know a viewport
2769         size.
2770
2771         EFL and Qt use m_viewSize as a contents size because the size of non compositing
2772         layer is contents size, and EFL and Qt mark whole non compositing layer as dirty
2773         using m_viewSize. Bug 110299 (http://webkit.org/b/110299) changes that it is not
2774         necessary to know m_viewSize when marking whole non compositing layer as dirty.
2775         So we can make EFL and Qt use m_viewSize as a viewport size also.
2776
2777         This patch removes m_viewportSize and related methods to increase readability.
2778
2779         * UIProcess/API/qt/raw/qrawwebview.cpp:
2780         (QRawWebView::setSize):
2781         * UIProcess/PageViewportController.cpp:
2782         (WebKit::PageViewportController::didChangeViewportSize):
2783         * UIProcess/WebPageProxy.cpp:
2784         (WebKit):
2785         * UIProcess/WebPageProxy.h:
2786         (WebPageProxy):
2787         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2788         (WebKit::WebChromeClient::pageRect):
2789         (WebKit::WebChromeClient::contentsSizeChanged):
2790         * WebProcess/WebPage/DrawingAreaImpl.cpp:
2791         (WebKit::DrawingAreaImpl::updateBackingStoreState):
2792         * WebProcess/WebPage/WebPage.cpp:
2793         (WebKit::WebPage::setSize):
2794         (WebKit::WebPage::sendViewportAttributesChanged):
2795         * WebProcess/WebPage/WebPage.h:
2796         (WebPage):
2797         * WebProcess/WebPage/WebPage.messages.in:
2798
2799 2013-02-20  Huang Dongsung  <luxtella@company100.net>
2800
2801         [WK2] add setNeedsDisplay in DrawingArea to mark whole layer as dirty.
2802         https://bugs.webkit.org/show_bug.cgi?id=110299
2803
2804         Reviewed by Anders Carlsson.
2805
2806         Currently, we call setNeedsDisplay with the size of WebPage to mark whole
2807         backing store as dirty. However, the size of non compositing layer can be
2808         inconsistent with the size of WebPage. For example, in Coordinated Graphics, the
2809         size of non compositing layer is contents size.
2810
2811         So, WebPage should not assume the size of non compositing layer, and should just
2812         call setNeedsDisplay when marking whole layer as dirty.
2813
2814         In addition, this patch renames from setNeedsDisplay() with a rect argument to
2815         setNeedsDisplayInRect(), which matches to the terms of GraphicsLayer.
2816
2817         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2818         (WebKit::WebChromeClient::invalidateContentsAndRootView):
2819         (WebKit::WebChromeClient::invalidateContentsForSlowScroll):
2820         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2821         (WebKit::WebFrameLoaderClient::restoreViewState):
2822         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2823         (WebKit::CoordinatedLayerTreeHost::setNonCompositedContentsNeedDisplay):
2824         (WebKit):
2825         (WebKit::CoordinatedLayerTreeHost::setNonCompositedContentsNeedDisplayInRect):
2826         (WebKit::CoordinatedLayerTreeHost::scrollNonCompositedContents):
2827         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
2828         (CoordinatedLayerTreeHost):
2829         * WebProcess/WebPage/DrawingArea.h:
2830         (DrawingArea):
2831         * WebProcess/WebPage/DrawingAreaImpl.cpp:
2832         (WebKit::DrawingAreaImpl::setNeedsDisplay):
2833         (WebKit):
2834         (WebKit::DrawingAreaImpl::setNeedsDisplayInRect):
2835         (WebKit::DrawingAreaImpl::scroll):
2836         (WebKit::DrawingAreaImpl::forceRepaint):
2837         (WebKit::DrawingAreaImpl::didUninstallPageOverlay):
2838         (WebKit::DrawingAreaImpl::setPageOverlayNeedsDisplay):
2839         (WebKit::DrawingAreaImpl::resumePainting):
2840         * WebProcess/WebPage/DrawingAreaImpl.h:
2841         (DrawingAreaImpl):
2842         * WebProcess/WebPage/LayerTreeHost.h:
2843         (LayerTreeHost):
2844         * WebProcess/WebPage/WebPage.cpp:
2845         (WebKit::WebPage::setSize):
2846         (WebKit::WebPage::setDrawsBackground):
2847         (WebKit::WebPage::setDrawsTransparentBackground):
2848         (WebKit::WebPage::resumeActiveDOMObjectsAndAnimations):
2849         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
2850         (WebKit::LayerTreeHostGtk::setNonCompositedContentsNeedDisplay):
2851         (WebKit):
2852         (WebKit::LayerTreeHostGtk::setNonCompositedContentsNeedDisplayInRect):
2853         (WebKit::LayerTreeHostGtk::scrollNonCompositedContents):
2854         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
2855         (LayerTreeHostGtk):
2856         * WebProcess/WebPage/mac/LayerTreeHostMac.h:
2857         (LayerTreeHostMac):
2858         * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
2859         (WebKit::LayerTreeHostMac::setNonCompositedContentsNeedDisplay):
2860         (WebKit):
2861         (WebKit::LayerTreeHostMac::setNonCompositedContentsNeedDisplayInRect):
2862         (WebKit::LayerTreeHostMac::scrollNonCompositedContents):
2863         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
2864         (RemoteLayerTreeDrawingArea):
2865         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
2866         (WebKit::RemoteLayerTreeDrawingArea::setNeedsDisplay):
2867         (WebKit):
2868         (WebKit::RemoteLayerTreeDrawingArea::setNeedsDisplayInRect):
2869         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
2870         (TiledCoreAnimationDrawingArea):
2871         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
2872         (WebKit::TiledCoreAnimationDrawingArea::setNeedsDisplay):
2873         (WebKit):
2874         (WebKit::TiledCoreAnimationDrawingArea::setNeedsDisplayInRect):
2875
2876 2013-02-20  Christophe Dumez  <ch.dumez@sisa.samsung.com>
2877
2878         [EFL][WK2] Port EwkPopupMenuItem to the C API
2879         https://bugs.webkit.org/show_bug.cgi?id=108798
2880
2881         Reviewed by Kenneth Rohde Christiansen.
2882
2883         Make use of the new WKPopupItem C API inside EwkPopupMenuItem to remove
2884         dependency on internal WebPopupItem type. Eina shared string members
2885         are now lazily initialized to make the object cheaper to construct.
2886
2887         * UIProcess/API/efl/ewk_popup_menu.cpp:
2888         (EwkPopupMenu::EwkPopupMenu):
2889         * UIProcess/API/efl/ewk_popup_menu_item.cpp:
2890         (EwkPopupMenuItem::EwkPopupMenuItem):
2891         (EwkPopupMenuItem::type):
2892         (EwkPopupMenuItem::textDirection):
2893         (EwkPopupMenuItem::text):
2894         (EwkPopupMenuItem::tooltipText):
2895         (EwkPopupMenuItem::accessibilityText):
2896         (EwkPopupMenuItem::hasTextDirectionOverride):
2897         (EwkPopupMenuItem::isEnabled):
2898         (EwkPopupMenuItem::isLabel):
2899         (EwkPopupMenuItem::isSelected):
2900         * UIProcess/API/efl/ewk_popup_menu_item_private.h:
2901         (EwkPopupMenuItem::create):
2902         (EwkPopupMenuItem):
2903
2904 2013-02-19  Tim Horton  <timothy_horton@apple.com>
2905
2906         Clarify isInWindow vs. isVisible path through to RenderLayerCompositor
2907         https://bugs.webkit.org/show_bug.cgi?id=110261
2908         <rdar://problem/13196122>
2909
2910         Reviewed by Simon Fraser.
2911
2912         * WebProcess/WebPage/WebPage.cpp:
2913         (WebKit::WebPage::setIsInWindow):
2914         Use Page::setIsInWindow in addition to willMoveOffscreen/didMoveOnscreen.
2915
2916 2013-02-19  Conrad Shultz  <conrad_shultz@apple.com>
2917
2918         Allow UI clients to handle vertical wheel events.
2919         https://bugs.webkit.org/show_bug.cgi?id=110006
2920
2921         Reviewed by Tim Horton.
2922
2923         Add API to allow clients to selectively control rubber-banding at vertical page extrema.
2924
2925         * UIProcess/API/C/WKPage.cpp:
2926         (WKPageRubberBandsAtBottom):
2927         Proxy for the corresponding function in WebCore::Page.
2928         (WKPageSetRubberBandsAtBottom):
2929         Ditto.
2930         (WKPageRubberBandsAtTop):
2931         Ditto.
2932         (WKPageSetRubberBandsAtTop):
2933         Ditto.
2934
2935         * UIProcess/API/C/WKPage.h:
2936         Declare new API.
2937
2938         * UIProcess/WebPageProxy.cpp:
2939         (WebKit::WebPageProxy::WebPageProxy):
2940         Initialize new member variables.
2941         (WebKit::WebPageProxy::setRubberBandsAtBottom):
2942         New function; dispatches a matching message to the WebKit::WebPage.
2943         (WebKit::WebPageProxy::setRubberBandsAtTop):
2944         Ditto.
2945
2946         * UIProcess/WebPageProxy.h:
2947         (WebPageProxy):
2948         Declare new API.
2949         (WebKit::WebPageProxy::rubberBandsAtBottom):
2950         New accessor function.
2951         (WebKit::WebPageProxy::rubberBandsAtTop):
2952         Ditto.
2953
2954         * WebProcess/WebPage/WebPage.cpp:
2955         (WebKit::WebPage::setRubberBandsAtBottom):
2956         New function; call the matching function on the associated WebCore::Page.
2957         (WebKit::WebPage::setRubberBandsAtTop):
2958         Ditto.
2959
2960         * WebProcess/WebPage/WebPage.h:
2961         (WebPage):
2962         Declare new rubber-banding API.
2963
2964         * WebProcess/WebPage/WebPage.messages.in:
2965         Declare new rubber-banding API.
2966
2967 2013-02-19  Anders Carlsson  <andersca@apple.com>
2968
2969         StorageAreaProxy should know its quota
2970         https://bugs.webkit.org/show_bug.cgi?id=110268
2971
2972         Reviewed by Sam Weinig.
2973
2974         Begin stubbing out StorageAreaProxy::setItem and add some quota member variables.
2975
2976         * WebProcess/Storage/StorageAreaProxy.cpp:
2977         (WebKit::StorageAreaProxy::StorageAreaProxy):
2978         (WebKit::StorageAreaProxy::setItem):
2979         * WebProcess/Storage/StorageAreaProxy.h:
2980         (StorageAreaProxy):
2981         * WebProcess/Storage/StorageNamespaceProxy.cpp:
2982         (WebKit::StorageNamespaceProxy::createSessionStorageNamespace):
2983         (WebKit::StorageNamespaceProxy::StorageNamespaceProxy):
2984         * WebProcess/Storage/StorageNamespaceProxy.h:
2985         (WebKit::StorageNamespaceProxy::quota):
2986         (StorageNamespaceProxy):
2987
2988 2013-02-19  Alexey Proskuryakov  <ap@apple.com>
2989
2990         <rdar://problem/13239119> NetworkProcess generates timeout spindump logs
2991
2992         Reviewed by Mark Rowe.
2993
2994         Don't keep a window server connection in processes that don't need it, and don't
2995         run an NSApplication run loop.
2996
2997         * Shared/ChildProcess.h:
2998         * Shared/mac/ChildProcessMac.mm: (WebKit::ChildProcess::shutdownWindowServerConnection):
2999         Added a function to shut down connections, and to make sure we don't get one in the future.
3000
3001         * NetworkProcess/mac/NetworkProcessMac.mm:
3002         (WebKit::NetworkProcess::initializeProcessName):
3003         * OfflineStorageProcess/mac/OfflineStorageProcessMac.mm:
3004         (WebKit::OfflineStorageProcess::initializeProcessName):
3005         * SharedWorkerProcess/mac/SharedWorkerProcessMac.mm:
3006         (WebKit::SharedWorkerProcess::platformInitializeSharedWorkerProcess): Also removed
3007         some unused includes and forward declarations.
3008
3009 2013-02-18  Alexey Proskuryakov  <ap@apple.com>
3010
3011         [WK2] Cannot load documents with blob urls
3012         https://bugs.webkit.org/show_bug.cgi?id=110160
3013
3014         Reviewed by Sam Weinig.
3015
3016         * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::canHandleRequest):
3017         Added knowledge about blobs.
3018
3019 2013-02-19  Carlos Garcia Campos  <cgarcia@igalia.com>
3020
3021         [GTK] Move the API to get TLS certificate from WebKitURIResponse to WebKitWebView
3022         https://bugs.webkit.org/show_bug.cgi?id=110190
3023
3024         Reviewed by Anders Carlsson.
3025
3026         Add webkit_web_view_get_tls_info() and remove
3027         webkit_uri_response_get_https_status(). This way I can be sure
3028         that when called after load has been committed the certificate
3029         will be available. It also makes the API easier to use.
3030
3031         * UIProcess/API/gtk/WebKitURIResponse.cpp:
3032         * UIProcess/API/gtk/WebKitURIResponse.h:
3033         * UIProcess/API/gtk/WebKitURIResponsePrivate.h:
3034         * UIProcess/API/gtk/WebKitWebView.cpp:
3035         (webkitWebViewLoadChanged):
3036         (mainResourceResponseChangedCallback):
3037         (webkit_web_view_get_tls_info):
3038         * UIProcess/API/gtk/WebKitWebView.h:
3039         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
3040         * UIProcess/API/gtk/tests/TestSSL.cpp:
3041
3042 2013-02-19  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
3043
3044         [WK2][EFL] Eliminate access to WK2 C++ internals from ewk_view functions
3045         https://bugs.webkit.org/show_bug.cgi?id=109794
3046
3047         Reviewed by Anders Carlsson.
3048
3049         * UIProcess/API/C/efl/WKView.cpp:
3050         (WKViewSetShowsAsSource):
3051         (WKViewGetShowsAsSource):
3052
3053             Added new WKView API to wrap WebPageProxy::setMainFrameInViewSourceMode()
3054             and WebPageProxy::mainFrameInViewSourceMode() calls.
3055
3056         (WKViewExitFullScreen):
3057
3058             Added new WKView API to wrap WebFullScreenManagerProxy::exitFullScreen()
3059             calls.
3060
3061         * UIProcess/API/C/efl/WKView.h:
3062         * UIProcess/API/efl/EwkView.cpp:
3063         (EwkView::feedTouchEvent):
3064
3065             Added feedTouchEvent() method so that: at first ewk_view_feed_touch_event()
3066             is not invoked from EwkView class, secondly ewk_view_feed_touch_event() does
3067             not access WebPage instance directly.
3068
3069         (EwkView::feedTouchEvents):
3070         * UIProcess/API/efl/EwkView.h:
3071         (EwkView):
3072         * UIProcess/API/efl/ewk_view.cpp:
3073         (ewk_view_feed_touch_event):
3074         (ewk_view_pagination_mode_set):
3075         (ewk_view_pagination_mode_get):
3076         (ewk_view_fullscreen_exit):
3077         (ewkViewPageContentsCallback):
3078         (ewk_view_page_contents_get):
3079         (ewk_view_source_mode_set):
3080         (ewk_view_source_mode_get):
3081
3082             Those are now using exported C API.
3083
3084         * UIProcess/efl/WebView.cpp:
3085         (WebKit::WebView::setShowsAsSource):
3086         (WebKit):
3087         (WebKit::WebView::showsAsSource):
3088         (WebKit::WebView::exitFullScreen):
3089         * UIProcess/efl/WebView.h:
3090         (WebView):
3091
3092             Added WebView methods to support added WKView API.
3093
3094 2013-02-19  Andras Becsi  <andras.becsi@digia.com>
3095
3096         [Qt][WK2] ASSERT(node) hit in WebPage::findZoomableAreaForPoint if no zoomable area found
3097         https://bugs.webkit.org/show_bug.cgi?id=110220
3098
3099         Reviewed by Allan Sandfeld Jensen.
3100
3101         If EventHandler::bestZoomableAreaForTouchPoint was unsuccessfull, eg.
3102         no node was found for a given point, we hit ASSERT(node).
3103         We should only assert for a valid node if a zoomable area was found.
3104
3105         * WebProcess/WebPage/WebPage.cpp:
3106         (WebKit::WebPage::findZoomableAreaForPoint):
3107
3108 2013-02-19  Christophe Dumez  <ch.dumez@sisa.samsung.com>
3109
3110         Regression(r143273): Caused a lot of tests to time out
3111         https://bugs.webkit.org/show_bug.cgi?id=110212
3112
3113         Reviewed by Anders Carlsson.
3114
3115         StorageManager::destroySessionStorageNamespace() and StorageManager::cloneSessionStorageNamespace()
3116         should call their respective "*Internal" equivalent instead of calling themselves. This lead to
3117         a lot of time outs on our build bots.
3118
3119         * UIProcess/Storage/StorageManager.cpp:
3120         (WebKit::StorageManager::destroySessionStorageNamespace):
3121         (WebKit::StorageManager::cloneSessionStorageNamespace):
3122
3123 2013-02-18  Carlos Garcia Campos  <cgarcia@igalia.com>
3124
3125         [GTK] Remove webkit_web_view_get_subresources from WebKit2 GTK+ API
3126         https://bugs.webkit.org/show_bug.cgi?id=110125
3127
3128         Reviewed by Anders Carlsson.
3129
3130         This API is currently implemented caching all resources in the
3131         WebView which causes some problems in documents loading resources
3132         indefinitely. This API was used in WebKit1 mainly to implement
3133         webkit_web_view_save(), but we already have such API in
3134         WebKit2.
3135
3136         * UIProcess/API/gtk/WebKitInjectedBundleClient.cpp:
3137         (didReceiveWebViewMessageFromInjectedBundle):
3138         * UIProcess/API/gtk/WebKitWebView.cpp:
3139         (_WebKitWebViewPrivate):
3140         (webkitWebViewLoadChanged):
3141         * UIProcess/API/gtk/WebKitWebView.h:
3142         * UIProcess/API/gtk/WebKitWebViewPrivate.h:
3143         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
3144         * UIProcess/API/gtk/tests/TestResources.cpp:
3145         (testWebViewResources):
3146         (testWebResourceGetData):
3147
3148 2013-02-18  Christophe Dumez  <dchris@gmail.com>
3149
3150         [WK2][EFL] Stop using internal C++ API in ewk_error
3151         https://bugs.webkit.org/show_bug.cgi?id=108796
3152
3153         Reviewed by Benjamin Poulain.
3154
3155         Stop using internal C++ API in ewk_error and use C API instead of avoid
3156         violating API layering.
3157
3158         * UIProcess/API/efl/ewk_error.cpp:
3159         (EwkError::domain):
3160         (EwkError::isCancellation):
3161         (ewk_error_type_get):
3162         * UIProcess/API/efl/ewk_error_private.h:
3163         (EwkError):
3164
3165 2013-02-18  Simon Fraser  <simon.fraser@apple.com>
3166
3167         Clean up the boolean argument to visibleContentRect
3168         https://bugs.webkit.org/show_bug.cgi?id=110167
3169
3170         Reviewed by Simon Fraser.
3171         
3172         Replace the boolean argument to visibleContentRect() with
3173         an enum.
3174
3175         * WebProcess/WebPage/WebFrame.cpp:
3176         (WebKit::WebFrame::visibleContentBounds):
3177         (WebKit::WebFrame::visibleContentBoundsExcludingScrollbars):
3178
3179 2013-02-18  Anders Carlsson  <andersca@apple.com>
3180
3181         Add a DefaultHash for RefPtr<SecurityOrigin>
3182         https://bugs.webkit.org/show_bug.cgi?id=110170
3183
3184         Reviewed by Andreas Kling.
3185
3186         Remove all explicit uses of SecurityOriginHash.
3187
3188         * UIProcess/Storage/StorageManager.cpp:
3189         (StorageManager::SessionStorageNamespace):
3190         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
3191         (WebKit::WebApplicationCacheManager::getApplicationCacheOrigins):
3192         * WebProcess/InjectedBundle/InjectedBundle.cpp:
3193         (WebKit::InjectedBundle::originsWithApplicationCache):
3194         * WebProcess/Notifications/NotificationPermissionRequestManager.h:
3195         Include SecurityOriginHash.h. This fixes a bug where m_originToIDMap used pointer-equality
3196         for looking up security origins.
3197
3198         * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
3199         (WebKit::WebResourceCacheManager::clearCacheForOrigin):
3200         This can just take a const reference.
3201
3202         * WebProcess/ResourceCache/WebResourceCacheManager.h:
3203
3204 2013-02-18  Anders Carlsson  <andersca@apple.com>
3205
3206         Begin stubbing out session storage classes
3207         https://bugs.webkit.org/show_bug.cgi?id=110168
3208
3209         Reviewed by Andreas Kling.
3210
3211         * UIProcess/Storage/StorageManager.cpp:
3212         (StorageManager::StorageArea):
3213         (WebKit):
3214         (WebKit::StorageManager::StorageArea::create):
3215         (WebKit::StorageManager::StorageArea::StorageArea):
3216         (WebKit::StorageManager::StorageArea::~StorageArea):
3217         (StorageManager::SessionStorageNamespace):
3218         (WebKit::StorageManager::SessionStorageNamespace::isEmpty):
3219         (WebKit::StorageManager::SessionStorageNamespace::create):
3220         (WebKit::StorageManager::SessionStorageNamespace::SessionStorageNamespace):
3221         (WebKit::StorageManager::SessionStorageNamespace::~SessionStorageNamespace):
3222         (WebKit::StorageManager::SessionStorageNamespace::cloneTo):
3223         (WebKit::StorageManager::createSessionStorageNamespaceInternal):
3224         (WebKit::StorageManager::destroySessionStorageNamespaceInternal):
3225         (WebKit::StorageManager::cloneSessionStorageNamespaceInternal):
3226         * UIProcess/Storage/StorageManager.h:
3227         (StorageManager):
3228
3229 2013-02-18  Christophe Dumez  <ch.dumez@sisa.samsung.com>
3230
3231         [EFL][WK2] Add C API for popup menu and popup item
3232         https://bugs.webkit.org/show_bug.cgi?id=109083
3233
3234         Reviewed by Anders Carlsson.
3235
3236         WK2 EFL delegates display of the popup menu to the browser which causes
3237         us to have a strong interdependency between internal C++ classes
3238         (WebPopupMenuProxyEfl, WebPopupItem) and our EFL API implementation
3239         (EwkView, EwkPopupMenu, EwkPopupMenuItem).
3240
3241         Since we want to remove this interdependency, this patch introduces a
3242         for WebPopupMenuProxyEfl (WKPopupMenuListener) and for WebPopupItem
3243         (WKPopupItem). It also introduces a WKPage client with callbacks for
3244         showPopupMenu and hidePopupMenu.
3245
3246         Note that the popup menu functionality is covered by ewk_popup_menu API
3247         tests and no functionality is lost.
3248
3249         * PlatformEfl.cmake: Add new files to EFL CMake config.
3250         * Shared/API/c/efl/WKBaseEfl.h: Add typedefs for WKPopupItemRef and
3251         WKPopupMenuListenerRef.
3252         * Shared/APIObject.h: Add new TypePopupMenuItem APIObject type for EFL
3253         platform.
3254         * UIProcess/API/C/efl/WKAPICastEfl.h: Add mapping for WKPopupItemRef
3255         and WKPopupMenuListenerRef API types.
3256         (WebKit):
3257         (WebKit::toAPI):
3258         * UIProcess/API/C/efl/WKPageEfl.cpp: Added.
3259         (WKPageSetUIPopupMenuClient): Add new C API to set the UI Popup Menu
3260         client on the page.
3261         * UIProcess/API/C/efl/WKPageEfl.h: Added.
3262         * UIProcess/API/C/efl/WKPopupItem.cpp: Added. Add C API for WebPopupItem.
3263         (WKPopupItemGetType):
3264         (WKPopupItemGetTextDirection):
3265         (WKPopupItemHasTextDirectionOverride):
3266         (WKPopupItemCopyText):
3267         (WKPopupItemCopyToolTipText):
3268         (WKPopupItemCopyAccessibilityText):
3269         (WKPopupItemIsEnabled):
3270         (WKPopupItemIsLabel):
3271         (WKPopupItemIsSelected):
3272         * UIProcess/API/C/efl/WKPopupItem.h: Added.
3273         * UIProcess/API/C/efl/WKPopupMenuListener.cpp: Added. Add C API for
3274         WebPopupMenuListenerEfl (formerly WebPopupMenuProxyEfl) so that the
3275         client can report which popup menu item was selected.
3276         (WKPopupMenuListenerSetSelection):
3277         * UIProcess/API/C/efl/WKPopupMenuListener.h: Added.
3278         * UIProcess/API/efl/EwkView.cpp: Remove dependency on internal C++ types
3279         (WebPopupMenuProxyEfl and WebPopupItem) and use C API types instead.
3280         (EwkView::requestPopupMenu):
3281         * UIProcess/API/efl/EwkView.h:
3282         (WebKit):
3283         (EwkView):
3284         * UIProcess/API/efl/ewk_popup_menu.cpp: Use C API for Popup menu.
3285         (EwkPopupMenu::EwkPopupMenu):
3286         (EwkPopupMenu::setSelectedIndex):
3287         * UIProcess/API/efl/ewk_popup_menu_private.h:
3288         (EwkPopupMenu::create):
3289         (EwkPopupMenu):
3290         * UIProcess/WebPageProxy.cpp: Use WKPageUIPopupMenuClient to show / hide
3291         the popup menu on EFL port instead of asking the WebPopupMenuProxy.
3292         (WebKit::WebPageProxy::close):
3293         (WebKit::WebPageProxy::showPopupMenu):
3294         (WebKit::WebPageProxy::hidePopupMenu):
3295         * UIProcess/WebPageProxy.h: Add new WKPageUIPopupMenuClient member and
3296         corresponding initialization method.
3297         (WebPageProxy):
3298         * UIProcess/WebPopupMenuProxy.h: Disable showPopupMenu / hidePopupMenu
3299         virtual methods on EFL port since we go via WKPageUIPopupMenuClient
3300         for this now.
3301         (WebPopupMenuProxy):
3302         * UIProcess/efl/PageUIClientEfl.cpp:
3303         (WebKit::PageUIClientEfl::PageUIClientEfl): Handle WKPageUIPopupMenuClient
3304         callbacks and call corresponding EwkView methods. Previously, the EwkView
3305         methods were called by the internal WebPageProxyEfl class which is no
3306         longer needed.
3307         (WebKit::PageUIClientEfl::showPopupMenu):
3308         (WebKit):
3309         (WebKit::PageUIClientEfl::hidePopupMenu):
3310         * UIProcess/efl/PageUIClientEfl.h:
3311         (PageUIClientEfl):
3312         * UIProcess/efl/WebPageProxyEfl.cpp:
3313         (WebKit::WebPageProxy::initializeUIPopupMenuClient):
3314         (WebKit):
3315         * UIProcess/efl/WebPopupItemEfl.cpp: Added. Add APIObject wrapper for
3316         WebPopupItem so that we can use it in WKPageUIPopupMenuClient.
3317         (WebKit):
3318         (WebKit::WebPopupItemEfl::WebPopupItemEfl):
3319         (WebKit::WebPopupItemEfl::~WebPopupItemEfl):
3320         * UIProcess/efl/WebPopupItemEfl.h: Added.
3321         (WebKit):
3322         (WebPopupItemEfl):
3323         (WebKit::WebPopupItemEfl::create):
3324         (WebKit::WebPopupItemEfl::data):
3325         (WebKit::WebPopupItemEfl::itemType):
3326         (WebKit::WebPopupItemEfl::text):
3327         (WebKit::WebPopupItemEfl::textDirection):
3328         (WebKit::WebPopupItemEfl::hasTextDirectionOverride):
3329         (WebKit::WebPopupItemEfl::toolTipText):
3330         (WebKit::WebPopupItemEfl::accessibilityText):
3331         (WebKit::WebPopupItemEfl::isEnabled):
3332         (WebKit::WebPopupItemEfl::isLabel):
3333         (WebKit::WebPopupItemEfl::isSelected):
3334         (WebKit::WebPopupItemEfl::type):
3335         * UIProcess/efl/WebPopupMenuListenerEfl.cpp: Renamed from Source/WebKit2/UIProcess/efl/WebPopupMenuProxyEfl.cpp.
3336         Use WebPopupMenuListenerEfl name instead of WebPopupMenuProxyEfl since
3337         it more accurately represents its functionality now.
3338         (WebKit):
3339         (WebKit::WebPopupMenuListenerEfl::WebPopupMenuListenerEfl):
3340         (WebKit::WebPopupMenuListenerEfl::valueChanged):
3341         * UIProcess/efl/WebPopupMenuListenerEfl.h: Renamed from Source/WebKit2/UIProcess/efl/WebPopupMenuProxyEfl.h.
3342         (WebKit):
3343         (WebPopupMenuListenerEfl):
3344         (WebKit::WebPopupMenuListenerEfl::create):
3345         * UIProcess/efl/WebUIPopupMenuClient.cpp: Added.
3346         (WebUIPopupMenuClient::showPopupMenu):
3347         (WebUIPopupMenuClient::hidePopupMenu):
3348         * UIProcess/efl/WebUIPopupMenuClient.h: Added.
3349         (WebKit):
3350         (WebUIPopupMenuClient):
3351         * UIProcess/efl/WebView.cpp:
3352         (WebKit::WebView::createPopupMenuProxy):
3353
3354 2013-02-18  Anders Carlsson  <andersca@apple.com>
3355
3356         Add StorageManager member functions for keeping track of session storage namespaces
3357         https://bugs.webkit.org/show_bug.cgi?id=110163
3358
3359         Reviewed by Andreas Kling.
3360
3361         * UIProcess/Storage/StorageManager.cpp:
3362         (WebKit::StorageManager::createSessionStorageNamespace):
3363         (WebKit):
3364         (WebKit::StorageManager::destroySessionStorageNamespace):
3365         (WebKit::StorageManager::cloneSessionStorageNamespace):
3366         (WebKit::StorageManager::createSessionStorageNamespaceInternal):
3367         (WebKit::StorageManager::destroySessionStorageNamespaceInternal):
3368         (WebKit::StorageManager::cloneSessionStorageNamespaceInternal):
3369         * UIProcess/Storage/StorageManager.h:
3370         (StorageManager):
3371         * UIProcess/WebContext.h:
3372         (WebKit::WebContext::storageManager):
3373         (WebContext):
3374         * UIProcess/WebPageProxy.cpp:
3375         (WebKit::WebPageProxy::WebPageProxy):
3376         (WebKit::WebPageProxy::close):
3377         (WebKit::WebPageProxy::createNewPage):
3378
3379 2013-02-18  Anders Carlsson  <andersca@apple.com>
3380
3381         StorageManager message handlers should take the connection
3382         https://bugs.webkit.org/show_bug.cgi?id=110151
3383
3384         Reviewed by Andreas Kling.
3385
3386         * Platform/CoreIPC/HandleMessage.h:
3387         (CoreIPC):
3388         (CoreIPC::callMemberFunction):
3389         (CoreIPC::handleMessage):
3390         * Scripts/webkit2/messages.py:
3391         (sync_message_statement):
3392         (generate_message_handler):
3393         * UIProcess/Storage/StorageManager.cpp:
3394         (WebKit::StorageManager::createStorageArea):
3395         (WebKit::StorageManager::destroyStorageArea):
3396         (WebKit::StorageManager::getValues):
3397         * UIProcess/Storage/StorageManager.h:
3398         (StorageManager):
3399         * UIProcess/Storage/StorageManager.messages.in:
3400
3401 2013-02-18  Christophe Dumez  <christophe.dumez@intel.com>
3402
3403         [EFL][WK2] Use C API inside ewk_security_origin
3404         https://bugs.webkit.org/show_bug.cgi?id=107923
3405
3406         Reviewed by Alexey Proskuryakov.
3407
3408         Use C API inside ewk_security_origin instead of accessing
3409         directly internal C++ classes, to avoid breaking API
3410         layering.
3411
3412         * UIProcess/API/efl/EwkView.cpp:
3413         (EwkView::enterFullScreen):
3414         * UIProcess/API/efl/ewk_security_origin.cpp:
3415         (EwkSecurityOrigin::EwkSecurityOrigin):
3416         * UIProcess/API/efl/ewk_security_origin_private.h:
3417         (EwkSecurityOrigin::create):
3418         (EwkSecurityOrigin):
3419
3420 2013-01-04  Jer Noble  <jer.noble@apple.com>
3421
3422         pinch-zooming webpage messes up full-screening of embedded video
3423         https://bugs.webkit.org/show_bug.cgi?id=106115
3424
3425         Reviewed by Maciej Stachowiak.
3426
3427         Reset the page scale when entering full screen, and reset to the original scale when exiting.
3428
3429         * UIProcess/mac/WKFullScreenWindowController.h:
3430         * UIProcess/mac/WKFullScreenWindowController.mm:
3431         (-[WKFullScreenWindowController enterFullScreen:]):
3432         (-[WKFullScreenWindowController finishedExitFullScreenAnimation:]):
3433
3434 2013-02-18  Christophe Dumez  <ch.dumez@sisa.samsung.com>
3435
3436         [EFL][WK2] Disable failing API tests
3437         https://bugs.webkit.org/show_bug.cgi?id=110081
3438
3439         Reviewed by Kenneth Rohde Christiansen.
3440
3441         Disable EWK2UnitTestBase.ewk_view_scale API test as it is failing.
3442
3443         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
3444         (TEST_F):
3445
3446 2013-02-15  Allan Sandfeld Jensen  <allan.jensen@digia.com>
3447
3448         [Qt][WK2] Support WK2 API tests
3449         https://bugs.webkit.org/show_bug.cgi?id=109843
3450
3451         Reviewed by Jocelyn Turcotte.
3452
3453         * UIProcess/API/qt/qquickwebview_p.h:
3454         (TestWebKitAPI):
3455
3456 2013-02-18  Andras Becsi  <andras.becsi@digia.com>
3457
3458         [Qt][WK2] Changing WebView.contentY and WebView.contentX does not redraw content
3459         https://bugs.webkit.org/show_bug.cgi?id=108337
3460
3461         Reviewed by Jocelyn Turcotte.
3462
3463         We should not ignore content position changes unless pinch zoom or bounce-back
3464         animation is ongoing.
3465         This way we notify the web process about visible rect changes if the contentX
3466         and contentY properties are used to programmatically scroll the content from QML.
3467         One important usecase for this is when implementing scrollbars.
3468
3469         * UIProcess/qt/PageViewportControllerClientQt.cpp:
3470         (WebKit::PageViewportControllerClientQt::PageViewportControllerClientQt):
3471         (WebKit::PageViewportControllerClientQt::flickMoveStarted):
3472         (WebKit::PageViewportControllerClientQt::flickMoveEnded):
3473         (WebKit::PageViewportControllerClientQt::pageItemPositionChanged):
3474         (WebKit::PageViewportControllerClientQt::scaleAnimationStateChanged):
3475         (WebKit::PageViewportControllerClientQt::pinchGestureStarted):
3476
3477 2013-02-18  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
3478
3479         [WK2][EFL] Unified text checker implementation
3480         https://bugs.webkit.org/show_bug.cgi?id=107682
3481
3482         Reviewed by Anders Carlsson.
3483
3484         * UIProcess/efl/TextCheckerEfl.cpp:
3485         (WebKit):
3486         (WebKit::nextWordOffset):
3487         Helper function to determine the word offset to do not call
3488         client's checkSpellingOfString for the word separators.
3489
3490         (WebKit::TextChecker::checkTextOfParagraph):
3491         Allow to check spelling for multiple words,
3492         their misspelling location and length are saved to the vector.
3493
3494         * WebProcess/WebCoreSupport/WebEditorClient.h:
3495         Add UNIFIED_TEXT_CHECKING guard to checkTextOfParagraph.
3496
3497         * WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp:
3498         (WebKit):
3499         (WebKit::WebEditorClient::checkTextOfParagraph):
3500         As spelling implementation is exposed to UIProcess,
3501         send a meesage to UIProcess to call TextChecker::checkTextOfParagraph.
3502
3503 2013-02-18  Christophe Dumez  <ch.dumez@sisa.samsung.com>
3504
3505         [EFL][WK2] Refactor Ewk_Favicon code and stop relying on internal C++ API
3506         https://bugs.webkit.org/show_bug.cgi?id=108598
3507
3508         Reviewed by Kenneth Rohde Christiansen.
3509
3510         Refactor the Ewk_Favicon code so that it no longer relies on internal
3511         C++ API and so that it is based solely on the C API. The API is changed
3512         a little as well so that the Favicon URL is no longer exposed to the
3513         client. Also the client is now only notified of icon changes once the
3514         favicon data is actually available.
3515
3516         The API is covered by existing API tests and by MiniBrowser which are
3517         both updated accordingly in this patch.
3518
3519         * UIProcess/API/efl/EwkView.cpp:
3520         (EwkView::informURLChange):
3521         (EwkView::createFavicon):
3522         (EwkView::onFaviconChanged):
3523         * UIProcess/API/efl/EwkView.h:
3524         (EwkView):
3525         * UIProcess/API/efl/EwkViewCallbacks.h:
3526         * UIProcess/API/efl/ewk_favicon_database.cpp:
3527         Client are now notified of favicon changes only when the favicon data
3528         becomes available and make API to retrieve a favicon synchronous. NULL
3529         is returned if the favicon data is not available.
3530
3531         (EwkFaviconDatabase::EwkFaviconDatabase):
3532         (EwkFaviconDatabase::getIconSurfaceSynchronously):
3533         (EwkFaviconDatabase::iconDataReadyForPageURL):
3534         (ewk_favicon_database_icon_get):
3535         * UIProcess/API/efl/ewk_favicon_database.h:
3536         * UIProcess/API/efl/ewk_favicon_database_private.h:
3537         (EwkFaviconDatabase):
3538         * UIProcess/API/efl/ewk_view.cpp:
3539         (ewk_view_favicon_get):
3540         * UIProcess/API/efl/ewk_view.h:
3541         Rename 'icon,changed' signal to 'favicon,changed' for clarity and
3542         consistency with the rest of the favicon API. Remove API to retrieve
3543         the favicon URL and replace it by one to retrieve the favicon image as
3544         an Evas_Object instead.
3545
3546         * UIProcess/API/efl/tests/test_ewk2_favicon_database.cpp:
3547         Update API tests to use the new favicon API.
3548
3549 2013-02-17  Jae Hyun Park  <jae.park@company100.net>
3550
3551         Remove unnecessary public method DrawingAreaImpl::createGraphicsContext()
3552         https://bugs.webkit.org/show_bug.cgi?id=109893
3553
3554         Reviewed by Anders Carlsson.
3555
3556         DrawingAreaImpl::createGraphicsContext() is unnecessary since
3557         createGraphicsContext can be called directly using ShareableBitmap.
3558
3559         * WebProcess/WebPage/DrawingAreaImpl.cpp:
3560         (WebKit::DrawingAreaImpl::display):
3561         * WebProcess/WebPage/DrawingAreaImpl.h:
3562         (DrawingAreaImpl):
3563
3564 2013-02-17  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
3565
3566         [WK2][EFL] Remove fullscreen manager proxy as a message receiver on invalidate()
3567         https://bugs.webkit.org/show_bug.cgi?id=109451
3568
3569         Reviewed by Anders Carlsson.
3570
3571         Remove fullscreen manager proxy as a message receiver on invalidate(), like
3572         other ports do after r142160.
3573
3574         * UIProcess/efl/WebFullScreenManagerProxyEfl.cpp:
3575         (WebKit::WebFullScreenManagerProxy::invalidate):
3576
3577 2013-02-17  Christophe Dumez  <ch.dumez@sisa.samsung.com>
3578
3579         Regression(r143124): Caused plugins/plugin-javascript-access.html to fail
3580         https://bugs.webkit.org/show_bug.cgi?id=110053
3581
3582         Reviewed by Alexey Proskuryakov.
3583
3584         Clear m_plugins in loadPluginsIfNecessary() before populating the
3585         vector again. We get duplicates otherwise.
3586
3587         * UIProcess/Plugins/PluginInfoStore.cpp:
3588         (WebKit::PluginInfoStore::loadPluginsIfNecessary):
3589
3590 2013-02-16  Andreas Kling  <akling@apple.com>
3591
3592         Remove multi-threading gunk from PluginInfoStore.
3593         <http://webkit.org/b/110046>
3594
3595         Reviewed by Alexey Proskuryakov.
3596
3597         PluginInfoStore is never accessed from multiple threads anymore, so remove the Mutex locking
3598         and stop making isolated copies of everything.
3599
3600         * Shared/Plugins/PluginModuleInfo.h:
3601         (PluginModuleInfo):
3602         * UIProcess/Plugins/PluginInfoStore.cpp:
3603         (WebKit::PluginInfoStore::loadPluginsIfNecessary):
3604         (WebKit::PluginInfoStore::plugins):
3605         (WebKit::PluginInfoStore::findPluginForMIMEType):
3606         (WebKit::PluginInfoStore::findPluginForExtension):
3607         (WebKit::PluginInfoStore::findPlugin):
3608         (WebKit::PluginInfoStore::infoForPluginWithPath):
3609         * UIProcess/Plugins/PluginInfoStore.h:
3610         (PluginInfoStore):
3611
3612 2013-02-16  Sam Weinig  <sam@webkit.org>
3613
3614         Fix non-production builds.
3615
3616         * WebKit2.xcodeproj/project.pbxproj:
3617
3618 2013-02-16  Sam Weinig  <sam@webkit.org>
3619
3620         The Plugin.32 target does not build
3621         https://bugs.webkit.org/show_bug.cgi?id=110032
3622
3623         Reviewed by Anders Carlsson.
3624
3625         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/PluginService.32.Main.mm: Removed.
3626         This was meant to be removed already.
3627
3628         * WebKit2.xcodeproj/project.pbxproj:
3629         Add Plugin.32 as dependency in All as it should be.
3630
3631 2013-02-16  Darin Adler  <darin@apple.com>
3632
3633         Fix WKDOMRangePrivate.h mistakes
3634         https://bugs.webkit.org/show_bug.cgi?id=110028
3635
3636         Reviewed by Ryosuke Niwa.
3637
3638         * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm:
3639         Added include of WKDOMRangePrivate.h.
3640
3641         * WebProcess/InjectedBundle/API/mac/WKDOMRangePrivate.h:
3642         Fixed class name and include to be WKDOMRange.
3643         Fixed method name, _copyBundleRangeHandleRef, to match the
3644         name in the source file.
3645
3646 2013-02-15  Eric Carlson  <eric.carlson@apple.com>
3647
3648         [Mac] remove wkCaptionAppearance from WebKitSystemInterface
3649         https://bugs.webkit.org/show_bug.cgi?id=109996
3650
3651         Reviewed by Simon Fraser.
3652
3653         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
3654         (InitWebCoreSystemInterface):
3655
3656 2013-02-15  Sheriff Bot  <webkit.review.bot@gmail.com>
3657
3658         Unreviewed, rolling out r143088.
3659         http://trac.webkit.org/changeset/143088
3660         https://bugs.webkit.org/show_bug.cgi?id=110000
3661
3662         Breaks the build (Requested by dgorbik on #webkit).
3663
3664         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
3665         (InitWebCoreSystemInterface):
3666
3667 2013-02-15  Kiran Muppala  <cmuppala@apple.com>
3668
3669         Disable sudden termination on Mac
3670         https://bugs.webkit.org/show_bug.cgi?id=109990
3671
3672         Reviewed by Mark Rowe.
3673
3674         Sudden Termination is causing WebContent XPC services to be killed in
3675         response to memory pressure.  Hence, disable it until we can identify
3676         if it is being enabled in error or not.
3677
3678         * Shared/mac/ChildProcessMac.mm:
3679         (WebKit::ChildProcess::platformInitialize): Add call to
3680         [NSProcessInfo disableSuddenTermination].
3681
3682 2013-02-15  Eric Carlson  <eric.carlson@apple.com>
3683
3684         [Mac] remove wkCaptionAppearance from WebKitSystemInterface
3685         https://bugs.webkit.org/show_bug.cgi?id=109996
3686
3687         Reviewed by Simon Fraser.
3688
3689         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
3690         (InitWebCoreSystemInterface):
3691
3692 2013-02-15  Adenilson Cavalcanti  <cavalcantii@gmail.com>
3693
3694         [Qt][WK2] Crash on window resize if WebProcess is closed/crashed
3695         https://bugs.webkit.org/show_bug.cgi?id=109216
3696
3697         Reviewed by Benjamin Poulain.
3698
3699         Only make calls into DrawingAreaProxy pointer after checking its state.
3700
3701         When the WebProcess was closed or crashed, WebKit::WebPageProxy will set
3702         its DrawingAreaProxy pointer to null. Resize events on UIProcess/client will
3703         try to access the object to update the geometry and forward this information
3704         into the WebProcess. This would create a crash scenario that is fixed by this patch.
3705
3706         * UIProcess/API/qt/qquickwebview.cpp:
3707         (QQuickWebViewPrivate::didRelaunchProcess):
3708         (QQuickWebViewLegacyPrivate::updateViewportSize):
3709
3710 2013-02-15  Anders Carlsson  <andersca@apple.com>
3711
3712         Add HashMap::isValidKey and HashSet::isValidValue
3713         https://bugs.webkit.org/show_bug.cgi?id=109977
3714
3715         Reviewed by Sam Weinig and Darin Adler.
3716
3717         Just call HashMap::isValidKey directly.
3718
3719         * UIProcess/WebProcessProxy.cpp:
3720         (WebKit::generatePageID):
3721         Initialize the id to 0 and use prefix increment.
3722
3723         (WebKit::WebProcessProxy::webFrame):
3724         (WebKit::WebProcessProxy::canCreateFrame):
3725         (WebKit::WebProcessProxy::didDestroyFrame):
3726
3727 2013-02-15  Csaba Osztrogonác  <ossy@webkit.org>
3728
3729         Typo fix after r143064.
3730
3731         * Platform/CoreIPC/win/ConnectionWin.cpp:
3732         (CoreIPC::Connection::sendOutgoingMessage):
3733
3734 2013-02-15  Csaba Osztrogonác  <ossy@webkit.org>
3735
3736         One more buildfix after r143052.
3737
3738         * Platform/CoreIPC/win/ConnectionWin.cpp:
3739         (CoreIPC::Connection::sendOutgoingMessage):
3740
3741 2013-02-15  Csaba Osztrogonác  <ossy@webkit.org>
3742
3743         Unreviewed buildfix after r143052 for Qt/GTK/EFL ports.
3744
3745         * Platform/unix/SharedMemoryUnix.cpp:
3746         (WebKit::SharedMemory::Handle::encode):
3747         * Platform/win/SharedMemoryWin.cpp:
3748         (WebKit::SharedMemory::Handle::encode):
3749         * Shared/Network/NetworkResourceLoadParameters.cpp:
3750         (WebKit::NetworkResourceLoadParameters::encode):
3751         * Shared/WebBatteryStatus.cpp:
3752         (WebKit::WebBatteryStatus::Data::encode):
3753         * Shared/WebNetworkInfo.cpp:
3754         (WebKit::WebNetworkInfo::Data::encode):
3755         * Shared/efl/LayerTreeContextEfl.cpp:
3756         (WebKit::LayerTreeContext::encode):
3757         * Shared/gtk/LayerTreeContextGtk.cpp:
3758         (WebKit::LayerTreeContext::encode):
3759         * Shared/qt/LayerTreeContextQt.cpp:
3760         (WebKit::LayerTreeContext::encode):
3761         * Shared/qt/QtNetworkReplyData.cpp:
3762         (WebKit::QtNetworkReplyData::encode):
3763         * Shared/qt/QtNetworkRequestData.cpp:
3764         (WebKit::QtNetworkRequestData::encode):
3765         * Shared/soup/PlatformCertificateInfo.cpp:
3766         (WebKit::PlatformCertificateInfo::encode):
3767
3768 2013-02-15  Anders Carlsson  <andersca@apple.com>
3769
3770         Make most ArgumentEncoder::encode member functions private
3771         https://bugs.webkit.org/show_bug.cgi?id=109973
3772
3773         Reviewed by Sam Weinig.
3774
3775         Make the encode overloads private; the stream operator should be used instead.
3776
3777         * Platform/CoreIPC/ArgumentEncoder.h:
3778         (ArgumentEncoder):
3779         * Platform/CoreIPC/Arguments.h:
3780         (CoreIPC::Arguments1::encode):
3781         (CoreIPC::Arguments2::encode):
3782         (CoreIPC::Arguments3::encode):
3783         (CoreIPC::Arguments4::encode):
3784         (CoreIPC::Arguments5::encode):
3785         (CoreIPC::Arguments6::encode):
3786         (CoreIPC::Arguments7::encode):
3787         (CoreIPC::Arguments8::encode):
3788         (CoreIPC::Arguments10::encode):
3789         * Platform/CoreIPC/Connection.cpp:
3790         (CoreIPC::Connection::createSyncMessageEncoder):
3791         * Platform/CoreIPC/MessageEncoder.cpp:
3792         (CoreIPC::MessageEncoder::MessageEncoder):
3793         * Scripts/webkit2/messages.py:
3794         (generate_message_handler):
3795         * Scripts/webkit2/messages_unittest.py:
3796         * Shared/Network/NetworkResourceLoadParameters.cpp:
3797         (WebKit::NetworkResourceLoadParameters::encode):
3798         * WebProcess/WebPage/EncoderAdapter.cpp:
3799         (WebKit::EncoderAdapter::EncoderAdapter):
3800         (WebKit::EncoderAdapter::encodeBytes):
3801         (WebKit::EncoderAdapter::encodeBool):
3802         (WebKit::EncoderAdapter::encodeUInt16):
3803         (WebKit::EncoderAdapter::encodeUInt32):
3804         (WebKit::EncoderAdapter::encodeUInt64):
3805         (WebKit::EncoderAdapter::encodeInt32):
3806         (WebKit::EncoderAdapter::encodeInt64):
3807         (WebKit::EncoderAdapter::encodeFloat):
3808         (WebKit::EncoderAdapter::encodeDouble):
3809         (WebKit::EncoderAdapter::encodeString):
3810
3811 2013-02-15  Anders Carlsson  <andersca@apple.com>
3812
3813         Add a synchronous GetValues message to StorageManager
3814         https://bugs.webkit.org/show_bug.cgi?id=109968
3815
3816         Reviewed by Sam Weinig.
3817
3818         * Platform/CoreIPC/Connection.cpp:
3819         (CoreIPC::Connection::dispatchWorkQueueMessageReceiverMessage):
3820         Handle synchronous messages.
3821
3822         (CoreIPC::Connection::processIncomingMessage):
3823         Check for work queue message receivers before doing any other processing.
3824
3825         * UIProcess/Storage/StorageManager.cpp:
3826         (WebKit::StorageManager::getValues):
3827         Add empty stub.
3828
3829         * UIProcess/Storage/StorageManager.h:
3830         * UIProcess/Storage/StorageManager.messages.in:
3831         Add GetValues message.
3832
3833         * WebProcess/Storage/StorageAreaProxy.cpp:
3834         (WebKit::StorageAreaProxy::loadValuesIfNeeded):
3835         Send the GetValues message.
3836
3837 2013-02-15  Anders Carlsson  <andersca@apple.com>
3838
3839         A storage area should know its storage type
3840         https://bugs.webkit.org/show_bug.cgi?id=109964
3841
3842         Reviewed by Andreas Kling.
3843
3844         * WebProcess/Storage/StorageAreaProxy.cpp:
3845         (WebKit::StorageAreaProxy::StorageAreaProxy):
3846         (WebKit::StorageAreaProxy::disabledByPrivateBrowsingInFrame):
3847         * WebProcess/Storage/StorageAreaProxy.h:
3848         (StorageAreaProxy):
3849         * WebProcess/Storage/StorageNamespaceProxy.cpp:
3850         (WebKit::StorageNamespaceProxy::storageType):
3851         (WebKit):
3852         * WebProcess/Storage/StorageNamespaceProxy.h:
3853         (StorageNamespaceProxy):
3854
3855 2013-02-15  Anders Carlsson  <andersca@apple.com>
3856
3857         Implement StorageAreaProxy::length
3858         https://bugs.webkit.org/show_bug.cgi?id=109962
3859
3860         Reviewed by Andreas Kling.
3861
3862         * WebProcess/Storage/StorageAreaProxy.cpp:
3863         (WebKit::StorageAreaProxy::length):
3864         Load the values if needed and then return the length.
3865
3866         (WebKit::StorageAreaProxy::disabledByPrivateBrowsingInFrame):
3867         Add helper function.
3868
3869         (WebKit::StorageAreaProxy::loadValuesIfNeeded):
3870         Just allocate the hash map for now.
3871
3872         * WebProcess/Storage/StorageAreaProxy.h:
3873         (StorageAreaProxy):
3874
3875 2013-02-15  Anders Carlsson  <andersca@apple.com>
3876
3877         Remove const from a bunch of StorageArea member functions
3878         https://bugs.webkit.org/show_bug.cgi?id=109957
3879
3880         Reviewed by Beth Dakin.
3881
3882         Update for WebCore changes.
3883
3884         * WebProcess/Storage/StorageAreaProxy.cpp:
3885         (WebKit::StorageAreaProxy::length):
3886         (WebKit::StorageAreaProxy::key):
3887         (WebKit::StorageAreaProxy::getItem):
3888         (WebKit::StorageAreaProxy::contains):
3889         (WebKit::StorageAreaProxy::canAccessStorage):
3890         (WebKit::StorageAreaProxy::memoryBytesUsedByCache):
3891         * WebProcess/Storage/StorageAreaProxy.h:
3892         (StorageAreaProxy):
3893
3894 2013-02-15  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
3895
3896         [EFL][WK2] Use C API inside BatteryProvider and NetworkInfoProvider
3897         https://bugs.webkit.org/show_bug.cgi?id=107821
3898
3899         Reviewed by Anders Carlsson.
3900
3901         BatteryProvider and NetworkInfoProvider should use C API
3902         instead of accessing the internal C++ classes directly.
3903
3904         * UIProcess/API/efl/ewk_context.cpp:
3905         (EwkContext::EwkContext):
3906         * UIProcess/efl/BatteryProvider.cpp:
3907         (BatteryProvider::~BatteryProvider):
3908         (BatteryProvider::create):
3909         (BatteryProvider::BatteryProvider):
3910         (BatteryProvider::didChangeBatteryStatus):
3911         * UIProcess/efl/BatteryProvider.h:
3912         (BatteryProvider):
3913         * UIProcess/efl/NetworkInfoProvider.cpp:
3914         (NetworkInfoProvider::create):
3915         (NetworkInfoProvider::NetworkInfoProvider):
3916         (NetworkInfoProvider::~NetworkInfoProvider):
3917         * UIProcess/efl/NetworkInfoProvider.h:
3918         (NetworkInfoProvider):
3919
3920 2013-02-15  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
3921
3922         [WK2][EFL]REGRESSION (r141978): ewk_view_type_check api test failing
3923         https://bugs.webkit.org/show_bug.cgi?id=109038
3924
3925         Reviewed by Anders Carlsson.
3926
3927         EFL API is defensive by its nature and expects graceful handling of wrong function arguments
3928         whereas webkit implementation code does not. This patch adds new 'toEwkViewChecked' function,
3929         which provides handling of wrong arguments, to be used within EFL API layer code.
3930
3931         * UIProcess/API/efl/EwkView.cpp:
3932         (toEwkView):
3933
3934             EwkView* toEwkView(const Ewk_View_Smart_Data* smartData) is not exported anymore
3935             as it's used within EwkView class only.        
3936
3937         (EwkView::handleTouchMove):
3938         * UIProcess/API/efl/EwkView.h:
3939         * UIProcess/API/efl/ewk_view.cpp:
3940         (toEwkViewChecked):
3941
3942 2013-02-15  Christophe Dumez  <ch.dumez@sisa.samsung.com>
3943
3944         [EFL][WK2] Have WebView subclass PageClient
3945         https://bugs.webkit.org/show_bug.cgi?id=109684
3946
3947         Reviewed by Anders Carlsson.
3948
3949         Stop constructing the PageClient in EwkView. PageClient is an internal
3950         class and we should not use it directly in our Ewk implementation.
3951         Instead, have WebView subclass PageClient. The PageClient implementation
3952         just calls WebView methods otherwise.
3953
3954         * PlatformEfl.cmake:
3955         * UIProcess/API/efl/EwkView.cpp:
3956         (EwkView::EwkView):
3957         (EwkView::setSize):
3958         * UIProcess/API/efl/EwkView.h:
3959         (WebKit):
3960         (EwkView):
3961         (EwkView::webView):
3962         * UIProcess/API/efl/ewk_view.cpp:
3963         * UIProcess/efl/PageClientBase.cpp: Removed.
3964         * UIProcess/efl/PageClientBase.h: Removed.
3965         * UIProcess/efl/PageClientDefaultImpl.cpp: Removed.
3966         * UIProcess/efl/PageClientDefaultImpl.h: Removed.
3967         * UIProcess/efl/PageClientLegacyImpl.cpp: Removed.
3968         * UIProcess/efl/PageClientLegacyImpl.h: Removed.
3969         * UIProcess/efl/PageLoadClientEfl.cpp:
3970         (WebKit::PageLoadClientEfl::didCommitLoadForFrame):
3971         * UIProcess/efl/PageViewportControllerClientEfl.h:
3972         * UIProcess/efl/WebPageProxyEfl.cpp:
3973         (WebKit::WebPageProxy::viewWidget):
3974         * UIProcess/efl/WebView.cpp:
3975         (WebKit::WebView::WebView):
3976         (WebKit::WebView::~WebView):
3977         (WebKit::WebView::initialize):
3978         (WebKit):
3979         (WebKit::WebView::evasObject):
3980         (WebKit::WebView::setThemePath):
3981         (WebKit::WebView::setDrawsBackground):
3982         (WebKit::WebView::drawsBackground):
3983         (WebKit::WebView::setDrawsTransparentBackground):
3984         (WebKit::WebView::drawsTransparentBackground):
3985         (WebKit::WebView::suspendActiveDOMObjectsAndAnimations):
3986         (WebKit::WebView::resumeActiveDOMObjectsAndAnimations):
3987         (WebKit::WebView::didCommitLoad):
3988         (WebKit::WebView::updateViewportSize):
3989         (WebKit::WebView::didChangeContentsSize):
3990         (WebKit::WebView::createDrawingAreaProxy):
3991         (WebKit::WebView::setViewNeedsDisplay):
3992         (WebKit::WebView::displayView):
3993         (WebKit::WebView::scrollView):
3994         (WebKit::WebView::viewSize):
3995         (WebKit::WebView::isViewWindowActive):
3996         (WebKit::WebView::isViewFocused):
3997         (WebKit::WebView::isViewVisible):
3998         (WebKit::WebView::isViewInWindow):
3999         (WebKit::WebView::processDidCrash):
4000         (WebKit::WebView::didRelaunchProcess):
4001         (WebKit::WebView::pageClosed):
4002         (WebKit::WebView::toolTipChanged):
4003         (WebKit::WebView::setCursor):
4004         (WebKit::WebView::setCursorHiddenUntilMouseMoves):
4005         (WebKit::WebView::registerEditCommand):
4006         (WebKit::WebView::clearAllEditCommands):
4007         (WebKit::WebView::canUndoRedo):
4008         (WebKit::WebView::executeUndoRedo):
4009         (WebKit::WebView::screenToWindow):
4010         (WebKit::WebView::windowToScreen):
4011         (WebKit::WebView::doneWithKeyEvent):
4012         (WebKit::WebView::doneWithTouchEvent):
4013         (WebKit::WebView::createPopupMenuProxy):
4014         (WebKit::WebView::createContextMenuProxy):
4015         (WebKit::WebView::createColorChooserProxy):
4016         (WebKit::WebView::setFindIndicator):
4017         (WebKit::WebView::enterAcceleratedCompositingMode):
4018         (WebKit::WebView::exitAcceleratedCompositingMode):
4019         (WebKit::WebView::updateAcceleratedCompositingMode):
4020         (WebKit::WebView::didCommitLoadForMainFrame):
4021         (WebKit::WebView::didFinishLoadingDataForCustomRepresentation):
4022         (WebKit::WebView::customRepresentationZoomFactor):
4023         (WebKit::WebView::setCustomRepresentationZoomFactor):
4024         (WebKit::WebView::flashBackingStoreUpdates):
4025         (WebKit::WebView::findStringInCustomRepresentation):
4026         (WebKit::WebView::countStringMatchesInCustomRepresentation):
4027         (WebKit::WebView::updateTextInputState):
4028         (WebKit::WebView::handleDownloadRequest):
4029         (WebKit::WebView::convertToDeviceSpace):
4030         (WebKit::WebView::convertToUserSpace):
4031         (WebKit::WebView::didChangeViewportProperties):
4032         (WebKit::WebView::pageDidRequestScroll):
4033         (WebKit::WebView::didRenderFrame):
4034         (WebKit::WebView::pageTransitionViewportReady):
4035         * UIProcess/efl/WebView.h:
4036         (WebKit):
4037         (WebView):
4038         (WebKit::WebView::pageRef):
4039         (WebKit::WebView::page):
4040         (WebKit::WebView::canScrollView):
4041
4042 2013-02-15  Milian Wolff  <milian.wolff@kdab.com>
4043
4044         [Qt] Restore URL Scheme Delegates after QtWebProcess crash
4045         https://bugs.webkit.org/show_bug.cgi?id=108808
4046
4047         When the QtWebProcess crashes, the registered URL Scheme
4048         Delegates are not properly restored over IPC in the newly
4049         launched process instance.
4050
4051         Reviewed by Simon Hausmann.
4052
4053         * UIProcess/API/qt/qquickwebview.cpp:
4054         (QQuickWebViewPrivate::didRelaunchProcess):
4055         (QQuickWebViewPrivate::updateSchemeDelegates):
4056         * UIProcess/API/qt/qquickwebview_p_p.h:
4057         (QQuickWebViewPrivate):
4058
4059 2013-02-15  Allan Sandfeld Jensen  <allan.jensen@digia.com>
4060
4061         Simplify hitTestResultAtPoint and nodesFromRect APIs
4062         https://bugs.webkit.org/show_bug.cgi?id=95720
4063
4064         Reviewed by Julien Chaffraix and Maciej Stachowiak.
4065
4066         Update calls to new API and update exported symbols.
4067
4068         * WebProcess/InjectedBundle/InjectedBundleNavigationAction.cpp:
4069         (WebKit::InjectedBundleNavigationAction::InjectedBundleNavigationAction):
4070         * WebProcess/WebPage/WebFrame.cpp:
4071         (WebKit::WebFrame::hitTest):
4072         * WebProcess/WebPage/WebPage.cpp:
4073         (WebKit::handleContextMenuEvent):
4074         (WebKit::WebPage::highlightPotentialActivation):
4075         (WebKit::WebPage::findZoomableAreaForPoint):
4076         * WebProcess/WebPage/mac/WebPageMac.mm:
4077         (WebKit::WebPage::characterIndexForPoint):
4078         (WebKit::WebPage::performDictionaryLookupAtLocation):
4079         (WebKit::WebPage::shouldDelayWindowOrderingEvent):
4080         (WebKit::WebPage::acceptsFirstMouse):
4081
4082 2013-02-14  Huang Dongsung  <luxtella@company100.net>
4083
4084         [WK2] Rename from scrollOffset to scrollDelta in WebChromeClient.
4085         https://bugs.webkit.org/show_bug.cgi?id=109885
4086
4087         Reviewed by Simon Fraser.
4088
4089         Chrome sends a scroll delta to WebChromeClient but WebChromeClient names it
4090         scrollOffset. So this patch corrects this misnaming.
4091
4092         In addition, all subclasses of LayerTreeHost don't use the misnamed
4093         scrollOffset in scrollNonCompositedContents(), so this patch removes the
4094         scrollOffset argument.
4095
4096         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
4097         (WebKit::WebChromeClient::scroll):
4098         * WebProcess/WebCoreSupport/WebChromeClient.h:
4099         (WebChromeClient):
4100         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
4101         (WebKit::CoordinatedLayerTreeHost::scrollNonCompositedContents):
4102         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
4103         (CoordinatedLayerTreeHost):
4104         * WebProcess/WebPage/DrawingArea.h:
4105         (DrawingArea):
4106         * WebProcess/WebPage/DrawingAreaImpl.cpp:
4107         (WebKit::DrawingAreaImpl::scroll):
4108         * WebProcess/WebPage/DrawingAreaImpl.h:
4109         (DrawingAreaImpl):
4110         * WebProcess/WebPage/LayerTreeHost.h:
4111         (LayerTreeHost):
4112         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
4113         (WebKit::LayerTreeHostGtk::scrollNonCompositedContents):
4114         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
4115         (LayerTreeHostGtk):
4116         * WebProcess/WebPage/mac/LayerTreeHostMac.h:
4117         (LayerTreeHostMac):
4118         * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
4119         (WebKit::LayerTreeHostMac::scrollNonCompositedContents):
4120         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
4121         (RemoteLayerTreeDrawingArea):
4122         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
4123         (WebKit::RemoteLayerTreeDrawingArea::scroll):
4124         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
4125         (TiledCoreAnimationDrawingArea):