ChangeLog 959 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2014-01-21  Commit Queue  <commit-queue@webkit.org>

        Unreviewed, rolling out r162452.
        http://trac.webkit.org/changeset/162452
        https://bugs.webkit.org/show_bug.cgi?id=127366

        broke a few tests on all Mac WebKit1 bots (Requested by
        thorton on #webkit).

        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::WebPage):
        (WebKit::WebPage::setActive):
        (WebKit::WebPage::setViewIsVisible):
        (WebKit::WebPage::setFocused):
        (WebKit::WebPage::setIsInWindow):
        (WebKit::WebPage::setViewStateInternal):
        (WebKit::WebPage::setIsVisuallyIdle):
        * WebProcess/WebPage/WebPage.h:

20
21
22
23
24
25
26
27
28
29
30
2014-01-21  Martin Hock  <mhock@apple.com>

        Trivial Session API cleanup.
        https://bugs.webkit.org/show_bug.cgi?id=127356

        Reviewed by Alexey Proskuryakov.

        * UIProcess/API/C/WKSessionRef.cpp:
        (WKSessionIsEphemeral):
        * UIProcess/API/C/WKSessionRef.h:

31
32
33
34
35
36
37
38
39
40
41
42
43
44
2014-01-16  Simon Fraser  <simon.fraser@apple.com>

        Log an error for a common cause of WebProcess early launch crashing in misconfigured development builds
        https://bugs.webkit.org/show_bug.cgi?id=127121

        Reviewed by Anders Carlsson.
        
        A common cause of early WebProcess crashes during development is a null return
        from CFBundleGetValueForInfoDictionaryKey(), so log and return an error in
        this case rather than passing a null C string to dlsym().

        * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.mm:
        (WebKit::BootstrapMain):

45
46
47
48
49
50
51
2014-01-21  Tim Horton  <timothy_horton@apple.com>

        Sort headers after the rename that happened in r162454.

        * UIProcess/mac/RemoteLayerTreeHost.mm:
        * WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm:

52
53
54
55
56
57
58
59
60
61
2014-01-21  Tim Horton  <timothy_horton@apple.com>

        Address late review naming comments after r162453.

        * UIProcess/API/mac/WKView.mm:
        And, fix the build by adding an include I accidentally missed.

        * UIProcess/mac/RemoteLayerTreeHost.mm:
        * WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm:

62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
2014-01-21  Tim Horton  <timothy_horton@apple.com>

        Keep CALayer implicit animation disabling code in a single place
        https://bugs.webkit.org/show_bug.cgi?id=127355

        Reviewed by Simon Fraser.

        * Shared/mac/RemoteLayerTreePropertyApplier.h:
        * Shared/mac/RemoteLayerTreePropertyApplier.mm:
        Remove disableActionsForLayer.

        * UIProcess/API/mac/WKView.mm:
        (-[WKView _rootLayer]):
        Disable actions on the root layer. It doesn't need them, and currently
        isn't affected by implicit animations, but future patches which animate
        the root layer will benefit from this.

        * UIProcess/mac/RemoteLayerTreeHost.mm:
        (WebKit::RemoteLayerTreeHost::createLayer):
        Use web_disableAllActions instead of disableActionsForLayer.

        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm: Renamed from Source/WebKit2/WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.cpp.
        (PlatformCALayerRemoteCustom::PlatformCALayerRemoteCustom):
        (PlatformCALayerRemoteCustom::~PlatformCALayerRemoteCustom):
        (PlatformCALayerRemoteCustom::hostingContextID):
        Use web_disableAllActions instead of disableActionsForLayer.
        This requires making this file Obj-C++ but that's OK since it's Mac/iOS only.

91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
2014-01-21  Gavin Barraclough  <barraclough@apple.com>

        Change Page, FocusController to use ViewState
        https://bugs.webkit.org/show_bug.cgi?id=126533

        Reviewed by Tim Horton.

        These classes currently maintain a set of separate fields to represent the view state;
        combine these into a single field, and allow WebPage to send the combined update rather
        than individual changes.

        Maintain existing interface for WebKit1 clients.

        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::WebPage):
            - Combined separate calls to Page::setViewState.
        (WebKit::WebPage::updateIsInWindow):
            - Simplied from setIsInWindow.
        (WebKit::WebPage::setViewState):
            - Combined separate calls to Page::setViewState.
        * WebProcess/WebPage/WebPage.h:
            - Declare updateIsInWindow.

