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