114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
2014-01-21  Carlos Garcia Campos  <cgarcia@igalia.com>

        [SOUP] Implement CUSTOM PROTOCOLS
        https://bugs.webkit.org/show_bug.cgi?id=125583

        Reviewed by Anders Carlsson.

        Add new classes to implement CustomProtocols for soup. The
        implementation is the same, but using the CustomProtocol API and
        messages. The current implementation can be removed once all ports
        using soup switch to using CustomProtocols.

        * GNUmakefile.am: Add new include paths.
        * GNUmakefile.list.am: Add new files to compilation.
        * PlatformGTK.cmake: Add new files to compilation.
        * Shared/API/c/soup/WKBaseSoup.h:
        * Shared/APIObject.h:
        * Shared/Network/CustomProtocols/CustomProtocolManager.h:
        * Shared/Network/CustomProtocols/soup/CustomProtocolManagerImpl.cpp: Added.
        (WebKit::generateCustomProtocolID):
        (WebKit::WebSoupRequestAsyncData::WebSoupRequestAsyncData):
        (WebKit::WebSoupRequestAsyncData::~WebSoupRequestAsyncData):
        (WebKit::WebSoupRequestAsyncData::requestFailed):
        (WebKit::WebSoupRequestAsyncData::releaseTask):
        (WebKit::CustomProtocolManagerImpl::CustomProtocolManagerImpl):
        (WebKit::CustomProtocolManagerImpl::~CustomProtocolManagerImpl):
        (WebKit::CustomProtocolManagerImpl::registerScheme):
        (WebKit::CustomProtocolManagerImpl::supportsScheme):
        (WebKit::CustomProtocolManagerImpl::didFailWithError):
        (WebKit::CustomProtocolManagerImpl::didLoadData):
        (WebKit::CustomProtocolManagerImpl::didReceiveResponse):
        (WebKit::CustomProtocolManagerImpl::didFinishLoading):
        (WebKit::CustomProtocolManagerImpl::send):
        (WebKit::CustomProtocolManagerImpl::finish):
        * Shared/Network/CustomProtocols/soup/CustomProtocolManagerImpl.h: Added.
        * Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp:
        (WebKit::CustomProtocolManager::CustomProtocolManager):
        (WebKit::CustomProtocolManager::initialize):
        (WebKit::CustomProtocolManager::registerScheme):
        (WebKit::CustomProtocolManager::supportsScheme):
        (WebKit::CustomProtocolManager::didFailWithError):
        (WebKit::CustomProtocolManager::didLoadData):
        (WebKit::CustomProtocolManager::didReceiveResponse):
        (WebKit::CustomProtocolManager::didFinishLoading):
        * Shared/WebProcessCreationParameters.cpp:
        (WebKit::WebProcessCreationParameters::encode):
        (WebKit::WebProcessCreationParameters::decode):
        * Shared/WebProcessCreationParameters.h:
        * UIProcess/API/C/soup/WKAPICastSoup.h:
        * UIProcess/API/C/soup/WKSoupCustomProtocolRequestManager.cpp: Copied from Source/WebKit2/UIProcess/soup/WebContextSoup.cpp.
        (WKSoupCustomProtocolRequestManagerGetTypeID):
        (WKSoupCustomProtocolRequestManagerSetClient):
        * UIProcess/API/C/soup/WKSoupCustomProtocolRequestManager.h: Added.
        * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
        * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
        (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
        * UIProcess/Network/CustomProtocols/soup/CustomProtocolManagerProxySoup.cpp:
        (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
        (WebKit::CustomProtocolManagerProxy::startLoading):
        (WebKit::CustomProtocolManagerProxy::stopLoading):
        * UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.cpp: Added.
        (WebKit::WebSoupCustomProtocolRequestManager::supplementName):
        (WebKit::WebSoupCustomProtocolRequestManager::create):
        (WebKit::WebSoupCustomProtocolRequestManager::WebSoupCustomProtocolRequestManager):
        (WebKit::WebSoupCustomProtocolRequestManager::~WebSoupCustomProtocolRequestManager):
        (WebKit::WebSoupCustomProtocolRequestManager::initializeClient):
        (WebKit::WebSoupCustomProtocolRequestManager::contextDestroyed):
        (WebKit::WebSoupCustomProtocolRequestManager::processDidClose):
        (WebKit::WebSoupCustomProtocolRequestManager::refWebContextSupplement):
        (WebKit::WebSoupCustomProtocolRequestManager::derefWebContextSupplement):
        (WebKit::WebSoupCustomProtocolRequestManager::registerSchemeForCustomProtocol):
        (WebKit::WebSoupCustomProtocolRequestManager::unregisterSchemeForCustomProtocol):
        (WebKit::WebSoupCustomProtocolRequestManager::startLoading):
        (WebKit::WebSoupCustomProtocolRequestManager::stopLoading):
        (WebKit::WebSoupCustomProtocolRequestManager::didReceiveResponse):
        (WebKit::WebSoupCustomProtocolRequestManager::didLoadData):
        (WebKit::WebSoupCustomProtocolRequestManager::didFailWithError):
        (WebKit::WebSoupCustomProtocolRequestManager::didFinishLoading):
        * UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.h: Added.
        (WebKit::WebSoupCustomProtocolRequestManager::registeredSchemesForCustomProtocols):
        * UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManagerClient.cpp: Added.
        (WebKit::WebSoupCustomProtocolRequestManagerClient::startLoading):
        (WebKit::WebSoupCustomProtocolRequestManagerClient::stopLoading):
        * UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManagerClient.h: Added.
        * UIProcess/Network/NetworkProcessProxy.cpp:
        (WebKit::NetworkProcessProxy::NetworkProcessProxy):
        * UIProcess/WebContext.cpp:
        (WebKit::WebContext::WebContext):
        * UIProcess/WebPageProxy.cpp:
        * UIProcess/WebPageProxy.h:
        * UIProcess/WebPageProxy.messages.in:
        * UIProcess/WebProcessProxy.cpp:
        (WebKit::WebProcessProxy::WebProcessProxy):
        * UIProcess/gtk/WebContextGtk.cpp:
        (WebKit::WebContext::platformInitializeWebProcess):
        * UIProcess/soup/WebContextSoup.cpp:
        (WebKit::WebContext::platformInitializeNetworkProcess):
        * WebProcess/WebProcess.cpp:
        (WebKit::WebProcess::WebProcess):
        * WebProcess/soup/WebKitSoupRequestGeneric.cpp:
        (webkitSoupRequestGenericSendAsync):
        (webkitSoupRequestGenericSendFinish):
        * WebProcess/soup/WebKitSoupRequestGeneric.h:
        * WebProcess/soup/WebProcessSoup.cpp:
        (WebKit::WebProcess::platformInitializeWebProcess):

220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
2014-01-21  Adrian Perez de Castro  <aperez@igalia.com>

        [GTK] Allow passing extra data to web extensions
        https://bugs.webkit.org/show_bug.cgi?id=125990

        Reviewed by Carlos Garcia Campos.

        Allow passing additional information to the injected bundle. On top
        of the string containing the path to the web extensions directory,
        a GVariant can be set with additional data using
        webkit_web_context_set_web_extensions_initialization_user_data().
        Also, a new initialize-web-extensions signal is emitted before
        launching a new WebProcess to allow setting different user data
        for each process. The GVariant is serialized as a string, passed
        to the injected bundle, and the injected bundle deserializes back
        the data, which is passed to web extensions which define the
        webkit_web_extension_initialize_with_user_data() function (for
        backwards compatibility, webkit_web_extension_initialize() is
        used as a fallback.)

        * UIProcess/API/gtk/WebKitInjectedBundleClient.cpp:
        (getInjectedBundleInitializationUserData): Define new callback
        function which causes emission of the initialize-web-extensions
        signal, and serializes the data to be passed to the web process.
        (attachInjectedBundleClientToContext): Set the
        getInjectedBundleInitializationUserData() callback.
        * UIProcess/API/gtk/WebKitWebContext.cpp:
        (webkit_web_context_class_init): Define the
        initialize-web-extensions signal.
        (webkit_web_context_set_web_extensions_directory):
        Web extensions directory as now member of WebKitWebContextPrivate,
        to be able to retrieve it later.
        (webkit_web_context_set_web_extensions_initialization_user_data):
        New API method to set the user data passed to the web extensions
        when initialized.
        (webkitWebContextInitializeWebExtensions): Private function used
        to trigger emission of the initialize-web-extensions signal.
        * UIProcess/API/gtk/WebKitWebContext.h:
        Added prototype for new API method
        webkit_web_context_set_web_extensions_initialization_user_data().
        * UIProcess/API/gtk/WebKitWebContextPrivate.h:
        Prototype of the new private function.
        * UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
        Add new public API bits to the documentation.
        * WebProcess/gtk/WebGtkExtensionManager.cpp:
        (WebKit::WebGtkExtensionManager::initialize):
        Deserialize the data received from the UI process and pass it to
        webkit_web_extension_initialize_with_user_data() if available,
        keeping webkit_web_extension_initialize() as fallback.

270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
2014-01-20  Ryuan Choi  <ryuan.choi@samsung.com>

        [EFL][WK2] Move isEwkViewEvasObject back to ewk_view.cpp
        https://bugs.webkit.org/show_bug.cgi?id=127261

        Reviewed by Gyuyoung Kim.

        isEwkViewEvasObject is general check routine of EFL and mainly used in
        ewk_view.cpp but it was in EwkView.cpp since separated EwkView.cpp from ewk_view.cpp

        This patch moves it to EwkView.h as inline function with small refactoring.
        In addition, this patch added EINA_UNLIKELY keyword in cold paths.

        * UIProcess/API/efl/EwkView.cpp:
        (defaultSmartClassInstance):
        (toSmartData):
        (toEwkView): Moved it from bottom not to expose it to header file.
        * UIProcess/API/efl/EwkView.h:
        * UIProcess/API/efl/ewk_view.cpp:
        (isEwkViewEvasObject):
        (toEwkViewChecked):

292
293
294
295
296
297
298
299
300
301
302
303
304
305
2014-01-20  Eunmi Lee  <eunmi15.lee@samsung.com>

        [EFL][WK2] Amount of scrolling is different from movement of touch when device pixel ratio is not 1.
        https://bugs.webkit.org/show_bug.cgi?id=127268

        Reviewed by Gyuyoung Kim.

        Amount of scrolling should be same with movement of touch even though
        device pixel ratio is not 1, so apply device pixel ratio to the new
        position of scrollBy().

        * UIProcess/API/efl/EwkView.cpp:
        (EwkView::scrollBy):

306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
2014-01-20  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>

        [WK2] Setting m_pageScaleFactor directly in WebPageProxy::scalePage
        https://bugs.webkit.org/show_bug.cgi?id=127090

        Reviewed by Simon Fraser.

        When the client side sets the scale factor, the UIProcess will send the message to WebProcess and only after
        WebPageProxy::pageScaleFactorDidChange is called the desired scale factor is returned correctly by
        WebPageProxy::pageScaleFactor.
        This will avoid the client side retrieve a wrong scale factor while UIProcess and WebProcess gets synchronized.

        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::scalePage):

321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
2014-01-20  Zan Dobersek  <zdobersek@igalia.com>

        [GTK][WK2] Move the rest of GTK's WorkQueue implementation to std::function
        https://bugs.webkit.org/show_bug.cgi?id=127273

        Reviewed by Anders Carlsson.

        Move to using std::function and move semantics in WorkQueue::registerSocketEventHandler
        and WorkQueue::SocketEventSource.

        * Platform/IPC/unix/ConnectionUnix.cpp:
        (IPC::Connection::open):
        * Platform/WorkQueue.h:
        * Platform/gtk/WorkQueueGtk.cpp:
        (WorkQueue::SocketEventSource::SocketEventSource):
        (WorkQueue::registerSocketEventHandler):
        (WorkQueue::dispatchOnSource): Use std::move instead of std::forward<T>.
        (WorkQueue::dispatch): Ditto.
        (WorkQueue::dispatchAfter): Ditto.

341
342
343
344
345
346
347
348
349
350
351
2014-01-20  Zan Dobersek  <zdobersek@igalia.com>

        Unreviewed. Additional build fixes after r162276 and r163304.

        * Platform/WorkQueue.h:
        * Platform/gtk/WorkQueueGtk.cpp:
        (WorkQueue::EventSource::EventSource):
        (WorkQueue::dispatchOnSource):
        (WorkQueue::dispatch):
        (WorkQueue::dispatchAfter):

352
353
354
355
356
357
358
359
360
361
362
363
2014-01-19  Zan Dobersek  <zdobersek@igalia.com>

        Unreviewed GTK build fix after r162276.

        Updating the WorkQueue implementation to use std::function and std::chrono.

        * Platform/WorkQueue.h:
        * Platform/gtk/WorkQueueGtk.cpp:
        (WorkQueue::dispatchOnSource):
        (WorkQueue::dispatch):
        (WorkQueue::dispatchAfter):

364
365
366
367
368
369
370
2014-01-19  Jinwoo Song  <jinwoo7.song@samsung.com>

        Unreviewed debug build fix on EFL port after r162300.

        * Platform/efl/DispatchQueueWorkItemEfl.h:
        (TimerWorkItem::create):

371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
2014-01-19  Jinwoo Song  <jinwoo7.song@samsung.com>

        [EFL][WK2] build fix after r162276
        https://bugs.webkit.org/show_bug.cgi?id=127259

        Reviewed by Anders Carlsson.

        * Platform/efl/DispatchQueueEfl.cpp:
        (DispatchQueue::performTimerWork):
        (DispatchQueue::getNextTimeOut):
        * Platform/efl/DispatchQueueWorkItemEfl.h:
        (WorkItem::create):
        (WorkItem::WorkItem):
        (TimerWorkItem::create):
        (TimerWorkItem::TimerWorkItem):
        * Platform/efl/WorkQueueEfl.cpp:
        (WorkQueue::dispatch):
        (WorkQueue::dispatchAfter):

390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
2014-01-18  Anders Carlsson  <andersca@apple.com>

        Replace a couple of uses of WTF::Function with std::function
        https://bugs.webkit.org/show_bug.cgi?id=127218

        Reviewed by Andreas Kling.

        * Platform/IPC/mac/ConnectionMac.cpp:
        (IPC::createDataAvailableSource):
        * Platform/WorkQueue.h:
        * Platform/mac/WorkQueueMac.cpp:
        (WorkQueue::dispatch):
        (WorkQueue::dispatchAfter):
        * Shared/ChildProcess.cpp:
        (WebKit::didCloseOnConnectionWorkQueue):
        * UIProcess/Storage/LocalStorageDatabase.cpp:
        (WebKit::LocalStorageDatabase::scheduleDatabaseUpdate):
        * WebProcess/WebPage/DrawingArea.cpp:
        (WebKit::DrawingArea::dispatchAfterEnsuringUpdatedScrollPosition):
        * WebProcess/WebPage/DrawingArea.h:
        * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
        * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
        (WebKit::TiledCoreAnimationDrawingArea::dispatchAfterEnsuringUpdatedScrollPosition):

414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
2014-01-18  Martin Hock  <mhock@apple.com>

        Flesh out session APIs (still not enabled at API level).
        https://bugs.webkit.org/show_bug.cgi?id=126918

        Reviewed by Alexey Proskuryakov.

        * CMakeLists.txt:
        * GNUmakefile.list.am:
        * NetworkProcess/NetworkConnectionToWebProcess.cpp:
        (WebKit::storageSession):
        (WebKit::NetworkConnectionToWebProcess::startDownload):
        (WebKit::NetworkConnectionToWebProcess::cookiesForDOM):
        (WebKit::NetworkConnectionToWebProcess::setCookiesFromDOM):
        (WebKit::NetworkConnectionToWebProcess::cookiesEnabled):
        (WebKit::NetworkConnectionToWebProcess::cookieRequestHeaderFieldValue):
        (WebKit::NetworkConnectionToWebProcess::getRawCookies):
        (WebKit::NetworkConnectionToWebProcess::deleteCookie):
        * NetworkProcess/NetworkConnectionToWebProcess.h:
        * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
        * NetworkProcess/NetworkProcess.cpp:
        (WebKit::NetworkProcess::initializeNetworkProcess):
        (WebKit::NetworkProcess::ensurePrivateBrowsingSession):
        (WebKit::NetworkProcess::destroyPrivateBrowsingSession):
        * NetworkProcess/NetworkProcess.h:
        * NetworkProcess/NetworkProcess.messages.in:
        * NetworkProcess/RemoteNetworkingContext.h:
        * NetworkProcess/mac/RemoteNetworkingContext.mm:
        (WebKit::RemoteNetworkingContext::storageSession):
        (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
        * NetworkProcess/soup/RemoteNetworkingContextSoup.cpp:
        (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
        * Shared/SessionTracker.cpp: Copied from Source/WebKit2/UIProcess/APISession.cpp.
        (WebKit::sessionMap):
        (WebKit::identifierBase):
        (WebKit::SessionTracker::getSessionMap):
        (WebKit::SessionTracker::getIdentifierBase):
        (WebKit::SessionTracker::session):
        (WebKit::SessionTracker::destroySession):
        (WebKit::SessionTracker::setIdentifierBase):
        * Shared/SessionTracker.h: Copied from Source/WebKit2/UIProcess/APISession.h.
        (WebKit::SessionTracker::isEphemeralID):
        * Shared/mac/CookieStorageShim.cpp:
        (WebKit::webKitCookieStorageCopyRequestHeaderFieldsForURL):
        * UIProcess/APISession.cpp:
        (API::generateID):
        (API::Session::defaultSession):
        (API::Session::legacyPrivateSession):
        (API::Session::Session):
        (API::Session::create):
        (API::Session::isEphemeral):
        (API::Session::getID):
        * UIProcess/APISession.h:
        * UIProcess/WebContext.cpp:
        (WebKit::WebContext::setAnyPageGroupMightHavePrivateBrowsingEnabled):
        (WebKit::WebContext::createNewWebProcess):
        (WebKit::WebContext::createWebPage):
        * UIProcess/WebContext.h:
        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::create):
        (WebKit::WebPageProxy::WebPageProxy):
        * UIProcess/WebPageProxy.h:
        (WebKit::WebPageProxy::sessionID):
        * UIProcess/WebProcessProxy.cpp:
        (WebKit::WebProcessProxy::createWebPage):
        * UIProcess/WebProcessProxy.h:
        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/InjectedBundle/InjectedBundle.cpp:
        (WebKit::InjectedBundle::setPrivateBrowsingEnabled):
        * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
        (WebKit::legacySessionID):
        (WebKit::WebPlatformStrategies::cookiesForDOM):
        (WebKit::WebPlatformStrategies::setCookiesFromDOM):
        (WebKit::WebPlatformStrategies::cookiesEnabled):
        (WebKit::WebPlatformStrategies::cookieRequestHeaderFieldValue):
        (WebKit::WebPlatformStrategies::getRawCookies):
        (WebKit::WebPlatformStrategies::deleteCookie):
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
        (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
        (WebKit::WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
        (WebKit::WebFrameNetworkingContext::storageSession):
        * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
        (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
        (WebKit::WebFrameNetworkingContext::storageSession):
        * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
        * WebProcess/WebProcess.cpp:
        (WebKit::WebProcess::initializeWebProcess):
        (WebKit::WebProcess::ensurePrivateBrowsingSession):
        (WebKit::WebProcess::destroyPrivateBrowsingSession):
        * WebProcess/WebProcess.h:
        * WebProcess/WebProcess.messages.in:

507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
2014-01-18  Brian Burg  <bburg@apple.com>

        Web Inspector: Page should use std::unique_ptr for InspectorController
        https://bugs.webkit.org/show_bug.cgi?id=127068

        Reviewed by Joseph Pecoraro.

        Convert call sites to use a InspectorController reference.

        * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
        (WebKit::WebInspectorClient::drawRect):
        * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
        (WebKit::WebInspectorFrontendClient::WebInspectorFrontendClient):
        (WebKit::WebInspectorFrontendClient::closeWindow):
        * WebProcess/WebPage/WebInspector.cpp:
        (WebKit::WebInspector::createInspectorPage):
        (WebKit::WebInspector::show):
        (WebKit::WebInspector::close):
        (WebKit::WebInspector::evaluateScriptForTest):
        (WebKit::WebInspector::showConsole):
        (WebKit::WebInspector::showResources):
        (WebKit::WebInspector::showMainResourceForFrame):
        (WebKit::WebInspector::startJavaScriptDebugging):
        (WebKit::WebInspector::stopJavaScriptDebugging):
        (WebKit::WebInspector::setJavaScriptProfilingEnabled):
        (WebKit::WebInspector::startJavaScriptProfiling):
        (WebKit::WebInspector::stopJavaScriptProfiling):
        (WebKit::WebInspector::startPageProfiling):
        (WebKit::WebInspector::stopPageProfiling):
        (WebKit::WebInspector::dispatchMessageFromRemoteFrontend):
        (WebKit::WebInspector::remoteFrontendConnected):
        (WebKit::WebInspector::remoteFrontendDisconnected):

540
541
542
543
544
545
546
547
548
549
550
2014-01-18  Anders Carlsson  <andersca@apple.com>

        Remove ENABLE_THREADED_HTML_PARSER defines everywhere
        https://bugs.webkit.org/show_bug.cgi?id=127225

        Reviewed by Andreas Kling.

        This concludes the removal of over 8.8 million lines of threaded parser code.

        * Configurations/FeatureDefines.xcconfig:

551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
2014-01-18  Yongjun Zhang  <yongjun_zhang@apple.com>

        Make WKRenderingProgressEvents a shareable API.
        https://bugs.webkit.org/show_bug.cgi?id=127213

        Reviewed by Dan Bernstein.

        Move WKRenderingProgressEvents from UIProcess to Shared, so that an inject bundle
        could also use this enum when listening to layout milestones.

        * Shared/API/Cocoa/WKRenderingProgressEvents.h: Added.
        (NS_OPTIONS):
        * Shared/API/Cocoa/WKRenderingProgressEventsInternal.h: Added.
        (renderingProgressEvents):
        * UIProcess/API/Cocoa/WKBrowsingContextController.h: Move WKRenderingProgressEvents to Shared/API/Cocoa/WKRenderingProgressEvents.h.
        * UIProcess/API/Cocoa/WKBrowsingContextController.mm: Move renderingProgressEvents() to WKRenderingProgressEventsInternal.h.
        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInLoadDelegate.h: Add
            webProcessPlugInBrowserContextController:renderingProgressDidChange: to load delegate.
        * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
        (didLayout):
        (setUpPageLoaderClient): Also listen to didLayout callback for layout milestones.

574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
2014-01-17  Commit Queue  <commit-queue@webkit.org>

        Unreviewed, rolling out r162237 and r162241.
        http://trac.webkit.org/changeset/162237
        http://trac.webkit.org/changeset/162241
        https://bugs.webkit.org/show_bug.cgi?id=127216

        Broke lots of API tests (Requested by ap on #webkit).

        * CMakeLists.txt:
        * GNUmakefile.list.am:
        * NetworkProcess/NetworkConnectionToWebProcess.cpp:
        (WebKit::storageSession):
        (WebKit::NetworkConnectionToWebProcess::startDownload):
        (WebKit::NetworkConnectionToWebProcess::cookiesForDOM):
        (WebKit::NetworkConnectionToWebProcess::setCookiesFromDOM):
        (WebKit::NetworkConnectionToWebProcess::cookiesEnabled):
        (WebKit::NetworkConnectionToWebProcess::cookieRequestHeaderFieldValue):
        (WebKit::NetworkConnectionToWebProcess::getRawCookies):
        (WebKit::NetworkConnectionToWebProcess::deleteCookie):
        * NetworkProcess/NetworkConnectionToWebProcess.h:
        * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
        * NetworkProcess/NetworkProcess.cpp:
        (WebKit::NetworkProcess::initializeNetworkProcess):
        (WebKit::NetworkProcess::ensurePrivateBrowsingSession):
        (WebKit::NetworkProcess::destroyPrivateBrowsingSession):
        * NetworkProcess/NetworkProcess.h:
        * NetworkProcess/NetworkProcess.messages.in:
        * NetworkProcess/RemoteNetworkingContext.h:
        * NetworkProcess/mac/RemoteNetworkingContext.mm:
        (WebKit::privateBrowsingStorageSession):
        (WebKit::RemoteNetworkingContext::storageSession):
        (WebKit::RemoteNetworkingContext::privateBrowsingSession):
        (WebKit::privateBrowsingStorageSessionIdentifierBase):
        (WebKit::RemoteNetworkingContext::setPrivateBrowsingStorageSessionIdentifierBase):
        (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
        (WebKit::RemoteNetworkingContext::destroyPrivateBrowsingSession):
        * NetworkProcess/soup/RemoteNetworkingContextSoup.cpp:
        (WebKit::RemoteNetworkingContext::setPrivateBrowsingStorageSessionIdentifierBase):
        (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
        (WebKit::RemoteNetworkingContext::destroyPrivateBrowsingSession):
        (WebKit::RemoteNetworkingContext::privateBrowsingSession):
        * Shared/SessionTracker.cpp: Removed.
        * Shared/SessionTracker.h: Removed.
        * UIProcess/APISession.cpp:
        (API::Session::Session):
        (API::Session::create):
        (API::Session::isEphemeral):
        * UIProcess/APISession.h:
        * UIProcess/WebContext.cpp:
        (WebKit::WebContext::setAnyPageGroupMightHavePrivateBrowsingEnabled):
        (WebKit::WebContext::createNewWebProcess):
        (WebKit::WebContext::createWebPage):
        * UIProcess/WebContext.h:
        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::create):
        (WebKit::WebPageProxy::WebPageProxy):
        * UIProcess/WebPageProxy.h:
        * UIProcess/WebProcessProxy.cpp:
        (WebKit::WebProcessProxy::createWebPage):
        * UIProcess/WebProcessProxy.h:
        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/InjectedBundle/InjectedBundle.cpp:
        (WebKit::InjectedBundle::setPrivateBrowsingEnabled):
        * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
        (WebKit::WebPlatformStrategies::cookiesForDOM):
        (WebKit::WebPlatformStrategies::setCookiesFromDOM):
        (WebKit::WebPlatformStrategies::cookiesEnabled):
        (WebKit::WebPlatformStrategies::cookieRequestHeaderFieldValue):
        (WebKit::WebPlatformStrategies::getRawCookies):
        (WebKit::WebPlatformStrategies::deleteCookie):
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
        (WebKit::privateSession):
        (WebKit::identifierBase):
        (WebKit::WebFrameNetworkingContext::setPrivateBrowsingStorageSessionIdentifierBase):
        (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
        (WebKit::WebFrameNetworkingContext::destroyPrivateBrowsingSession):
        (WebKit::WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
        (WebKit::WebFrameNetworkingContext::storageSession):
        * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
        (WebKit::privateSession):
        (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
        (WebKit::WebFrameNetworkingContext::destroyPrivateBrowsingSession):
        (WebKit::WebFrameNetworkingContext::storageSession):
        * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
        * WebProcess/WebProcess.cpp:
        (WebKit::WebProcess::initializeWebProcess):
        (WebKit::WebProcess::ensurePrivateBrowsingSession):
        (WebKit::WebProcess::destroyPrivateBrowsingSession):
        * WebProcess/WebProcess.h:
        * WebProcess/WebProcess.messages.in:

667
668
669
670
671
672
673
674
675
2014-01-17  Ryuan Choi  <ryuan.choi@samsung.com>

        Unreviewed build fix on EFL port after r162237

        The EFL port disabled NETWORK_PROCESS yet and use -Werror=unused-function.

        * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
        Guarded legacySessionID with ENABLE(NETWORK_PROCESS)

676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
2014-01-17  Martin Hock  <mhock@apple.com>

        Flesh out session APIs (still not enabled at API level).
        https://bugs.webkit.org/show_bug.cgi?id=126918

        Reviewed by Alexey Proskuryakov.

        * CMakeLists.txt:
        * GNUmakefile.list.am:
        * NetworkProcess/NetworkConnectionToWebProcess.cpp:
        (WebKit::storageSession):
        (WebKit::NetworkConnectionToWebProcess::startDownload):
        (WebKit::NetworkConnectionToWebProcess::cookiesForDOM):
        (WebKit::NetworkConnectionToWebProcess::setCookiesFromDOM):
        (WebKit::NetworkConnectionToWebProcess::cookiesEnabled):
        (WebKit::NetworkConnectionToWebProcess::cookieRequestHeaderFieldValue):
        (WebKit::NetworkConnectionToWebProcess::getRawCookies):
        (WebKit::NetworkConnectionToWebProcess::deleteCookie):
        * NetworkProcess/NetworkConnectionToWebProcess.h:
        * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
        * NetworkProcess/NetworkProcess.cpp:
        (WebKit::NetworkProcess::initializeNetworkProcess):
        (WebKit::NetworkProcess::ensurePrivateBrowsingSession):
        (WebKit::NetworkProcess::destroyPrivateBrowsingSession):
        * NetworkProcess/NetworkProcess.h:
        * NetworkProcess/NetworkProcess.messages.in:
        * NetworkProcess/RemoteNetworkingContext.h:
        * NetworkProcess/mac/RemoteNetworkingContext.mm:
        (WebKit::RemoteNetworkingContext::storageSession):
        (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
        * NetworkProcess/soup/RemoteNetworkingContextSoup.cpp:
        (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
        * Shared/SessionTracker.cpp: Copied from Source/WebKit2/UIProcess/APISession.cpp.
        (WebKit::sessionMap):
        (WebKit::identifierBase):
        (WebKit::SessionTracker::getSessionMap):
        (WebKit::SessionTracker::getIdentifierBase):
        (WebKit::SessionTracker::session):
        (WebKit::SessionTracker::destroySession):
        (WebKit::SessionTracker::setIdentifierBase):
        * Shared/SessionTracker.h: Copied from Source/WebKit2/UIProcess/APISession.h.
        (WebKit::SessionTracker::isEphemeralID):
        * UIProcess/APISession.cpp:
        (API::generateID):
        (API::Session::defaultSession):
        (API::Session::legacyPrivateSession):
        (API::Session::Session):
        (API::Session::create):
        (API::Session::isEphemeral):
        (API::Session::getID):
        * UIProcess/APISession.h:
        * UIProcess/WebContext.cpp:
        (WebKit::WebContext::setAnyPageGroupMightHavePrivateBrowsingEnabled):
        (WebKit::WebContext::createNewWebProcess):
        (WebKit::WebContext::createWebPage):
        * UIProcess/WebContext.h:
        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::create):
        (WebKit::WebPageProxy::WebPageProxy):
        * UIProcess/WebPageProxy.h:
        (WebKit::WebPageProxy::sessionID):
        * UIProcess/WebProcessProxy.cpp:
        (WebKit::WebProcessProxy::createWebPage):
        * UIProcess/WebProcessProxy.h:
        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/InjectedBundle/InjectedBundle.cpp:
        (WebKit::InjectedBundle::setPrivateBrowsingEnabled):
        * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
        (WebKit::legacySessionID):
        (WebKit::WebPlatformStrategies::cookiesForDOM):
        (WebKit::WebPlatformStrategies::setCookiesFromDOM):
        (WebKit::WebPlatformStrategies::cookiesEnabled):
        (WebKit::WebPlatformStrategies::cookieRequestHeaderFieldValue):
        (WebKit::WebPlatformStrategies::getRawCookies):
        (WebKit::WebPlatformStrategies::deleteCookie):
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
        (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
        (WebKit::WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
        (WebKit::WebFrameNetworkingContext::storageSession):
        * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
        (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
        (WebKit::WebFrameNetworkingContext::storageSession):
        * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
        * WebProcess/WebProcess.cpp:
        (WebKit::WebProcess::initializeWebProcess):
        (WebKit::WebProcess::ensurePrivateBrowsingSession):
        (WebKit::WebProcess::destroyPrivateBrowsingSession):
        * WebProcess/WebProcess.h:
        * WebProcess/WebProcess.messages.in:

767
768
769
770
771
772
773
774
775
776
2014-01-17  Andreas Kling  <akling@apple.com>

        Remove unused TOUCH_ADJUSTMENT code.
        <https://webkit.org/b/127181>

        Reviewed by Anders Carlsson.

        * WebProcess/WebPage/CoordinatedGraphics/WebPageCoordinatedGraphics.cpp:
        (WebKit::WebPage::findZoomableAreaForPoint):

andersca@apple.com's avatar
andersca@apple.com committed
777
778
779
780
781
782
783
2014-01-17  Anders Carlsson  <andersca@apple.com>

        Fix build.

        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:

784
785
786
787
788
789
790
791
792
793
2014-01-17  Anders Carlsson  <andersca@apple.com>

        Remove FrameLoaderClient::didPerformFirstNavigation()
        https://bugs.webkit.org/show_bug.cgi?id=127191

        Reviewed by Dan Bernstein.

        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:

794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
2014-01-17  Manuel Rego Casasnovas  <rego@igalia.com>

        [GTK] Add CSS Grid Layout as experimental feature
        https://bugs.webkit.org/show_bug.cgi?id=127089

        Reviewed by Martin Robinson.

        Allow CSS Grid Layout to be enabled through the environment variable WEBKITGTK_EXPERIMENTAL_FEATURES.

        Example: WEBKITGTK_EXPERIMENTAL_FEATURES="CSS_GRID_LAYOUT=1"

        * UIProcess/API/gtk/WebKitSettings.cpp:
        (webKitSettingsConstructed): Use new experimental feature to enable or disable CSS Grid Layout.
        * UIProcess/gtk/ExperimentalFeatures.cpp: Add new experimental feature.
        * UIProcess/gtk/ExperimentalFeatures.h: Ditto.

810
811
812
813
814
815
816
817
818
819
820
821
822
823
2014-01-17  Enrica Casucci  <enrica@apple.com>

        Support WebSelections in WK2 on iOS.
        https://bugs.webkit.org/show_bug.cgi?id=127015
        <rdar://problem/15843090>

        Reviewed by Dan Bernstein.

        Removing unused variable in selectWithGesture that
        causes Release build to fail after r162103.

        * WebProcess/WebPage/ios/WebPageIOS.mm:
        (WebKit::WebPage::selectWithGesture):

824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
2014-01-17  Yongjun Zhang  <yongjun_zhang@apple.com>

        https://bugs.webkit.org/show_bug.cgi?id=127138
        Add more delegate callback methods to WKWebProcessPlugInLoadDelegate.

        Reviewed by Sam Weinig.

        Add more WKWebProcessPlugInLoadDelegate callback methods so that a injected
        bundle can listen/react to more frame loading events.

        * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInLoadDelegate.h: Add more delegate callback methods for
            WKWebProcessPlugInLoadDelegate.
        * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
        (didCommitLoadForFrame):
        (didFinishDocumentLoadForFrame):
        (didFailLoadWithErrorForFrame):
        (didSameDocumentNavigationForFrame): 
        (didLayoutForFrame):
        (setUpPageLoaderClient):

844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
2014-01-16  Carlos Garcia Campos  <cgarcia@igalia.com>

        [SOUP] Add stubs for CustomProtocol classes
        https://bugs.webkit.org/show_bug.cgi?id=126343

        Reviewed by Gustavo Noronha Silva.

        * CMakeLists.txt:
        * GNUmakefile.am:
        * GNUmakefile.list.am:
        * PlatformGTK.cmake:
        * Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp: Added.
        (WebKit::generateCustomProtocolID):
        (WebKit::WebSoupRequestAsyncData::WebSoupRequestAsyncData):
        (WebKit::WebSoupRequestAsyncData::~WebSoupRequestAsyncData):
        (WebKit::WebSoupRequestAsyncData::requestFailed):
        (WebKit::WebSoupRequestAsyncData::releaseTask):
        (WebKit::CustomProtocolManager::supplementName):
        (WebKit::CustomProtocolManager::CustomProtocolManager):
        (WebKit::CustomProtocolManager::initializeConnection):
        (WebKit::CustomProtocolManager::initialize):
        * Shared/Network/NetworkProcessCreationParameters.cpp:
        (WebKit::NetworkProcessCreationParameters::encode): Move
        urlSchemesRegisteredForCustomProtocols encoding out of platform
        ifdefs, since it's already guarded by ENABLE(CUSTOM_PROTOCOLS).
        (WebKit::NetworkProcessCreationParameters::decode): Ditto.
        * Shared/Network/NetworkProcessCreationParameters.h: Ditto.
        * UIProcess/Network/CustomProtocols/soup/CustomProtocolManagerProxySoup.cpp: Added.
        (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
        (WebKit::CustomProtocolManagerProxy::startLoading):
        (WebKit::CustomProtocolManagerProxy::stopLoading):

876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
2014-01-16  Tim Horton  <timothy_horton@apple.com>

        On iOS, zooming in with a TileController-backed main frame makes hundreds of tiles
        https://bugs.webkit.org/show_bug.cgi?id=126531
        <rdar://problem/15745862>

        Reviewed by Anders Carlsson.

        * UIProcess/API/ios/WKContentView.mm:
        (-[WKContentView _updateViewExposedRect]):
        (-[WKContentView setViewportSize:]):
        (-[WKContentView didFinishScrollTo:]):
        (-[WKContentView didScrollTo:]):
        (-[WKContentView didZoomToScale:]):
        Because zooming is performed by the UIScrollView, we need to transform
        the exposedRect's offset in order to get it in FrameView-relative coordinates.

        * UIProcess/ios/WebPageProxyIOS.mm:
        (WebKit::WebPageProxy::didFinishZooming):
        Save the pageScaleFactor when it changes.

897
898
899
900
901
902
903
904
905
906
907
908
909
2014-01-16  Carlos Garcia Campos  <cgarcia@igalia.com>

        [GTK] Remove the weak pointer added to the web view in WebKitPrintOperation
        https://bugs.webkit.org/show_bug.cgi?id=127098

        Reviewed by Martin Robinson.

        If the print operation finishes and the web view is still alive,
        the weak pointer added to the view should be removed.

        * UIProcess/API/gtk/WebKitPrintOperation.cpp:
        (_WebKitPrintOperationPrivate::~_WebKitPrintOperationPrivate):

910
911
912
913
914
915
916
917
918
919
920
921
922
923
2014-01-15  Sam Weinig  <sam@webkit.org>

        TextBreakIterator's should support Latin-1 for all iterator types (Part 3)
        https://bugs.webkit.org/show_bug.cgi?id=126856

        Reviewed by Ryosuke Niwa.

        Change all the TextBreakIterator creation functions to take StringViews. Remove a few
        now unnecessary up-conversions to UTF-16 in the process.

        * UIProcess/efl/TextCheckerEfl.cpp:
        (WebKit::nextWordOffset):
        (WebKit::TextChecker::checkTextOfParagraph):

924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
2014-01-16  Eunmi Lee  <eunmi15.lee@samsung.com>

        [EFL][WK2] EwkView can not be shown without re-sizing once it is hidden.
        https://bugs.webkit.org/show_bug.cgi?id=127084

        Reviewed by Gyuyoung Kim.

        Visibility of EwkView can not be controlled by evas_object_show/hide
        because EwkView can be shown only if re-sizing is requested, so modify
        codes to show EwkView directly if we do not wait for re-sizing.
        Additionally, we have to set default value of m_pendingSurfaceResize
        to true for accelerated mode to prevent to show black empty view for
        the first request to show.

        * UIProcess/API/efl/EwkView.cpp:
        (EwkView::EwkView):
        (EwkView::handleEvasObjectShow):

942
943
944
945
946
947
948
949
950
951
952
2014-01-16  Andy Estes  <aestes@apple.com>

        Build Fix: Use standard architectures when building for iOS

        Even though we don't use the plug-in services on iOS, we still need
        them to build (we won't install them). Be sure we specify valid iOS
        architectures when doing so.

        * Configurations/PluginService.32.xcconfig:
        * Configurations/PluginService.64.xcconfig:

953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
2014-01-16  Enrica Casucci  <enrica@apple.com>

        Crash when destroying WKInteractionView.
        https://bugs.webkit.org/show_bug.cgi?id=127153
        <rdar://problem/15840761>

        Reviewed by Anders Carlsson.

        UIWKSelectionAssistant is a RetainPtr and it is being 
        deallocated after the view and its gesture recognizers
        have been destroyed.
        The parent class UIWebSelectionAssistant assumes to be
        deallocated before the view is gone.
        We deallocate the interaction assistants explicitly to
        fix the problem.

        * UIProcess/API/ios/WKInteractionView.mm:
        (-[WKInteractionView dealloc]):

972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
2014-01-16  Brady Eidson  <beidson@apple.com>

        IDB: delete object store support
        <rdar://problem/15779641> and https://bugs.webkit.org/show_bug.cgi?id=127123

        Reviewed by Alexey Proskuryakov.

        Pipe through Web -> Database -> Web process messaging for delete object store.
        Perform dropping the object store in the backing store.

        * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
        (WebKit::DatabaseProcessIDBConnection::deleteObjectStore):
        * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
        * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in:

        * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
        (WebKit::UniqueIDBDatabase::didDeleteObjectStore):
        (WebKit::UniqueIDBDatabase::deleteObjectStore):
        (WebKit::UniqueIDBDatabase::deleteObjectStoreInBackingStore):
        * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:

        * DatabaseProcess/IndexedDB/UniqueIDBDatabaseBackingStore.h:
        * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.cpp:
        (WebKit::UniqueIDBDatabaseBackingStoreSQLite::createObjectStore):
        (WebKit::UniqueIDBDatabaseBackingStoreSQLite::deleteObjectStore):
        * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.h:

        * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
        (WebKit::WebIDBServerConnection::deleteObjectStore):
        (WebKit::WebIDBServerConnection::didDeleteObjectStore):
        * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
        * WebProcess/Databases/IndexedDB/WebIDBServerConnection.messages.in:

1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
2014-01-16  Alexey Proskuryakov  <ap@apple.com>

        [Mac] [iOS] Add support for CFHTTPCookieStorageAcceptPolicyExclusivelyFromMainDocumentDomain
        https://bugs.webkit.org/show_bug.cgi?id=127139

        Reviewed by Brady Eidson.

        * Shared/HTTPCookieAcceptPolicy.h:
        * UIProcess/API/C/WKAPICast.h:
        (WebKit::toHTTPCookieAcceptPolicy):
        (WebKit::toAPI):
        * UIProcess/API/C/WKCookieManager.h:
        Added the policy to appropriate switches and enums.

1019
1020
1021
1022
1023
1024
2014-01-16  Jeffrey Pfau  <jpfau@apple.com>

        Fix build after r162161. One FINAL was still present.

        * Shared/cf/KeyedDecoder.h:

1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
2014-01-16  Anders Carlsson  <andersca@apple.com>

        Change all uses of FINAL to final now that all our compilers support it
        https://bugs.webkit.org/show_bug.cgi?id=127142

        Reviewed by Benjamin Poulain.

        * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.h:
        * NetworkProcess/RemoteNetworkingContext.h:
        * Shared/API/Cocoa/RemoteObjectRegistry.h:
        * Shared/APIArray.h:
        * Shared/APIString.h:
        * Shared/AsyncRequest.h:
        * Shared/AsyncTask.h:
        * Shared/cf/KeyedEncoder.h:
        * UIProcess/API/gtk/PageClientImpl.h:
        * UIProcess/API/mac/PageClientImpl.h:
        * UIProcess/efl/WebViewEfl.h:
        * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.h:
        * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
        * WebProcess/Plugins/PDF/PDFPlugin.h:
        * WebProcess/Storage/StorageAreaImpl.h:
        * WebProcess/WebPage/mac/GraphicsLayerCARemote.h:
        * WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.h:
        * WebProcess/WebPage/mac/PlatformCALayerRemoteTiledBacking.h:

1051
1052
1053
1054
1055
1056
2014-01-16  Brady Eidson  <beidson@apple.com>

        Fix the build after r162148

        * Shared/cf/KeyedEncoder.h: s/OVERRIDE/override/

1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
2014-01-15  Brady Eidson  <beidson@apple.com>

        Use KeyedCoding as a persistent storage mechanism for blobs
        https://bugs.webkit.org/show_bug.cgi?id=127012

        Reviewed by Anders Carlsson.

        Add a way to get the encoded buffer to save:
        * Shared/cf/KeyedEncoder.cpp:
        (WebKit::KeyedEncoder::finishEncoding):
        * Shared/cf/KeyedEncoder.h:

        Add a WebKit KeyedDecoder for CF platforms that can decode the previously encoded buffer:
        * Shared/cf/KeyedDecoder.cpp: Added.
        (WebKit::KeyedDecoder::KeyedDecoder):
        (WebKit::KeyedDecoder::~KeyedDecoder):
        (WebKit::KeyedDecoder::decodeInt64):
        (WebKit::KeyedDecoder::decodeUInt32):
        (WebKit::KeyedDecoder::decodeString):
        (WebKit::KeyedDecoder::beginObject):
        (WebKit::KeyedDecoder::endObject):
        (WebKit::KeyedDecoder::beginArray):
        (WebKit::KeyedDecoder::beginArrayElement):
        (WebKit::KeyedDecoder::endArrayElement):
        (WebKit::KeyedDecoder::endArray):
        * Shared/cf/KeyedDecoder.h:

        Create a WebKit KeyedEncoder/Decoder and use to encode/decode IDBKeyPaths:
        * DatabaseProcess/IndexedDB/IDBSerialization.cpp:
        (WebKit::serializeIDBKeyPath):
        (WebKit::deserializeIDBKeyPath):
        * DatabaseProcess/IndexedDB/IDBSerialization.h:

        * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.cpp:
        (WebKit::UniqueIDBDatabaseBackingStoreSQLite::createObjectStore):

        * WebKit2.xcodeproj/project.pbxproj:

1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
2014-01-16  Andy Estes  <aestes@apple.com>

        Stop copying WKOriginDataManager.cpp into WebKit2.framework
        https://bugs.webkit.org/show_bug.cgi?id=127100

        Reviewed by Sam Weinig.

        The file was mistakenly added to the 'All' target. Remove it.

        * WebKit2.xcodeproj/project.pbxproj:

1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
2014-01-16  Andy Estes  <aestes@apple.com>

        [iOS] Install WebKit2 XPC services correctly
        https://bugs.webkit.org/show_bug.cgi?id=127097

        Reviewed by Anders Carlsson.

        * Configurations/PluginService.32.xcconfig: Set SKIP_INSTALL to YES on iOS.
        * Configurations/PluginService.64.xcconfig: Ditto.
        * Configurations/PluginService.Development.xcconfig: Ditto.
        * WebKit2.xcodeproj/project.pbxproj: Modified the "Add XPCServices symlink"
        build phase to only execute on OS X. Modified the
        "Copy XPC services for engineering builds" build phase to copy files
        directly to WebKit2.framework/XPCServices/ on iOS, and modified its
        output file paths to omit "Versions/A/" (since OS X will have a
        XPCServices symlink at the root of the framework bundle).

1123
1124
1125
1126
1127
1128
2014-01-16  Roger Fong  <roger_fong@apple.com>

        Build fix for mac following r162141.

        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h: Switch OVERRIDE to override.

1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
2014-01-16  Roger Fong  <roger_fong@apple.com>

        Add support for handling WebGL load policies.
        https://bugs.webkit.org/show_bug.cgi?id=126935
        <rdar://problem/15790448>.

        Reviewed by Timothy Horton.

        Boiler plate code for getting the load policy logic from WebProcess to the UIProcess.

        * UIProcess/API/C/WKAPICast.h:
        (WebKit::toWebGLLoadPolicy):
        * UIProcess/API/C/WKPageLoaderClient.h: Define a new WKPageLoaderClientV4 struct.
        * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
        (setUpPageLoaderClient):
        * UIProcess/WebLoaderClient.cpp:
        (WebKit::WebLoaderClient::webGLLoadPolicy):
        * UIProcess/WebLoaderClient.h:
        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::webGLPolicyForURL):
        * UIProcess/WebPageProxy.h:
        * UIProcess/WebPageProxy.messages.in:
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
        (WebKit::WebFrameLoaderClient::webGLPolicyForURL): 
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::webGLPolicyForURL): We use a sendSync to get the load policy value from the UIProcess.
        * WebProcess/WebPage/WebPage.h:

1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
2014-01-16  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>

        Remove workaround for compilers not supporting explicit override control
        https://bugs.webkit.org/show_bug.cgi?id=127111

        Reviewed by Anders Carlsson.

        Now all compilers support explicit override control, this workaround can be removed.

        * DatabaseProcess/DatabaseProcess.h:
        * DatabaseProcess/DatabaseToWebProcessConnection.h:
        * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
        * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.h:
        * NetworkProcess/AsynchronousNetworkLoaderClient.h:
        * NetworkProcess/NetworkProcess.h:
        * NetworkProcess/NetworkProcessPlatformStrategies.h:
        * NetworkProcess/NetworkResourceLoader.h:
        * NetworkProcess/RemoteNetworkingContext.h:
        * NetworkProcess/SynchronousNetworkLoaderClient.h:
        * NetworkProcess/mac/DiskCacheMonitor.h:
        * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
        * PluginProcess/PluginControllerProxy.h:
        * PluginProcess/PluginProcess.h:
        * PluginProcess/WebProcessConnection.h:
        * Shared/API/Cocoa/RemoteObjectRegistry.h:
        * Shared/APIObject.h:
        * Shared/AsyncRequest.h:
        * Shared/AsyncTask.h:
        * Shared/Authentication/AuthenticationManager.h:
        * Shared/ChildProcess.h:
        * Shared/ChildProcessProxy.h:
        * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
        * Shared/Downloads/Download.h:
        * Shared/Network/CustomProtocols/CustomProtocolManager.h:
        * Shared/WebConnection.h:
        * Shared/WebResourceBuffer.h:
        * Shared/cf/KeyedEncoder.h:
        * Shared/mac/SecItemShim.h:
        * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
        * UIProcess/API/gtk/PageClientImpl.h:
        * UIProcess/API/ios/PageClientImplIOS.h:
        * UIProcess/API/mac/PageClientImpl.h:
        * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
        * UIProcess/CoordinatedGraphics/WebView.h:
        * UIProcess/Databases/DatabaseProcessProxy.h:
        * UIProcess/Downloads/DownloadProxy.h:
        * UIProcess/DrawingAreaProxy.h:
        * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
        * UIProcess/Network/NetworkProcessProxy.h:
        * UIProcess/Notifications/WebNotificationManagerProxy.h:
        * UIProcess/Plugins/PluginProcessProxy.h:
        * UIProcess/Scrolling/RemoteScrollingTree.h:
        * UIProcess/Storage/StorageManager.h:
        * UIProcess/WebApplicationCacheManagerProxy.h:
        * UIProcess/WebBatteryManagerProxy.h:
        * UIProcess/WebConnectionToWebProcess.h:
        * UIProcess/WebContext.h:
        * UIProcess/WebCookieManagerProxy.h:
        * UIProcess/WebDatabaseManagerProxy.h:
        * UIProcess/WebFullScreenManagerProxy.h:
        * UIProcess/WebGeolocationManagerProxy.h:
        * UIProcess/WebIconDatabase.h:
        * UIProcess/WebInspectorProxy.h:
        * UIProcess/WebKeyValueStorageManager.h:
        * UIProcess/WebMediaCacheManagerProxy.h:
        * UIProcess/WebNetworkInfoManagerProxy.h:
        * UIProcess/WebOriginDataManagerProxy.h:
        * UIProcess/WebPageProxy.h:
        * UIProcess/WebProcessProxy.h:
        * UIProcess/WebResourceCacheManagerProxy.h:
        * UIProcess/WebVibrationProxy.h:
        * UIProcess/efl/PageViewportControllerClientEfl.h:
        * UIProcess/efl/WebViewEfl.h:
        * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h:
        * UIProcess/mac/SecItemShimProxy.h:
        * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
        * UIProcess/mac/ViewGestureController.h:
        * UIProcess/mac/WebColorPickerMac.h:
        * UIProcess/soup/WebSoupRequestManagerProxy.h:
        * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
        * WebProcess/Battery/WebBatteryManager.h:
        * WebProcess/Cookies/WebCookieManager.h:
        * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.h:
        * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
        * WebProcess/Databases/WebToDatabaseProcessConnection.h:
        * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm:
        * WebProcess/FileAPI/BlobRegistryProxy.h:
        * WebProcess/Geolocation/WebGeolocationManager.h:
        * WebProcess/IconDatabase/WebIconDatabaseProxy.h:
        * WebProcess/InjectedBundle/API/c/mac/WKBundlePageBannerMac.mm:
        * WebProcess/MediaCache/WebMediaCacheManager.h:
        * WebProcess/Network/NetworkProcessConnection.h:
        * WebProcess/Network/WebResourceLoadScheduler.h:
        * WebProcess/Network/WebResourceLoader.h:
        * WebProcess/NetworkInfo/WebNetworkInfoManager.h:
        * WebProcess/Notifications/WebNotificationManager.h:
        * WebProcess/OriginData/WebOriginDataManager.h:
        * WebProcess/Plugins/Netscape/NetscapePlugin.h:
        * WebProcess/Plugins/PDF/PDFPlugin.h:
        * WebProcess/Plugins/PDF/PDFPluginAnnotation.h:
        * WebProcess/Plugins/PDF/PDFPluginChoiceAnnotation.h:
        * WebProcess/Plugins/PDF/PDFPluginPasswordField.h:
        * WebProcess/Plugins/PDF/PDFPluginTextAnnotation.h:
        * WebProcess/Plugins/PluginProcessConnection.h:
        * WebProcess/Plugins/PluginProcessConnectionManager.h:
        * WebProcess/Plugins/PluginProxy.h:
        * WebProcess/Plugins/PluginView.h:
        * WebProcess/ResourceCache/WebResourceCacheManager.h:
        * WebProcess/Scrolling/RemoteScrollingCoordinator.h:
        * WebProcess/Storage/StorageAreaImpl.h:
        * WebProcess/Storage/StorageAreaMap.h:
        * WebProcess/Storage/StorageNamespaceImpl.h:
        * WebProcess/WebConnectionToUIProcess.h:
        * WebProcess/WebCoreSupport/WebAlternativeTextClient.h:
        * WebProcess/WebCoreSupport/WebBatteryClient.h:
        * WebProcess/WebCoreSupport/WebChromeClient.h:
        * WebProcess/WebCoreSupport/WebColorChooser.h:
        * WebProcess/WebCoreSupport/WebContextMenuClient.h:
        * WebProcess/WebCoreSupport/WebDatabaseManager.h:
        * WebProcess/WebCoreSupport/WebDeviceProximityClient.h:
        * WebProcess/WebCoreSupport/WebDragClient.h:
        * WebProcess/WebCoreSupport/WebEditorClient.h:
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
        * WebProcess/WebCoreSupport/WebGeolocationClient.h:
        * WebProcess/WebCoreSupport/WebInspectorClient.h:
        * WebProcess/WebCoreSupport/WebInspectorFrontendClient.h:
        * WebProcess/WebCoreSupport/WebNavigatorContentUtilsClient.h:
        * WebProcess/WebCoreSupport/WebNetworkInfoClient.h:
        * WebProcess/WebCoreSupport/WebNotificationClient.h:
        * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
        * WebProcess/WebCoreSupport/WebPopupMenu.h:
        * WebProcess/WebCoreSupport/WebProgressTrackerClient.h:
        * WebProcess/WebCoreSupport/WebSearchPopupMenu.h:
        * WebProcess/WebCoreSupport/WebVibrationClient.h:
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
        * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h:
        * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
        * WebProcess/WebPage/DrawingAreaImpl.h:
        * WebProcess/WebPage/EventDispatcher.h:
        * WebProcess/WebPage/ViewGestureGeometryCollector.h:
        * WebProcess/WebPage/WebBackForwardListProxy.h:
        * WebProcess/WebPage/WebPage.h:
        * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
        * WebProcess/WebPage/mac/GraphicsLayerCARemote.h:
        * WebProcess/WebPage/mac/PlatformCALayerRemote.h:
        * WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.h:
        * WebProcess/WebPage/mac/PlatformCALayerRemoteTiledBacking.h:
        * WebProcess/WebPage/mac/RemoteLayerTreeContext.h:
        * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
        * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
        * WebProcess/WebProcess.h:
        * WebProcess/soup/WebSoupRequestManager.h:

1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
2014-01-16  Ian Henderson  <ianh@apple.com>

        Expose scrollView on WKView
        https://bugs.webkit.org/show_bug.cgi?id=127085

        Reviewed by Antti Koivisto.

        Expose WKView's scroll view as a property.  In order to support
        clients calling setDelegate:, we create a forwarder object that sends
        delegate methods to both WKView (the "internal delegate") and the
        publicly-exposed delegate (the "external delegate").

        * UIProcess/API/Cocoa/WKView.h:
        * UIProcess/API/ios/WKScrollView.h:
        * UIProcess/API/ios/WKScrollView.mm:
        (-[WKScrollViewDelegateForwarder initWithInternalDelegate:externalDelegate:]):
        (-[WKScrollViewDelegateForwarder methodSignatureForSelector:]):
        (-[WKScrollViewDelegateForwarder respondsToSelector:]):
        (-[WKScrollViewDelegateForwarder forwardInvocation:]):
        (-[WKScrollView setInternalDelegate:]):
        (-[WKScrollView setDelegate:]):
        (-[WKScrollView delegate]):
        Pretend like _externalDelegate is the real delegate to avoid exposing
        our internal delegate or forwarder object.
        (-[WKScrollView _updateDelegate]):
        (-[WKScrollView dealloc]):
        * UIProcess/API/ios/WKViewIOS.mm:
        (-[WKView scrollView]):
        (-[WKView _commonInitializationWithContextRef:pageGroupRef:relatedToPage:]):

1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
2014-01-15  Carlos Garcia Campos  <cgarcia@igalia.com>

        [GTK][EFL][NIX] Do not use PrintContext, Frame and DocumentLoader in Errors
        https://bugs.webkit.org/show_bug.cgi?id=127047

        Reviewed by Martin Robinson.

        * WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:
        (WebKit::WebPrintOperationGtk::frameURL): Helper function to get
        the URL of the frame being printed.
        (WebKit::WebPrintOperationGtk::print): Use frameURL() as failing
        URL for printing errors.
        * WebProcess/WebPage/gtk/WebPrintOperationGtk.h:

1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
2014-01-15  Benjamin Poulain  <bpoulain@apple.com>

        Move user agent code to WebCore and unify some code between OS X and iOS
        https://bugs.webkit.org/show_bug.cgi?id=127080

        Reviewed by Sam Weinig.

        * UIProcess/ios/WebPageProxyIOS.mm:
        (WebKit::userVisibleWebKitVersionString):
        (WebKit::WebPageProxy::standardUserAgent):
        * UIProcess/mac/WebPageProxyMac.mm:
        (WebKit::WebPageProxy::standardUserAgent):
        * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
        (InitWebCoreSystemInterface):

1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
2014-01-15  Eunmi Lee  <eunmi15.lee@samsung.com>

        [EFL][WK2] Use timestamp when event occurs for touch events.
        https://bugs.webkit.org/show_bug.cgi?id=126424

        Reviewed by Gyuyoung Kim.

        Current time is used for touch event's timestamp instead of timestamp
        when event occurs. Timestamp of touch event is used to implement flick
        gesture, so it should be real value for accurate gesture processing.

        * UIProcess/API/efl/EwkView.cpp:
        Function names for handling touch events are changed to distinguish
        mouse events and multi events.
        (EwkView::setTouchEventsEnabled):
        (EwkView::feedTouchEvents):
        (EwkView::handleMouseDownForTouch):
        (EwkView::handleMouseUpForTouch):
        (EwkView::handleMouseMoveForTouch):
        (EwkView::handleMultiDownForTouch):
        (EwkView::handleMultiUpForTouch):
        (EwkView::handleMultiMoveForTouch):
        * UIProcess/API/efl/EwkView.h:
        * UIProcess/API/efl/GestureRecognizer.cpp:
        (WebKit::GestureHandler::handlePan):
        (WebKit::GestureRecognizer::processTouchEvent):
        (WebKit::GestureRecognizer::noGesture):
        (WebKit::GestureRecognizer::singleTapGesture):
        (WebKit::GestureRecognizer::doubleTapGesture):
        (WebKit::GestureRecognizer::panGesture):
        (WebKit::GestureRecognizer::pinchGesture):
        * UIProcess/API/efl/GestureRecognizer.h:

1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
2014-01-15  Gavin Barraclough  <barraclough@apple.com>

        Change Page, FocusController to use ViewState
        https://bugs.webkit.org/show_bug.cgi?id=126533

        Unreviewed rollout, this caused a regression.

        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::WebPage):
        (WebKit::WebPage::setActive):
        (WebKit::WebPage::setViewIsVisible):
        (WebKit::WebPage::setFocused):
        (WebKit::WebPage::setIsInWindow):
        (WebKit::WebPage::setViewStateInternal):
        (WebKit::WebPage::setIsVisuallyIdle):
        * WebProcess/WebPage/WebPage.h:

1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
2014-01-15  Yongjun Zhang  <yongjun_zhang@apple.com>

        https://bugs.webkit.org/show_bug.cgi?id=127072
        Don't autorelease wrapper object (WebProcessPlugInScriptWorld) for InjectedBundleScriptWorld::normalWorld().

        Reviewed by Geoffrey Garen.

        In [WKWebProcessPlugInScriptWorld normalWorld], InjectedBundleScriptWorld::normalWorld() returns a static
        instance,  autoreleasing its wrapper object could cause a dangling pointer and crash later.

        * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorld.mm:
        (+[WKWebProcessPlugInScriptWorld normalWorld]):

1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
2014-01-15  Andy Estes  <aestes@apple.com>

        [iOS] Properly exclude the shim dylibs this time
        https://bugs.webkit.org/show_bug.cgi?id=127075

        Reviewed by Anders Carlsson.

        BaseLegacyProcess.xcconfig was setting EXCLUDED_SOURCE_FILE_NAMES in
        conflict with what I added in r161918, and I misspelled the setting
        name in two instances. Fix these two bugs.

        Also remove a vestigial OTHER_LDFLAGS from WebContentProcess.xcconfig
        while we're here.

        * Configurations/BaseLegacyProcess.xcconfig:
        * Configurations/NetworkProcess.xcconfig:
        * Configurations/PluginProcess.xcconfig:
        * Configurations/WebContentProcess.xcconfig:

1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
2014-01-15  Enrica Casucci  <enrica@apple.com>

        Support WebSelections in WK2 on iOS.
        https://bugs.webkit.org/show_bug.cgi?id=127015

        Reviewed by Benjamin Poulain.

        This is the first step towards adding support for selections in
        non editable content on iOS for WK2.
        In particular, this patch adds the basic plumbing to decide which
        gesture recognizers are enabled and adds empty stubs for the gestures
        that we'll need to support.
        There are two separate assistants for selections, one to be used
        in editable text (UIWKTextInteractionAssistant) and one for non editable
        text (UIWKSelectionAssistant) and they are mutually exclusive.
        UIWKSelectionAssistant is created at the time the view is created, 
        and swapped with UIWKTextInteraction assistant
        only when an editable element is focused and the keyboard appears on screen.

        gestureRecognizerShouldBegin is the delegate call used to decide which gestures
        should begin based on the position the gesture occurred at.
        We want to avoid as much as possible synchronous calls to the WebProcess to
        retrieve information about the content and in order to do so, we take advantage
        of the order in which the gesture recognizers will trigger, based on the delay
        configured at initialization.
        The first gesture to trigger is highlightLongPress, followed by longpress in the
        active assistant and longpress in the WKInteractionView.
        There are two different scenarios for highlighlongpress based on which assistant is
        currently active.

        UIWKSelectionAssistant is active:
            We send a request to the WebProcess to get information on the position
            and we return YES, allowing the gesture to start.
            We delegate to the WebProcess the proper handling of highlight based on the element.
            When longPress gesture fires for the assistant, we assume we have received the reply to our
            previous request, if not we fetch the information synchronously.
            We are then able to make an informed decision about whether
            or not to start the gesture. If the reply is NO, the third and last long press
            gesture can be evaluated to decide whether to show the action sheet or simply generate
            a click event.

        UIWKTextInteractionAssistant is active:
            In this case we must have information about the position immediately and we issue
            a synchronous request to the WebProcess.
            If we are not interacting with the same node, we return NO.
            Then the longpress gesture fires for the assistant which performs the same check.
            If the node is the same, the loupe gesture will start, otherwise the last longpress
            gesture will be evaluated to decide about showing the action sheet or generating a
            click event.

        * Scripts/webkit2/messages.py:
        * Shared/InteractionInformationAtPosition.cpp: Added.
        (WebKit::InteractionInformationAtPosition::encode):
        (WebKit::InteractionInformationAtPosition::decode):
        * Shared/InteractionInformationAtPosition.h: Added.
        (WebKit::InteractionInformationAtPosition::InteractionInformationAtPosition):
        * UIProcess/API/ios/PageClientImplIOS.h:
        * UIProcess/API/ios/PageClientImplIOS.mm:
        (WebKit::PageClientImpl::positionInformationDidChange):
        * UIProcess/API/ios/WKContentView.mm:
        (-[WKContentView _positionInformationDidChange:]):
        * UIProcess/API/ios/WKContentViewInternal.h:
        * UIProcess/API/ios/WKInteractionView.h:
        * UIProcess/API/ios/WKInteractionView.mm:
        (-[WKInteractionView initWithFrame:]):
        (-[WKInteractionView dealloc]):
        (-[WKInteractionView gestureRecognizer:canPreventGestureRecognizer:]):
        (-[WKInteractionView gestureRecognizer:canBePreventedByGestureRecognizer:]):
        (isSamePair):
        (-[WKInteractionView gestureRecognizer:shouldRecognizeSimultaneouslyWithGestureRecognizer:]):
        (-[WKInteractionView _showImageSheet]):
        (-[WKInteractionView _showLinkSheet]):
        (-[WKInteractionView _actionForLongPress]):
        (-[WKInteractionView ensurePositionInformationIsUpToDate:]):
        (-[WKInteractionView gestureRecognizerShouldBegin:]):
        (-[WKInteractionView hasSelectablePositionAtPoint:]):
        (-[WKInteractionView pointIsInAssistedNode:]):
        (-[WKInteractionView _longPressRecognized:]):
        (-[WKInteractionView _doubleTapRecognized:]):
        (-[WKInteractionView _twoFingerDoubleTapRecognized:]):
        (-[WKInteractionView _twoFingerPanRecognized:]):
        (-[WKInteractionView useSelectionAssistantWithMode:]):
        (-[WKInteractionView _positionInformationDidChange:]):
        (-[WKInteractionView interactionAssistant]):
        (-[WKInteractionView _startAssistingKeyboard]):
        (-[WKInteractionView _stopAssistingKeyboard]):
        * UIProcess/PageClient.h:
        * UIProcess/WebPageProxy.h:
        * UIProcess/WebPageProxy.messages.in:
        * UIProcess/ios/WebPageProxyIOS.mm:
        (WebKit::WebPageProxy::didReceivePositionInformation):
        (WebKit::WebPageProxy::getPositionInformation):
        (WebKit::WebPageProxy::requestPositionInformation):
        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/WebPage/WebPage.h:
        * WebProcess/WebPage/WebPage.messages.in:
        * WebProcess/WebPage/ios/WebPageIOS.mm:
        (WebKit::WebPage::selectWithGesture):
        (WebKit::WebPage::getPositionInformation):
        (WebKit::WebPage::requestPositionInformation):

1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
2014-01-15  Yongjun Zhang  <yongjun_zhang@apple.com>

        https://bugs.webkit.org/show_bug.cgi?id=127066
        Add WKBrowsingContextHandle.h to WebKit2 private headers.

        Reviewed by Dan Bernstein.

        Add WKBrowsingContextHandle.h to WebKit2 private headers so that WebKit2 client
        can use WKBrowsingContextHandle class.

        * WebKit2.xcodeproj/project.pbxproj:

1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
2014-01-15  Piotr Grad  <p.grad@samsung.com>

        toStringVector static function definition should not be redundant.
        https://bugs.webkit.org/show_bug.cgi?id=126872.

        Reviewed by Anders Carlsson.

        toStringVector function was declared twice in InjectedBundle.cpp and WebPageGroup.cpp as static.
        In order to remove redundant definition this function was moved into API::Array.

        * Shared/APIArray.cpp:
        (API::Array::toStringVector):
        * Shared/APIArray.h:
        * UIProcess/WebPageGroup.cpp:
        (WebKit::WebPageGroup::addUserStyleSheet):
        (WebKit::WebPageGroup::addUserScript):
        * WebProcess/InjectedBundle/InjectedBundle.cpp:
        (WebKit::InjectedBundle::addUserScript):
        (WebKit::InjectedBundle::addUserStyleSheet):

1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
2014-01-10  Gavin Barraclough  <barraclough@apple.com>

        REGRESSION (r158369): Some pop-up windows open at incorrect size (affects GMail, theblaze.com)
        https://bugs.webkit.org/show_bug.cgi?id=126289

        Reviewed by Anders Carlson.

        Partial revert of https://bugs.webkit.org/show_bug.cgi?id=123557.
        On window.open, update page when the UIProcess sends the create message

        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::initializeWebPage):
        (WebKit::WebPageProxy::creationParameters):
        * UIProcess/WebPageProxy.h:
            - creation paraments are not preserved at window.open.
        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::reinitializeWebPage):
        (WebKit::WebPage::setViewState):
        (WebKit::WebPage::setViewStateInternal):
        * WebProcess/WebPage/WebPage.h:
            - add interface to update page.
        * WebProcess/WebProcess.cpp:
        (WebKit::WebProcess::createWebPage):
            - if we try to create a page that already exists, update the current page's view state.

1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
2014-01-15  Carlos Garcia Campos  <cgarcia@igalia.com>

        [GTK] Web process sometimes crashes when printing in synchronous mode
        https://bugs.webkit.org/show_bug.cgi?id=126979

        Reviewed by Gustavo Noronha Silva.

        When printing synchronously in GTK+ we need to make sure that we
        have a list of Printers before starting the print operation. Getting
        the list of printers is done synchronously by GTK+, but using a
        nested main loop that might process IPC messages comming from the
        UI process like EndPrinting. When the EndPrinting message is
        received while the printer list is being populated, the print
        operation is finished unexpectely and the web process crashes. The
        PrinterListGtk class gets the list of printers in the constructor
        so we just need to ensure there's an instance alive during the
        synchronous print operation. In case of asynchronous printing the
        printer list will be created during the print operation without
        any risk, because the EndPrinting message is not sent until the
        printing callback has been received in the UI process.

        * GNUmakefile.list.am: Add new files to compilation.
        * PlatformGTK.cmake: Ditto.
        * WebProcess/WebCoreSupport/WebChromeClient.cpp:
        (WebKit::WebChromeClient::print): Ensure PrinterListGtk is created
        before the synchronous printing and destroyed afterwards.
        * WebProcess/WebPage/gtk/PrinterListGtk.cpp: Added.
        (WebKit::PrinterListGtk::shared): Return the singleton.
        (WebKit::PrinterListGtk::enumeratePrintersFunction): Callback
        called by gtk_enumerate_printers() when a new printer is found.
        (WebKit::PrinterListGtk::PrinterListGtk): Call
        gtk_enumerate_printers() in syhchronous mode.
        (WebKit::PrinterListGtk::~PrinterListGtk):
        (WebKit::PrinterListGtk::addPrinter): Add the printer to the list
        and set the default printer if needed.
        (WebKit::PrinterListGtk::findPrinter): Find the printer for the
        given name.
        * WebProcess/WebPage/gtk/PrinterListGtk.h: Added.
        * WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp: Use
        PrinterListGtk class to find the printer instead of calling
        gtk_enumerate_printers().

1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
2014-01-15  Tomas Popela  <tpopela@redhat.com>

        [SOUP] [WK2] - Disable MemoryCache when the DOCUMENT_VIEWER cache model is set
        https://bugs.webkit.org/show_bug.cgi?id=126577

        Reviewed by Carlos Garcia Campos.

        As in http://trac.webkit.org/changeset/152483, but this time for
        WebKit2. When WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER is set we need to
        disable the MemoryCache completely to prevent caching of the resources.

        * WebProcess/soup/WebProcessSoup.cpp:
        (WebKit::WebProcess::platformSetCacheModel):

1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
2014-01-14  Carlos Garcia Campos  <cgarcia@igalia.com>

        [GTK] UI process crashes when closing the window right after printing with javascript
        https://bugs.webkit.org/show_bug.cgi?id=126981

        Reviewed by Gustavo Noronha Silva.

        The UI process crashes because when the page is closed, the web
        view is destroyed before the print operation has actually
        finished. Use a weak pointer to make sure the web view pointer is
        set to NULL when the it's destroyed and emit the finished callback
        always so that the user can clean up the operation even when the
        web view has been closed.

        * UIProcess/API/gtk/WebKitPrintOperation.cpp:
        (drawPagesForPrintingCompleted):

1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
2014-01-14  Carlos Garcia Campos  <cgarcia@igalia.com>

        [GTK] UI process crashes when the web process crashes while printing
        https://bugs.webkit.org/show_bug.cgi?id=126977

        Reviewed by Gustavo Noronha Silva.

        When the web process crashes, the printing callback is
        invalidated, so the function is called with a NULL error.

        * UIProcess/API/gtk/WebKitPrintOperation.cpp:
        (drawPagesForPrintingCompleted): Check wkError is not NULL before
        trying to use it.
        * UIProcess/API/gtk/WebKitWebView.cpp:
        (webkitWebViewPrintFrame): Set the print mode of the operation
        before emitting the print signal.

1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
2014-01-14  Brady Eidson  <beidson@apple.com>

        IDB: create object store support
        <rdar://problem/15779639> and https://bugs.webkit.org/show_bug.cgi?id=127011

        Reviewed by Anders Carlsson.

        Add messaging/callback infrastructure for creating object stores:
        * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
        (WebKit::DatabaseProcessIDBConnection::createObjectStore):
        * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
        * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in:

        * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
        (WebKit::WebIDBServerConnection::createObjectStore):
        (WebKit::WebIDBServerConnection::didCreateObjectStore):
        * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
        * WebProcess/Databases/IndexedDB/WebIDBServerConnection.messages.in:

        * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
        (WebKit::UniqueIDBDatabase::didChangeDatabaseVersion):
        (WebKit::UniqueIDBDatabase::didCreateObjectStore):
        (WebKit::UniqueIDBDatabase::didCompleteBoolRequest):
        (WebKit::UniqueIDBDatabase::createObjectStore):
        (WebKit::UniqueIDBDatabase::createObjectStoreInBackingStore):
        * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:

        * DatabaseProcess/IndexedDB/UniqueIDBDatabaseBackingStore.h:

        Add serialization helpers to save/restore an IDBKeyPath to/from disk:
        * DatabaseProcess/IndexedDB/IDBSerialization.cpp:
        (WebKit::serializeIDBKeyPath):
        (WebKit::deserializeIDBKeyPath):
        * DatabaseProcess/IndexedDB/IDBSerialization.h:

        Add object store metadata to the schema, and save/restore the metadata:
        * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.cpp:
        (WebKit::UniqueIDBDatabaseBackingStoreSQLite::createAndPopulateInitialMetadata):
        (WebKit::UniqueIDBDatabaseBackingStoreSQLite::extractExistingMetadata):
        (WebKit::UniqueIDBDatabaseBackingStoreSQLite::createObjectStore):
        * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.h:

        * Scripts/webkit2/messages.py:
        (struct_or_class):
        * WebKit2.xcodeproj/project.pbxproj:

1746
1747
1748
1749
1750
1751
2014-01-14  Jae Hyun Park  <jae.park@company100.net>

        [GTK] Unreviewed build fix after r162034

        * GNUmakefile.list.am:

1752
1753
1754
1755
1756
1757
2014-01-14  Ryuan Choi  <ryuan.choi@samsung.com>

        Unreviewed build fix for CMake based ports after r162034.

        * CMakeLists.txt:

jpfau@apple.com's avatar
jpfau@apple.com committed
1758
1759
1760
1761
1762
1763
1764
1765
2014-01-14  Jeffrey Pfau  <jpfau@apple.com>

        Build fix after r162034

        Rubber-stamped by Benjamin Poulain.

        * WebProcess/WebCoreSupport/WebProgressTrackerClient.cpp:

1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
2014-01-14  Anders Carlsson  <andersca@apple.com>

        Create separate progress tracker clients
        https://bugs.webkit.org/show_bug.cgi?id=127025

        Reviewed by Sam Weinig.

        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
        * WebProcess/WebCoreSupport/WebProgressTrackerClient.cpp: Copied from Source/WebCore/loader/ProgressTrackerClient.h.
        (WebKit::WebProgressTrackerClient::WebProgressTrackerClient):
        (WebKit::WebProgressTrackerClient::progressTrackerDestroyed):
        (WebKit::WebProgressTrackerClient::progressStarted):
        (WebKit::WebProgressTrackerClient::progressEstimateChanged):
        (WebKit::WebProgressTrackerClient::progressFinished):
        * WebProcess/WebCoreSupport/WebProgressTrackerClient.h: Copied from Source/WebCore/loader/ProgressTrackerClient.h.
        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::WebPage):

1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
2014-01-14  Benjamin Poulain  <bpoulain@apple.com>

        [WK2] Make WebPageProxy's setUserAgent private
        https://bugs.webkit.org/show_bug.cgi?id=127013

        Reviewed by Anders Carlsson.

        * UIProcess/WebPageProxy.h:
        The API to modify the user agent already has 3 "setters":
        -standardUserAgent
        -setApplicationNameForUserAgent
        -setCustomUserAgent

        The method WebPageProxy::setUserAgent() is supposed to be internal, not used directly.
        Using it directly would cause unexpected behaviors, for example:
        -Set the user agent with setUserAgent.
        -Set CustomUserAgent.
        -Reset CustomUserAgent.
        ->The user agent is now standardUserAgent instead of the user agent defined initially.

1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
2014-01-14  Commit Queue  <commit-queue@webkit.org>

        Unreviewed, rolling out r162000.
        http://trac.webkit.org/changeset/162000
        https://bugs.webkit.org/show_bug.cgi?id=127009

        API versioning is wrong (Requested by rfong on #webkit).

        * UIProcess/API/C/WKAPICast.h:
        * UIProcess/API/C/WKPageLoaderClient.h:
        * UIProcess/API/C/WKPageUIClient.h:
        * UIProcess/WebLoaderClient.cpp:
        * UIProcess/WebLoaderClient.h:
        * UIProcess/WebPageProxy.cpp:
        * UIProcess/WebPageProxy.h:
        * UIProcess/WebPageProxy.messages.in:
        * UIProcess/WebUIClient.cpp:
        * UIProcess/WebUIClient.h:
        * UIProcess/mac/WebInspectorProxyMac.mm:
        (WebKit::WebInspectorProxy::platformCreateInspectorPage):
        * WebProcess/WebCoreSupport/WebChromeClient.cpp:
        * WebProcess/WebCoreSupport/WebChromeClient.h:
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
        * WebProcess/WebPage/WebPage.cpp:
        * WebProcess/WebPage/WebPage.h:

1833
1834
1835
1836
1837
1838
2014-01-14  Csaba Osztrogonác  <ossy@webkit.org>

        Speculative buildfix after r161999.

        * Shared/APIObject.h:

1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
2014-01-09  Roger Fong  <roger_fong@apple.com>

        Add support for handling WebGL load policies.
        https://bugs.webkit.org/show_bug.cgi?id=126935
        <rdar://problem/15790448>.

        Reviewed by Brent Fulgham.

        Boiler plate code for sending messages to and from the UI and Web Process. 

        * UIProcess/API/C/WKAPICast.h:
        (WebKit::toWebGLLoadPolicy):
        * UIProcess/API/C/WKPageLoaderClient.h:
        * UIProcess/API/C/WKPageUIClient.h:
        * UIProcess/WebLoaderClient.cpp:
        (WebKit::WebLoaderClient::webGLLoadPolicy):
        * UIProcess/WebLoaderClient.h:
        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::webGLContextCreated):
        (WebKit::WebPageProxy::webGLPolicyForHost):
        * UIProcess/WebPageProxy.h:
        * UIProcess/WebPageProxy.messages.in:
        * UIProcess/WebUIClient.cpp:
        (WebKit::WebUIClient::webGLContextCreated):
        * UIProcess/WebUIClient.h:
        * UIProcess/mac/WebInspectorProxyMac.mm:
        (WebKit::WebInspectorProxy::platformCreateInspectorPage):
        * WebProcess/WebCoreSupport/WebChromeClient.cpp:
        (WebKit::WebChromeClient::webGLContextCreated):
        * WebProcess/WebCoreSupport/WebChromeClient.h:
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
        (WebKit::WebFrameLoaderClient::webGLPolicyForHost):
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
        * WebProcess/WebPage/WebPage.cpp: A sendSync is used here to get the webGLPolicyForHost message sent between the Web and UI process.
                                          In the future this will be replaced with a strategy is non-blocking.
        (WebKit::WebPage::getWebGLPolicyForHost):
        * WebProcess/WebPage/WebPage.h:

1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
2014-01-14  Mark Rowe  <mrowe@apple.com>

        WebKit2 leaks sudden termination assertions when a page with unload handlers is closed.
        <https://webkit.org/b/126974> / <rdar://problem/15812954>

        When a page with an unload handler is loaded, the web process tells the UI process that it
        should disable sudden termination. However, when the page is closed the connection between
        the web and UI process is torn down before the web content has a chance to tell the UI
        process to reenable sudden termination.

        Reviewed by Anders Carlsson.

        * UIProcess/WebProcessProxy.cpp:
        (WebKit::WebProcessProxy::WebProcessProxy):
        (WebKit::WebProcessProxy::~WebProcessProxy): Balance any outstanding disableSuddenTermination calls.
        (WebKit::WebProcessProxy::enableSuddenTermination): Decrement the count.
        (WebKit::WebProcessProxy::disableSuddenTermination): Increment the count.
        * UIProcess/WebProcessProxy.h:

1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
2014-01-14  Joseph Pecoraro  <pecoraro@apple.com>

        Web Inspector: For Remote Inspection link WebProcess's to their parent UIProcess
        https://bugs.webkit.org/show_bug.cgi?id=126995

        Reviewed by Timothy Hatcher.

        * WebProcess/WebCoreSupport/WebInspectorClient.h:
        * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
        (WebKit::WebInspectorClient::parentProcessIdentifier):
        WebProcesses are proxies for a parent UIProcess.

1908
1909
1910
1911
1912
1913
1914
2014-01-14  Tim Horton  <timothy_horton@apple.com>

        iOS WebKit2 build fixes, part 3

        * WebKit2.xcodeproj/project.pbxproj:
        Remove some files from the 'All' target that should never have been a part of it.

1915
1916
1917
1918
1919
1920
1921
2014-01-14  Tim Horton  <timothy_horton@apple.com>

        iOS WebKit2 build fixes, part 2

        * WebKit2.xcodeproj/project.pbxproj:
        Add some missing files.

1922
1923
1924
1925
1926
1927
1928
1929
1930
2014-01-14  Brian J. Burg  <burg@cs.washington.edu>

        Add ENABLE(WEB_REPLAY) feature flag to the build system
        https://bugs.webkit.org/show_bug.cgi?id=126949

        Reviewed by Joseph Pecoraro.

        * Configurations/FeatureDefines.xcconfig:

1931
1932
1933
1934
1935
1936
1937
2014-01-14  Tim Horton  <timothy_horton@apple.com>

        Move WKView.mm to WKViewIOS.mm as 161950 was supposed to do.

        * UIProcess/API/ios/WKView.mm: Removed.
        * UIProcess/API/ios/WKViewIOS.mm: Copied from UIProcess/API/ios/WKView.mm.

1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
2014-01-14  Carlos Garcia Campos  <cgarcia@igalia.com>

        [GTK] Test /webkit2/WebKitWebContext/languages crashes with network process enabled
        https://bugs.webkit.org/show_bug.cgi?id=126130

        Reviewed by Anders Carlsson.

        We need to notify the network process when the user preferred
        languages have changed to update the SoupSession accordingly.

        * NetworkProcess/NetworkProcess.h: Add
        userPreferredLanguagesChanged when using soup network backend.
        * NetworkProcess/NetworkProcess.messages.in: Add
        UserPreferredLanguagesChanged message when using soup network
        backend.
        * NetworkProcess/soup/NetworkProcessSoup.cpp:
        (WebKit::NetworkProcess::userPreferredLanguagesChanged): Update
        the SoupSession to use the given languages.
        (WebKit::NetworkProcess::platformInitializeNetworkProcess): Call
        userPreferredLanguagesChanged() when initialization parameters
        contain languages.
        (WebKit::NetworkProcess::allowSpecificHTTPSCertificateForHost):
        Remove unnedded WebCore prefix.
        (WebKit::NetworkProcess::clearCacheForAllOrigins): Simplify using
        a single line.
        * Shared/Network/NetworkProcessCreationParameters.cpp:
        (WebKit::NetworkProcessCreationParameters::encode): Encode the
        languages vector.
        (WebKit::NetworkProcessCreationParameters::decode): Decode the
        languages vector.
        * Shared/Network/NetworkProcessCreationParameters.h:
        * UIProcess/WebContext.cpp:
        (WebKit::WebContext::languageChanged): Send a message also to the
        network process.
        * UIProcess/soup/WebContextSoup.cpp:
        (WebKit::WebContext::platformInitializeNetworkProcess): Set
        languages initial parameter.

1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
2014-01-14  Carlos Garcia Campos  <cgarcia@igalia.com>

        [SOUP] SoupNetworkSession::setAcceptLanguages should receive a const reference
        https://bugs.webkit.org/show_bug.cgi?id=126966

        Reviewed by Gustavo Noronha Silva.

        * WebProcess/soup/WebProcessSoup.cpp:
        (WebKit::setSoupSessionAcceptLanguage): Use const Vector<String>&.

1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
2014-01-14  Andreas Kling  <akling@apple.com>

        Remove deprecated DeferrableOneShotTimer constructor.
        <https://webkit.org/b/126984>

        Reviewed by Anders Carlsson.

        * WebProcess/Plugins/PluginView.h:
        * WebProcess/Plugins/PluginView.cpp:
        (WebKit::PluginView::pluginSnapshotTimerFired):

            Take the timer by reference so we can use the new constructor.

1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2014-01-13  Tim Horton  <timothy_horton@apple.com>

        iOS WebKit2 build fixes, part 1

        * Configurations/WebKit2.xcconfig:
        * NetworkProcess/NetworkResourceLoader.cpp:
        * NetworkProcess/NetworkResourceLoader.h:
        * NetworkProcess/RemoteNetworkingContext.h:
        * Shared/WebEventConversion.h:
        * UIProcess/API/ios/WKGeolocationProviderIOS.mm:
        * UIProcess/API/ios/WKInteractionView.mm:
        (-[WKTextPosition isEqual:]):
        * UIProcess/API/ios/WKViewIOS.mm: Renamed from Source/WebKit2/UIProcess/API/ios/WKView.mm.
        * UIProcess/ios/WebPageProxyIOS.mm:
        * UIProcess/ios/WebProcessProxyIOS.mm:
        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
        * WebProcess/WebPage/WebPage.h:
        * WebProcess/WebPage/ios/WebPageIOS.mm:
        (WebKit::WebPage::elementDidFocus):
        * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:

2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2014-01-13  Jinwoo Song  <jinwoo7.song@samsung.com>

        [EFL][WK2] Disable failing API tests
        https://bugs.webkit.org/show_bug.cgi?id=126960

        Reviewed by Gyuyoung Kim.

        Disable color picker test until bug 119120 is resolved.

        * UIProcess/API/efl/tests/test_ewk2_color_picker.cpp:
        (TEST_F):

2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2014-01-13  Jinwoo Song  <jinwoo7.song@samsung.com>

        [EFL][WK2] ewk_view_page_contents_get() API test is failing
        https://bugs.webkit.org/show_bug.cgi?id=126957

        Reviewed by Gyuyoung Kim.

        As the day in 'Date' field may be one digit or two digit,
        the data length may also be varied by one byte.

        * UIProcess/API/efl/tests/test_ewk2_view.cpp:
        (EWK2ViewTest::PageContentsAsMHTMLCallback):

2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2014-01-13  Commit Queue  <commit-queue@webkit.org>

        Unreviewed, rolling out r161939.
        http://trac.webkit.org/changeset/161939
        https://bugs.webkit.org/show_bug.cgi?id=126956

        didn't work with mac, of course (Requested by thorton on
        #webkit).

        * NetworkProcess/NetworkResourceLoader.cpp:
        * NetworkProcess/NetworkResourceLoader.h:
        * NetworkProcess/RemoteNetworkingContext.h:
        * Shared/WebEventConversion.h:
        * UIProcess/API/ios/WKGeolocationProviderIOS.mm:
        * UIProcess/API/ios/WKInteractionView.mm:
        (-[WKTextPosition isEqual:]):
        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
        * WebProcess/WebPage/WebPage.h:
        * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:

2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2014-01-13  Benjamin Poulain  <bpoulain@apple.com>

        Update WebPageProxyIOS's user agent string
        https://bugs.webkit.org/show_bug.cgi?id=126933

        Reviewed by Darin Adler.

        * UIProcess/ios/WebPageProxyIOS.mm:
        (WebKit::WebPageProxy::standardUserAgent):
        Send a more reasonable user agent. The previous one was forcing
        iOS 5.1's iPad user-agent.

2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2014-01-13  Tim Horton  <timothy_horton@apple.com>

        iOS WebKit2 build fixes

        * NetworkProcess/NetworkResourceLoader.cpp:
        * NetworkProcess/NetworkResourceLoader.h:
        Introduce/clarify some confusion about CFNETWORK vs. PLATFORM(IOS).

        * NetworkProcess/RemoteNetworkingContext.h:
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
        Get rid of an override of something that doesn't exist anymore.

        * WebKit2.xcodeproj/project.pbxproj:
        Add some files. It's likely there are more missing, but this is a start.

        * Shared/WebEventConversion.h:
        * WebProcess/WebPage/WebPage.h:
        Use WebKitAdditions.

        * UIProcess/API/ios/WKGeolocationProviderIOS.mm:
        Something bizarre is happening with internal deprecation warnings.

        * UIProcess/API/ios/WKInteractionView.mm:
        (-[WKTextPosition isEqual:]):
        Fix a typo.

        * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
        Remove an override of something that doesn't exist anymore.

2108
2109
2110
2111
2112
2113
2014-01-13  Andy Estes  <aestes@apple.com>

        [iOS] Build Fix: Don't build the 'All-iOS' target on iOS. Just use 'All'.

        * Makefile:

2114
2115
2116
2117
2118
2119
2120
2121
2122
2014-01-13  Martin Robinson  <mrobinson@igalia.com>

        [CMake] Mark all dependency include paths and libraries as advanced variables
        https://bugs.webkit.org/show_bug.cgi?id=126504

        Reviewed by Daniel Bates.

        * CMakeLists.txt: Mark the LIBRT_LIBRARIES variable as advanced.

2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2014-01-13  Martin Robinson  <mrobinson@igalia.com>

        [GTK][CMake] Circular dependency in generation of WebKitEnumTypes.h
        https://bugs.webkit.org/show_bug.cgi?id=126912

        Reviewed by Daniel Bates.

        * PlatformGTK.cmake: Remove the circular dependency by generating WebKitEnumTypes.h with
        all installed headers except for WebKitEnumTypes.h itself.

2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2014-01-13  Andy Estes  <aestes@apple.com>

        [iOS] Exclude shims and PluginProcess.app from the WebKit2 build
        https://bugs.webkit.org/show_bug.cgi?id=126936

        Reviewed by Daniel Bates.

        * Configurations/All.xcconfig: Added. Excluded PluginProcess.app from
        being copied into WebKit2.framework on iOS.
        * Configurations/NetworkProcess.xcconfig: Excluded SecItemShim.dylib
        from being copied into NetworkProcess.app on iOS.
        * Configurations/PluginProcess.xcconfig: Excluded
        PluginProcessShim.dylib from being copied into PluginProcess.app and
        set SKIP_INSTALL to YES on iOS.
        * Configurations/PluginProcessShim.xcconfig: Added. Linked the shim
        against necessary frameworks on Mac.
        * Configurations/SecItemShim.xcconfig: Ditto.
        * Configurations/WebProcessShim.xcconfig: Ditto.
        * Configurations/WebContentProcess.xcconfig: Excluded
        WebProcessShim.dylib from being copied into WebProcess.app on iOS.
        * PluginProcess/mac/PluginProcessShim.mm: Added #if !PLATFORM(IOS) guards.
        * Shared/mac/CookieStorageShimLibrary.cpp: Ditto.
        * WebProcess/mac/SecItemShimLibrary.mm: Ditto.
        * WebKit2.xcodeproj/project.pbxproj: Removed Mac-only frameworks from
        the shims' 'Link Binary with Libraries' build phases. Added new xcconfigs.

2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2014-01-13  Jinwoo Song  <jinwoo7.song@samsung.com>

        [EFL][WK2] Replace usage of DEFINE_STATIC_LOCAL with NeverDestroyed
        https://bugs.webkit.org/show_bug.cgi?id=126882

        Reviewed by Gyuyoung Kim.

        * Shared/efl/ProcessExecutablePathEfl.cpp:
        (WebKit::executablePathOfWebProcess):
        (WebKit::executablePathOfPluginProcess):
        (WebKit::executablePathOfNetworkProcess):
        * UIProcess/API/efl/EwkView.cpp:
        (wkPageToEvasObjectMap):
        * UIProcess/API/efl/ewk_context.cpp:
        (contextMap):
        * UIProcess/API/efl/ewk_page_group.cpp:
        (pageGroupMap):
        * UIProcess/efl/TextCheckerClientEfl.cpp:
        (TextCheckerClientEfl::instance):
        * UIProcess/efl/TextCheckerClientEfl.h:

2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2014-01-13  Carlos Garcia Campos  <cgarcia@igalia.com>

        [SOUP] Add SoupNetworkSession class to wrap a SoupSession
        https://bugs.webkit.org/show_bug.cgi?id=126813

        Reviewed by Gustavo Noronha Silva.

        Use the new SoupNetworkSession API.

        * NetworkProcess/soup/NetworkProcessSoup.cpp:
        (WebKit::NetworkProcess::platformInitializeNetworkProcess):
        (WebKit::NetworkProcess::platformSetCacheModel):
        (WebKit::NetworkProcess::clearCacheForAllOrigins):
        * NetworkProcess/unix/NetworkProcessMainUnix.cpp:
        (WebKit::NetworkProcessMain):
        * WebProcess/Cookies/soup/WebCookieManagerSoup.cpp:
        (WebKit::WebCookieManager::setCookiePersistentStorage):
        * WebProcess/efl/WebProcessMainEfl.cpp:
        (WebKit::WebProcessMainEfl):
        * WebProcess/gtk/WebProcessMainGtk.cpp:
        (WebKit::WebProcessMainGtk):
        * WebProcess/soup/WebProcessSoup.cpp:
        (WebKit::WebProcess::platformSetCacheModel):
        (WebKit::WebProcess::platformClearResourceCaches):
        (WebKit::setSoupSessionAcceptLanguage):
        (WebKit::WebProcess::platformInitializeWebProcess):
        * WebProcess/soup/WebSoupRequestManager.cpp:
        (WebKit::WebSoupRequestManager::registerURIScheme):

2209
2210
2211
2212
2213
2214
2215
2216
2217
2014-01-13  Zalan Bujtas  <zalan@apple.com>

        Enable SUBPIXEL_LAYOUT on Mac
        <https://webkit.org/b/126283>

        Reviewed by Simon Fraser.

        * Configurations/FeatureDefines.xcconfig:

2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2014-01-12  Sergio Correia  <sergio.correia@openbossa.org>

        [EFL][WK2] Make API tests work again
        https://bugs.webkit.org/show_bug.cgi?id=126769

        Reviewed by Gyuyoung Kim.

        The EFL and WK2 test binaries are currently being generated at *TestWebKitAPI/
        [E]WebKit2, respectively, and this causes problems because the logic to find
        where WebProcess is to look in the same directory of the running process and
        then proceed to use LIBEXECDIR (typically /usr/loca/bin).

        This patch introduces a WEBKIT_EXEC_PATH environment variable, inspired in the
        Gtk port, which allows us to look for WebProcess initially in this directory,
        if it's defined.

        * Shared/efl/ProcessExecutablePathEfl.cpp:
        (WebKit::findProcessPath): Change the logic to look initially in
        WEBKIT_EXEC_PATH, then proceed with the existing checks.
        * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestEnvironment.cpp:
        (EWK2UnitTest::EWK2UnitTestEnvironment::EWK2UnitTestEnvironment):
        Define WEBKIT_EXEC_PATH to be used by EWebKit2 tests.

2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2014-01-12  Darin Adler  <darin@apple.com>

        Add deprecatedCharacters as a synonym for characters and convert most call sites
        https://bugs.webkit.org/show_bug.cgi?id=126858

        Reviewed by Anders Carlsson.

        * Shared/APIString.h:
        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::checkTextOfParagraph):
        (WebKit::WebPageProxy::checkSpellingOfString):
        (WebKit::WebPageProxy::checkGrammarOfString):
        * WebProcess/WebPage/EncoderAdapter.cpp:
        (WebKit::EncoderAdapter::encodeString):
        Use deprecatedCharacters instead of characters.

2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2014-01-12  Darin Adler  <darin@apple.com>

        Add type checking to isEqual methods
        https://bugs.webkit.org/show_bug.cgi?id=126862

        Reviewed by Anders Carlsson.

        * UIProcess/API/ios/WKInteractionView.mm:
        (-[WKTextRange isEqual:]): Added type checking for the argument. The old
        code asserted instead, and it's not clear what guarantees that assertion is
        true. Added a FIXME about the lack of a hash method. Added another FIXME
        about the fact that this method ignores much of the object state. Removed
        an unneeded extra fetch of the isRange property. Deleted some dead code.
        (-[WKTextPosition isEqual:]): Ditto.

2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2014-01-12  Anders Carlsson  <andersca@apple.com>

        Remove the last remaining uses of AtomicallyInitializedStatic
        https://bugs.webkit.org/show_bug.cgi?id=126863

        Reviewed by Darin Adler.

        * Shared/mac/SecItemShim.cpp:
        (WebKit::responseMap):

2282
2283
2284
2285
2286
2287
2014-01-12  Dan Bernstein  <mitz@apple.com>

        Added a reference to WebContentService/Info-OSX.plist to the project.

        * WebKit2.xcodeproj/project.pbxproj:

mitz@apple.com's avatar
mitz@apple.com committed
2288
2289
2290
2291
2292
2293
2294
2295
2014-01-12  Dan Bernstein  <mitz@apple.com>

        OS X build fix.

        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX.plist: Copied from WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist.
        * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist: Removed.

2296
2297
2298
2299
2300
2301
2014-01-12  Andy Estes  <aestes@apple.com>

        Build Fix: Objective-C GC should be unsupported in iOS WebKit2

        * Configurations/Base.xcconfig:

2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2014-01-12  Andy Estes  <aestes@apple.com>

        [iOS] Upstream WebKit2 xcconfig changes to fix the build

        * Configurations/All-iOS.xcconfig: Added.
        * Configurations/Base.xcconfig:
        * Configurations/BaseLegacyProcess.xcconfig:
        * Configurations/BaseTarget.xcconfig:
        * Configurations/BaseXPCService.xcconfig:
        * Configurations/DebugRelease.xcconfig:
        * Configurations/WebContentService.xcconfig:
        * Configurations/iOS.xcconfig: Added.

2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2014-01-12  Carlos Garcia Campos  <cgarcia@igalia.com>

        Unreviewed. Fix make distcheck.

        * GNUmakefile.am: Add WebKit2InspectorGResourceBundle.xml to
        EXTRA_DIST.
        * GNUmakefile.list.am: Removed deleted files and add missing ones.
        * NetworkProcess/unix/NetworkProcessMainUnix.cpp: Move
        ProxyResolverSoup.h to EFL platform ifdef, because GTK port doesn't
        build the proxy resolver.

2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2014-01-12  Carlos Garcia Campos  <cgarcia@igalia.com>

        [GTK] Fix return value of WebKitDownload::created-destination
        https://bugs.webkit.org/show_bug.cgi?id=126741

        Reviewed by Martin Robinson.

        WebKitDownload::created-destination signal should be void instead
        of gboolean. This doesn't break the API/ABI.

        * UIProcess/API/gtk/WebKitDownload.cpp:
        (webkit_download_class_init):
        (webkitDownloadDestinationCreated):

2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2014-01-11  Yongjun Zhang  <yongjun_zhang@apple.com>

        Support bool argument for encoding/decoding invocations.
        https://bugs.webkit.org/show_bug.cgi?id=126823

        Reviewed by Sam Weinig.

        For remote invocation method argument, current we support int, double and ObjC
        object, this patch add support for bool type too.

        * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
        (encodeInvocation):
        (decodeInvocationArguments):

2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2014-01-11  Alexey Proskuryakov  <ap@apple.com>

        [Mac] [Windows] Stop scheduling network requests in WebCore
        https://bugs.webkit.org/show_bug.cgi?id=126789
        <rdar://problem/15114727>

        Reviewed by Sam Weinig.

        * NetworkProcess/mac/NetworkResourceLoadSchedulerMac.mm:
        (WebKit::NetworkResourceLoadScheduler::platformInitializeMaximumHTTPConnectionCountPerHost):
        We no longer need the trick with 7 connections, as synchronous requests always have
        the right of way.

        * UIProcess/API/C/WKContext.cpp: Removed long obsolete functions.

        * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm: (InitWebCoreSystemInterface):
        Updated for new WKSI function names.

2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2014-01-11  Simon Fraser  <simon.fraser@apple.com>

        Unfork GraphicsContext::drawNativeImage for iOS
        https://bugs.webkit.org/show_bug.cgi?id=126824

        Reviewed by Dean Jackson.

        GraphicsContext::drawNativeImage had a different signature for iOS,
        which required #ifdefs at all the call sites. Unfork by passing the "scale"
        parameter everywhere (it's only used on iOS).

        * Shared/API/c/cg/WKImageCG.cpp:
        (WKImageCreateFromCGImage):

2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2014-01-11  Sam Weinig  <sam@webkit.org>

        Clean up iterator filter / iterator range code
        https://bugs.webkit.org/show_bug.cgi?id=126817

        Reviewed by Anders Carlsson.

        * Shared/APIArray.h:
        Update elementsOfType() to use combination of FilterIterator and TransformIterator
        (now that FilterIterator no longer has a transform predicate) and make use of the 
        makeFoo() helpers.

2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2014-01-11  Anders Carlsson  <andersca@apple.com>

        Simplify Timer and DeferrableOneShotTimer using std::function
        https://bugs.webkit.org/show_bug.cgi?id=126816

        Reviewed by Sam Weinig.

        Add another unexported symbol.

        * Configurations/WebKit2.xcconfig:

2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2014-01-11  Jinwoo Song  <jinwoo7.song@samsung.com>

        [EFL][WK2] Use nullptr instead of 0 in EFL API layer
        https://bugs.webkit.org/show_bug.cgi?id=126806

        Reviewed by Anders Carlsson.

        * UIProcess/API/efl/EwkView.cpp:
        (EwkView::create):
        * UIProcess/API/efl/ewk_auth_request.cpp:
        (ewk_auth_request_suggested_username_get):
        (ewk_auth_request_realm_get):
        (ewk_auth_request_host_get):
        * UIProcess/API/efl/ewk_back_forward_list.cpp:
        (ewk_back_forward_list_current_item_get):
        (ewk_back_forward_list_previous_item_get):
        (ewk_back_forward_list_next_item_get):
        (ewk_back_forward_list_item_at_index_get):
        (ewk_back_forward_list_n_back_items_copy):
        (ewk_back_forward_list_n_forward_items_copy):
        * UIProcess/API/efl/ewk_back_forward_list_item.cpp:
        (ewk_back_forward_list_item_url_get):
        (ewk_back_forward_list_item_title_get):
        (ewk_back_forward_list_item_original_url_get):
        * UIProcess/API/efl/ewk_context.cpp:
        (ewk_context_cookie_manager_get):
        (ewk_context_database_manager_get):
        (ewk_context_favicon_database_get):
        (ewk_context_storage_manager_get):
        (ewk_context_new_with_injected_bundle_path):
        * UIProcess/API/efl/ewk_context_menu.cpp:
        (ewk_context_menu_items_get):
        * UIProcess/API/efl/ewk_context_menu_item.cpp:
        (ewk_context_menu_item_new_with_submenu):
        (ewk_context_menu_item_title_get):
        (ewk_context_menu_item_parent_menu_get):
        (ewk_context_menu_item_submenu_get):
        * UIProcess/API/efl/ewk_download_job.cpp:
        (ewk_download_job_request_get):
        (ewk_download_job_response_get):
        (ewk_download_job_destination_get):
        (ewk_download_job_suggested_filename_get):
        * UIProcess/API/efl/ewk_error.cpp:
        (ewk_error_url_get):
        (ewk_error_description_get):
        * UIProcess/API/efl/ewk_file_chooser_request.cpp:
        (ewk_file_chooser_request_accepted_mimetypes_get):
        * UIProcess/API/efl/ewk_form_submission_request.cpp:
        (ewk_form_submission_request_field_names_get):
        (ewk_form_submission_request_field_value_get):
        * UIProcess/API/efl/ewk_navigation_data.cpp:
        (ewk_navigation_data_title_get):
        (ewk_navigation_data_original_request_get):
        (ewk_navigation_data_url_get):
        * UIProcess/API/efl/ewk_navigation_policy_decision.cpp:
        (ewk_navigation_policy_frame_name_get):
        (ewk_navigation_policy_request_get):
        * UIProcess/API/efl/ewk_object.cpp:
        (ewk_object_ref):
        * UIProcess/API/efl/ewk_popup_menu.cpp:
        (ewk_popup_menu_items_get):
        * UIProcess/API/efl/ewk_popup_menu_item.cpp:
        (ewk_popup_menu_item_text_get):
        (ewk_popup_menu_item_tooltip_get):
        (ewk_popup_menu_item_accessibility_text_get):
        * UIProcess/API/efl/ewk_security_origin.cpp:
        (ewk_security_origin_host_get):
        (ewk_security_origin_protocol_get):
        * UIProcess/API/efl/ewk_settings.cpp:
        (ewk_settings_default_text_encoding_name_get):
        * UIProcess/API/efl/ewk_url_request.cpp:
        (ewk_url_request_url_get):
        (ewk_request_cookies_first_party_get):
        (ewk_url_request_http_method_get):
        * UIProcess/API/efl/ewk_url_response.cpp:
        (ewk_url_response_url_get):
        (ewk_url_response_mime_type_get):
        * UIProcess/API/efl/ewk_url_scheme_request.cpp:
        (ewk_url_scheme_request_scheme_get):
        (ewk_url_scheme_request_url_get):
        (ewk_url_scheme_request_path_get):
        * UIProcess/API/efl/ewk_view.cpp:
        (toEwkViewChecked):
        (EWKViewGetWKView):
        (ewk_view_smart_add):
        (ewk_view_add_with_context):
        (ewk_view_context_get):
        (ewk_view_page_group_get):
        (ewk_view_url_get):
        (ewk_view_favicon_get):
        (ewk_view_settings_get):
        (ewk_view_title_get):
        (ewk_view_theme_get):
        (ewk_view_back_forward_list_get):
        (ewk_view_custom_encoding_get):
        (ewk_view_user_agent_get):

2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2014-01-10  Anders Carlsson  <andersca@apple.com>

        Tweak ProgressTrackerClient functions
        https://bugs.webkit.org/show_bug.cgi?id=126808

        Reviewed by Sam Weinig.

        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
        (WebKit::WebFrameLoaderClient::progressStarted):
        (WebKit::WebFrameLoaderClient::progressEstimateChanged):
        (WebKit::WebFrameLoaderClient::progressFinished):
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:

2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2014-01-10  Sam Weinig  <sam@webkit.org>

        Convert HandleMessage.h to use variadic templates
        https://bugs.webkit.org/show_bug.cgi?id=126469

        Reviewed by Anders Carlsson.

        * Platform/IPC/HandleMessage.h:
        (IPC::callMemberFunctionImpl):
        (IPC::callMemberFunction):
        Replace massive copy and pasted code with variadic magic.

2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2014-01-10  Anders Carlsson  <andersca@apple.com>

        Move progress tracking functions from FrameLoaderClient to a new ProgressTrackerClient
        https://bugs.webkit.org/show_bug.cgi?id=126801

        Reviewed by Sam Weinig.

        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::WebPage):

andersca@apple.com's avatar
andersca@apple.com committed
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2014-01-10  Anders Carlsson  <andersca@apple.com>

        Remove dead code
        https://bugs.webkit.org/show_bug.cgi?id=126782

        Reviewed by Tim Horton.

        * UIProcess/WebPageProxy.cpp:
        * UIProcess/WebPageProxy.h:
        * WebProcess/WebPage/WebPage.cpp:
        * WebProcess/WebPage/WebPage.h:
        * WebProcess/WebPage/WebPage.messages.in:

2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2014-01-10  Benjamin Poulain  <bpoulain@apple.com>

        Remove the BlackBerry port from trunk
        https://bugs.webkit.org/show_bug.cgi?id=126715

        Reviewed by Anders Carlsson.

        * WebProcess/WebCoreSupport/WebChromeClient.cpp:
        (WebKit::WebChromeClient::setCursor):

2565
2566
2567
2568
2569
2570
2571
2572
2573
2014-01-10  Benjamin Poulain  <bpoulain@apple.com>

        Remove the BlackBerry port from trunk
        https://bugs.webkit.org/show_bug.cgi?id=126715

        Reviewed by Anders Carlsson.

        * Scripts/generate-forwarding-headers.pl:

2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2014-01-10  Carlos Garcia Campos  <cgarcia@igalia.com>

        Implement NetworkResourceLoader::receivedCancellation
        https://bugs.webkit.org/show_bug.cgi?id=126129

        Reviewed Alexey Proskuryakov.

        Implement ResourceHandleClient::receivedCancellation() in the
        network process to cancel the load when cancellation is received
        from the authentication manager like the web process does.

        * NetworkProcess/NetworkResourceLoader.cpp:
        (WebKit::NetworkResourceLoader::receivedCancellation): Cancel the load.
        * NetworkProcess/NetworkResourceLoader.h:

2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2014-01-09  Jinwoo Song  <jinwoo7.song@samsung.com>

        [EFL][WK2] Add APIs for setting and getting the default text encoding name
        https://bugs.webkit.org/show_bug.cgi?id=126736

        Reviewed by Gyuyoung Kim.

        Add APIs to set and get the default text encoding name.

        * UIProcess/API/efl/ewk_settings.cpp:
        (ewk_settings_default_text_encoding_name_get):
        (ewk_settings_default_text_encoding_name_set):
        * UIProcess/API/efl/ewk_settings.h:
        * UIProcess/API/efl/tests/test_ewk2_settings.cpp:
        (TEST_F):

2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2014-01-09  Simon Fraser  <simon.fraser@apple.com>

        Enable async scrolling for iOS
        https://bugs.webkit.org/show_bug.cgi?id=126730

        Reviewed by Tim Horton.
        
        Turn on ENABLE_ASYNC_SCROLLING for iOS.
        
        On iOS, create ScrollingTreeScrollingNodeIOS nodes.

        * UIProcess/Scrolling/RemoteScrollingTree.cpp:
        (WebKit::RemoteScrollingTree::createNode):
        * UIProcess/Scrolling/RemoteScrollingTree.h:

2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2014-01-06  Gavin Barraclough  <barraclough@apple.com>

        Change Page, FocusController to use ViewState
        https://bugs.webkit.org/show_bug.cgi?id=126533

        Reviewed by Tim Horton.

        These classes currently maintain a set of separate fields to represent the view state;
        combine these into a single field, and allow WebPage to send the combined update rather
        than individual changes.

        Maintain existing interface for WebKit1 clients.

        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::WebPage):
            - Combined separate calls to Page::setViewState.
        (WebKit::WebPage::updateIsInWindow):
            - Simplied from setIsInWindow.
        (WebKit::WebPage::setViewState):
            - Combined separate calls to Page::setViewState.
        * WebProcess/WebPage/WebPage.h:
            - Declare updateIsInWindow.

2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2014-01-09  Tim Horton  <timothy_horton@apple.com>

        Upstream iOS changes after r161530
        https://bugs.webkit.org/show_bug.cgi?id=126728

        Reviewed by Dean Jackson.

        * UIProcess/API/ios/WKContentView.mm:
        (-[WKContentView setViewportSize:]):
        (-[WKContentView didFinishScrollTo:]):
        (-[WKContentView didScrollTo:]):
        Adopt the new approach.

2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2014-01-09  Brian Burg  <bburg@apple.com>

        REGRESSION (r160152): Selection drag snapshot doesn't appear or has the wrong content on Retina
        https://bugs.webkit.org/show_bug.cgi?id=125375

        Reviewed by Darin Adler.

        Remove scaling from WebDragClient because it is now selectively
        performed by WebCore according to the drag image source.

        * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
        (WebKit::WebDragClient::startDrag): Don't scale the provided drag image.

2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2014-01-09  Tim Horton  <timothy_horton@apple.com>

        WebKit2 View Gestures: Support plugins that take over the page scale gesture
        https://bugs.webkit.org/show_bug.cgi?id=126399
        <rdar://problem/15738928>

        Reviewed by Sam Weinig.

        Teach ViewGestureController how to handle WebFrame::handlesPageScaleGesture=true,
        which is used so that PDFPlugin can deal with magnification itself.

        * UIProcess/mac/ViewGestureController.cpp:
        (WebKit::ViewGestureController::ViewGestureController):
        (WebKit::ViewGestureController::didCollectGeometryForMagnificationGesture):
        (WebKit::ViewGestureController::handleMagnificationGesture):
        (WebKit::ViewGestureController::endMagnificationGesture):
        (WebKit::ViewGestureController::didCollectGeometryForSmartMagnificationGesture):
        If the WebFrame is going to handle the page scale gesture itself (which currently
        simply means that it is a main-frame PDFPlugin), send the magnification information
        straight through to it. Also, don't provide smart-zoom in this case, since there
        is currently no way to collect geometry information from the plugin.

        * UIProcess/mac/ViewGestureController.h:
        * UIProcess/mac/ViewGestureController.messages.in:
        * WebProcess/WebPage/ViewGestureGeometryCollector.cpp:
        (WebKit::ViewGestureGeometryCollector::collectGeometryForMagnificationGesture):
        (WebKit::ViewGestureGeometryCollector::collectGeometryForSmartMagnificationGesture):
        Retrieve WebFrame::handlesPageScaleGesture and return it to the UI process.

2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2014-01-09  Dan Bernstein  <mitz@apple.com>

        [Cocoa] Promote WKBackForwardList{,Item}.h to public
        https://bugs.webkit.org/show_bug.cgi?id=126707

        Reviewed by Sam Weinig.

        * UIProcess/API/Cocoa/WKBackForwardList.h: Stopped including the C API header.
        * UIProcess/API/Cocoa/WKBackForwardListItem.h: Ditto.
        * WebKit2.xcodeproj/project.pbxproj: Made the headers public.

2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2014-01-09  Zan Dobersek  <zdobersek@igalia.com>

        Revert back to using the -n option when producing symbolic links to the GTK-specific
        API directories under Source/WebKit2/. Removing the option in r161497 resulted in
        recursive links being created under those directories since the links were dereferenced.

        To actually ensure that the link is created anew, remove it so it is reconstructed.

        Rubber-stamped by Carlos Garcia Campos.

        * GNUmakefile.am:

2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2014-01-09  Carlos Garcia Campos  <cgarcia@igalia.com>

        Crash when starting a download before the network process has been launched
        https://bugs.webkit.org/show_bug.cgi?id=126258

        Reviewed by Anders Carlsson.

        We need to ensure there's a network process running before
        starting a new download like we do when using the web process.

        * UIProcess/WebContext.cpp:
        (WebKit::WebContext::download): Use ChildProcessProxy::send()
        instead of using the connection to make sure messages are queued
        if the process is still launching.
        (WebKit::WebContext::createDownloadProxy): Call
        ensureNetworkProcess() before creating the download proxy.

2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2014-01-09  Carlos Garcia Campos  <cgarcia@igalia.com>

        [SOUP] Partial file left on disk after a download fails or is cancelled in WebKit2
        https://bugs.webkit.org/show_bug.cgi?id=126686

        Reviewed by Martin Robinson.

        We are currently writing the downloads directly into the
        destination, and when a download fails or is cancelled after the
        destination has been decided, the partial file is left on the
        disk. Deleting the final file is not safe because there might be a
        race condition, so we can use an intermediate file like other
        browsers do, a file in the same directory than the target
        destination but with .wkdownload suffix, that is removed when the
        download fails or is cancelled. If the download finishes
        successfully the intermediate file is renamed to the final
        destination.

        * Shared/Downloads/soup/DownloadSoup.cpp:
        (WebKit::DownloadClient::deleteIntermediateFileInNeeded): Delete
        the intermdiate file if it's been created already.
        (WebKit::DownloadClient::downloadFailed): Call deleteIntermediateFileInNeeded.
        (WebKit::DownloadClient::didReceiveResponse): Do not create a
        SoupMessage for the given ResourceResponse that is not used, cache
        the ResourceResponse instead. Create the intermediate file and use
        it instead of the final destination.
        (WebKit::DownloadClient::didReceiveData): Use the cached
        ResourceResponse directly.
        (WebKit::DownloadClient::didFinishLoading): Rename the
        intermediate file to the final destination and write the metadata
        in the final target destination.
        (WebKit::DownloadClient::cancel): Handle the download cancellation
        here, removing the intermediate file is needed and cancelling the
        ResourceHandle and the download.
        (WebKit::DownloadClient::handleResponseLater):
        (WebKit::Download::cancel): Let the client handle the cancellation.

2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2014-01-08  Jinwoo Song  <jinwoo7.song@samsung.com>

        WebKit2 EFL build fix after r161530
        https://bugs.webkit.org/show_bug.cgi?id=126678

        Reviewed by Tim Horton.

        Add PLATFORM(MAC) guards around setExposedRect() and exposedRect()
        in DrawingArea and WebFrameLoaderClient.

        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
        (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
        * WebProcess/WebPage/DrawingArea.h:

commit-queue@webkit.org's avatar
commit-queue@webkit.org committed
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2014-01-08  Martin Hock  <mhock@apple.com>

        Stub for Session API
        https://bugs.webkit.org/show_bug.cgi?id=126626

        Reviewed by Sam Weinig.

        * Shared/API/c/WKBase.h:
        * Shared/API/c/WKSharedAPICast.h:
        * Shared/APIObject.h:
        * UIProcess/API/C/WKSessionRef.cpp: Added.
        (WKSessionGetTypeID):
        (WKSessionGetEphemeral):
        * UIProcess/API/C/WKSessionRef.h: Added.
        * UIProcess/API/Cocoa/WKSession.h: Added.
        * UIProcess/API/Cocoa/WKSession.mm: Added.
        (-[WKSession dealloc]):
        (-[WKSession ephemeral]):
        (-[WKSession API::]):
        * UIProcess/API/Cocoa/WKSessionInternal.h: Added.
        (WebKit::wrapper):
        * UIProcess/APISession.cpp: Added.
        (API::Session::Session):
        (API::Session::create):
        (API::Session::isEphemeral):
        (API::Session::~Session):
        * UIProcess/APISession.h: Added.
        * WebKit2.xcodeproj/project.pbxproj:

2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2014-01-08  Claudio Saavedra  <csaavedra@igalia.com>

        [GTK] Add xdg.origin.url extended attribute to downloads
        https://bugs.webkit.org/show_bug.cgi?id=126638

        Reviewed by Carlos Garcia Campos.

        This is proposed by fdo in
        http://www.freedesktop.org/wiki/CommonExtendedAttributes/

        * Shared/Downloads/soup/DownloadSoup.cpp:
        (WebKit::DownloadClient::didReceiveResponse):

2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2014-01-08  Simon Fraser  <simon.fraser@apple.com>

        Make WK2 build when ENABLE(ASYNC_SCROLLING) is not defined
        https://bugs.webkit.org/show_bug.cgi?id=126675

        Reviewed by Tim Horton.
        
        We need a stub RemoteScrollingCoordinatorTransaction outside
        the #ifdef so that RemoteLayerTreeDrawingAreaProxy messages
        work.

        * Shared/Scrolling/RemoteScrollingCoordinatorTransaction.cpp:
        (WebKit::RemoteScrollingCoordinatorTransaction::encode):
        (WebKit::RemoteScrollingCoordinatorTransaction::decode):
        * Shared/Scrolling/RemoteScrollingCoordinatorTransaction.h:
        * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
        (WebKit::RemoteLayerTreeDrawingAreaProxy::commitLayerTree):
        * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
        (WebKit::RemoteLayerTreeDrawingArea::flushLayers):

2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2014-01-08  Tim Horton  <timothy_horton@apple.com>

        TileController can fail to receive exposedRect from the drawing area if set at the wrong time
        https://bugs.webkit.org/show_bug.cgi?id=126536

        Reviewed by Simon Fraser.

        * Configurations/WebKit2.xcconfig:
        * UIProcess/API/mac/WKView.mm:
        (-[WKView _updateViewExposedRect]):
        * UIProcess/DrawingAreaProxy.cpp:
        (WebKit::DrawingAreaProxy::DrawingAreaProxy):
        (WebKit::DrawingAreaProxy::setExposedRect):
        (WebKit::DrawingAreaProxy::exposedRectChangedTimerFired):
        * UIProcess/DrawingAreaProxy.h:
        (WebKit::DrawingAreaProxy::exposedRect):
        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::WebPageProxy):
        (WebKit::WebPageProxy::close):
        * UIProcess/WebPageProxy.h:
        Move exposedRect stuff from WebPageProxy to DrawingAreaProxy.

        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
        (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
        Push the exposedRect down into WebCore.

        * WebProcess/WebPage/DrawingArea.h:
        * WebProcess/WebPage/DrawingArea.messages.in:
        * WebProcess/WebPage/WebPage.cpp:
        * WebProcess/WebPage/WebPage.h:
        * WebProcess/WebPage/WebPage.messages.in:
        * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
        * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
        (WebKit::RemoteLayerTreeDrawingArea::RemoteLayerTreeDrawingArea):
        (WebKit::RemoteLayerTreeDrawingArea::updateScrolledExposedRect):
        * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
        * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
        (WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea):
        (WebKit::TiledCoreAnimationDrawingArea::flushLayers):
        (WebKit::TiledCoreAnimationDrawingArea::updateScrolledExposedRect):
        (WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer):
        (WebKit::TiledCoreAnimationDrawingArea::createPageOverlayLayer):
        (WebKit::TiledCoreAnimationDrawingArea::didCommitChangesForLayer):
        Get rid of "clipsToExposedRect", we just use infinite-ness of the rect
        to indicate that now.
        Don't scroll an infinite rect; it won't work.

2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2014-01-08  Simon Fraser  <simon.fraser@apple.com>

        Add ENABLE(ASYNC_SCROLLING) guards around WK2 scrolling files
        https://bugs.webkit.org/show_bug.cgi?id=126672

        Reviewed by Tim Horton.
        
        Protected WK2 scrolling files with ENABLE(ASYNC_SCROLLING) guards.

        * Shared/Scrolling/RemoteScrollingCoordinatorTransaction.cpp:
        * Shared/Scrolling/RemoteScrollingCoordinatorTransaction.h:
        * UIProcess/Scrolling/RemoteScrollingCoordinatorProxy.cpp:
        * UIProcess/Scrolling/RemoteScrollingCoordinatorProxy.h:
        * UIProcess/Scrolling/RemoteScrollingTree.cpp:
        * UIProcess/Scrolling/RemoteScrollingTree.h:
        * WebProcess/Scrolling/RemoteScrollingCoordinator.h:
        * WebProcess/Scrolling/RemoteScrollingCoordinator.messages.in:
        * WebProcess/Scrolling/RemoteScrollingCoordinator.mm:

2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2014-01-08  Ryuan Choi  <ryuan.choi@samsung.com>

        [EFL][WK2] Add API to execute js script
        https://bugs.webkit.org/show_bug.cgi?id=101904

        Reviewed by Gyuyoung Kim.

        Add ewk_view_script_execute() which provides a way to execute user
        script.

        * UIProcess/API/efl/ewk_context.cpp:
        Added JS Global Contexta which is required to deserialize to the script
        value from the callback.
        (EwkContext::EwkContext):
        (EwkContext::~EwkContext):
        (EwkContext::jsGlobalContext):
        * UIProcess/API/efl/ewk_context_private.h:
        * UIProcess/API/efl/ewk_view.cpp:
        (Ewk_View_Script_Execute_Callback_Context::Ewk_View_Script_Execute_Callback_Context):
        (runJavaScriptCallback):
        (ewk_view_script_execute):
        * UIProcess/API/efl/ewk_view.h:
        * UIProcess/API/efl/tests/test_ewk2_view.cpp:
        Added unit test for ewk_view_script_execute.
        (scriptExecuteCallback):
        (TEST_F):

2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2014-01-08  Gyuyoung Kim  <gyuyoung.kim@samsung.com>

        [EFL] Move efl API test binaries to TestWebKitAPI/EWebKit|EWebKit2
        https://bugs.webkit.org/show_bug.cgi?id=126615

        Reviewed by Martin Robinson.

        Now EFL API test binaries created in *bin* directory with other executables.
        It would be good to move them to their folder. This patch moves them to
        *TestWebKitAPI/EWebKit|EWebKit2* directories.

        * PlatformEfl.cmake:

2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2014-01-08  Anders Carlsson  <andersca@apple.com>

        Add WTF::StringView and use it for grammar checking
        https://bugs.webkit.org/show_bug.cgi?id=126644

        Reviewed by Antti Koivisto.

        Use a StringView and remove a FIXME.

        * WebProcess/WebCoreSupport/WebEditorClient.cpp:
        (WebKit::WebEditorClient::checkTextOfParagraph):
        * WebProcess/WebCoreSupport/WebEditorClient.h:

2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2014-01-08  Zan Dobersek  <zdobersek@igalia.com>

        [Automake] Scripts for generated build targets do not necessarily produce their output
        https://bugs.webkit.org/show_bug.cgi?id=126378

        Reviewed by Carlos Garcia Campos.

        * GNUmakefile.am: Don't pass the -n option to the ln command that links the build's include
        directories to actual source directories. This doesn't replace the original symbolic link,
        which can lead to the actual link being older than its dependencies and subsequent constant
        relinking at every build.

2982
2983
2984
2985
2986
2987
2988
2989
2990
2014-01-07  Eric Carlson  <eric.carlson@apple.com>

        Teach MediaSessionManager to manage interruptions
        https://bugs.webkit.org/show_bug.cgi?id=126530

        Reviewed by Sam Weinig.

        * CMakeLists.txt: Add ${WEBCORE_DIR}/platform/animation to WebCore include directories.

2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
2014-01-07  Jinwoo Song  <jinwoo7.song@samsung.com>

        [EFL][WK2] Fix failing ewk_view_page_contents_get() API test
        https://bugs.webkit.org/show_bug.cgi?id=126609

        Reviewed by Gyuyoung Kim.

        Compare the amount of bytes in the expected result file with
        the size of callback data from the API since the 'Date' field
        and the boundaries will be different on each case.
        Refered the test case of GTK port.

        * UIProcess/API/efl/tests/resources/resultMHTML.mht: Added.
        * UIProcess/API/efl/tests/test_ewk2_view.cpp:
        (EWK2ViewTest::PageContentsAsMHTMLCallback):

3007
3008
3009
3010
3011