Use the system string for telephone number menu
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2014-12-05  Csaba Osztrogonác  <ossy@webkit.org>
2
3         URTBF, EFL is happy now.
4
5         * UIProcess/API/APIWebsiteDataStore.cpp:
6         (API::WebsiteDataStore::defaultDataStoreConfiguration):
7         * UIProcess/WebsiteData/WebsiteDataStore.cpp:
8         (WebKit::WebsiteDataStore::createNonPersistent):
9
10 2014-12-05  Mark Lam  <mark.lam@apple.com>
11
12         Gardening: one more build fix for GTK builds.
13
14         * CMakeLists.txt:
15
16 2014-12-05  Csaba Osztrogonác  <ossy@webkit.org>
17
18         URTBF, remove duplicated entry due to parallel buildfixing.
19
20         * CMakeLists.txt:
21
22 2014-12-05  Csaba Osztrogonác  <ossy@webkit.org>
23
24         URTBF after r176849.
25
26         * CMakeLists.txt: Added WebProcess/InjectedBundle/DOM/InjectedBundleCSSStyleDeclarationHandle.cpp.
27
28 2014-12-05  Mark Lam  <mark.lam@apple.com>
29
30         Gardening: another build fix for GTK builds.
31
32         * CMakeLists.txt:
33
34 2014-12-05  Mark Lam  <mark.lam@apple.com>
35
36         Gardening: more speculative build fix for GTK builds.
37
38         * CMakeLists.txt:
39
40 2014-12-05  Tim Horton  <timothy_horton@apple.com>
41
42         Use the system string for telephone number menu
43         https://bugs.webkit.org/show_bug.cgi?id=139324
44         <rdar://problem/18726471>
45
46         Reviewed by Anders Carlsson.
47
48         * Platform/mac/MenuUtilities.mm:
49         (WebKit::menuItemTitleForTelephoneNumberGroup):
50         Make use of the SPI to retrieve the string if it exists.
51
52 2014-12-05  Tim Horton  <timothy_horton@apple.com>
53
54         If the action menu hit test times out, a menu with a single separator appears
55         https://bugs.webkit.org/show_bug.cgi?id=139320
56         <rdar://problem/19158331>
57
58         Reviewed by Beth Dakin.
59
60         * UIProcess/mac/WKActionMenuController.h:
61         * UIProcess/mac/WKActionMenuController.mm:
62         (-[WKActionMenuController menuNeedsUpdate:]):
63         (-[WKActionMenuController _defaultMenuItems]):
64         Add a new "TimedOut" state, which we get into if the sync wait for
65         didPerformActionMenuHitTest times out. In this case, we'll drop the
66         separator item and give up on the menu. This way, the menu will never
67         have just a single separator item at the end of menuNeedsUpdate:.
68
69 2014-12-05  Mark Lam  <mark.lam@apple.com>
70
71         Gardening: speculative build fix for GTK builds.
72
73         * CMakeLists.txt:
74
75 2014-12-05  Anders Carlsson  <andersca@apple.com>
76
77         Fix build.
78
79         * UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm:
80         (API::WebsiteDataStore::defaultDataStoreConfiguration):
81
82 2014-12-05  Anders Carlsson  <andersca@apple.com>
83
84         Give all web pages a website data store
85         https://bugs.webkit.org/show_bug.cgi?id=139317
86
87         Reviewed by Tim Horton.
88
89         * UIProcess/API/Cocoa/WKWebView.mm:
90         (-[WKWebView initWithFrame:configuration:]):
91         Set the website data store on the window.
92
93         * UIProcess/WebContext.cpp:
94         (WebKit::websiteDataStoreConfiguration):
95         Helper function that will create the default website data store configuration for a context.
96
97         (WebKit::WebContext::WebContext):
98         Create a new, per-context data store.
99
100         (WebKit::WebContext::createWebPage):
101         If we don't have a data store filled in, use the default per-context one.
102
103         * UIProcess/WebContext.h:
104         * UIProcess/WebPageProxy.h:
105
106 2014-12-05  Anders Carlsson  <andersca@apple.com>
107
108         Move the website data store code to a new file
109         https://bugs.webkit.org/show_bug.cgi?id=139312
110
111         Reviewed by Tim Horton.
112
113         It's weird to have all the website data code in the API class, so move it to a new file.
114
115         * UIProcess/API/APIWebsiteDataStore.cpp:
116         (API::WebsiteDataStore::WebsiteDataStore):
117         (API::WebsiteDataStore::isNonPersistent):
118         (API::generateNonPersistentSessionID): Deleted.
119         * UIProcess/API/APIWebsiteDataStore.h:
120         * UIProcess/API/Cocoa/WKWebView.mm:
121         (-[WKWebView initWithFrame:configuration:]):
122         * UIProcess/WebsiteData/WebsiteDataStore.cpp: Copied from Source/WebKit2/UIProcess/API/APIWebsiteDataStore.cpp.
123         (WebKit::generateNonPersistentSessionID):
124         (WebKit::WebsiteDataStore::createNonPersistent):
125         (WebKit::WebsiteDataStore::create):
126         (WebKit::WebsiteDataStore::WebsiteDataStore):
127         (WebKit::WebsiteDataStore::~WebsiteDataStore):
128         * UIProcess/WebsiteData/WebsiteDataStore.h: Copied from Source/WebKit2/UIProcess/API/APIWebsiteDataStore.h.
129         (WebKit::WebsiteDataStore::isNonPersistent):
130         (WebKit::WebsiteDataStore::sessionID):
131         * WebKit2.xcodeproj/project.pbxproj:
132
133 2014-12-05  Tim Horton  <timothy_horton@apple.com>
134
135         Keyboard input should be disabled in the preview popover
136         https://bugs.webkit.org/show_bug.cgi?id=139219
137         <rdar://problem/19052381>
138
139         Reviewed by Anders Carlsson.
140
141         * UIProcess/API/mac/WKView.mm:
142         (-[WKView performKeyEquivalent:]):
143         (-[WKView keyUp:]):
144         (-[WKView keyDown:]):
145         (-[WKView flagsChanged:]):
146         There are two implementations of each of these methods in this file.
147         Adjust the ones that the original patch missed.
148
149 2014-12-05  Antti Koivisto  <antti@apple.com>
150
151         In NetworkResourceLoader always bail out after abort()
152         https://bugs.webkit.org/show_bug.cgi?id=139299
153
154         Reviewed by Alexey Proskuryakov.
155
156         Invoking abort() may kill the current object. Take care to bail out after it.
157
158         * NetworkProcess/NetworkResourceLoader.cpp:
159         (WebKit::NetworkResourceLoader::didReceiveResponseAsync):
160         (WebKit::NetworkResourceLoader::didReceiveBuffer):
161         (WebKit::NetworkResourceLoader::didFinishLoading):
162
163             Either make sure sendAbortingOnFailure() is called last in callbacks or the results is explicitly tested.
164
165         (WebKit::NetworkResourceLoader::bufferingTimerFired):
166         (WebKit::NetworkResourceLoader::sendBufferMaybeAborting):
167
168             Rename and return a boolean to indicate if load should continue.
169
170         (WebKit::NetworkResourceLoader::sendBuffer): Deleted.
171         * NetworkProcess/NetworkResourceLoader.h:
172
173 2014-12-05  Anders Carlsson  <andersca@apple.com>
174
175         Don't use PLATFORM(IOS) in non-project headers.
176
177         * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
178         (-[WKWebViewConfiguration _allowsAlternateFullscreen]):
179         * UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:
180
181 2014-12-05  Sam Weinig  <sam@webkit.org>
182
183         WKBundleCSSStyleDeclarationRef needs to be a real API::Object
184         https://bugs.webkit.org/show_bug.cgi?id=139291
185
186         Reviewed by Dan Bernstein.
187
188         Change WKBundleCSSStyleDeclarationRef from being a WebCore::CSSStyleDeclaration, to
189         being a real API::Object.  WKRetain and WKRelease require this.
190
191         * Shared/APIObject.h:
192         * WebKit2.xcodeproj/project.pbxproj:
193         * WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
194         * WebProcess/InjectedBundle/DOM/InjectedBundleCSSStyleDeclarationHandle.cpp: Added.
195         (WebKit::domHandleCache):
196         (WebKit::InjectedBundleCSSStyleDeclarationHandle::getOrCreate):
197         (WebKit::InjectedBundleCSSStyleDeclarationHandle::InjectedBundleCSSStyleDeclarationHandle):
198         (WebKit::InjectedBundleCSSStyleDeclarationHandle::~InjectedBundleCSSStyleDeclarationHandle):
199         * WebProcess/InjectedBundle/DOM/InjectedBundleCSSStyleDeclarationHandle.h: Added.
200         * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp:
201         (WebKit::InjectedBundlePageEditorClient::shouldApplyStyle):
202
203 2014-12-05  Anders Carlsson  <andersca@apple.com>
204
205         Oops, didn't mean to commit this.
206
207         * Shared/API/Cocoa/WKFoundation.h:
208
209 2014-12-05  Anders Carlsson  <andersca@apple.com>
210
211         Add an API::WebsiteDataStore object and use it for _WKWebsiteDataStore
212         https://bugs.webkit.org/show_bug.cgi?id=139304
213
214         Reviewed by Tim Horton.
215
216         * Shared/APIObject.h:
217         * Shared/Cocoa/APIObject.mm:
218         (API::Object::newObject):
219         Make _WKWebsiteDataStore a wrapper for API::WebsiteDataStore instead of API::Session.
220
221         * UIProcess/API/APIWebsiteDataStore.cpp: Added.
222         (API::generateNonPersistentSessionID):
223         (API::WebsiteDataStore::defaultDataStore):
224         (API::WebsiteDataStore::createNonPersistentDataStore):
225         (API::WebsiteDataStore::WebsiteDataStore):
226         (API::WebsiteDataStore::~WebsiteDataStore):
227         (API::WebsiteDataStore::isNonPersistent):
228         Add new WebsiteDataStore implementation. Currently it only contains the WebCore Session ID, but more will be
229         added to it in upcoming commits.
230
231         * UIProcess/API/APIWebsiteDataStore.h:
232         Add header.
233
234         * UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm: Added.
235         (API::WebsiteDataStore::defaultDataStoreConfiguration):
236         Platform specific file that returns the default data store configuration.
237
238         * UIProcess/API/Cocoa/WKWebView.mm:
239         (-[WKWebView initWithFrame:configuration:]):
240         Set the session ID from the website data store.
241
242         * UIProcess/API/Cocoa/_WKWebsiteDataStore.mm:
243         (+[_WKWebsiteDataStore defaultDataStore]):
244         (+[_WKWebsiteDataStore nonPersistentDataStore]):
245         (-[_WKWebsiteDataStore dealloc]):
246         (-[_WKWebsiteDataStore isNonPersistent]):
247         (-[_WKWebsiteDataStore _apiObject]):
248         Update now that we wrap an API::WebsiteDataStore instead.
249
250         * UIProcess/API/Cocoa/_WKWebsiteDataStoreInternal.h:
251         (WebKit::wrapper):
252         Update for API::Session -> API::WebsiteDataStore change.
253
254         * WebKit2.xcodeproj/project.pbxproj:
255         Add new files.
256
257 2014-12-05  David Kilzer  <ddkilzer@apple.com>
258
259         FeatureDefines.xcconfig: Workaround bug in Xcode 5.1.1 when defining ENABLE_WEB_REPLAY
260         <http://webkit.org/b/139286>
261
262         Reviewed by Daniel Bates.
263
264         * Configurations/FeatureDefines.xcconfig: Switch back to using
265         PLATFORM_NAME to workaround a bug in Xcode 5.1.1 on 10.8.
266
267 2014-12-05  Anders Carlsson  <andersca@apple.com>
268
269         Make WebPageProxy hold on to a SessionID instead of an API:Session
270         https://bugs.webkit.org/show_bug.cgi?id=139302
271
272         Reviewed by Sam Weinig.
273
274         This is in preparation for adding API::WebsiteDataStore. Currently we have to keep the
275         Session ID and the WebsiteDataStore separate because we still need to support toggling private browsing.
276
277         * UIProcess/API/C/WKPage.cpp:
278         (WKPageSetSession):
279         * UIProcess/API/C/WKSessionRef.cpp:
280         (WKSessionCreate):
281         * UIProcess/API/Cocoa/WKWebView.mm:
282         (-[WKWebView initWithFrame:configuration:]):
283         * UIProcess/API/Cocoa/_WKWebsiteDataStore.mm:
284         (+[_WKWebsiteDataStore nonPersistentDataStore]):
285         * UIProcess/APISession.cpp:
286         (API::generateID):
287         (API::Session::Session):
288         (API::Session::createEphemeral):
289         (API::Session::legacyPrivateSession): Deleted.
290         (API::Session::create): Deleted.
291         * UIProcess/APISession.h:
292         * UIProcess/WebContext.cpp:
293         (WebKit::WebContext::createWebPage):
294         * UIProcess/WebPageProxy.cpp:
295         (WebKit::WebPageProxy::WebPageProxy):
296         (WebKit::WebPageProxy::setSessionID):
297         (WebKit::WebPageProxy::creationParameters):
298         (WebKit::WebPageProxy::setSession): Deleted.
299         * UIProcess/WebPageProxy.h:
300         (WebKit::WebPageProxy::sessionID):
301
302 2014-12-05  Eric Carlson  <eric.carlson@apple.com>
303
304         [iOS] allow host application to opt-out of alternate fullscreen pt. 2
305         https://bugs.webkit.org/show_bug.cgi?id=139227
306
307         Reviewed by Jer Noble and Anders Carlsson.
308
309         * UIProcess/ios/WebVideoFullscreenManagerProxy.h: Add bool param to setupFullscreenWithID.
310         * UIProcess/ios/WebVideoFullscreenManagerProxy.messages.in: Ditto.
311         * UIProcess/ios/WebVideoFullscreenManagerProxy.mm:
312         (WebKit::WebVideoFullscreenManagerProxy::setupFullscreenWithID): Ditto.
313
314         * WebProcess/ios/WebVideoFullscreenManager.mm:
315         (WebKit::WebVideoFullscreenManager::enterVideoFullscreenForVideoElement): Pass new parameter
316             to SetupFullscreenWithID.
317
318 2014-12-04  Anders Carlsson  <andersca@apple.com>
319
320         Add missing includes in preparation for making toAPI require that it's passed an API::Object
321         https://bugs.webkit.org/show_bug.cgi?id=139278
322
323         Reviewed by Tim Horton.
324
325         * UIProcess/API/C/WKAuthenticationChallenge.cpp:
326         * UIProcess/API/C/WKAuthenticationDecisionListener.cpp:
327         * UIProcess/API/C/WKContext.cpp:
328         * UIProcess/API/C/WKDownload.cpp:
329         * UIProcess/API/C/WKFrame.cpp:
330         * UIProcess/API/C/WKGeolocationManager.cpp:
331         * UIProcess/API/C/WKInspector.cpp:
332         * UIProcess/API/C/WKPage.cpp:
333         * UIProcess/GenericCallback.h:
334         * UIProcess/Notifications/WebNotificationProvider.cpp:
335         * UIProcess/WebContextConnectionClient.cpp:
336         * UIProcess/WebContextInjectedBundleClient.cpp:
337         * UIProcess/WebCookieManagerProxyClient.cpp:
338         * UIProcess/WebDatabaseManagerProxyClient.cpp:
339         * UIProcess/WebFindClient.cpp:
340         * UIProcess/WebFormClient.cpp:
341         * UIProcess/WebIconDatabaseClient.cpp:
342         * UIProcess/WebPageContextMenuClient.cpp:
343         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
344         * WebProcess/InjectedBundle/API/c/WKBundleDOMWindowExtension.cpp:
345         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
346         * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp:
347         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
348         * WebProcess/InjectedBundle/InjectedBundleClient.cpp:
349         * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
350         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
351         * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp:
352         * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp:
353         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
354
355 2014-12-04  Anders Carlsson  <andersca@apple.com>
356
357         Make API::String copy the underlying strings if needed, for thread safety
358         https://bugs.webkit.org/show_bug.cgi?id=139261
359
360         Reviewed by Sam Weinig.
361
362         * Shared/API/c/WKString.cpp:
363         (WKStringCreateWithUTF8CString):
364         (WKStringCreateWithJSString):
365         (WKStringCopyJSString):
366         Move the implementations from API::String and directly into the API functions.
367
368         * Shared/APIString.h:
369         Add a create overload that takes an rvalue reference. Call it from the create overload
370         that takes an lvalue reference, but explicitly copy the string.
371         We call isolatedCopy() again on the string in the rvalue reference overload, but that is a no-op
372         if the string can be sent to another thread. Add assertions in the String constructor that we can
373         send the string to another thread.
374
375 2014-12-04  Beth Dakin  <bdakin@apple.com>
376
377         Clients disabling action menus sometimes still invoke action menu behaviors
378         https://bugs.webkit.org/show_bug.cgi?id=139270
379         -and corresponding-
380         rdar://problem/19147218
381
382         Reviewed by Tim Horton.
383
384         By default, we will keep a single item in the action menu up until the point where 
385         _state == ActionMenuState::Ready. So by checking _state here, we are preventing 
386         clients from opting out of our choice to wait. Ideally we would always still wait 
387         for the Ready state, but this will get the best behavior in the mean time.
388         * UIProcess/mac/WKActionMenuController.mm:
389         (-[WKActionMenuController _updateActionMenuItems]):
390
391 2014-12-04  Antti Koivisto  <antti@apple.com>
392
393         REGRESSION (r173468): Cannot step in WebInspector
394         https://bugs.webkit.org/show_bug.cgi?id=139260
395
396         Reviewed by Alexey Proskuryakov.
397
398         Inspector defers all loads and starts a nested runloop when it hits a breakpoint. When continuing it undefers the loads.
399         If the script execution was triggered from the didFinishLoading callback of the main resource then the main resource would
400         already be in the finished state in the network process side and setDefersLoading(false) message would end up restarting its load.
401         Since loads are not meant to restart the generated callbacks would assert or crash the web process when handled in the next
402         nested inspector runloop.
403
404         Fix by taking care that cleaned up NetworkResourceLoaders are always removed from the loader map of
405         the NetworkConnectionToWebProcess and so can't end up handling late messages.
406
407         No test, this requires JS debugger to trigger.
408
409         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
410         (WebKit::NetworkConnectionToWebProcess::didCleanupResourceLoader):
411
412             This is now the only way to remove resource loaders.
413             It is called from NetworkResourceLoader::cleanup only.
414
415         (WebKit::NetworkConnectionToWebProcess::didClose):
416         (WebKit::NetworkConnectionToWebProcess::removeLoadIdentifier):
417
418             Calling abort  removes the resource loader (since it calls cleanup) so no need to do it explicitly anymore.
419
420         * NetworkProcess/NetworkConnectionToWebProcess.h:
421         * NetworkProcess/NetworkResourceLoader.cpp:
422         (WebKit::NetworkResourceLoader::start):
423
424             We are guaranteed to be reffed by NetworkConnectionToWebProcess until cleanup so the explicit ref/deref can be removed.
425
426         (WebKit::NetworkResourceLoader::cleanup):
427
428             Call to NetworkConnectionToWebProcess::didCleanupResourceLoader to make the loader unreachable.
429
430         * NetworkProcess/NetworkResourceLoader.h:
431         (WebKit::NetworkResourceLoader::identifier):
432
433 2014-12-04  Timothy Horton  <timothy_horton@apple.com>
434
435         Fix the 32-bit build.
436
437         * UIProcess/API/mac/WKView.mm:
438         (-[WKView _setTextIndicator:fadeOut:animationCompletionHandler:]):
439
440 2014-12-04  Tim Horton  <timothy_horton@apple.com>
441
442         TextIndicator::createWithSelectionInFrame does synchronous IPC in WebKit2
443         https://bugs.webkit.org/show_bug.cgi?id=139252
444         <rdar://problem/19140827>
445
446         Reviewed by Anders Carlsson.
447
448         It turns out contentsToScreen requires sync IPC in Mac WebKit2, which we
449         really don't want to be doing here (especially since the UI process will often
450         be sitting in waitForAndDispatchImmediately waiting for didPerformActionMenuHitTest).
451
452         Go back to keeping TextIndicator rects in "window" coordinates and do the conversion
453         in each of the WebKits instead of trying to share that code.
454
455         * Shared/WebCoreArgumentCoders.cpp:
456         (IPC::ArgumentCoder<TextIndicatorData>::encode):
457         (IPC::ArgumentCoder<TextIndicatorData>::decode):
458         * UIProcess/API/mac/WKView.mm:
459         (-[WKView _setTextIndicator:fadeOut:animationCompletionHandler:]):
460         * WebProcess/WebPage/FindController.cpp:
461         (WebKit::FindController::updateFindIndicator):
462         (WebKit::FindController::drawRect):
463         Adjust to the WebCore changes.
464
465 2014-12-04  Anders Carlsson  <andersca@apple.com>
466
467         Simplify StorageManager callback functions
468         https://bugs.webkit.org/show_bug.cgi?id=139257
469
470         Reviewed by Antti Koivisto.
471
472         * UIProcess/Storage/StorageManager.cpp:
473         (WebKit::StorageManager::getOrigins):
474         (WebKit::StorageManager::getStorageDetailsByOrigin):
475         (WebKit::callCallbackFunction): Deleted.
476         (WebKit::StorageManager::getOriginsInternal): Deleted.
477         (WebKit::StorageManager::getStorageDetailsByOriginInternal): Deleted.
478         * UIProcess/Storage/StorageManager.h:
479         * UIProcess/WebKeyValueStorageManager.cpp:
480         (WebKit::WebKeyValueStorageManager::getKeyValueStorageOrigins):
481         (WebKit::WebKeyValueStorageManager::getStorageDetailsByOrigin):
482         (WebKit::didGetKeyValueStorageOrigins): Deleted.
483         (WebKit::didGetStorageDetailsByOrigin): Deleted.
484
485 2014-12-04  Csaba Osztrogonác  <ossy@webkit.org>
486
487         URTBF after r176794.
488
489         * UIProcess/Storage/LocalStorageDatabaseTracker.cpp:
490         (WebKit::fileCreationTime):
491         (WebKit::fileModificationTime):
492
493 2014-12-03  Anders Carlsson  <andersca@apple.com>
494
495         Add a way to delete local storage origins modified after a given date
496         https://bugs.webkit.org/show_bug.cgi?id=139249
497
498         Reviewed by Tim Horton.
499
500         Also change LocalStorageDatabaseTracker to hold on to WTF::Optional time_t values
501         instead of treating missing values as zero.
502
503         * UIProcess/LocalStorageDetails.h:
504         * UIProcess/Storage/LocalStorageDatabaseTracker.cpp:
505         (WebKit::fileCreationTime):
506         (WebKit::fileModificationTime):
507         (WebKit::LocalStorageDatabaseTracker::deleteDatabasesModifiedSince):
508         (WebKit::LocalStorageDatabaseTracker::details):
509         * UIProcess/Storage/LocalStorageDatabaseTracker.h:
510         * UIProcess/Storage/StorageManager.cpp:
511         (WebKit::StorageManager::deleteLocalStorageOriginsModifiedSince):
512         * UIProcess/Storage/StorageManager.h:
513         * UIProcess/WebKeyValueStorageManager.cpp:
514         (WebKit::didGetStorageDetailsByOrigin):
515
516 2014-12-04  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
517
518         [EFL][WK2] Add ewk API to allow accepting a specific TLS certificate for a specific host
519         https://bugs.webkit.org/show_bug.cgi?id=131160
520
521         Reviewed by Gyuyoung Kim.
522
523         * UIProcess/API/efl/ewk_context.cpp:
524         (EwkContext::allowSpecificHTTPSCertificateForHost):
525         (ewk_context_tls_certificate_for_host_allow):
526         * UIProcess/API/efl/ewk_context.h:
527         * UIProcess/API/efl/ewk_context_private.h:
528         * UIProcess/API/efl/tests/test_ewk2_ssl.cpp:
529
530 2014-12-03  Commit Queue  <commit-queue@webkit.org>
531
532         Unreviewed, rolling out r176457.
533         https://bugs.webkit.org/show_bug.cgi?id=139247
534
535         More iOS breakage (Requested by andersca on #webkit).
536
537         Reverted changeset:
538
539         "Fix iOS build."
540         http://trac.webkit.org/changeset/176457
541
542 2014-12-03  Beth Dakin  <bdakin@apple.com>
543
544         <input> elements get whitespace action menu instead of editable text menu
545         https://bugs.webkit.org/show_bug.cgi?id=139241
546         -and corresponding-
547         rdar://problem/19072083
548
549         Reviewed by Sam Weinig.
550
551         Add isOverTextInsideFormControlElement to WebHitTestResult.
552         * Shared/WebHitTestResult.cpp:
553         (WebKit::WebHitTestResult::Data::Data):
554         (WebKit::WebHitTestResult::Data::encode):
555         (WebKit::WebHitTestResult::Data::decode):
556         * Shared/WebHitTestResult.h:
557         (WebKit::WebHitTestResult::isOverTextInsideFormControlElement):
558
559         Offer the text menus for text inside form controls.
560         * UIProcess/mac/WKActionMenuController.mm:
561         (-[WKActionMenuController _defaultMenuItems]):
562
563         We should disallow shadow content in the hit test. This is the default and it is 
564         how context menus behave. We originally wanted to text inside shadow content so 
565         that we could find the text, but the new function I added to HitTestResult will 
566         allow that.
567         * WebProcess/WebPage/mac/WebPageMac.mm:
568
569         Adjust to the fact that we don’t hit test shadow content any more.
570         (WebKit::WebPage::performActionMenuHitTestAtLocation):
571         (WebKit::WebPage::lookupTextAtLocation):
572         (WebKit::WebPage::focusAndSelectLastActionMenuHitTestResult):
573
574 2014-12-03  Commit Queue  <commit-queue@webkit.org>
575
576         Unreviewed, rolling out r176489.
577         https://bugs.webkit.org/show_bug.cgi?id=139242
578
579         More iOS breakage (Requested by andersca on #webkit).
580
581         Reverted changeset:
582
583         "Unreviewed, iOS build fix after r176452."
584         http://trac.webkit.org/changeset/176489
585
586 2014-12-03  Tim Horton  <timothy_horton@apple.com>
587
588         Implement action menus for tel: URLs
589         https://bugs.webkit.org/show_bug.cgi?id=139240
590         <rdar://problem/19115662>
591
592         Reviewed by Anders Carlsson.
593
594         * Shared/API/c/WKActionMenuTypes.h:
595         Add a new type.
596
597         * UIProcess/mac/WKActionMenuController.mm:
598         (-[WKActionMenuController _defaultMenuItemsForDataDetectableLink]):
599         Rename this function as it will work for both mailto and tel URLs.
600         Adjust it to use contextForView:.
601
602         (-[WKActionMenuController _clearActionMenuState]):
603         (-[WKActionMenuController menuNeedsUpdate:]):
604         (-[WKActionMenuController _defaultMenuItems]):
605         Don't check the menu type when going to interact with _currentActionContext.
606         We'll only have a _currentActionContext if we have a data detected item,
607         and there are multiple menu types that end up using DDActionContext.
608
609 2014-12-03  Commit Queue  <commit-queue@webkit.org>
610
611         Unreviewed, rolling out r176452 and r176559.
612         https://bugs.webkit.org/show_bug.cgi?id=139239
613
614         Broke iOS (Requested by andersca on #webkit).
615
616         Reverted changesets:
617
618         "Remove alignment code from IPC coders"
619         https://bugs.webkit.org/show_bug.cgi?id=138963
620         http://trac.webkit.org/changeset/176452
621
622         "[WK2] SecComp buildfix after r176452"
623         https://bugs.webkit.org/show_bug.cgi?id=139081
624         http://trac.webkit.org/changeset/176559
625
626 2014-12-03  Tim Horton  <timothy_horton@apple.com>
627
628         Keyboard input should be disabled in the preview popover
629         https://bugs.webkit.org/show_bug.cgi?id=139219
630         <rdar://problem/19052381>
631
632         Reviewed by Anders Carlsson.
633
634         Make sure that keyboard input, Quick Look, etc. are blocked in preview popovers
635         and WKThumbnailViews. Also block the fake mouseMove events that originate in
636         the Web process upon scrolling, because we were missing those despite blocking
637         ordinary mouseMove events.
638
639         * UIProcess/API/Cocoa/WKViewPrivate.h:
640         * UIProcess/API/mac/WKView.mm:
641         Rename _ignoresNonWheelMouseEvents to _ignoresNonWheelEvents, because it will
642         apply not only to mouse events but also key events, Quick Look events, menu
643         preparation events, swipe events, etc.
644
645         Add _ignoresAllEvents, which means the same thing as _ignoresNonWheelEvents
646         with the addition of ignoring scrollWheel events.
647
648         (-[WKView scrollWheel:]):
649         (-[WKView swipeWithEvent:]):
650         (-[WKView mouseMoved:]):
651         (-[WKView mouseDown:]):
652         (-[WKView mouseUp:]):
653         (-[WKView mouseDragged:]):
654         Adjust to the new name.
655
656         (-[WKView performKeyEquivalent:]):
657         (-[WKView keyUp:]):
658         (-[WKView keyDown:]):
659         (-[WKView flagsChanged:]):
660         (-[WKView quickLookWithEvent:]):
661         (-[WKView prepareForMenu:withEvent:]):
662         (-[WKView willOpenMenu:withEvent:]):
663         (-[WKView didCloseMenu:withEvent:]):
664         Block all of these events as well as those we were previously blocking.
665
666         (-[WKView _setIgnoresAllEvents:]):
667         (-[WKView _setIgnoresNonWheelMouseEvents:]):
668         (-[WKView _setIgnoresNonWheelEvents:]):
669         (-[WKView _ignoresNonWheelEvents]):
670         (-[WKView _ignoresAllEvents]):
671         * UIProcess/API/mac/WKViewInternal.h:
672         Adjust to the new names and the addition of ignoresAllEvents.
673
674         * UIProcess/mac/WKActionMenuController.mm:
675         (-[WKPagePreviewViewController loadView]):
676         Adjust to the new name.
677
678         (-[WKActionMenuController prepareForMenu:withEvent:]):
679         Move bailing from prepareForMenu: up to WKView.
680
681         * UIProcess/API/Cocoa/WKWebView.mm:
682         (-[WKWebView _ignoresNonWheelEvents]):
683         (-[WKWebView _setIgnoresNonWheelEvents:]):
684         (-[WKWebView _ignoresNonWheelMouseEvents]): Deleted.
685         (-[WKWebView _setIgnoresNonWheelMouseEvents:]): Deleted.
686         * UIProcess/API/Cocoa/WKWebViewInternal.h:
687         Adjust to the new name (without "mouse" in it).
688
689         * UIProcess/API/Cocoa/_WKThumbnailView.mm:
690         (-[_WKThumbnailView _viewWasUnparented]):
691         (-[_WKThumbnailView _viewWasParented]):
692         Explicitly tell WKView to disable event handling while thumbnailed,
693         instead of having WKView special-case thumbnail views internally.
694
695         * UIProcess/WebPageProxy.cpp:
696         (WebKit::WebPageProxy::setShouldDispatchFakeMouseMoveEvents):
697         * UIProcess/WebPageProxy.h:
698         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
699         (WebKit::WebChromeClient::shouldDispatchFakeMouseMoveEvents):
700         * WebProcess/WebCoreSupport/WebChromeClient.h:
701         * WebProcess/WebPage/WebPage.cpp:
702         (WebKit::WebPage::WebPage):
703         * WebProcess/WebPage/WebPage.h:
704         (WebKit::WebPage::shouldDispatchFakeMouseMoveEvents):
705         (WebKit::WebPage::setShouldDispatchFakeMouseMoveEvents):
706         * WebProcess/WebPage/WebPage.messages.in:
707         Plumb shouldDispatchFakeMouseMoveEvents from the UI process to the Web process
708         and through to WebKit2's ChromeClient implementation.
709
710 2014-12-03  Anders Carlsson  <andersca@apple.com>
711
712         Remove ENABLE_UI_PROCESS_STORAGE define, it's always 1.
713
714         Rubber-stamped by Beth Dakin.
715
716         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
717         (WebKit::WebPlatformStrategies::localStorageNamespace):
718         (WebKit::WebPlatformStrategies::transientLocalStorageNamespace):
719         (WebKit::WebPlatformStrategies::sessionStorageNamespace):
720
721 2014-12-03  Anders Carlsson  <andersca@apple.com>
722
723         Use an @autoreleasepool instead of NSAutoreleasePool.
724
725         Rubber-stamped by Tim Horton.
726
727         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
728         (WebKit::TiledCoreAnimationDrawingArea::flushLayers):
729
730 2014-12-03  Dan Bernstein  <mitz@apple.com>
731
732         REGRESSION(r176687): Caused webkit2 test assertion failure crashes in WebKit::WebPage::willStartDrag()
733         https://bugs.webkit.org/show_bug.cgi?id=139224
734
735         Reviewed by Alexey Proskuryakov.
736
737         * WebProcess/WebPage/WebPage.cpp:
738         (WebKit::WebPage::mouseEventSyncForTesting): Wait for the UI process to start dragging if
739         needed before handling the event.
740
741 2014-12-03  Michael Catanzaro  <mcatanzaro@igalia.com>
742
743         [GTK] outdated comment
744         https://bugs.webkit.org/show_bug.cgi?id=137801
745
746         Reviewed by Carlos Garcia Campos.
747
748         Remove a comment that is no longer correct.
749
750         * NetworkProcess/gtk/NetworkProcessMainGtk.cpp:
751
752 2014-12-02  Conrad Shultz  <conrad_shultz@apple.com>
753
754         Don't block menu highlighting when presenting a page preview
755         https://bugs.webkit.org/show_bug.cgi?id=139217
756
757         Reviewed by Tim Horton.
758
759         * UIProcess/mac/WKActionMenuController.mm:
760         (-[WKActionMenuController _previewURLFromActionMenu:]):
761         Defer popover presentation to the next turn of the runloop.
762
763 2014-12-02  Timothy Horton  <timothy_horton@apple.com>
764
765         Fix the build.
766
767         * UIProcess/mac/WebContextMac.mm:
768
769 2014-12-02  Dan Bernstein  <mitz@apple.com>
770
771         <rdar://problem/18441138> [iOS] Text selection in WKWebView with WKSelectionGranularityCharacter only works in the most recent WKWebView to load
772         https://bugs.webkit.org/show_bug.cgi?id=139211
773
774         Reviewed by Anders Carlsson.
775
776         * UIProcess/ios/WKContentViewInteraction.mm:
777         (-[WKContentView becomeFirstResponder]): Override to activate the text selection for when
778         becoming first resopnder.
779         (-[WKContentView resignFirstResponder]): Deactiavte the text selection when resigning first
780         responder. This ensures that if another WKWebView becomes first responder, and it uses
781         block selection, we don’t end up with two active selection views.
782         (-[WKContentView useSelectionAssistantWithMode:]): Only activate the text selection if this
783         is the first responder. This ensures that loading content into a non-first-responder
784         WKWebView doesn‘t deactivate the text selection in the current first responder.
785
786 2014-12-02  Alexey Proskuryakov  <ap@apple.com>
787
788         http/tests/appcache/main-resource-fallback-for-network-error-crash.html can break subsequent tests
789         https://bugs.webkit.org/show_bug.cgi?id=139149
790
791         Reviewed by Anders Carlsson.
792
793         This changes API behavior. I think that it's OK, because existing behavior made no sense.
794         We used to delete caches from disk, but they were still active in memory. Now we also
795         obsolete them in memory, so documents that use a cache still work, but new ones don't
796         pick one up.
797
798         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
799         (WebKit::WebApplicationCacheManager::deleteAllEntries): Use the new WebCore function
800         that properly deletes caches.
801
802 2014-12-02  Tim Horton  <timothy_horton@apple.com>
803
804         Remove a SnowLeopard-era quirk for QuickLook
805         https://bugs.webkit.org/show_bug.cgi?id=139208
806         <rdar://problem/19121822>
807
808         Reviewed by Alexey Proskuryakov.
809
810         * Shared/WebProcessCreationParameters.cpp:
811         (WebKit::WebProcessCreationParameters::encode):
812         (WebKit::WebProcessCreationParameters::decode):
813         * Shared/WebProcessCreationParameters.h:
814         * UIProcess/mac/WebContextMac.mm:
815         (WebKit::WebContext::platformInitializeWebProcess):
816         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
817         (WebKit::WebFrameLoaderClient::needsQuickLookResourceCachingQuirks): Deleted.
818         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
819         * WebProcess/WebProcess.cpp:
820         (WebKit::WebProcess::WebProcess):
821         * WebProcess/WebProcess.h:
822         (WebKit::WebProcess::needsQuickLookResourceCachingQuirks): Deleted.
823         * WebProcess/cocoa/WebProcessCocoa.mm:
824         (WebKit::WebProcess::platformInitializeWebProcess):
825
826 2014-12-02  Beth Dakin  <bdakin@apple.com>
827
828         Build fix.
829
830         * UIProcess/mac/WKActionMenuController.mm:
831         (-[WKActionMenuController _defaultMenuItemsForLink]):
832
833 2014-12-02  Beth Dakin  <bdakin@apple.com>
834
835         More build fix.
836
837         * UIProcess/mac/WKActionMenuController.mm:
838         (-[WKActionMenuController _defaultMenuItemsForLink]):
839
840 2014-12-02  Dan Bernstein  <mitz@apple.com>
841
842         REGRESSION: Dragging selected text changes the selection
843         https://bugs.webkit.org/show_bug.cgi?id=139110
844
845         Reviewed by Simon Fraser.
846
847         After it sent the UI process the message to start dragging, the Web process handled mouse
848         move events that had already been in flight, interpreting them as a drag to start a new
849         selection. This is fixed by ignoring any mouse events received after asking the UI process
850         to start dragging.
851
852         * UIProcess/mac/WebPageProxyMac.mm:
853         (WebKit::WebPageProxy::setDragImage): Send the new DidStartDrag message back to the Web
854         process, so that it stops ignoring mouse events.
855
856         * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
857         (WebKit::WebDragClient::startDrag): Call the new WebPage::willStartDrag, so that it starts
858         ignoring mouse events.
859
860         * WebProcess/WebPage/WebPage.cpp:
861         (WebKit::WebPage::WebPage): Initialize new member variable.
862         (WebKit::WebPage::mouseEvent): Don’t handle the event if we have asked the UI process to
863         start dragging.
864
865         * WebProcess/WebPage/WebPage.h:
866         (WebKit::WebPage::willStartDrag): Added. Sets new member variable m_isStartingDrag to true.
867         (WebKit::WebPage::didStartDrag): Added. Handles the message from the UI process by setting
868         m_isStartingDrag back to false.
869
870         * WebProcess/WebPage/WebPage.messages.in: Added DidStartDrag.
871
872 2014-12-02  Beth Dakin  <bdakin@apple.com>
873
874         Should use standardQuickLookMenuItem for apps that don't implement customizations
875         https://bugs.webkit.org/show_bug.cgi?id=139193
876         -and corresponding-
877         rdar://problem/18944696
878
879         Reviewed by Anders Carlsson.
880
881         New SPI will allow clients to opt-out of the standardQuickLookMenuItem. By 
882         default, opt in.
883         * UIProcess/API/Cocoa/WKViewPrivate.h:
884         * UIProcess/API/mac/WKView.mm:
885         (-[WKView _shouldUseStandardQuickLookPreview]):
886         * UIProcess/mac/WKActionMenuController.mm:
887
888         Use [NSMenuItem standardQuickLookMenuItem] unless the client has requested 
889         otherwise.
890         (-[WKActionMenuController _defaultMenuItemsForLink]):
891
892         Delegate methods to set up the standardQuickLookMenuItem.
893         (-[WKActionMenuController menuItem:viewAtScreenPoint:]):
894         (-[WKActionMenuController menuItem:previewItemAtPoint:]):
895         (-[WKActionMenuController menuItem:preferredEdgeForPoint:]):
896
897 2014-12-02  Tim Horton  <timothy_horton@apple.com>
898
899         TextIndicator can get stuck (especially if we don't get LUNotificationPopoverWillClose when we should)
900         https://bugs.webkit.org/show_bug.cgi?id=139175
901         <rdar://problem/19072236>
902
903         Reviewed by Beth Dakin.
904
905         * UIProcess/API/mac/WKView.mm:
906         (-[WKView scrollWheel:]):
907         (-[WKView mouseDown:]):
908         Work around <rdar://problem/19086993> by always explicitly clearing the
909         active text indicator in mouseDown: and scrollWheel:.
910         This way, even if you manage to get a text indicator that outlives the
911         Look Up popover (or find-in-page, or whatever), it will be dismissed
912         by clicking or scrolling the view.
913
914 2014-12-02  Anders Carlsson  <andersca@apple.com>
915
916         Remove visited link handling from PageGroup
917         https://bugs.webkit.org/show_bug.cgi?id=139185
918
919         Reviewed by Sam Weinig.
920
921         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
922         (WebKit::WebChromeClient::populateVisitedLinks): Deleted.
923         * WebProcess/WebCoreSupport/WebChromeClient.h:
924
925 2014-12-01  Anders Carlsson  <andersca@apple.com>
926
927         Remove WKBundleRemoveAllVisitedLinks
928         https://bugs.webkit.org/show_bug.cgi?id=139163
929
930         Reviewed by Sam Weinig.
931
932         WKBundleRemoveAllVisitedLinks has been a no-op since at least Yosemite; get rid of it.
933
934         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
935         (WKBundleRemoveAllVisitedLinks): Deleted.
936         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
937         * WebProcess/InjectedBundle/InjectedBundle.cpp:
938         (WebKit::InjectedBundle::removeAllVisitedLinks): Deleted.
939         * WebProcess/InjectedBundle/InjectedBundle.h:
940
941 2014-12-02  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
942
943         Fix class was previously declared as a struct warnings
944         https://bugs.webkit.org/show_bug.cgi?id=139131
945
946         Reviewed by Csaba Osztrogonác.
947
948         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
949         * UIProcess/CoordinatedGraphics/WebViewClient.h:
950
951 2014-12-02  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
952
953         [EFL] ewk_view_scale_set() doesn't work correctly
954         https://bugs.webkit.org/show_bug.cgi?id=139109
955
956         Reviewed by Csaba Osztrogonác.
957
958         When ewk_view_scale_set() is called, it has only updated a scale factor which is maintained by WebPageProxy.
959         It causes WebPageProxy unsynchronized with PageViewportController's scale factor. That's why wrong scale
960         behavior has occured through ewk_view_scale_set(). Besides zooming has similar problem as well.
961
962         Thus this patch updates m_pageScaleFactor of PageViewportController as well as prohibits to change the scale
963         factor through viewport meta tag update. Because ewk_view_scale_set() means that user wants to set a specific
964         value to scale factor of current viewport.
965
966         * UIProcess/API/efl/EwkView.cpp:
967         (EwkView::updateScaleToPageViewportController):
968             Set m_initiallyFitToViewport to false. And call didChangeContentsVisibility() with new scale and scale position.
969
970         * UIProcess/API/efl/EwkView.h:
971         * UIProcess/API/efl/ewk_view.cpp:
972         (ewk_view_scale_set):
973         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
974         (TEST_F):
975         * UIProcess/CoordinatedGraphics/PageViewportController.cpp:
976         (WebKit::PageViewportController::didCommitLoad):
977             Set m_initiallyFitToViewport to true in order to fit content to viewport size by default.
978             Initizlize content position with (0, 0).
979
980         (WebKit::PageViewportController::pageTransitionViewportReady):
981            Do not update scale when m_initiallyFitToViewport is false.
982
983         (WebKit::PageViewportController::syncVisibleContents):
984            Return false when syncVisibleContents is failed.
985
986         (WebKit::PageViewportController::didChangeViewportAttributes):
987            Do not update scale when m_initiallyFitToViewport is false.
988
989         (WebKit::PageViewportController::applyScaleAfterRenderingContents):
990             If syncVisibleContents() is failed, m_pageScaleFactor should be restored with previous value.
991             If not, new scale factor isn't applied though, PageViewportController uses it as own scale factor.
992
993         (WebKit::PageViewportController::updateMinimumScaleToFit):
994            Do not update scale when m_initiallyFitToViewport is false or m_hadUserInteraction is true.
995
996         * UIProcess/CoordinatedGraphics/PageViewportController.h:
997         (WebKit::PageViewportController::setInitiallyFitToViewport):
998
999 2014-11-20  Jeffrey Pfau  <jpfau@apple.com>
1000
1001         Add cancelable version of willSendRequest
1002         https://bugs.webkit.org/show_bug.cgi?id=138987
1003
1004         Reviewed by Anders Carlsson.
1005
1006         * WebProcess/Network/WebResourceLoader.cpp:
1007         (WebKit::WebResourceLoader::willSendRequest):
1008
1009 2014-12-01  Conrad Shultz  <conrad_shultz@apple.com>
1010
1011         Clients need a way to explicitly set the title of a page preview
1012         https://bugs.webkit.org/show_bug.cgi?id=139161
1013
1014         Reviewed by Beth Dakin.
1015
1016         This implicitly assumes that only one page preview can be associate with a given WKView at a time.
1017
1018         * UIProcess/API/Cocoa/WKViewPrivate.h:
1019         * UIProcess/API/mac/WKView.mm:
1020         (-[WKView _setPreviewTitle:]):
1021         Wrap -[WKActionMenuController setPreviewTitle:]
1022
1023         * UIProcess/mac/WKActionMenuController.h:
1024         * UIProcess/mac/WKActionMenuController.mm:
1025         Add ivars for the title and the title text field (previously not independently exposed).
1026         (-[WKPagePreviewViewController previewTitle]):
1027         Accessor.
1028         (-[WKPagePreviewViewController setPreviewTitle:]):
1029         Accessor; set the text field's string value.
1030         (-[WKPagePreviewViewController loadView]):
1031         Adopt the _titleTextField ivar; assume that if a client has explicitly set the previewTitle then we don't
1032         need to ask for it again.
1033         (-[WKActionMenuController setPreviewTitle:]):
1034         Wrap -[WKPagePreviewViewController setPreviewTitle:].
1035
1036 2014-12-01  Anders Carlsson  <andersca@apple.com>
1037
1038         Make WebKit2 work slightly better with garbage collection
1039         https://bugs.webkit.org/show_bug.cgi?id=139159
1040         <rdar://problem/19108390>
1041
1042         Reviewed by Dan Bernstein.
1043
1044         * Shared/Cocoa/APIObject.mm:
1045         (API::Object::ref):
1046         (API::Object::deref):
1047         Call CFRetain/CFRelease to prevent the memory from being collected.
1048
1049         (API::Object::newObject):
1050         Call CFRetain under GC so we'll prevent memory from being collected prematurely.
1051
1052 2014-12-01  Tim Horton  <timothy_horton@apple.com>
1053
1054         Implement yellow highlight for WebKit1 data detectors
1055         https://bugs.webkit.org/show_bug.cgi?id=138956
1056         <rdar://problem/18992185>
1057
1058         Reviewed by Beth Dakin.
1059
1060         * Shared/WebCoreArgumentCoders.cpp:
1061         (IPC::ArgumentCoder<TextIndicatorData>::encode):
1062         (IPC::ArgumentCoder<TextIndicatorData>::decode):
1063         * WebProcess/WebPage/FindController.cpp:
1064         (WebKit::FindController::updateFindIndicator):
1065         (WebKit::FindController::drawRect):
1066         Adjust to the fact that TextIndicator keeps screen-relative rects.
1067
1068 2014-12-01  Anders Carlsson  <andersca@apple.com>
1069
1070         Remove old site specific quirks code that was added in 2009
1071         https://bugs.webkit.org/show_bug.cgi?id=139141
1072
1073         Reviewed by Antti Koivisto.
1074
1075         * NetworkProcess/RemoteNetworkingContext.h:
1076         * NetworkProcess/mac/RemoteNetworkingContext.mm:
1077         (WebKit::RemoteNetworkingContext::needsSiteSpecificQuirks): Deleted.
1078         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
1079         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
1080         (WebKit::WebFrameNetworkingContext::needsSiteSpecificQuirks): Deleted.
1081
1082 2014-12-01  Joseph Pecoraro  <pecoraro@apple.com>
1083
1084         Web Inspector: Crash in WebInspectorClient::hideHighlight when page is destroyed
1085         https://bugs.webkit.org/show_bug.cgi?id=139136
1086
1087         Reviewed by Simon Fraser.
1088
1089         * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
1090         (WebKit::WebInspectorClient::hideHighlight):
1091         Speculatively fix by null-checking the main frame which
1092         can be null during page destruction.
1093
1094 2014-11-30  Jaehun Lim  <ljaehun.lim@samsung.com>
1095
1096         [EFL] Add eldbus to the library list
1097         https://bugs.webkit.org/show_bug.cgi?id=139120
1098
1099         Reviewed by Gyuyoung Kim.
1100
1101         Fix undefined reference errors for eldbus APIs.
1102
1103         * PlatformEfl.cmake:
1104
1105 2014-11-29  Anders Carlsson  <andersca@apple.com>
1106
1107         Crash when calling WKPageClose on the originated page from within createNewPage callback
1108         https://bugs.webkit.org/show_bug.cgi?id=139099
1109         <rdar://problem/19052564>
1110
1111         Reviewed by Sam Weinig.
1112
1113         Null check the namespace ID.
1114
1115         * UIProcess/Storage/StorageManager.cpp:
1116         (WebKit::StorageManager::cloneSessionStorageNamespaceInternal):
1117
1118 2014-11-28  Tim Horton  <timothy_horton@apple.com>
1119
1120         Stale userData is handed to WKView _actionMenuItemsForHitTestResult under prepareForMenu
1121         https://bugs.webkit.org/show_bug.cgi?id=139069
1122         <rdar://problem/19075587>
1123
1124         Reviewed by Sam Weinig.
1125
1126         * UIProcess/mac/WKActionMenuController.mm:
1127         (-[WKActionMenuController wkView:willHandleMouseDown:]):
1128         (-[WKActionMenuController didCloseMenu:withEvent:]):
1129         (-[WKActionMenuController _clearActionMenuState]):
1130         Previously, _userData was not being cleared in didCloseMenu, so a subsequent
1131         action menu invocation would end up sending stale userData to _actionMenuItemsForHitTestResult.
1132
1133         Additionally, factor all of the cleanup code out into _clearActionMenuState,
1134         and call it from both wkView:willHandleMouseDown: and didCloseMenu:withEvent:.
1135
1136 2014-11-26  Timothy Horton  <timothy_horton@apple.com>
1137
1138         DataDetectors PageOverlay callbacks are never called
1139         https://bugs.webkit.org/show_bug.cgi?id=139067
1140         <rdar://problem/19086676>
1141
1142         Reviewed by Anders Carlsson.
1143
1144         * Shared/mac/ActionMenuHitTestResult.mm:
1145         (WebKit::ActionMenuHitTestResult::encode):
1146         (WebKit::ActionMenuHitTestResult::decode):
1147         Encode/decode the PageOverlay ID.
1148
1149 2014-11-28  Simon Fraser  <simon.fraser@apple.com>
1150
1151         Allow clients of the WKRenderLayerRef C SPI to connect layer trees across frame boundaries
1152         https://bugs.webkit.org/show_bug.cgi?id=139021
1153
1154         Reviewed by Dan Bernstein.
1155         
1156         Add WKRenderLayerGetFrameContentsLayer which returns a WKRenderLayerRef for
1157         the content document of a RenderWidget, if its has one (e.g. frames, iframes
1158         and <object> with document contents).
1159
1160         * Shared/API/c/WKRenderLayer.cpp:
1161         (WKRenderLayerGetFrameContentsLayer):
1162         * Shared/API/c/WKRenderLayer.h:
1163         * Shared/UserMessageCoders.h:
1164         (WebKit::UserMessageEncoder::baseEncode):
1165         (WebKit::UserMessageDecoder::baseDecode):
1166         * Shared/WebRenderLayer.cpp:
1167         (WebKit::WebRenderLayer::create):
1168         (WebKit::WebRenderLayer::WebRenderLayer):
1169         * Shared/WebRenderLayer.h:
1170         (WebKit::WebRenderLayer::frameContentsLayer):
1171
1172 2014-11-28  Csaba Osztrogonác  <ossy@webkit.org>
1173
1174         [WK2] SecComp buildfix after r176452
1175         https://bugs.webkit.org/show_bug.cgi?id=139081
1176
1177         Reviewed by Antti Koivisto.
1178
1179         * Shared/linux/SeccompFilters/SeccompBroker.cpp:
1180         (WebKit::SeccompBrokerClient::dispatch):
1181         (WebKit::SeccompBroker::runLoop):
1182
1183 2014-11-28  Csaba Osztrogonác  <ossy@webkit.org>
1184
1185         Fix -Wc++11-narrowing error in SeccompFilters.cpp
1186         https://bugs.webkit.org/show_bug.cgi?id=139079
1187
1188         Reviewed by Carlos Garcia Campos.
1189
1190         * Shared/linux/SeccompFilters/SeccompFilters.cpp:
1191         (WebKit::SeccompFilters::addRule):
1192         * Shared/linux/SeccompFilters/SeccompFilters.h:
1193
1194 2014-11-28  Csaba Osztrogonác  <ossy@webkit.org>
1195
1196         [WK2] SecComp buildfix after r168605 and r168999
1197         https://bugs.webkit.org/show_bug.cgi?id=139080
1198
1199         Reviewed by Carlos Garcia Campos.
1200
1201         * Shared/linux/SeccompFilters/SyscallPolicy.cpp:
1202         (WebKit::SyscallPolicy::addDefaultWebProcessPolicy):
1203
1204 2014-11-27  Ryuan Choi  <ryuan.choi@navercorp.com>
1205
1206         [EFL] Remove E_Dbus dependency
1207         https://bugs.webkit.org/show_bug.cgi?id=136355
1208
1209         Reviewed by Gyuyoung Kim.
1210
1211         * UIProcess/API/efl/ewk_main.cpp: Added init/shutdown for eldbus.
1212         (WebKit::EwkMain::initialize):
1213         (WebKit::EwkMain::finalize):
1214         (WebKit::EwkMain::shutdownInitializedEFLModules):
1215
1216 2014-11-25  Anders Carlsson  <andersca@apple.com>
1217
1218         Remove user content handling from PageGroup
1219         https://bugs.webkit.org/show_bug.cgi?id=139051
1220
1221         Reviewed by Antti Koivisto.
1222
1223         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1224         (WebKit::InjectedBundle::addUserScript):
1225         (WebKit::InjectedBundle::addUserStyleSheet):
1226         (WebKit::InjectedBundle::removeUserScript):
1227         (WebKit::InjectedBundle::removeUserStyleSheet):
1228         (WebKit::InjectedBundle::removeUserScripts):
1229         (WebKit::InjectedBundle::removeUserStyleSheets):
1230         (WebKit::InjectedBundle::removeAllUserContent):
1231         Talk to the user content controller from the passed in WebPageGroupProxy.
1232
1233         * WebProcess/WebPage/WebPage.cpp:
1234         (WebKit::WebPage::WebPage):
1235         Create the WebPageGroupProxy before creating the page so we can get its user content controller and
1236         pass it to the page configuration if necessary.
1237         
1238         * WebProcess/WebPage/WebPageGroupProxy.cpp:
1239         (WebKit::WebPageGroupProxy::userContentController):
1240         New function that lazily creates a user content controller. We don't want to create this eagerly since
1241         it's not used with the modern API.
1242
1243         (WebKit::WebPageGroupProxy::addUserStyleSheet):
1244         (WebKit::WebPageGroupProxy::addUserScript):
1245         (WebKit::WebPageGroupProxy::removeAllUserStyleSheets):
1246         (WebKit::WebPageGroupProxy::removeAllUserScripts):
1247         (WebKit::WebPageGroupProxy::removeAllUserContent):
1248         Call through to the user content controller.
1249
1250         * WebProcess/WebPage/WebPageGroupProxy.h:
1251         Add an m_userContentController member.
1252
1253 2014-11-25  Ting-Wei Lan  <lantw44@gmail.com>
1254
1255         [GTK] Use LD_LIBRARY_PATH to make g-ir-scanner use the newly-built
1256         version of libraries when running the temporary executable
1257         https://bugs.webkit.org/show_bug.cgi?id=138833
1258
1259         Reviewed by Carlos Garcia Campos.
1260
1261         This patch modifies LD_LIBRARY_PATH to make sure the dynamic linker
1262         find the correct version of libraries when running the temporary
1263         executable to generate the .gir file.
1264
1265         * PlatformGTK.cmake:
1266
1267 2014-11-25  Csaba Osztrogonác  <ossy@webkit.org>
1268
1269         [EFL] REGRESSION(r176514): It made performance tests fail
1270         https://bugs.webkit.org/show_bug.cgi?id=139037
1271
1272         Reviewed by Gyuyoung Kim.
1273
1274         * WebProcess/efl/WebProcessMainEfl.cpp: Don't try to load/shutdown eail if eailLibraryPath() is empty.
1275
1276 2014-11-24  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
1277
1278         Remove Qt cruft related to tap higlighting
1279         https://bugs.webkit.org/show_bug.cgi?id=139030
1280
1281         Reviewed by Andreas Kling.
1282
1283         * CMakeLists.txt:
1284         * WebProcess/WebPage/TapHighlightController.cpp: Removed.
1285         * WebProcess/WebPage/TapHighlightController.h: Removed.
1286
1287 2014-11-24  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1288
1289         Unreviewed, EFL build fix since r176530.
1290
1291         * UIProcess/CoordinatedGraphics/WebView.cpp: Replace pointer with reference.
1292         (WebKit::WebView::processDidExit):
1293
1294 2014-11-24  Benjamin Poulain  <bpoulain@apple.com>
1295
1296         [WK2] Remove some bad stuff from WebPageProxy
1297         https://bugs.webkit.org/show_bug.cgi?id=138896
1298
1299         Reviewed by Sam Weinig.
1300
1301         The state loadStateAtProcessExit does not seem to be used anywhere.
1302
1303         The state urlAtProcessExit only exists to forward the url from
1304         WebPageProxy::resetStateAfterProcessExited() to the coordinated graphics code
1305         WebView::processDidExit().
1306
1307         * UIProcess/CoordinatedGraphics/WebView.cpp:
1308         (WebKit::WebView::processDidExit):
1309         * UIProcess/WebPageProxy.cpp:
1310         (WebKit::WebPageProxy::WebPageProxy):
1311         (WebKit::WebPageProxy::resetStateAfterProcessExited):
1312         * UIProcess/WebPageProxy.h:
1313         (WebKit::WebPageProxy::urlAtProcessExit): Deleted.
1314         (WebKit::WebPageProxy::loadStateAtProcessExit): Deleted.
1315
1316 2014-11-24  Ryuan Choi  <ryuan.choi@navercorp.com>
1317
1318         [EFL] REGRESSION(176066): It made all performance tests fail
1319         https://bugs.webkit.org/show_bug.cgi?id=138865
1320
1321         Reviewed by Csaba Osztrogonác.
1322
1323         Since r176066, there are crash because evas_gl_surface is destroyed with
1324         invalid evas_gl instance after evas_gl is destroyed.
1325
1326         * UIProcess/API/efl/EwkView.cpp:
1327         (EwkView::~EwkView):
1328
1329 2014-11-24  Alberto Garcia  <berto@igalia.com>
1330
1331         Webkit2 doesnt build on powerpc 32 bits
1332         https://bugs.webkit.org/show_bug.cgi?id=130837
1333
1334         Reviewed by Carlos Garcia Campos.
1335
1336         Check if libatomic is needed in order to use std::atomic, and add
1337         it to the list of WebKit2 libraries.
1338
1339         * PlatformGTK.cmake:
1340
1341 2014-11-24  Carlos Garcia Campos  <cgarcia@igalia.com>
1342
1343         Unreviewed. Update OptionsGTK.cmake and NEWS for 2.7.2 release.
1344
1345         * gtk/NEWS: Add release notes for 2.7.2.
1346
1347 2014-11-24  Krzysztof Czech  <k.czech@samsung.com>
1348
1349         [EFL] Utilize Eail library to support accessibility in EFL
1350         https://bugs.webkit.org/show_bug.cgi?id=137742
1351
1352         Reviewed by Gyuyoung Kim.
1353
1354         Initialize EAIL module so that all the listeners and atk-bridge started properly.
1355         Dynamic loading of EAIL help us to avoid elementary dependencies in WebKit.
1356
1357         * WebProcess/efl/WebProcessMainEfl.cpp:
1358         (eailLibraryPath): reads path provided by ACCESSIBILITY_EAIL_LIBRARY_PATH variable.
1359         (eail):
1360
1361 2014-11-24  Carlos Garcia Campos  <cgarcia@igalia.com>
1362
1363         [GTK] WebKitWebView is created with the wrong web context when using webkit_web_view_new_with_related_view()
1364         https://bugs.webkit.org/show_bug.cgi?id=139023
1365
1366         Reviewed by Sergio Villar Senin.
1367
1368         The WebKitWebContext is a construct only property, so it's always
1369         set to the default value when not provided, during the
1370         construction. When a related-view is used to create a new web view
1371         we should ensure that the same web context is used for the new web
1372         view, instead of the default. We should also ignore any web
1373         context given as construct parameter if a related view is alos provided.
1374
1375         * UIProcess/API/gtk/WebKitWebView.cpp:
1376         (webkitWebViewConstructed): Do not set the context to the default
1377         one when not given during construction.
1378         (webkitWebViewSetProperty): Only use the default web context when
1379         not provided as construct parameter and there isn't a related view.
1380
1381 2014-11-23  Carlos Garcia Campos  <cgarcia@igalia.com>
1382
1383         [GTK] Add API to override the default local storage directory
1384         https://bugs.webkit.org/show_bug.cgi?id=138828
1385
1386         Reviewed by Gustavo Noronha Silva.
1387
1388         Add WebKitWebContext:local-storage-directory construct-only
1389         property. If not provided the default will be used.
1390
1391         * UIProcess/API/gtk/WebKitWebContext.cpp:
1392         (webkitWebContextGetProperty):
1393         (webkitWebContextSetProperty):
1394         (webkitWebContextConstructed):
1395         (webkit_web_context_class_init):
1396
1397 2014-11-23  Conrad Shultz  <conrad_shultz@apple.com>
1398
1399         Page previews should have titles
1400         https://bugs.webkit.org/show_bug.cgi?id=139020
1401
1402         Reviewed by Tim Horton.
1403
1404         * UIProcess/API/Cocoa/WKViewPrivate.h:
1405         Declare -_titleForPreviewOfURL:.
1406
1407         * UIProcess/API/mac/WKView.mm:
1408         (-[WKView _titleForPreviewOfURL:]):
1409         Stub implementation.
1410
1411         * UIProcess/mac/WKActionMenuController.mm:
1412         (+[WKPagePreviewViewController previewPadding]):
1413         Account for the title height.
1414         (-[WKPagePreviewViewController loadView]):
1415         Set correct autoresize masks on some views; create and configure a title view that is
1416         horizontally and vertically centered.
1417         (-[WKActionMenuController pagePreviewViewController:titleForPreviewOfURL:]):
1418         WKPagePreviewViewControllerDelegate method; wrap -[WKView _titleForPreviewOfURL:].
1419
1420 2014-11-22  Simon Fraser  <simon.fraser@apple.com>
1421
1422         Extend WKRenderObject and WKRenderLayer with some more useful data
1423         https://bugs.webkit.org/show_bug.cgi?id=139006
1424
1425         Reviewed by Sam Weinig.
1426         
1427         Implement WKRenderLayerGetBackingStoreMemoryEstimate,
1428         WKRenderObjectCopyTextSnippet and WKRenderObjectGetTextLength for improved
1429         RenderLayer and RenderTree display in clients of the C SPI.        
1430
1431         * Shared/API/c/WKRenderLayer.cpp:
1432         (WKRenderLayerGetBackingStoreMemoryEstimate):
1433         * Shared/API/c/WKRenderLayer.h:
1434         * Shared/API/c/WKRenderObject.cpp:
1435         (WKRenderObjectCopyTextSnippet):
1436         (WKRenderObjectGetTextLength):
1437         * Shared/API/c/WKRenderObject.h:
1438         * Shared/UserMessageCoders.h:
1439         (WebKit::UserMessageEncoder::baseEncode):
1440         (WebKit::UserMessageDecoder::baseDecode):
1441         * Shared/WebRenderLayer.cpp:
1442         (WebKit::WebRenderLayer::create):
1443         (WebKit::WebRenderLayer::WebRenderLayer):
1444         * Shared/WebRenderLayer.h:
1445         (WebKit::WebRenderLayer::backingStoreMemoryEstimate):
1446         * Shared/WebRenderObject.cpp:
1447         (WebKit::WebRenderObject::create):
1448         (WebKit::WebRenderObject::WebRenderObject):
1449         * Shared/WebRenderObject.h:
1450         (WebKit::WebRenderObject::textSnippet):
1451         (WebKit::WebRenderObject::textLength):
1452
1453 2014-11-21  Jer Noble  <jer.noble@apple.com>
1454
1455         Support multiple signatures of diagnostic logging.
1456         https://bugs.webkit.org/show_bug.cgi?id=138690
1457
1458         Reviewed by Anders Carlsson.
1459
1460         Extend the existing WKBundlePageDiagnosticLoggingClient interface by deprecating
1461         the original logDiagnosticMessage client method in V1 and adding three new,
1462         explicit client methods.
1463
1464         * CMakeLists.txt:
1465         * WebKit2.xcodeproj/project.pbxproj:
1466         * WebProcess/InjectedBundle/API/c/WKBundlePageDiagnosticLoggingClient.h:
1467         * WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.cpp:
1468         (WebKit::InjectedBundlePageDiagnosticLoggingClient::logDiagnosticMessageDeprecated):
1469             Renamed from logDiagnosticMessage().
1470         (WebKit::InjectedBundlePageDiagnosticLoggingClient::logDiagnosticMessage): Pass to the client.
1471         (WebKit::InjectedBundlePageDiagnosticLoggingClient::logDiagnosticMessageWithResult): Ditto.
1472         (WebKit::InjectedBundlePageDiagnosticLoggingClient::logDiagnosticMessageWithValue): Ditto.
1473         * WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.h:
1474         * WebProcess/WebCoreSupport/WebChromeClient.h:
1475         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1476         (WebKit::WebChromeClient::logDiagnosticMessage): Deleted.
1477         * WebProcess/WebCoreSupport/WebDiagnosticLoggingClient.cpp: Added.
1478         (WebKit::WebDiagnosticLoggingClient::WebDiagnosticLoggingClient): Simple constructor.
1479         (WebKit::WebDiagnosticLoggingClient::~WebDiagnosticLoggingClient): Simple destructor.
1480         (WebKit::WebDiagnosticLoggingClient::logDiagnosticMessage): Pass to the injected bundle.
1481         (WebKit::WebDiagnosticLoggingClient::logDiagnosticMessageWithResult): Ditto.
1482         (WebKit::WebDiagnosticLoggingClient::logDiagnosticMessageWithValue): Ditto.
1483         * WebProcess/WebCoreSupport/WebDiagnosticLoggingClient.h: Added.
1484         * WebProcess/WebPage/WebPage.cpp:
1485         (WebKit::WebPage::WebPage): Initialize the new client.
1486
1487 2014-11-21  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1488
1489         Unreviewed, EFL build fix since r176459.
1490
1491         r176459 removed Timer parameter in timer callbacks only for Mac port.
1492         So this patch applies it to remaining classes for EFL port.
1493
1494         * UIProcess/API/efl/EwkView.cpp:
1495         (EwkView::EwkView):
1496         (EwkView::displayTimerFired):
1497         * UIProcess/API/efl/EwkView.h:
1498         * UIProcess/efl/TextCheckerClientEfl.cpp:
1499         (TextCheckerClientEfl::TextCheckerClientEfl):
1500         (TextCheckerClientEfl::languagesUpdateTimerFired):
1501         (TextCheckerClientEfl::spellCheckingSettingChangeTimerFired):
1502         * UIProcess/efl/TextCheckerClientEfl.h:
1503         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1504         (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
1505         (WebKit::CoordinatedLayerTreeHost::layerFlushTimerFired):
1506         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
1507
1508 2014-11-21  Chris Dumez  <cdumez@apple.com>
1509
1510         Unreviewed, iOS build fix after r176462.
1511
1512         Fix include path to TextIndicator.h to include WebCore/
1513         as it was moved.
1514
1515         * UIProcess/ios/PageClientImplIOS.mm:
1516
1517 2014-11-21  Chris Dumez  <cdumez@apple.com>
1518
1519         Unreviewed, iOS build fix after r176452.
1520
1521         dencodeFixedLengthData() now only takes 2 arguments instead of
1522         3.
1523
1524         * Shared/ios/QuickLookDocumentData.cpp:
1525         (WebKit::QuickLookDocumentData::decode):
1526
1527 2014-11-21  Zalan Bujtas  <zalan@apple.com>
1528
1529         Simple line layout: Add "show simple line layout debug borders" setting to MiniBrowser.
1530         https://bugs.webkit.org/show_bug.cgi?id=138981
1531
1532         Reviewed by Simon Fraser.
1533
1534         * UIProcess/API/Cocoa/WKPreferences.mm:
1535         (-[WKPreferences _simpleLineLayoutDebugBordersEnabled]):
1536         (-[WKPreferences _setSimpleLineLayoutDebugBordersEnabled:]):
1537         * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
1538
1539 2014-11-21  Eric Carlson  <eric.carlson@apple.com>
1540
1541         WebVideoFullscreenManagerProxy must clear pointers when invalidated
1542         https://bugs.webkit.org/show_bug.cgi?id=138982
1543
1544         Reviewed by Jer Noble.
1545
1546         * UIProcess/ios/WebVideoFullscreenManagerProxy.mm:
1547         (WebKit::WebVideoFullscreenManagerProxy::~WebVideoFullscreenManagerProxy): Call invalidate.
1548         (WebKit::WebVideoFullscreenManagerProxy::invalidate): Set WebVideoFullscreenModel and
1549             WebVideoFullscreenChangeObserver to NULL.
1550
1551 2014-11-21  Timothy Horton  <timothy_horton@apple.com>
1552
1553         Fix the build.
1554
1555         * UIProcess/API/mac/WKView.mm:
1556         (-[WKView mouseDown:]):
1557
1558 2014-11-21  Beth Dakin  <bdakin@apple.com>
1559
1560         The preview action menu item should not have a title
1561         https://bugs.webkit.org/show_bug.cgi?id=138989
1562         -and corresponding-
1563         rdar://problem/19061959
1564
1565         Reviewed by Anders Carlsson.
1566
1567         * UIProcess/mac/WKActionMenuController.mm:
1568         (-[WKActionMenuController _createActionMenuItemForTag:]):
1569
1570 2014-11-21  Conrad Shultz  <conrad_shultz@apple.com>
1571
1572         Page previews should have a margin.
1573         https://bugs.webkit.org/show_bug.cgi?id=138990
1574
1575         Reviewed by Beth Dakin.
1576
1577         Enclose the WKWebView (or client-supplied preview view) in a container slightly larger
1578         than the preview view. Adjust sizing code to accommodate the margin.
1579
1580         * UIProcess/mac/WKActionMenuController.mm:
1581         (+[WKPagePreviewViewController previewPadding]):
1582         Return the total amount of fixed padding surrounding the preview
1583         (-[WKPagePreviewViewController loadView]):
1584         Store the actual previewView in an ivar so that clients can distinguish it from the container
1585         view; wrap the preview in a container view; set frames appropriately.
1586         (-[WKActionMenuController _createPreviewPopover]):
1587         Update to reflect method rename; supplement the popover size with the fixed padding.
1588         (-[WKActionMenuController _preferredPopoverSizeWithPreviewPadding:]):
1589         Renamed from -_preferredPopoverSize; account for the fixed padding when computing the preferred size.
1590         (-[WKActionMenuController _clearPreviewPopover]):
1591         Use the previewView ivar instead of the view controller's view.
1592         (-[WKActionMenuController pagePreviewViewControllerWasClicked:]):
1593         Ditto.
1594         (-[WKActionMenuController _preferredPopoverSize]): Deleted.
1595
1596 2014-11-21  Tim Horton  <timothy_horton@apple.com>
1597
1598         REGRESSION (r176415): Can get stuck, unable to invoke any DataDetectors popovers
1599         https://bugs.webkit.org/show_bug.cgi?id=138955
1600         <rdar://problem/19056442>
1601
1602         Reviewed by Anders Carlsson.
1603
1604         * UIProcess/API/mac/WKView.mm:
1605         (-[WKView mouseDown:]):
1606         * UIProcess/mac/WKActionMenuController.h:
1607         * UIProcess/mac/WKActionMenuController.mm:
1608         (-[WKActionMenuController wkView:willHandleMouseDown:]):
1609         (-[WKActionMenuController didCloseMenu:withEvent:]):
1610         (-[WKActionMenuController menuNeedsUpdate:]):
1611         Keep track of whether we have called shouldUseActionsWithContext: on a
1612         DDActionContext; if we get a mouseDown without having seen didCloseMenu:
1613         (and thus don't properly pair the shouldUseActionsWithContext: with a didUseActions),
1614         tear down the old DDActionContext before proceeding.
1615
1616 2014-11-21  Tim Horton  <timothy_horton@apple.com>
1617
1618         REGRESSION (r176351): Parts of apple.com/contact aren't Lookup-able
1619         ​https://bugs.webkit.org/show_bug.cgi?id=138960
1620         <rdar://problem/19056715>
1621
1622         Reviewed by Anders Carlsson.
1623
1624         * UIProcess/mac/WKActionMenuController.mm:
1625         (-[WKActionMenuController _defaultMenuItemsForDataDetectedText]):
1626         (-[WKActionMenuController _defaultMenuItemsForMailtoLink]): Deleted.
1627         Use DataDetectors SPI instead of an explicit blacklist.
1628
1629 2014-11-21  Tim Horton  <timothy_horton@apple.com>
1630
1631         Crashes while encoding a TextIndicator with no contentImageWithHighlight
1632         https://bugs.webkit.org/show_bug.cgi?id=138984
1633         <rdar://problem/19063717>
1634
1635         Reviewed by Sam Weinig.
1636
1637         * Shared/WebCoreArgumentCoders.cpp:
1638         (IPC::ArgumentCoder<TextIndicatorData>::encode):
1639         (IPC::ArgumentCoder<TextIndicatorData>::decode):
1640         encodeImage doesn't deal with null images, so handle that case gracefully.
1641
1642 2014-11-21  Tim Horton  <timothy_horton@apple.com>
1643
1644         REGRESSION (r176351): Parts of apple.com/contact aren't Lookup-able
1645         https://bugs.webkit.org/show_bug.cgi?id=138960
1646         <rdar://problem/19056715>
1647
1648         Reviewed by Beth Dakin.
1649
1650         * UIProcess/mac/WKActionMenuController.mm:
1651         (-[WKActionMenuController _defaultMenuItemsForDataDetectedText]):
1652         Blacklist contact results, because they don't have useful menus. If we
1653         bail before setting up _currentActionContext, we'll still allow fallthrough
1654         to ordinary text actions, avoiding mysterious failure when a contact is detected.
1655
1656         This doesn't break the case that r176351 was intended to fix,
1657         because in that case we were detecting e.g. addresses.
1658
1659 2014-11-21  Tim Horton  <timothy_horton@apple.com>
1660
1661         Move TextIndicator{Window} to WebCore
1662         https://bugs.webkit.org/show_bug.cgi?id=138954
1663         <rdar://problem/18992185>
1664
1665         Some adjustments by Csaba Osztrogonác.
1666         Reviewed by Anders Carlsson.
1667
1668         * CMakeLists.txt:
1669         Remove TextIndicator.cpp.
1670
1671         * Scripts/webkit/messages.py:
1672         (struct_or_class):
1673         (headers_for_type):
1674         Tell messages.py that TextIndicatorData is a struct, and comes from TextIndicator.h.
1675
1676         * Shared/WebCoreArgumentCoders.h:
1677         * Shared/WebCoreArgumentCoders.cpp:
1678         (IPC::ArgumentCoder<TextIndicatorData>::encode):
1679         (IPC::ArgumentCoder<TextIndicatorData>::decode):
1680         Add argument coders for TextIndicatorData.
1681
1682         * Shared/DictionaryPopupInfo.h:        
1683         * Shared/mac/ActionMenuHitTestResult.h:
1684         * Shared/mac/ActionMenuHitTestResult.mm:
1685         * UIProcess/API/gtk/PageClientImpl.h:
1686         * UIProcess/API/gtk/PageClientImpl.cpp:
1687         * UIProcess/API/mac/WKView.mm:
1688         * UIProcess/API/mac/WKViewInternal.h:
1689         * UIProcess/CoordinatedGraphics/WebView.h:
1690         * UIProcess/CoordinatedGraphics/WebView.cpp:
1691         * UIProcess/PageClient.h:
1692         * UIProcess/WebPageProxy.cpp:
1693         * UIProcess/WebPageProxy.h:
1694         * UIProcess/WebPageProxy.messages.in:
1695         * UIProcess/ios/PageClientImplIOS.h:
1696         * UIProcess/ios/WKContentView.h:
1697         * UIProcess/mac/PageClientImpl.h:
1698         * UIProcess/mac/PageClientImpl.mm:
1699         * UIProcess/mac/WKActionMenuController.mm:
1700         * WebKit2.xcodeproj/project.pbxproj:
1701         * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
1702         * WebProcess/WebPage/FindController.cpp:
1703         * WebProcess/WebPage/WebPage.h:
1704         * WebProcess/WebPage/ios/WebPageIOS.mm:
1705         * WebProcess/WebPage/mac/WebPageMac.mm:
1706         Adjust to TextIndicator and TextIndicatorWindow's new home.
1707
1708 2014-11-21  Tim Horton  <timothy_horton@apple.com>
1709
1710         REGRESSION (r176238): Mailto links are getting preloaded, which results in a compose window
1711         https://bugs.webkit.org/show_bug.cgi?id=138972
1712
1713         Reviewed by Beth Dakin.
1714
1715         * UIProcess/mac/WKActionMenuController.mm:
1716         (-[WKActionMenuController willOpenMenu:withEvent:]):
1717         Only preload links.
1718
1719 2014-11-21  Anders Carlsson  <andersca@apple.com>
1720
1721         Remove the Timer parameters from timer callbacks
1722         https://bugs.webkit.org/show_bug.cgi?id=138974
1723
1724         Reviewed by Antti Koivisto.
1725
1726         * NetworkProcess/NetworkResourceLoader.cpp:
1727         (WebKit::NetworkResourceLoader::NetworkResourceLoader):
1728         (WebKit::NetworkResourceLoader::bufferingTimerFired):
1729         * NetworkProcess/NetworkResourceLoader.h:
1730         * Shared/WebMemorySampler.cpp:
1731         (WebKit::WebMemorySampler::WebMemorySampler):
1732         (WebKit::WebMemorySampler::sampleTimerFired):
1733         (WebKit::WebMemorySampler::stopTimerFired):
1734         * Shared/WebMemorySampler.h:
1735         * Shared/mac/RemoteLayerBackingStoreCollection.h:
1736         * Shared/mac/RemoteLayerBackingStoreCollection.mm:
1737         (WebKit::RemoteLayerBackingStoreCollection::RemoteLayerBackingStoreCollection):
1738         (WebKit::RemoteLayerBackingStoreCollection::volatilityTimerFired):
1739         * WebProcess/Plugins/PluginView.cpp:
1740         (WebKit::PluginView::PluginView):
1741         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
1742         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
1743         (WebKit::RemoteLayerTreeDrawingArea::RemoteLayerTreeDrawingArea):
1744         (WebKit::RemoteLayerTreeDrawingArea::layerFlushTimerFired):
1745         * WebProcess/WebProcess.cpp:
1746         (WebKit::WebProcess::WebProcess):
1747         (WebKit::WebProcess::processSuspensionCleanupTimerFired):
1748         (WebKit::WebProcess::nonVisibleProcessCleanupTimerFired):
1749         * WebProcess/WebProcess.h:
1750
1751 2014-11-21  Anders Carlsson  <andersca@apple.com>
1752
1753         Remove the Timer parameters from timer callbacks
1754         https://bugs.webkit.org/show_bug.cgi?id=138974
1755
1756         Reviewed by Antti Koivisto.
1757
1758         * NetworkProcess/NetworkResourceLoader.cpp:
1759         (WebKit::NetworkResourceLoader::NetworkResourceLoader):
1760         (WebKit::NetworkResourceLoader::bufferingTimerFired):
1761         * NetworkProcess/NetworkResourceLoader.h:
1762         * Shared/WebMemorySampler.cpp:
1763         (WebKit::WebMemorySampler::WebMemorySampler):
1764         (WebKit::WebMemorySampler::sampleTimerFired):
1765         (WebKit::WebMemorySampler::stopTimerFired):
1766         * Shared/WebMemorySampler.h:
1767         * Shared/mac/RemoteLayerBackingStoreCollection.h:
1768         * Shared/mac/RemoteLayerBackingStoreCollection.mm:
1769         (WebKit::RemoteLayerBackingStoreCollection::RemoteLayerBackingStoreCollection):
1770         (WebKit::RemoteLayerBackingStoreCollection::volatilityTimerFired):
1771         * WebProcess/Plugins/PluginView.cpp:
1772         (WebKit::PluginView::PluginView):
1773         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
1774         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
1775         (WebKit::RemoteLayerTreeDrawingArea::RemoteLayerTreeDrawingArea):
1776         (WebKit::RemoteLayerTreeDrawingArea::layerFlushTimerFired):
1777         * WebProcess/WebProcess.cpp:
1778         (WebKit::WebProcess::WebProcess):
1779         (WebKit::WebProcess::processSuspensionCleanupTimerFired):
1780         (WebKit::WebProcess::nonVisibleProcessCleanupTimerFired):
1781         * WebProcess/WebProcess.h:
1782
1783 2014-11-21  Antti Koivisto  <antti@apple.com>
1784
1785         Fix iOS build.
1786
1787         * Shared/ios/QuickLookDocumentData.cpp:
1788         (WebKit::QuickLookDocumentData::encode):
1789
1790 2014-11-21  Antti Koivisto  <antti@apple.com>
1791
1792         Remove alignment code from IPC coders
1793         https://bugs.webkit.org/show_bug.cgi?id=138963
1794
1795         Reviewed by Anders Carlsson.
1796
1797         Alignment code achieves nothing except making the messages somewhat bigger.
1798
1799         * Platform/IPC/ArgumentCoders.cpp:
1800         (IPC::ArgumentCoder<CString>::encode):
1801         (IPC::ArgumentCoder<CString>::decode):
1802         (IPC::ArgumentCoder<String>::encode):
1803         (IPC::decodeStringText):
1804         * Platform/IPC/ArgumentCoders.h:
1805         (IPC::SimpleArgumentCoder::encode):
1806         (IPC::SimpleArgumentCoder::decode):
1807         * Platform/IPC/ArgumentDecoder.cpp:
1808         (IPC::ArgumentDecoder::initialize):
1809         (IPC::ArgumentDecoder::bufferIsLargeEnoughToContain):
1810         (IPC::ArgumentDecoder::decodeFixedLengthData):
1811         (IPC::ArgumentDecoder::decodeVariableLengthByteArray):
1812         (IPC::ArgumentDecoder::decodeNumber):
1813         (IPC::ArgumentDecoder::decode):
1814         (IPC::roundUpToAlignment): Deleted.
1815         (IPC::alignedBufferIsLargeEnoughToContain): Deleted.
1816         (IPC::ArgumentDecoder::alignBufferPosition): Deleted.
1817         (IPC::decodeValueFromBuffer): Deleted.
1818         * Platform/IPC/ArgumentDecoder.h:
1819         (IPC::ArgumentDecoder::isInvalid):
1820         (IPC::ArgumentDecoder::markInvalid):
1821         (IPC::ArgumentDecoder::bufferIsLargeEnoughToContain):
1822         * Platform/IPC/ArgumentEncoder.cpp:
1823         (IPC::ArgumentEncoder::ArgumentEncoder):
1824         (IPC::ArgumentEncoder::grow):
1825         (IPC::ArgumentEncoder::encodeFixedLengthData):
1826         (IPC::ArgumentEncoder::encodeVariableLengthByteArray):
1827         (IPC::ArgumentEncoder::encode):
1828         * Platform/IPC/ArgumentEncoder.h:
1829         (IPC::ArgumentEncoder::buffer):
1830         (IPC::ArgumentEncoder::mutableBuffer):
1831         * Platform/IPC/DataReference.cpp:
1832         (IPC::SharedBufferDataReference::encode):
1833         * Platform/IPC/MessageEncoder.cpp:
1834         (IPC::MessageEncoder::setIsSyncMessage):
1835         (IPC::MessageEncoder::setShouldDispatchMessageWhenWaitingForSyncReply):
1836         * Platform/IPC/mac/ConnectionMac.mm:
1837         (IPC::Connection::sendOutgoingMessage):
1838
1839 2014-11-21  Anders Carlsson  <andersca@apple.com>
1840
1841         Make memoryCache() return a reference
1842         https://bugs.webkit.org/show_bug.cgi?id=138939
1843
1844         Reviewed by Antti Koivisto.
1845
1846         * WebProcess/Network/NetworkProcessConnection.cpp:
1847         (WebKit::NetworkProcessConnection::didCacheResource):
1848         * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
1849         (WebKit::WebResourceCacheManager::getCacheOrigins):
1850         (WebKit::WebResourceCacheManager::clearCacheForOrigin):
1851         * WebProcess/WebProcess.cpp:
1852         (WebKit::WebProcess::terminate):
1853         (WebKit::WebProcess::didClose):
1854         (WebKit::WebProcess::clearResourceCaches):
1855         (WebKit::getWebCoreMemoryCacheStatistics):
1856         (WebKit::WebProcess::setMemoryCacheDisabled):
1857         * WebProcess/cocoa/WebProcessCocoa.mm:
1858         (WebKit::WebProcess::platformSetCacheModel):
1859         * WebProcess/soup/WebProcessSoup.cpp:
1860         (WebKit::WebProcess::platformSetCacheModel):
1861
1862 2014-11-21  Daniel Bates  <dabates@apple.com>
1863
1864         [iOS] WebKit2 fails to build with public SDK due to missing SPI from CFNetwork, QuartzCore, MediaPlayer, XPC
1865         https://bugs.webkit.org/show_bug.cgi?id=138930
1866
1867         Reviewed by Anders Carlsson.
1868
1869         * NetworkProcess/mac/NetworkResourceLoaderMac.mm: Remove forward declaration for NSCachedURLResponse
1870         methods as this functionality was incorporated into CFNetworkSPI.h, which is included by this file.
1871         * Platform/mac/LayerHostingContext.mm: Moved QuartzCore forward declarations from this file to file
1872         QuartzCoreSPI.h and included header QuartzCoreSPI.h.
1873         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.h: Include header XPCSPI.h.
1874         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.mm: Remove forward declarations of
1875         XPC SPI since these declarations are part of XCPSPI.h, which is included by header XPCServiceEntryPoint.h.
1876         * UIProcess/API/Cocoa/WKWebView.mm: Remove unnecessary include of header QuartzCore/CARenderServer.h
1877         as it will be included by header QuartzCoreSPI.h.
1878         * UIProcess/Network/NetworkProcessProxy.cpp: Include header XPCSPI.h when building for iOS with
1879         USE(XPC_SERVICES) enabled.
1880         * UIProcess/ios/forms/WKAirPlayRoutePicker.mm: Include header MediaPlayerSPI.h instead of including
1881         MediaPlayer private headers directly. Also sort the list of #import directives.
1882
1883 2014-11-20  Dan Bernstein  <mitz@apple.com>
1884
1885         Build fix.
1886
1887         * UIProcess/ios/forms/WKAirPlayRoutePicker.mm:
1888         (-[WKAirPlayRoutePicker showAirPlayPickerIPad:fromRect:]): Cast the return value of
1889         [getMPAudioVideoRoutingPopoverControllerClass() alloc] to resolve ambiguity about which
1890         -initWithType: we are calling.
1891         (-[WKAirPlayRoutePicker showAirPlayPickerIPhone:]): Cast to resolve ambiguity.
1892         (-[WKAirPlayRoutePicker show:fromRect:]): Cast for consistency.
1893
1894 2014-11-20  Benjamin Poulain  <bpoulain@apple.com>
1895
1896         Remove the remaining vestiges of minimal-ui
1897         https://bugs.webkit.org/show_bug.cgi?id=138890
1898
1899         Reviewed by Sam Weinig.
1900
1901         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1902         (WebKit::WebFrameLoaderClient::dispatchDidFinishDocumentLoad):
1903         * WebProcess/WebPage/WebPage.cpp:
1904         (WebKit::WebPage::didCommitLoad):
1905         (WebKit::WebPage::didFinishDocumentLoad): Deleted.
1906         * WebProcess/WebPage/WebPage.h:
1907         * WebProcess/WebPage/ios/WebPageIOS.mm:
1908         (WebKit::WebPage::savePageState):
1909         (WebKit::WebPage::restorePageState):
1910         (WebKit::WebPage::viewportConfigurationChanged):
1911         (WebKit::WebPage::updateViewportSizeForCSSViewportUnits):
1912
1913 2014-11-20  Beth Dakin  <bdakin@apple.com>
1914
1915         Preview popover needs minimum and maximum sizes
1916         https://bugs.webkit.org/show_bug.cgi?id=138943
1917         -and corresponding-
1918         rdar://problem/18904651
1919
1920         Reviewed by Tim Horton.
1921
1922         Quick follow-up to get the right screen.
1923         * UIProcess/mac/WKActionMenuController.mm:
1924         (-[WKActionMenuController largestPopoverSize]):
1925
1926 2014-11-20  Beth Dakin  <bdakin@apple.com>
1927
1928         Preview popover needs minimum and maximum sizes
1929         https://bugs.webkit.org/show_bug.cgi?id=138943
1930         -and corresponding-
1931         rdar://problem/18904651
1932
1933         Reviewed by Tim Horton.
1934
1935         This patch enforces minimum and maximum popover sizes. If the popover needs to be 
1936         sized up to be above the minimum, it will end up covering some of the 
1937         _hitTestResult, so we should compute a new origin rect based on the original 
1938         event location. 
1939         * UIProcess/mac/WKActionMenuController.h:
1940         * UIProcess/mac/WKActionMenuController.mm:
1941         (-[WKActionMenuController prepareForMenu:withEvent:]):
1942         (-[WKActionMenuController _previewURLFromActionMenu:]):
1943         (-[WKActionMenuController _createPreviewPopover]):
1944         (-[WKActionMenuController largestPopoverSize]):
1945         (-[WKActionMenuController _preferredPopoverSize]):
1946         (-[WKActionMenuController _preferredSizeForPopoverPresentedFromOriginRect:]): Deleted.
1947
1948 2014-11-20  Conrad Shultz  <conrad_shultz@apple.com>
1949
1950         Clicks on previews can be recognized multiple times
1951         https://bugs.webkit.org/show_bug.cgi?id=138944
1952
1953         Reviewed by Tim Horton.
1954
1955         * UIProcess/mac/WKActionMenuController.mm:
1956         (-[WKPagePreviewViewController _clickRecognized:]):
1957         Only dispatch the delegate message on the appropriate gesture recognizer state transition.
1958
1959 2014-11-20  Conrad Shultz  <conrad_shultz@apple.com>
1960
1961         Clients should be able to customize preview click behavior
1962         https://bugs.webkit.org/show_bug.cgi?id=138940
1963
1964         Reviewed by Tim Horton.
1965
1966         * UIProcess/API/Cocoa/WKViewPrivate.h:
1967         Declare -_handleClickInPreviewView:URL:.
1968
1969         * UIProcess/API/mac/WKView.mm:
1970         (-[WKView _handleClickInPreviewView:URL:]):
1971         Extracted from -[WKActionMenuController pagePreviewViewControllerWasClicked:].
1972
1973         * UIProcess/mac/WKActionMenuController.mm:
1974         (-[WKActionMenuController pagePreviewViewControllerWasClicked:]):
1975         Extract code to -[WKView _handleClickInPreviewView:URL:].
1976
1977 2014-11-20  Csaba Osztrogonác  <ossy@webkit.org>
1978
1979         URTBF after r176420 to fix non Apple builds.
1980
1981         * WebProcess/WebProcess.cpp:
1982         (WebKit::WebProcess::shouldPlugInAutoStartFromOrigin):
1983
1984 2014-11-20  Anders Carlsson  <andersca@apple.com>
1985
1986         WebPlugInClient::m_webPage can never be null, use a reference
1987         https://bugs.webkit.org/show_bug.cgi?id=138937
1988
1989         Reviewed by Andreas Kling.
1990
1991         * WebProcess/WebCoreSupport/WebPlugInClient.cpp:
1992         (WebKit::WebPlugInClient::WebPlugInClient):
1993         (WebKit::WebPlugInClient::shouldAutoStartFromOrigin):
1994         * WebProcess/WebCoreSupport/WebPlugInClient.h:
1995         * WebProcess/WebPage/WebPage.cpp:
1996         (WebKit::WebPage::WebPage):
1997         * WebProcess/WebProcess.cpp:
1998         (WebKit::WebProcess::shouldPlugInAutoStartFromOrigin):
1999         * WebProcess/WebProcess.h:
2000
2001 2014-11-20  Tim Horton  <timothy_horton@apple.com>
2002
2003         TextIndicator should have getters for TextIndicator::Data properties
2004         https://bugs.webkit.org/show_bug.cgi?id=138920
2005
2006         Reviewed by Beth Dakin.
2007
2008         Instead of having clients reach into the data(), add getters.
2009         Remove frameRect(), which is identical to the textBoundingRectInWindowCoordinates getter.
2010         Remove declarations for draw/drawContentImage, which were already removed.
2011
2012         * Shared/TextIndicator.cpp:
2013         (WebKit::TextIndicator::frameRect): Deleted.
2014         * Shared/TextIndicator.h:
2015         (WebKit::TextIndicator::textBoundingRectInWindowCoordinates):
2016         (WebKit::TextIndicator::textRectsInBoundingRectCoordinates):
2017         (WebKit::TextIndicator::contentImageScaleFactor):
2018         (WebKit::TextIndicator::contentImageWithHighlight):
2019         (WebKit::TextIndicator::contentImage):
2020         * UIProcess/mac/TextIndicatorWindow.mm:
2021         (-[WKTextIndicatorView initWithFrame:textIndicator:margin:]):
2022         (-[WKTextIndicatorView presentWithCompletionHandler:]):
2023         (WebKit::TextIndicatorWindow::setTextIndicator):
2024
2025 2014-11-20  Tim Horton  <timothy_horton@apple.com>
2026
2027         Cancel DataDetectors menu earlier if we know it can't be presented
2028         https://bugs.webkit.org/show_bug.cgi?id=138922
2029         <rdar://problem/18950441>
2030
2031         Reviewed by Beth Dakin.
2032
2033         * UIProcess/mac/WKActionMenuController.mm:
2034         (-[WKActionMenuController willOpenMenu:withEvent:]):
2035         If we end up with a menu with no items, don't change selection or anything.
2036
2037         (-[WKActionMenuController menuNeedsUpdate:]):
2038         Move our call to shouldUseActionsWithContext earlier, to menuNeedsUpdate,
2039         and use a bigger hammer (removeAllItems).
2040
2041 2014-11-20  Tim Horton  <timothy_horton@apple.com>
2042
2043         Don't use a TextIndicator BounceAndCrossfade transition if the selection highlight is never shown
2044         https://bugs.webkit.org/show_bug.cgi?id=138919
2045         <rdar://problem/19042207>
2046
2047         Reviewed by Beth Dakin.
2048
2049         * Shared/TextIndicator.h:
2050         (WebKit::TextIndicator::presentationTransition):
2051         (WebKit::TextIndicator::setPresentationTransition):
2052         Add getter and setter pair.
2053
2054         * UIProcess/mac/WKActionMenuController.mm:
2055         (-[WKActionMenuController _defaultMenuItemsForDataDetectedText]):
2056         If the selection highlight will never be shown because there's only a single menu item,
2057         use a normal bounce animation instead of bounce + crossfade.
2058
2059 2014-11-20  Beth Dakin  <bdakin@apple.com>
2060
2061         Invalid message WebPageProxy.DidPerformDictionaryLookup on Google stocks result
2062         https://bugs.webkit.org/show_bug.cgi?id=138568
2063         -and corresponding-
2064         rdar://problem/18904600
2065
2066         Reviewed by Tim Horton.
2067
2068         Skip images for lookup.
2069         * WebProcess/WebPage/mac/WebPageMac.mm:
2070         (WebKit::WebPage::performDictionaryLookupForRange):
2071
2072 2014-11-20  Daniel Bates  <dabates@apple.com>
2073
2074         [iOS] Add more ENABLE({TOUCH_EVENTS, IOS_TOUCH_EVENTS})-guards in WebKit2
2075         https://bugs.webkit.org/show_bug.cgi?id=138928
2076
2077         Reviewed by Simon Fraser.
2078
2079         * UIProcess/ios/WKContentViewInteraction.h:
2080         * UIProcess/ios/WKContentViewInteraction.mm:
2081         (-[WKContentView setupInteraction]):
2082         * WebProcess/WebPage/WebPage.cpp:
2083         (WebKit::WebPage::didCommitLoad):
2084         * WebProcess/WebPage/WebPage.h:
2085         * WebProcess/WebPage/ios/WebPageIOS.mm:
2086         (WebKit::WebPage::sendTapHighlightForNodeIfNecessary):
2087
2088 2014-11-20  Anders Carlsson  <andersca@apple.com>
2089
2090         Add -[WKWebView loadData:MIMEType:textEncodingName:baseURL:]
2091         https://bugs.webkit.org/show_bug.cgi?id=138929
2092         <rdar://problem/18683802>
2093
2094         Reviewed by Dan Bernstein.
2095
2096         Also, re-implement -[WKWebView loadHTMLString:baseURL:] in terms of this newly added function
2097         and assume a UTF-8 encoding. This matches what Legacy WebKit does.
2098
2099         * UIProcess/API/Cocoa/WKWebView.h:
2100         * UIProcess/API/Cocoa/WKWebView.mm:
2101         (-[WKWebView loadHTMLString:baseURL:]):
2102         (-[WKWebView loadData:MIMEType:textEncodingName:baseURL:]):
2103         * UIProcess/WebPageProxy.cpp:
2104         (WebKit::WebPageProxy::loadData):
2105         * UIProcess/WebPageProxy.h:
2106
2107 2014-11-20  Antti Koivisto  <antti@apple.com>
2108
2109         Remove alignment code from cache coders
2110         https://bugs.webkit.org/show_bug.cgi?id=138927
2111
2112         Failed to land this file.
2113
2114         * NetworkProcess/cache/NetworkCacheCoders.cpp:
2115         (WebKit::NetworkCacheCoder<CString>::encode):
2116         (WebKit::NetworkCacheCoder<CString>::decode):
2117         (WebKit::NetworkCacheCoder<String>::encode):
2118         (WebKit::decodeStringText):
2119         (WebKit::NetworkCacheCoder<WebCore::CertificateInfo>::encode):
2120         (WebKit::NetworkCacheCoder<WebCore::CertificateInfo>::decode):
2121         * NetworkProcess/cache/NetworkCacheCoders.h:
2122
2123 2014-11-20  Antti Koivisto  <antti@apple.com>
2124
2125         Remove alignment code from cache coders
2126         https://bugs.webkit.org/show_bug.cgi?id=138927
2127
2128         Reviewed by Anders Carlsson.
2129
2130         Alignment code doesn't do anything useful, wastes space and produces wrong results
2131         if the encoder and decoder buffers don't have the same 8-byte alignment.
2132
2133         * NetworkProcess/cache/NetworkCacheDecoder.cpp:
2134         (WebKit::NetworkCacheDecoder::NetworkCacheDecoder):
2135         (WebKit::NetworkCacheDecoder::bufferIsLargeEnoughToContain):
2136         (WebKit::NetworkCacheDecoder::decodeFixedLengthData):
2137         (WebKit::NetworkCacheDecoder::decodeNumber):
2138         (WebKit::roundUpToAlignment): Deleted.
2139         (WebKit::alignedBufferIsLargeEnoughToContain): Deleted.
2140         (WebKit::NetworkCacheDecoder::alignBufferPosition): Deleted.
2141         * NetworkProcess/cache/NetworkCacheDecoder.h:
2142         (WebKit::NetworkCacheDecoder::currentOffset):
2143         (WebKit::NetworkCacheDecoder::isInvalid):
2144         (WebKit::NetworkCacheDecoder::markInvalid):
2145         (WebKit::NetworkCacheDecoder::bufferIsLargeEnoughToContain):
2146         * NetworkProcess/cache/NetworkCacheEncoder.cpp:
2147         (WebKit::NetworkCacheEncoder::grow):
2148         (WebKit::NetworkCacheEncoder::encodeFixedLengthData):
2149         (WebKit::NetworkCacheEncoder::encodeNumber):
2150         (WebKit::roundUpToAlignment): Deleted.
2151         * NetworkProcess/cache/NetworkCacheEncoder.h:
2152
2153 2014-11-20  Csaba Osztrogonác  <ossy@webkit.org>
2154
2155         [GTK] URTBF after r176363.
2156
2157         * UIProcess/API/gtk/PageClientImpl.cpp:
2158         (WebKit::PageClientImpl::setTextIndicator):
2159         * UIProcess/API/gtk/PageClientImpl.h:
2160
2161 2014-11-19  Yongjun Zhang  <yongjun_zhang@apple.com>
2162
2163         Don't track sub-resources that are started after main frame progress has completed.
2164         https://bugs.webkit.org/show_bug.cgi?id=138582
2165
2166         Reviewed by Sam Weinig.
2167
2168         After main frame progress has finished, starting loading a sub-resource shouldn't affect
2169         UI process's view of page loading status (i.e., the page has already completed loading
2170         and the progress shouldn't change). To achive that, don't track the subresources that
2171         are started after the main frame has finished, except for those triggered by user interaction.
2172
2173         * WebProcess/WebCoreSupport/WebProgressTrackerClient.cpp:  Notify WebPage that the main frame progress
2174             has started or finished.
2175         (WebKit::WebProgressTrackerClient::progressStarted):
2176         (WebKit::WebProgressTrackerClient::progressFinished):
2177         * WebProcess/WebPage/WebPage.cpp:
2178         (WebKit::WebPage::WebPage):
2179         (WebKit::WebPage::addResourceRequest): Don't track the resource request if it is initiated after
2180             the main frame is loaded and it is not triggered by user interaction.
2181         (WebKit::WebPage::removeResourceRequest):
2182         * WebProcess/WebPage/WebPage.h: Rename m_networkResourceRequestIdentifiers to m_trackedNetworkResourceRequestIdentifiers.
2183         (WebKit::WebPage::setMainFrameProgressCompleted):
2184
2185 2014-11-19  Sun-woo Nam  <sunny.nam@samsung.com>
2186
2187         [EFL] Fix build failure since r176363.
2188         https://bugs.webkit.org/show_bug.cgi?id=138903
2189
2190         Reviewed by Gyuyoung Kim.
2191
2192         The parameter for animation on setTextIndicator() was removed on 'PageClient' class.
2193
2194         * UIProcess/CoordinatedGraphics/WebView.cpp:
2195         (WebKit::WebView::setTextIndicator):
2196         * UIProcess/CoordinatedGraphics/WebView.h:
2197
2198 2014-11-19  Timothy Horton  <timothy_horton@apple.com>
2199
2200         Try to fix the iOS build
2201
2202         * WebProcess/WebPage/ios/WebPageIOS.mm:
2203         (WebKit::WebPage::performDictionaryLookupForSelection):
2204         (WebKit::WebPage::performDictionaryLookupForRange):
2205
2206 2014-11-19  Timothy Horton  <timothy_horton@apple.com>
2207
2208         Fix the 32-bit build
2209
2210         * UIProcess/mac/TextIndicatorWindow.mm:
2211         (WebKit::TextIndicatorWindow::setTextIndicator):
2212
2213 2014-11-19  Tim Horton  <timothy_horton@apple.com>
2214
2215         Add an optional entry transition (from selection highlight) to TextIndicator
2216         https://bugs.webkit.org/show_bug.cgi?id=138856
2217         <rdar://problem/18840128>
2218
2219         Reviewed by Anders Carlsson.
2220
2221         * Shared/TextIndicator.cpp:
2222         (WebKit::outsetIndicatorRectIncludingShadow):
2223         (WebKit::TextIndicator::createWithRange):
2224         (WebKit::snapshotSelectionWithHighlight):
2225         (WebKit::TextIndicator::createWithSelectionInFrame):
2226         (WebKit::TextIndicator::frameRect):
2227         (WebKit::TextIndicator::Data::encode):
2228         (WebKit::TextIndicator::Data::decode):
2229         Remove TextIndicator::draw and related functions; drawing is handled entirely
2230         by the TextIndicatorWindow now, and TextIndicator just stores the required data.
2231
2232         Unify outsetIndicatorRectIncludingShadow.
2233
2234         Add an argument to createWithRange/createWithSelectionInFrame to indicate
2235         if the TextIndicator should transition from the selection highlight to
2236         the yellow bubble.
2237
2238         If we're doing the transition, paint the selection into a second bitmap,
2239         without forcing the text to black and without hiding the blue highlight.
2240
2241         Encode/decode the second bitmap.
2242
2243         * Shared/TextIndicator.h:
2244         * UIProcess/mac/TextIndicatorWindow.h:
2245         * UIProcess/mac/TextIndicatorWindow.mm:
2246         (-[WKTextIndicatorView initWithFrame:textIndicator:margin:transitionFromSelectionColor:]):
2247         (-[WKTextIndicatorView presentWithCompletionHandler:]):
2248         (-[WKTextIndicatorView hideWithCompletionHandler:]):
2249         (-[WKTextIndicatorView isFlipped]):
2250         (WebKit::TextIndicatorWindow::TextIndicatorWindow):
2251         (WebKit::TextIndicatorWindow::setTextIndicator):
2252         (WebKit::TextIndicatorWindow::closeWindow):
2253         (WebKit::TextIndicatorWindow::startFadeOutTimerFired):
2254         Re-implement the bounce animation using CoreAnimation instead of
2255         the WKSI-based WKWindowBounceAnimation*.
2256
2257         * WebProcess/WebPage/WebPage.h:
2258         * WebProcess/WebPage/mac/WebPageMac.mm:
2259         (WebKit::WebPage::performDictionaryLookupForSelection):
2260         (WebKit::WebPage::performDictionaryLookupOfCurrentSelection):
2261         (WebKit::WebPage::performDictionaryLookupForRange):
2262         (WebKit::WebPage::performActionMenuHitTestAtLocation):
2263         * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
2264         Use the aforementioned transition animation for performDictionaryLookupOfCurrentSelection,
2265         the context menu lookup item, and for Data Detectors.
2266
2267 2014-11-19  Anders Carlsson  <andersca@apple.com>
2268
2269         Add a version of API::Data::createWithoutCopying that takes an NSData
2270         https://bugs.webkit.org/show_bug.cgi?id=138893
2271
2272         Reviewed by Dan Bernstein.
2273
2274         * Shared/APIData.h:
2275         * Shared/Cocoa/APIDataCocoa.mm: Added.
2276         (API::Data::createWithoutCopying):
2277         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
2278         (-[WKBrowsingContextController loadData:MIMEType:textEncodingName:baseURL:userData:]):
2279         (releaseNSData): Deleted.
2280         * WebKit2.xcodeproj/project.pbxproj:
2281         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
2282         (-[WKWebProcessPlugInBrowserContextController _setFormDelegate:]):
2283
2284 2014-11-19  Beth Dakin  <bdakin@apple.com>
2285
2286         Invoking an action menu on a selection should result in the text menu
2287         https://bugs.webkit.org/show_bug.cgi?id=138892
2288         -and corresponding-
2289         rdar://problem/18996776
2290
2291         Reviewed by Tim Horton.
2292
2293         * UIProcess/mac/WKActionMenuController.mm:
2294         (-[WKActionMenuController _defaultMenuItems]):
2295
2296 2014-11-19  Anders Carlsson  <andersca@apple.com>
2297
2298         Fix iOS build.
2299
2300         * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
2301
2302 2014-11-19  Anders Carlsson  <andersca@apple.com>
2303
2304         Rename two Cocoa-only .cpp files to .mm.
2305
2306         Rubber-stamped by Sam Weinig.
2307
2308         * Shared/APIWebArchive.mm: Renamed from Source/WebKit2/Shared/APIWebArchive.cpp.
2309         * Shared/APIWebArchiveResource.mm: Renamed from Source/WebKit2/Shared/APIWebArchiveResource.cpp.
2310         * WebKit2.xcodeproj/project.pbxproj:
2311
2312 2014-11-19  Beth Dakin  <bdakin@apple.com>
2313
2314         Data detected results with no menu items should not fall through to regular text 
2315         action menus
2316         https://bugs.webkit.org/show_bug.cgi?id=138887
2317         -and corresponding-
2318         rdar://problem/18971616
2319
2320         Reviewed by Tim Horton.
2321
2322         * UIProcess/mac/WKActionMenuController.mm:
2323         (-[WKActionMenuController _defaultMenuItems]):
2324
2325 2014-11-19  Daniel Bates  <dabates@apple.com>
2326
2327         [iOS] Make WebKit build with public iOS SDK
2328         https://bugs.webkit.org/show_bug.cgi?id=136863
2329
2330         Reviewed by David Kilzer.
2331
2332         * NetworkProcess/cocoa/NetworkProcessCocoa.mm: Moved CFNetwork forward declarations
2333         from this file to file CFNetworkSPI.h and included header CFNetworkSPI.h.
2334         * NetworkProcess/mac/NetworkDiskCacheMonitor.mm: Ditto.
2335         * NetworkProcess/mac/NetworkResourceLoaderMac.mm: Ditto.
2336         * UIProcess/API/Cocoa/WKProcessPool.mm: Ditto.
2337         * UIProcess/mac/WebContextMac.mm: Ditto.
2338         * WebProcess/cocoa/WebProcessCocoa.mm: Ditto.
2339
2340 2014-11-19  Anders Carlsson  <andersca@apple.com>
2341
2342         Add APIs for customizing the user agent
2343         https://bugs.webkit.org/show_bug.cgi?id=138881
2344         rdar://problem/17233981
2345
2346         Reviewed by Dan Bernstein.
2347
2348         * UIProcess/API/Cocoa/WKWebView.h:
2349         * UIProcess/API/Cocoa/WKWebView.mm:
2350         (-[WKWebView initWithFrame:configuration:]):
2351         (-[WKWebView customUserAgent]):
2352         (-[WKWebView setCustomUserAgent:]):
2353         (-[WKWebView _customUserAgent]):
2354         (-[WKWebView _setCustomUserAgent:]):
2355         * UIProcess/API/Cocoa/WKWebViewConfiguration.h:
2356         * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
2357         (LazyInitialized::set):
2358         (-[WKWebViewConfiguration copyWithZone:]):
2359         (defaultApplicationNameForUserAgent):
2360         (-[WKWebViewConfiguration applicationNameForUserAgent]):
2361         (-[WKWebViewConfiguration setApplicationNameForUserAgent:]):
2362
2363 2014-11-19  Simon Fraser  <simon.fraser@apple.com>
2364
2365         [WK2 UI-side compositing] Initialize RemoteLayerTreeTransaction properties which are unset on Mac
2366         https://bugs.webkit.org/show_bug.cgi?id=138877
2367
2368         Reviewed by Tim Horton.
2369         
2370         These data members are unused on Mac, but still encoded, so initialize them with
2371         reasonable values.
2372
2373         * Shared/mac/RemoteLayerTreeTransaction.mm:
2374         (WebKit::RemoteLayerTreeTransaction::RemoteLayerTreeTransaction):
2375
2376 2014-11-19  Enrica Casucci  <enrica@apple.com>
2377
2378         Refactor iOS selection gestures.
2379         https://bugs.webkit.org/show_bug.cgi?id=138720
2380         rdar://problem/18964359
2381
2382         Reviewed by Benjamin Poulain.
2383
2384         This is a first step towards refactoring the selection gestures code.
2385         It introduces more general selection movement functions that can be used to build
2386         the gestures.
2387
2388         * UIProcess/WebPageProxy.h:
2389         * UIProcess/ios/WKContentViewInteraction.h:
2390         * UIProcess/ios/WKContentViewInteraction.mm:
2391         (toWKTextGranularity):
2392         (toWKSelectionDirection):
2393         (-[WKContentView selectPositionAtPoint:completionHandler:]):
2394         (-[WKContentView selectPositionAtBoundary:inDirection:fromPoint:completionHandler:]):
2395         (-[WKContentView selectTextWithGranularity:atPoint:completionHandler:]):
2396         (-[WKContentView beginSelectionInDirection:completionHandler:]):
2397         (-[WKContentView updateSelectionWithExtentPoint:completionHandler:]):
2398         (-[WKContentView _startAssistingNode:userIsInteracting:blurPreviousNode:userObject:]):
2399         * UIProcess/ios/WebPageProxyIOS.mm:
2400         (WebKit::WebPageProxy::selectTextWithGranularityAtPoint):
2401         (WebKit::WebPageProxy::selectPositionAtBoundaryWithDirection):
2402         (WebKit::WebPageProxy::selectPositionAtPoint):
2403         (WebKit::WebPageProxy::beginSelectionInDirection):
2404         (WebKit::WebPageProxy::updateSelectionWithExtentPoint):
2405         * WebProcess/WebPage/WebPage.cpp:
2406         (WebKit::WebPage::WebPage):
2407         * WebProcess/WebPage/WebPage.h:
2408         * WebProcess/WebPage/WebPage.messages.in:
2409         * WebProcess/WebPage/ios/WebPageIOS.mm:
2410         (WebKit::WebPage::selectWithGesture):
2411         (WebKit::WebPage::visiblePositionInFocusedNodeForPoint):
2412         (WebKit::WebPage::selectPositionAtPoint):
2413         (WebKit::WebPage::selectPositionAtBoundaryWithDirection):
2414         (WebKit::WebPage::selectTextWithGranularityAtPoint):
2415         (WebKit::WebPage::beginSelectionInDirection):
2416         (WebKit::WebPage::updateSelectionWithExtentPoint):
2417
2418 2014-11-19  Simon Fraser  <simon.fraser@apple.com>
2419
2420         [WK2 UI-side Compositing] Fix the position and scroll indicator of the UI-side tiled scrolling indicator
2421         https://bugs.webkit.org/show_bug.cgi?id=138876
2422
2423         Reviewed by Beth Dakin.
2424         
2425         Fix the position of the tiled scrolling indicator in MiniBrowser by taking top
2426         content offset into account.
2427         
2428         On Mac, pass the current scroll position back to the UI process via the RemoteLayerTreeTransaction
2429         so that we can use it to show the correctly scroll offset in the indicator. This is temporary until
2430         Mac does UI-side scrolling.
2431
2432         * Shared/mac/RemoteLayerTreeTransaction.h:
2433         (WebKit::RemoteLayerTreeTransaction::scrollPosition):
2434         (WebKit::RemoteLayerTreeTransaction::setScrollPosition):
2435         * Shared/mac/RemoteLayerTreeTransaction.mm:
2436         (WebKit::RemoteLayerTreeTransaction::encode):
2437         (WebKit::RemoteLayerTreeTransaction::decode):
2438         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h:
2439         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
2440         (WebKit::RemoteLayerTreeDrawingAreaProxy::commitLayerTree):
2441         (WebKit::RemoteLayerTreeDrawingAreaProxy::indicatorLocation):
2442         (WebKit::RemoteLayerTreeDrawingAreaProxy::updateDebugIndicator):
2443         * WebProcess/WebPage/WebPage.cpp:
2444         (WebKit::WebPage::willCommitLayerTree):
2445
2446 2014-11-19  Michael Catanzaro  <mcatanzaro@igalia.com>
2447
2448         [GTK] Error in documentation of webkit_print_operation_get_page_setup()
2449         https://bugs.webkit.org/show_bug.cgi?id=138868
2450
2451         Reviewed by Carlos Garcia Campos.
2452
2453         Fix copypaste error in documentation of
2454         webkit_print_operation_get_page_setup().
2455
2456         * UIProcess/API/gtk/WebKitPrintOperation.cpp:
2457
2458 2014-11-19  Mark Rowe  <mrowe@apple.com>
2459
2460         Remove an unused file.
2461
2462         * version.plist: Removed.
2463
2464 2014-11-18  Benjamin Poulain  <bpoulain@apple.com>
2465
2466         [WK2] Remove the minimalUI code from the UIProcess
2467         https://bugs.webkit.org/show_bug.cgi?id=138819
2468
2469         Reviewed by Sam Weinig.
2470
2471         It looks like the only interface we have to keep alive is
2472         [WKWebView _overrideLayoutParametersWithMinimumLayoutSize:minimumLayoutSizeForMinimalUI:maximumUnobscuredSizeOverride:].
2473
2474         Clean up everything else, it is a pile of useless code.
2475
2476         * UIProcess/API/Cocoa/WKUIDelegatePrivate.h:
2477         * UIProcess/API/Cocoa/WKWebView.mm:
2478         (-[WKWebView _didCommitLoadForMainFrame]):
2479         (-[WKWebView _didCommitLayerTree:]):
2480         (-[WKWebView _frameOrBoundsChanged]):
2481         (-[WKWebView _didRelaunchProcess]):
2482         (-[WKWebView _beginAnimatedResizeWithUpdates:]):
2483         (-[WKWebView _overrideLayoutParametersWithMinimumLayoutSize:minimumLayoutSizeForMinimalUI:maximumUnobscuredSizeOverride:]):
2484         (-[WKWebView _overrideLayoutParametersWithMinimumLayoutSize:maximumUnobscuredSizeOverride:]):
2485         (-[WKWebView _setUsesMinimalUI:]): Deleted.
2486         (-[WKWebView _usesMinimalUI]): Deleted.
2487         (activeMinimumLayoutSizeForMinimalUI): Deleted.
2488         (-[WKWebView _setMinimumLayoutSizeOverrideForMinimalUI:]): Deleted.
2489         * UIProcess/API/Cocoa/WKWebViewInternal.h:
2490         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
2491         * UIProcess/API/ios/WKViewIOS.mm:
2492         (-[WKView _frameOrBoundsChanged]):
2493         * UIProcess/PageClient.h:
2494         * UIProcess/WebPageProxy.h:
2495         * UIProcess/WebPageProxy.messages.in:
2496         * UIProcess/ios/PageClientImplIOS.h:
2497         * UIProcess/ios/PageClientImplIOS.mm:
2498         (WebKit::PageClientImpl::setUsesMinimalUI): Deleted.
2499         * UIProcess/ios/WebPageProxyIOS.mm:
2500         (WebKit::WebPageProxy::dynamicViewportSizeUpdate):
2501         (WebKit::WebPageProxy::setViewportConfigurationMinimumLayoutSizeForMinimalUI): Deleted.
2502         (WebKit::WebPageProxy::setUsesMinimalUI): Deleted.
2503         * WebProcess/WebPage/WebPage.h:
2504         * WebProcess/WebPage/WebPage.messages.in:
2505         * WebProcess/WebPage/ios/WebPageIOS.mm:
2506         (WebKit::WebPage::viewportPropertiesDidChange):
2507         (WebKit::WebPage::dynamicViewportSizeUpdate):
2508         (WebKit::WebPage::setViewportConfigurationMinimumLayoutSizeForMinimalUI): Deleted.
2509
2510 2014-11-18  Conrad Shultz  <conrad_shultz@apple.com>
2511
2512         Unreviewed. Revision to the build fix in r176304.
2513
2514         The guarded method should simply be in the !TARGET_OS_IPHONE block.
2515
2516         * UIProcess/API/Cocoa/WKViewPrivate.h:
2517
2518 2014-11-18  Benjamin Poulain  <bpoulain@apple.com>
2519
2520         iOS8 new "slow tap" heuristic fires mouse compat events despite preventDefault on touchend
2521         https://bugs.webkit.org/show_bug.cgi?id=137069
2522         rdar://problem/18481464
2523
2524         Reviewed by Simon Fraser.
2525
2526         On WebKit2, we let UIWebTouchEventsGestureRecognizer and _UIWebHighlightLongPressGestureRecognizer
2527         run concurrently. This causes a race with an incorrect behavior:
2528         1) If UIWebTouchEventsGestureRecognizer does not cancel the native gestures on start.
2529         2) _UIWebHighlightLongPressGestureRecognizer starts after highlightDelay.
2530         3) When the finger leaves the screen, both gestures end.
2531         -> If the touch end sent to JavaScript in [3] ask the priority over native events, that no longer stops
2532            the _UIWebHighlightLongPressGestureRecognizer.
2533
2534         The two gesture recognizers can run in any order, there is no guarantee on which one runs first.
2535         To solve the bug, I must make sure the _UIWebHighlightLongPressGestureRecognizer never trigger a click
2536         if the page wants the event.
2537
2538         To solve the order problem, I use the fact that event recognition goes in two phases for
2539         non cancelled events:
2540         1) Update the gesture recognizers.
2541         2) Trigger the actions.
2542
2543         I do not know the order of recognizers in [1], but I know both have run before [2] is executed.
2544         I use that to stop _UIWebHighlightLongPressGestureRecognizer from ending with a click in the case of the bug:
2545         1) When _UIWebHighlightLongPressGestureRecognizer starts, I set _highlightLongPressCanClick signaling
2546            the gesture can end normally. This is done on a timer and not direct input so I don't really have to worry
2547            about a race here.
2548         2) When processing the touch event for UIWebTouchEventsGestureRecognizer, I reset the flag _highlightLongPressCanClick
2549            if the page wants the event.
2550         3) When the actions of _UIWebHighlightLongPressGestureRecognizer are processed, the touch event
2551            has already been processed by the page and the flag has been cleared if needed.
2552
2553         * UIProcess/ios/WKContentViewInteraction.h:
2554         * UIProcess/ios/WKContentViewInteraction.mm:
2555         (-[WKContentView _webTouchEvent:preventsNativeGestures:]):
2556         (-[WKContentView _highlightLongPressRecognized:]):
2557
2558 2014-11-18  Ryosuke Niwa  <rniwa@webkit.org>
2559
2560         iOS build fix after r176299. This method is not defined in WKViewIOS.mm.
2561
2562         * UIProcess/API/Cocoa/WKViewPrivate.h:
2563
2564 2014-11-18  David Kilzer  <ddkilzer@apple.com>
2565
2566         FeatureDefines.xcconfig: Switch from using PLATFORM_NAME to SDK selectors
2567         <http://webkit.org/b/138813>
2568
2569         Reviewed by Mark Rowe.
2570
2571         * Configurations/FeatureDefines.xcconfig: Switch to using SDK
2572         selectors.
2573
2574 2014-11-18  Conrad Shultz  <conrad_shultz@apple.com>
2575
2576         Give clients a way to cancel preview popovers
2577         https://bugs.webkit.org/show_bug.cgi?id=138855
2578
2579         Reviewed by Tim Horton.
2580
2581         Promote -[WKView _dismissActionMenuPopovers] from internal to private.
2582
2583         * UIProcess/API/Cocoa/WKViewPrivate.h:
2584         * UIProcess/API/mac/WKView.mm:
2585         (-[WKView _dismissActionMenuPopovers]):
2586         * UIProcess/API/mac/WKViewInternal.h:
2587
2588 2014-11-18  Chris Dumez  <cdumez@apple.com>
2589
2590         Add a setting to toggle DOMTimer throttling support
2591         https://bugs.webkit.org/show_bug.cgi?id=138844
2592         <rdar://problem/19020874>
2593
2594         Reviewed by Andreas Kling.
2595
2596         Add a setting to disable DOM timers throttling, in order to help
2597         developers determine if a specific issue is caused by timer
2598         throttling.
2599
2600         * Shared/WebPreferencesDefinitions.h:
2601         * UIProcess/API/C/WKPreferences.cpp:
2602         (WKPreferencesSetDOMTimersThrottlingEnabled):
2603         (WKPreferencesGetDOMTimersThrottlingEnabled):
2604         * UIProcess/API/C/WKPreferencesRefPrivate.h:
2605         * WebProcess/WebPage/WebPage.cpp:
2606         (WebKit::WebPage::updatePreferences):
2607
2608 2014-11-18  Geoffrey Garen  <ggaren@apple.com>
2609
2610         Removed the custom allocator for ListHashSet nodes
2611         https://bugs.webkit.org/show_bug.cgi?id=138841
2612
2613         Reviewed by Andreas Kling.
2614
2615         Uses of ListHashSet no longer need to declare an inline capacity,
2616         since that was only used to specify the capacity of the custom allocator.
2617
2618         * UIProcess/Plugins/PluginInfoStore.cpp:
2619         (WebKit::PluginInfoStore::loadPluginsIfNecessary):
2620
2621 2014-11-18  Eric Carlson  <eric.carlson@apple.com>
2622
2623         Unreviewed build fix after r176283.
2624
2625         * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
2626
2627 2014-11-18  Tim Horton  <timothy_horton@apple.com>
2628
2629         Avoid re-encoding action menu image data
2630         https://bugs.webkit.org/show_bug.cgi?id=138817
2631         <rdar://problem/18840382>
2632
2633         Reviewed by Anders Carlsson.
2634
2635         * Shared/mac/ActionMenuHitTestResult.h:
2636         * Shared/mac/ActionMenuHitTestResult.mm:
2637         (WebKit::ActionMenuHitTestResult::encode):
2638         (WebKit::ActionMenuHitTestResult::decode):
2639         Store and encode a SharedMemory with the raw encoded image data,
2640         instead of re-painting the image into a ShareableBitmap.
2641
2642         * UIProcess/mac/WKActionMenuController.mm:
2643         (-[WKActionMenuController _hitTestResultImage]):
2644         (-[WKActionMenuController _defaultMenuItemsForImage]):
2645         (-[WKActionMenuController _copyImage:]):
2646         (-[WKActionMenuController _addImageToPhotos:]):
2647         (-[WKActionMenuController _defaultMenuItems]):
2648         (-[WKActionMenuController _canAddMediaToPhotos]): Deleted.
2649         Build a temporary filename from a UUID and the image's desired extension.
2650         Use the Image's encoded data instead of re-encoding it with CGImageDestination.
2651         Build an image menu only if we have an image, URL, data, and extension.
2652
2653         * WebProcess/WebPage/mac/WebPageMac.mm:
2654         (WebKit::WebPage::performActionMenuHitTestAtLocation):
2655
2656 2014-11-18  Eric Carlson  <eric.carlson@apple.com>
2657
2658         [iOS] allow host application to opt-out of alternate fullscreen
2659         https://bugs.webkit.org/show_bug.cgi?id=138787
2660
2661         Reviewed by Sam Weinig.
2662         
2663         "allowsAlternateFullscreen" doesn't need to be in the public WKWebView header.
2664
2665         * UIProcess/API/Cocoa/WKWebView.mm:
2666         (-[WKWebView initWithFrame:configuration:]): allowsAlternateFullscreen -> _allowsAlternateFullscreen.
2667
2668         * UIProcess/API/Cocoa/WKWebViewConfiguration.h: Remove allowsAlternateFullscreen.
2669         * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
2670         (-[WKWebViewConfiguration _allowsAlternateFullscreen]): New.
2671         (-[WKWebViewConfiguration _setAllowsAlternateFullscreen:]): New.
2672
2673         * UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h: Declare _allowsAlternateFullscreen.
2674
2675 2014-11-18  Myles C. Maxfield  <mmaxfield@apple.com>
2676
2677         Subclass CachedFont for SVG fonts
2678         https://bugs.webkit.org/show_bug.cgi?id=138686
2679
2680         Reviewed by Simon Fraser.
2681
2682         Re-landing due to flakey bots.
2683
2684         Update for enum type.
2685
2686         * WebProcess/Network/WebResourceLoadScheduler.cpp:
2687         (WebKit::maximumBufferingTime):
2688
2689 2014-11-18  Chris Dumez  <cdumez@apple.com>
2690
2691         Update the Vector API to deal with unsigned types instead of size_t
2692         https://bugs.webkit.org/show_bug.cgi?id=138824
2693
2694         Reviewed by Andreas Kling.
2695
2696         Update code base to fix build errors related to the typing changes
2697         in the Vector API (size_t -> unsigned).
2698
2699         * Platform/IPC/ArgumentCoders.h:
2700         * Platform/IPC/DataReference.h:
2701
2702 2014-11-18  Commit Queue  <commit-queue@webkit.org>
2703
2704         Unreviewed, rolling out r176264.
2705         https://bugs.webkit.org/show_bug.cgi?id=138837
2706
2707         caused many test failures (Requested by litherum on #webkit).
2708
2709         Reverted changeset:
2710
2711         "Subclass CachedFont for SVG fonts"
2712         https://bugs.webkit.org/show_bug.cgi?id=138686
2713         http://trac.webkit.org/changeset/176264
2714
2715 2014-11-18  Daniel Bates  <dabates@apple.com>
2716
2717         [iOS] Libdispatch, Dyld, IOKit, Mach, NSPointerFunctions, MobileGestalt
2718         SPI are not available in public SDK
2719         https://bugs.webkit.org/show_bug.cgi?id=138802
2720
2721         Reviewed by David Kilzer.
2722
2723         Include headers DispatchSPI.h and MachVMSPI.h.h instead of including
2724         libdispatch and Mach headers directly.
2725
2726         * Platform/mac/SharedMemoryMac.cpp:
2727         * UIProcess/ios/WebMemoryPressureHandlerIOS.mm:
2728
2729 2014-11-18  Myles C. Maxfield  <mmaxfield@apple.com>
2730
2731         Subclass CachedFont for SVG fonts
2732         https://bugs.webkit.org/show_bug.cgi?id=138686
2733
2734         Reviewed by Simon Fraser.
2735
2736         Update for enum type.
2737
2738         * WebProcess/Network/WebResourceLoadScheduler.cpp:
2739         (WebKit::maximumBufferingTime):
2740
2741 2014-11-18  Carlos Garcia Campos  <cgarcia@igalia.com>
2742
2743         [GTK] Add API to create a WebKitWebContext
2744         https://bugs.webkit.org/show_bug.cgi?id=138826
2745
2746         Reviewed by Gustavo Noronha Silva.
2747
2748         We have always used a default web context without providing API to
2749         create others. The main reason was that nobody requested it and we
2750         haven't needed it either. The main problem of the default web
2751         context is that you can't configure anything during
2752         construction. This hasn't been a problem so far because all the
2753         web context configuration we expose in the API can be configured
2754         after construction. But now we need to expose API to allow the
2755         user to configure the local storage directory, which is a
2756         construct only configuration. The default web context was also a
2757         problem for our unit tests, because sharing the same context made
2758         it difficult to ensure tests cases are independent to each other.
2759
2760         * UIProcess/API/gtk/WebKitGeolocationProvider.cpp:
2761         (WebKitGeolocationProvider::~WebKitGeolocationProvider): Reset the
2762         provider to avoid crashes when web context is destroyed and a new
2763         one is created.
2764         * UIProcess/API/gtk/WebKitWebContext.cpp:
2765         (webkitWebContextConstructed): Add constructed implementation to
2766         create the WebContext and initialize it.
2767         (webkitWebContextDispose): Detach web context clients to avoid
2768         crashes when a client callback is called on a disposed WebKitWebContext.
2769         (webkit_web_context_class_init): Initialize gettext, add
2770         constructed implementation and add the pointer to the vmethods
2771         when creating signals.
2772         (createDefaultWebContext): Simply create a WebKitWebContext.
2773         (webkit_web_context_new): New public method to create a WebKitWebContext.
2774         (injectedBundleFilename): Deleted.
2775         * UIProcess/API/gtk/WebKitWebContext.h: Add virtual methods for
2776         signals, so that users can inherit from WebKitWebContext and
2777         override the virtual methods.
2778         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbol.
2779
2780 2014-11-18  Carlos Alberto Lopez Perez  <clopez@igalia.com>
2781
2782         [SOUP] [GnuTLS] Don't use a SSL3.0 record version in client hello.
2783         https://bugs.webkit.org/show_bug.cgi?id=138794
2784
2785         Reviewed by Sergio Villar Senin.
2786
2787         It seems that following POODLE many sites incorrectly banned SSL 3.0
2788         record packet versions. Since GnuTLS uses a SSL 3.0 record to
2789         advertise TLS 1.2, they are effectively banning it even if it doesn't
2790         advertise SSL 3.0. That is a server issue, but it can be worked around
2791         by using the modifier %LATEST_RECORD_VERSION.
2792
2793         With this modifier, GnuTLS will use the latest TLS version record
2794         in client hello instead of using the default SSL 3.0.
2795
2796         * NetworkProcess/EntryPoint/unix/NetworkProcessMain.cpp:
2797         (main):
2798         * WebProcess/EntryPoint/unix/WebProcessMain.cpp:
2799         (main):
2800
2801 2014-11-17  Conrad Shultz  <conrad_shultz@apple.com>
2802
2803         Page previews should be loaded sooner
2804         https://bugs.webkit.org/show_bug.cgi?id=138814
2805
2806         Reviewed by Tim Horton.
2807
2808         * UIProcess/mac/WKActionMenuController.mm:
2809         (-[WKActionMenuController willOpenMenu:withEvent:]):
2810         Send -_createPreviewPopover..
2811         (-[WKActionMenuController _previewURLFromActionMenu:]):
2812         Relocate some logic to the new -_createPreviewPopover; gate early return on popover visibility.
2813         (-[WKActionMenuController _createPreviewPopover]):
2814         Renamed from -_createPreviewPopoverForURL:originRect:; explicitly send -loadView to warm up the preview view.
2815         (-[WKActionMenuController _createPreviewPopoverForURL:originRect:]): Deleted.
2816
2817 2014-11-17  Beth Dakin  <bdakin@apple.com>
2818
2819         Preview is sometimes dismissed too early
2820         https://bugs.webkit.org/show_bug.cgi?id=138811
2821         -and corresponding-
2822         rdar://problem/18900839
2823
2824         Reviewed by Tim Horton.
2825
2826         Don’t make the popover transient until didCloseMenu: time.
2827         * UIProcess/mac/WKActionMenuController.mm:
2828         (-[WKActionMenuController didCloseMenu:withEvent:]):
2829         (-[WKActionMenuController _createPreviewPopoverForURL:originRect:]):
2830
2831 2014-11-17  Daniel Bates  <dabates@apple.com>
2832
2833         Unreviewed, rolling out r176232.
2834
2835         Broke the Mac build. Will investigate offline.
2836
2837         Reverted changeset:
2838
2839         "[iOS] Libdispatch, Dyld, IOKit, Mach, NSPointerFunctions,
2840         MobileGestalt"
2841         https://bugs.webkit.org/show_bug.cgi?id=138802
2842         http://trac.webkit.org/changeset/176232
2843
2844 2014-11-17  Daniel Bates  <dabates@apple.com>
2845
2846         [iOS] Libdispatch, Dyld, IOKit, Mach, NSPointerFunctions, MobileGestalt
2847         SPI are not available in public SDK
2848         https://bugs.webkit.org/show_bug.cgi?id=138802
2849
2850         Reviewed by David Kilzer.
2851
2852         Include headers DispatchSPI.h and MachVMSPI.h.h instead of including
2853         libdispatch and Mach headers directly.
2854
2855         * Platform/mac/SharedMemoryMac.cpp:
2856         * UIProcess/ios/WebMemoryPressureHandlerIOS.mm:
2857
2858 2014-11-17  Daniel Bates  <dabates@apple.com>
2859
2860         [iOS] CoreText and CoreUI SPI are not available in public SDK
2861         https://bugs.webkit.org/show_bug.cgi?id=138760
2862
2863         Reviewed by David Kilzer.
2864
2865         Include header CoreTextSPI.h instead of including CoreText private headers.
2866
2867         * WebProcess/WebPage/WebPage.cpp:
2868
2869 2014-11-17  Tim Horton  <timothy_horton@apple.com>
2870
2871         DataDetectors PageOverlay callbacks can come in to the wrong overlay
2872         https://bugs.webkit.org/show_bug.cgi?id=138801
2873         <rdar://problem/18991369>
2874
2875         Reviewed by Anders Carlsson.
2876
2877         We can call dataDetectorsDidHideUI on the wrong (or no) PageOverlay,
2878         because it's possible to have another performActionMenuHitTestAtLocation
2879         between the first one and the dataDetectorsDid*UI that correspond to it.
2880
2881         To make sure that the callbacks come to the right PageOverlay, plumb
2882         an integer ID through all of the callbacks and find the overlay based on that.
2883
2884         * Shared/mac/ActionMenuHitTestResult.h:
2885         Store the ID of the PageOverlay that overrode data detection.
2886
2887         * UIProcess/mac/WKActionMenuController.mm:
2888         (-[WKActionMenuController _defaultMenuItemsForDataDetectedText]):
2889         Send the ID back to the Web process when replying from DD callbacks.
2890
2891         * WebProcess/WebPage/WebPage.h:
2892         * WebProcess/WebPage/WebPage.messages.in:
2893         * WebProcess/WebPage/mac/WebPageMac.mm:
2894         (WebKit::WebPage::performActionMenuHitTestAtLocation):
2895         Store the ID of the PageOverlay that overrode data detection instead of
2896         keeping the PageOverlay itself.
2897
2898         (WebKit::WebPage::dataDetectorsDidPresentUI):
2899         (WebKit::WebPage::dataDetectorsDidChangeUI):
2900         (WebKit::WebPage::dataDetectorsDidHideUI):
2901         Find and reply to the correct page overlay.
2902
2903 2014-11-17  Beth Dakin  <bdakin@apple.com>
2904
2905         Whitespace action menus should focus the HitTestResult and create an insertion 
2906         point
2907         https://bugs.webkit.org/show_bug.cgi?id=138786
2908         -and corresponding-
2909         rdar://problem/18944893
2910
2911         Reviewed by Tim Horton.
2912
2913         Whitespace menus should cause the HitTestResult to be focused, and they should set 
2914         the selection based on the HitTest location.
2915         * UIProcess/WebPageProxy.cpp:
2916         (WebKit::WebPageProxy::focusAndSelectLastActionMenuHitTestResult):
2917         * UIProcess/WebPageProxy.h:
2918         * UIProcess/mac/WKActionMenuController.mm:
2919         (-[WKActionMenuController isMenuForTextContent]):
2920         (-[WKActionMenuController willOpenMenu:withEvent:]):
2921         * WebProcess/WebPage/WebPage.h:
2922         * WebProcess/WebPage/WebPage.messages.in:
2923         * WebProcess/WebPage/mac/WebPageMac.mm:
2924         (WebKit::WebPage::performActionMenuHitTestAtLocation):
2925         (WebKit::WebPage::focusAndSelectLastActionMenuHitTestResult):
2926
2927 2014-11-17  Daniel Bates  <dabates@apple.com>
2928
2929         [iOS] AVKit and MediaPlayer SPI are not available in public SDK
2930         https://bugs.webkit.org/show_bug.cgi?id=138756
2931
2932         Reviewed by Eric Carlson.
2933
2934         Include header MPAVRoutingControllerSPI.h instead of including the
2935         private header MPAVRoutingController.h.
2936
2937         Additionally, sort the list of #import directives.
2938
2939         * UIProcess/ios/forms/WKAirPlayRoutePicker.mm:
2940
2941 2014-11-17  Daniel Bates  <dabates@apple.com>
2942
2943         [iOS] QuartzCore SPI not available in public SDK
2944         https://bugs.webkit.org/show_bug.cgi?id=138751
2945
2946         Reviewed by David Kilzer.
2947
2948         * Shared/mac/RemoteLayerBackingStore.mm: Move CALayer forward declaration
2949         from this file to file QuartzCoreSPI.h and include header QuartzCoreSPI.h.
2950         * Shared/mac/RemoteLayerTreePropertyApplier.mm: Ditto.
2951         * UIProcess/API/Cocoa/WKWebView.mm: Include header QuartzCoreSPI.h instead
2952         of including QuartzCore headers directly.
2953         * UIProcess/ios/ViewGestureControllerIOS.mm: Ditto.
2954         * UIProcess/ios/WKContentView.mm: Ditto.
2955         * UIProcess/ios/WKPDFPageNumberIndicator.mm: Ditto.
2956         * UIProcess/mac/ViewGestureControllerMac.mm: Move CAFilter forward declarations
2957         from this file to fileQuartzCoreSPI.h and include header QuartzCoreSPI.h.
2958         Also sort the list of #import directives.
2959         * UIProcess/mac/ViewSnapshotStore.mm: Include header QuartzCoreSPI.h
2960         instead of including QuartzCore headers directly.
2961
2962 2014-11-17  Eric Carlson  <eric.carlson@apple.com>
2963
2964         [iOS] allow host application to opt-out of alternate fullscreen
2965         https://bugs.webkit.org/show_bug.cgi?id=138787
2966
2967         Reviewed by Darin Adler.
2968
2969         * Shared/WebPreferencesDefinitions.h:
2970         * UIProcess/API/C/WKPreferences.cpp:
2971         (WKPreferencesSetAllowsAlternateFullscreen):
2972         (WKPreferencesGetAllowsAlternateFullscreen):
2973         * UIProcess/API/C/WKPreferencesRefPrivate.h:
2974         * UIProcess/API/Cocoa/WKWebView.mm:
2975         (-[WKWebView initWithFrame:configuration:]):
2976         * UIProcess/API/Cocoa/WKWebViewConfiguration.h:
2977         * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
2978         (-[WKWebViewConfiguration init]):
2979         (-[WKWebViewConfiguration copyWithZone:]):
2980         * WebProcess/WebPage/WebPage.cpp:
2981         (WebKit::WebPage::updatePreferences):
2982
2983 2014-11-16  Benjamin Poulain  <bpoulain@apple.com>
2984
2985         Start cleaning up minimal UI from WKWebView
2986         https://bugs.webkit.org/show_bug.cgi?id=138725
2987
2988         Reviewed by Sam Weinig.
2989
2990         Start removing the old update path for minimumLayoutSize/maximumUnobscuredSize.
2991
2992         Unfortunately, I cannot remove everything yet because the clients still did not have
2993         alternatives to [_overrideLayoutParametersWithMinimumLayoutSize:minimumLayoutSizeForMinimalUI:maximumUnobscuredSizeOverride]
2994         and might change the minimal UI options.
2995
2996         This patch adds [_overrideLayoutParametersWithMinimumLayoutSize:maximumUnobscuredSizeOverride] to move
2997         in the right direction. Next we'll udpate the client code and get rid of all the useless code.
2998
2999         * UIProcess/API/Cocoa/WKWebView.mm:
3000         (-[WKWebView _overrideLayoutParametersWithMinimumLayoutSize:minimumLayoutSizeForMinimalUI:maximumUnobscuredSizeOverride:]):
3001         (-[WKWebView _overrideLayoutParametersWithMinimumLayoutSize:maximumUnobscuredSizeOverride:]):
3002         (-[WKWebView _minimumLayoutSizeOverrideForMinimalUI]): Deleted.
3003         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
3004
3005 2014-11-16  Zan Dobersek  <zdobersek@igalia.com>
3006
3007         [TexMap] Add typecasting support for GraphicsLayerTextureMapper
3008         https://bugs.webkit.org/show_bug.cgi?id=138741
3009
3010         Reviewed by Martin Robinson.
3011
3012         Replace uses of toTextureMapperLayer() with downcasting and
3013         calling the GraphicsLayerTextureMapper::layer() method.
3014
3015         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
3016         (WebKit::LayerTreeHostGtk::initialize):
3017         (WebKit::LayerTreeHostGtk::layerFlushTimerFired):
3018         (WebKit::LayerTreeHostGtk::compositeLayersToContext):
3019
3020 2014-11-16  Tim Horton  <timothy_horton@apple.com>
3021
3022         Use TextIndicator instead of the built in Lookup highlight
3023         https://bugs.webkit.org/show_bug.cgi?id=138775
3024         <rdar://problem/18953982>
3025
3026         Follow-up to r176164.
3027
3028         * UIProcess/API/mac/WKView.mm:
3029         (-[WKView dealloc]):
3030         (-[WKView initWithFrame:context:configuration:webView:]):
3031         * UIProcess/mac/PageClientImpl.mm:
3032         (WebKit::PageClientImpl::didPerformDictionaryLookup):
3033         Include the softlinking macros directly in the files they're used
3034         in, as they're supposed to be used.
3035
3036 2014-11-16  Tim Horton  <timothy_horton@apple.com>
3037
3038         Use TextIndicator instead of the built in Lookup highlight
3039         https://bugs.webkit.org/show_bug.cgi?id=138775
3040         <rdar://problem/18953982>
3041
3042         Reviewed by Anders Carlsson.
3043
3044         In order to make the yellow highlight for Lookup more accurately match the
3045         painted content of the web page (in light of e.g. Web fonts, and interesting
3046         text features that only WebKit implements and cannot round-trip through
3047         NSAttributedString), use a TextIndicator instead of the built-in Lookup
3048         highlight where possible.
3049
3050         * Configurations/BaseTarget.xcconfig:
3051         Make it possible to include headers from private frameworks. This matches WebCore.
3052
3053         * Shared/DictionaryPopupInfo.cpp:
3054         (WebKit::DictionaryPopupInfo::encode):
3055         (WebKit::DictionaryPopupInfo::decode):
3056         * Shared/DictionaryPopupInfo.h:
3057         Include the attributed string inside the DictionaryPopupInfo, instead of
3058         as a secondary argument to DidPerformDictionaryLookup.
3059         Add a TextIndicator to DictionaryPopupInfo, which can be used to highlight
3060         the text in the UI process.
3061
3062         * UIProcess/API/mac/WKView.mm:
3063         (-[WKView dealloc]):
3064         (-[WKView viewDidMoveToWindow]):
3065         (-[WKView _dictionaryLookupPopoverWillClose:]):
3066         (-[WKView _setTextIndicator:fadeOut:animate:animationCompletionHandler:]):
3067         (-[WKView _setTextIndicator:fadeOut:animate:]):
3068         (-[WKView initWithFrame:context:configuration:webView:]):
3069         (+[WKView hideWordDefinitionWindow]):
3070         * UIProcess/API/mac/WKViewInternal.h:
3071         Adopt the Lookup SPI header.
3072         If we have the requisite API, register the notification that Lookup sends
3073         when the popover closes, and hook that up to hide the text indicator.
3074         Add a version of _setTextIndicator: that takes an animation completion handler.
3075
3076         * UIProcess/PageClient.h:
3077         * UIProcess/WebPageProxy.h:
3078         * UIProcess/WebPageProxy.messages.in:
3079         * UIProcess/ios/WebPageProxyIOS.mm:
3080         (WebKit::WebPageProxy::didPerformDictionaryLookup):
3081         * UIProcess/mac/WebPageProxyMac.mm:
3082         (WebKit::WebPageProxy::didPerformDictionaryLookup):
3083         Adjust to the new didPerformDictionaryLookup signature.
3084
3085         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
3086         (InitWebCoreSystemInterface):
3087         Remove a WKSI import.
3088
3089         * UIProcess/mac/PageClientImpl.h:
3090         * UIProcess/mac/PageClientImpl.mm:
3091         (WebKit::PageClientImpl::didPerformDictionaryLookup):
3092         If we have the requisite API, disable Lookup's built-in highlight and
3093         present a TextIndicator instead.
3094         We currently have to run the animations serially (first bounce the TextIndicator,
3095         then animate in the Lookup popover) because the act of adding the Lookup popover
3096         blocks us from getting any animation events for the TextIndicator, and breaks
3097         the bounce. We could also fix this by using a threaded animation for the TextIndicator,
3098         but it's not clear that it's safe to do so.
3099
3100         (WebKit::PageClientImpl::dismissDictionaryLookupPanel):
3101         When explicitly dismissing the Lookup panel, also hide the text indicator.
3102
3103         * UIProcess/mac/TextIndicatorWindow.h:
3104         * UIProcess/mac/TextIndicatorWindow.mm:
3105         (WebKit::TextIndicatorWindow::setTextIndicator):
3106         Store the completion handler.
3107
3108         (WebKit::TextIndicatorWindow::bounceAnimationDidEnd):
3109         Call the completion handler when the animation completes.
3110
3111         * UIProcess/mac/WKActionMenuController.mm:
3112         (-[WKActionMenuController _createActionMenuItemForTag:]):
3113         Disable the Lookup item if lookup is not available.
3114
3115         * WebProcess/Plugins/PDF/PDFPlugin.mm:
3116         (WebKit::PDFPlugin::showDefinitionForAttributedString):
3117         Adjust to the new didPerformDictionaryLookup signature.
3118         Since PDFPlugin can't trivially repaint the required part of the PDF,
3119         we don't build a TextIndicator. This will result in PDFPlugin continuing
3120         to use Lookup's built-in highlight.
3121         
3122         * WebProcess/WebPage/mac/WebPageMac.mm:
3123         (WebKit::WebPage::performDictionaryLookupForRange):
3124         Build a TextIndicator from the Lookup range and pass it along with
3125         the DictionaryPopupInfo.
3126
3127 2014-11-15  David Kilzer  <ddkilzer@apple.com>
3128
3129         REGRESSION (r176137): iOS build broke after moving DataDetectors scanning code to WebCore
3130
3131         This regressed with the following commit:
3132
3133             Move DataDetectors scanning code to WebCore
3134             https://bugs.webkit.org/show_bug.cgi?id=138731
3135             <rdar://problem/18877535>
3136
3137         * Shared/mac/ActionMenuHitTestResult.mm: Add PLATFORM(MAC) check
3138         around the entire implementation since it it unused on iOS.
3139
3140 2014-11-14  Anders Carlsson  <andersca@apple.com>
3141
3142         Raise an exception if -[WKWebView initWithFrame:configuration:] is passed a nil configuration
3143         https://bugs.webkit.org/show_bug.cgi?id=138757
3144
3145         Reviewed by Simon Fraser.
3146
3147         * UIProcess/API/Cocoa/WKWebView.mm:
3148         (-[WKWebView initWithFrame:configuration:]):
3149
3150 2014-11-15  Carlos Garcia Campos  <cgarcia@igalia.com>
3151
3152         Network process crash when running http/tests/appcache/fallback.html
3153         https://bugs.webkit.org/show_bug.cgi?id=138740
3154
3155         Reviewed by Alexey Proskuryakov.
3156
3157         It happens because ResourceHandle::continueWillSendRequest() is
3158         called with a null request. We could handle that case in the
3159         ResourceHandle, but the thing is tha the behaviour is
3160         not the same for async loads, or when loading in the web
3161         process. In WebResourceLoader::willSendRequest(),
3162         ResourceRequest::willSendRequest() is called, and cancels the load
3163         if the client returns a null request. In this case, the
3164         ResourceLoader is detached and WebResourceLoader::willSendRequest()
3165         returns early without sending the ContinueWillSendRequest message
3166         to the network process. However, for synchronous loads,
3167         NetworkResourceLoader::continueWillSendRequest() is always called.
3168
3169         Fixes http/tests/appcache/fallback.html for GTK port when using
3170         the network process.
3171
3172         * NetworkProcess/NetworkResourceLoader.cpp:
3173         (WebKit::NetworkResourceLoader::continueWillSendRequest): Do not
3174         call ResourceHandle::continueWillSendRequest() if the client
3175         request is null, since the load is going to be cancelled.
3176
3177 2014-11-15  Tim Horton  <timothy_horton@apple.com>
3178
3179         Implement data detectors and mailto action menus for WebKit1
3180         https://bugs.webkit.org/show_bug.cgi?id=138765
3181         <rdar://problem/18877535>
3182
3183         Reviewed by Beth Dakin.
3184
3185         * UIProcess/mac/WKActionMenuController.mm:
3186         (-[WKActionMenuController _defaultMenuItemsForMailtoLink]):
3187
3188 2014-11-14  Tim Horton  <timothy_horton@apple.com>
3189
3190         Remove pre-[DDActionContext contextForView:...] fallback path
3191         https://bugs.webkit.org/show_bug.cgi?id=138735
3192         <rdar://problem/18982046>
3193
3194         Reviewed by Simon Fraser.
3195
3196         * UIProcess/mac/WKActionMenuController.mm:
3197         (-[WKActionMenuController willOpenMenu:withEvent:]):
3198         (-[WKActionMenuController didCloseMenu:withEvent:]):
3199         (-[WKActionMenuController _defaultMenuItemsForDataDetectedText]):
3200         (hasDataDetectorsCompletionAPI): Deleted.
3201         Remove the now-unnecessary fallback path.
3202
3203 2014-11-14  Tim Horton  <timothy_horton@apple.com>
3204
3205         Frequent crashes under actionContextForResultAtPoint
3206         https://bugs.webkit.org/show_bug.cgi?id=138761
3207         <rdar://problem/18990684>
3208
3209         Reviewed by Dean Jackson.
3210
3211         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
3212         (PageOverlayClientImpl::actionContextForResultAtPoint):
3213         Initialize apiRange.
3214
3215 2014-11-14  Daniel Bates  <dabates@apple.com>
3216
3217         [iOS] CoreGraphics SPI not available in public SDK
3218         https://bugs.webkit.org/show_bug.cgi?id=138709
3219
3220         Reviewed by David Kilzer.
3221
3222         Include header CoreGraphicsSPI.h instead of including headers of
3223         CoreGraphics directly.
3224
3225         * UIProcess/API/Cocoa/WKWebView.mm:
3226         * UIProcess/ios/WKScrollView.mm:
3227
3228 2014-11-14  Tim Horton  <timothy_horton@apple.com>
3229
3230         Move DataDetectors scanning code to WebCore
3231         https://bugs.webkit.org/show_bug.cgi?id=138731
3232         <rdar://problem/18877535>
3233
3234         Reviewed by Anders Carlsson.
3235
3236         Move DataDetectors scanning code to WebCore, so that both WebKits can use it.
3237
3238         * Shared/TextIndicator.cpp:
3239         (WebKit::TextIndicator::createWithRange):
3240         Move createWithRange in from WebPageMac's textIndicatorForRange.
3241
3242         (WebKit::TextIndicator::createWithSelectionInFrame):
3243         * Shared/TextIndicator.h:
3244         * WebProcess/WebPage/WebFrame.cpp:
3245         (WebKit::WebFrame::createSelectionSnapshot):
3246         * WebProcess/WebPage/WebFrame.h:
3247         Constify some things.
3248
3249         * WebProcess/WebPage/mac/WebPageMac.mm:
3250         (WebKit::WebPage::performActionMenuHitTestAtLocation):
3251         Avoid using the DD result if it didn't come with a non-null Range.
3252         Make use of detectItemAroundHitTestResult and TextIndicator::createWithRange.
3253
3254         (WebKit::scanForDataDetectedItems): Deleted.
3255         (WebKit::textIndicatorForRange): Deleted.
3256         Moved these two to other places.
3257
3258 2014-11-14  Dan Bernstein  <mitz@apple.com>
3259
3260         <rdar://problem/18978497> Wrong (off-by-1) navigation snapshots shown after a mix of gesture and button back/forward navigation
3261         https://bugs.webkit.org/show_bug.cgi?id=138753
3262
3263         Reviewed by Tim Horton.
3264
3265         Rather than having the UI process record a snapshot jut before the Web Content process’s
3266         notion of its current back/forward list item changes, have the UI process record a snapshot
3267         right before its own current back/forward list item changes. This ensures that the right
3268         snapshot gets attached to the right item in the UI process.
3269
3270         * UIProcess/WebBackForwardList.cpp:
3271         (WebKit::WebBackForwardList::addItem): If there is a current item, record a navigation
3272         snapshot of it before making the new item current.
3273         (WebKit::WebBackForwardList::goToItem): If there is a current item, record a navigation
3274         snapshot of it before making another item current.
3275
3276         * UIProcess/WebPageProxy.cpp:
3277         (WebKit::WebPageProxy::willChangeCurrentHistoryItemForMainFrame): Deleted.
3278         * UIProcess/WebPageProxy.h:
3279
3280         * UIProcess/WebPageProxy.messages.in: Removed willChangeCurrentHistoryItemForMainFrame
3281         message.
3282
3283         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
3284         (WebKit::WebFrameLoaderClient::willChangeCurrentHistoryItem): Deleted.
3285         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h: Removed declaration of
3286         willChangeCurrentHistoryItem override.
3287
3288         * WebProcess/WebPage/WebPage.cpp:
3289         (WebKit::WebPage::willChangeCurrentHistoryItemForMainFrame): Deleted.
3290         * WebProcess/WebPage/WebPage.h:
3291
3292 2014-11-14  Dan Bernstein  <mitz@apple.com>
3293
3294         Add some tracing to help investigating <rdar://problem/18905383> [iOS] Crash due to null m_webPageProxyForBackForwardListForCurrentSwipe in ViewGestureController::endSwipeGesture
3295         https://bugs.webkit.org/show_bug.cgi?id=138750
3296
3297         Reviewed by Tim Horton.
3298
3299         Emit trace messages at various points, and log them prior to crashing if the error condition
3300         occurs. Otherwise, clear the trace messages.
3301
3302         * UIProcess/ios/ViewGestureControllerIOS.mm:
3303         (WebKit::addLogEntry): Helper function that adds a message, including a time stamp and a
3304         backtrace, to m_logEntries.
3305         (WebKit::dumpLogEntries): Helper function that logs everything in m_logEntries.
3306         (WebKit::ViewGestureController::beginSwipeGesture): Add a log entry.
3307         (WebKit::ViewGestureController::endSwipeGesture): If
3308         m_webPageProxyForBackForwardListForCurrentSwipe is null, dump the log entries just before
3309         crashing. Otherwise, clear m_logEntries.
3310         (WebKit::ViewGestureController::willCommitPostSwipeTransitionLayerTree): Add a log entry.
3311         (WebKit::ViewGestureController::removeSwipeSnapshot): Add a log entry.
3312         * UIProcess/mac/ViewGestureController.h: Defined ENABLE_VIEW_GESTURE_CONTROLLER_TRACING,
3313         and added m_logEntries member variable.
3314
3315 2014-11-14  Beth Dakin  <bdakin@apple.com>
3316
3317         URLs for some videos are not valid URLs, should not be exposed to action menu
3318         https://bugs.webkit.org/show_bug.cgi?id=138746
3319         -and corresponding-
3320         rdar://problem/18941927
3321
3322         Reviewed by Tim Horton.
3323
3324         If the video cannot be downloaded, that is also an indication that the URL of the 
3325         video will not be valid on its own. In these cases, we should share or copy the 
3326         main page’s URL.
3327         * UIProcess/mac/WKActionMenuController.mm:
3328         (-[WKActionMenuController _defaultMenuItemsForVideo]):
3329         (-[WKActionMenuController _copyVideoURL:]):
3330
3331 2014-11-14  Carlos Garcia Campos  <cgarcia@igalia.com>
3332
3333         [SOUP] Encode/Decode allowCookies in ResourceRequest
3334         https://bugs.webkit.org/show_bug.cgi?id=138730
3335
3336         Reviewed by Sergio Villar Senin.
3337
3338         We are not sending this information to the network process, making
3339         cookies always available. Fixes
3340         http/tests/xmlhttprequest/cross-origin-no-authorization.html when
3341         network process is enabled.
3342
3343         * Shared/soup/WebCoreArgumentCodersSoup.cpp:
3344         (IPC::ArgumentCoder<ResourceRequest>::encodePlatformData):
3345         (IPC::ArgumentCoder<ResourceRequest>::decodePlatformData):
3346
3347 2014-11-14  Zan Dobersek  <zdobersek@igalia.com>
3348
3349         Unreviewed build fix for the GTK+ port using Clang.
3350
3351         * UIProcess/gtk/RedirectedXCompositeWindow.h: Include the <functional>
3352         header for the use of std::function<>.
3353
3354 2014-11-13  Dan Bernstein  <mitz@apple.com>
3355
3356         Two WKWebView internal methods are implemented in a category
3357         https://bugs.webkit.org/show_bug.cgi?id=138728
3358
3359         Reviewed by Tim HOrton.
3360
3361         Moved the implementations from the category to the class.
3362
3363         * UIProcess/API/Cocoa/WKWebView.mm:
3364         (-[WKWebView _ignoresNonWheelMouseEvents]):
3365         (-[WKWebView _setIgnoresNonWheelMouseEvents:]):
3366
3367 2014-11-13  Myles C. Maxfield  <mmaxfield@apple.com>
3368
3369         Move FontMac and FontCacheMac off of WKSI
3370         https://bugs.webkit.org/show_bug.cgi?id=138633
3371
3372         Reviewed by Simon Fraser.
3373
3374         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
3375         (InitWebCoreSystemInterface):
3376         * mac/WebKit2.order:
3377
3378 2014-11-13  Eric Carlson  <eric.carlson@apple.com>
3379
3380         Context menus should not offer the "Download video" option for videos that cannot 
3381         be downloaded
3382         https://bugs.webkit.org/show_bug.cgi?id=138530
3383         -and corresponding-
3384         rdar://problem/18919130
3385
3386         Reviewed by Tim Horton.
3387
3388         Expose isDownloadableMedia() to the InjectedBundleHitTestResult.
3389         * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp:
3390         (WKBundleHitTestResultIsDownloadableMedia):
3391         * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.h:
3392         * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:
3393         (WebKit::InjectedBundleHitTestResult::isDownloadableMedia):
3394         * WebProcess/InjectedBundle/InjectedBundleHitTestResult.h:
3395
3396 2014-11-13  Daniel Bates  <dabates@apple.com>
3397
3398         [iOS] NSGeometry data types are not available in the public SDK
3399         https://bugs.webkit.org/show_bug.cgi?id=137536
3400
3401         Reviewed by David Kilzer.
3402
3403         Substitute header WAKAppKitStubs.h for NSGeometry.h as the latter is a
3404         private header.
3405
3406         * Shared/ios/NativeWebTouchEventIOS.mm:
3407
3408 2014-11-13  Simon Fraser  <simon.fraser@apple.com>
3409
3410         [WK2] Fire a layout milestone on session restore based on render tree size
3411         https://bugs.webkit.org/show_bug.cgi?id=138711
3412         rdar://problem/16033854
3413
3414         Reviewed by Anders Carlsson.
3415         
3416         Add a session-restore layout milestone which fires after restoring a session,
3417         when the render tree size reaches 50% of the size saved in the session state.
3418
3419         * Shared/SessionState.h: Add renderTreeSize.
3420         * UIProcess/API/Cocoa/WKWebView.mm:
3421         (layoutMilestones): Translate from SPI to WebCore milestones.
3422         * UIProcess/API/Cocoa/WKWebViewPrivate.h: New iOS-only milestone, er, event.
3423         * UIProcess/Cocoa/NavigationState.mm:
3424         (WebKit::renderingProgressEvents): Translate from WebCore milestone to rendering event.
3425         * UIProcess/WebPageProxy.cpp:
3426         (WebKit::WebPageProxy::WebPageProxy): Init stuff.
3427         (WebKit::WebPageProxy::sessionState):
3428         (WebKit::WebPageProxy::restoreFromSessionState): Zero out the target render tree size,
3429         then get it out of session state and set the flag to say that we haven't reached it yet.
3430         (WebKit::WebPageProxy::listenForLayoutMilestones): Set a flag to know that we should fire
3431         the milestone. The other milestones get sent directly to WebCore.
3432         * UIProcess/WebPageProxy.h:
3433         * UIProcess/ios/WebPageProxyIOS.mm:
3434         (WebKit::exceedsRenderTreeSizeSizeThreshold): Return true when we've reached 50%.
3435         (WebKit::WebPageProxy::didCommitLayerTree): Fire the milestone when appropriate.
3436         * UIProcess/mac/LegacySessionStateCoding.cpp: Rev the session state data for iOS
3437         (where doing so is less disruptive). Standardize some CFString constants.
3438         (WebKit::encodeSessionHistory): Wrap for legibility.
3439         (WebKit::encodeLegacySessionState): Make a CFNumber for render tree size, and store
3440         it in the root dictionary.
3441         (WebKit::decodeBackForwardTreeNode): Move a comment to match another similar block.
3442         (WebKit::decodeLegacySessionState): Decode render tree size and store it.
3443
3444 2014-11-13  Tim Horton  <timothy_horton@apple.com>
3445
3446         Adjust the WKBundlePageOverlay Data Detectors SPI
3447         https://bugs.webkit.org/show_bug.cgi?id=138685
3448         <rdar://problem/18947156>
3449
3450         Reviewed by Anders Carlsson.
3451
3452         * UIProcess/mac/WKActionMenuController.mm:
3453         (-[WKActionMenuController _defaultMenuItemsForDataDetectedText]):
3454         Forward DDActionContext callbacks to the Web process.
3455
3456         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
3457         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:
3458         * WebProcess/WebPage/WebPageOverlay.cpp:
3459         * WebProcess/WebPage/WebPageOverlay.h:
3460         Add four DataDetectors-related WebKit2-only page overlay callbacks:
3461
3462         (WebKit::WebPageOverlay::actionContextForResultAtPoint):
3463         Called during the action menu hit test; clients can reply with a DDActionContext
3464         and a DOM range, and WebKit will treat that result and range as if it had
3465         detected it itself, building the action menu and showing the yellow highlight as usual.
3466
3467         (WebKit::WebPageOverlay::dataDetectorsPresentedUI):
3468         (WebKit::WebPageOverlay::dataDetectorsChangedUI):
3469         (WebKit::WebPageOverlay::dataDetectorsHidUI):
3470         These correspond to the DDActionContext callbacks, and can be used by clients
3471         to show/hide corresponding UI while DataDetectors in the UI process is presenting UI.
3472
3473         (WebKit::WebPageOverlay::prepareForActionMenu): Deleted.
3474         Get rid of prepareForActionMenu, as nobody ever used it.
3475
3476         * WebProcess/WebPage/WebPage.cpp:
3477         Add WebPageOverlay.h so that we can build, because the destructor lives here.
3478
3479         * WebProcess/WebPage/WebPage.h:
3480         * WebProcess/WebPage/WebPage.messages.in:
3481         
3482         * WebProcess/WebPage/mac/WebPageMac.mm:
3483         (WebKit::WebPage::performActionMenuHitTestAtLocation):
3484         Give all of the WebPageOverlays the first shot at data detection; if none of them
3485         reply with a valid DDActionContext/DOM range, we'll go ahead and do our normal detection.
3486
3487         (WebKit::WebPage::dataDetectorsPresentedUI):
3488         (WebKit::WebPage::dataDetectorsChangedUI):
3489         (WebKit::WebPage::dataDetectorsHidUI):
3490         Forward these along to the active WebPageOverlay.
3491
3492 2014-11-13  Carlos Garcia Campos  <cgarcia@igalia.com>
3493
3494         [SOUP] Missing ResourceRequest members encoded/decoded
3495         https://bugs.webkit.org/show_bug.cgi?id=138694
3496
3497         Reviewed by Sergio Villar Senin.
3498
3499         At least timeoutInterval and priority should also be
3500         encoded/decoded. This fixes all http/tests/xmlhttprequest/timeout/
3501         tests when using the network process, since the timeout is always
3502         0 for all requests that we send to the network process.
3503
3504         * Shared/soup/WebCoreArgumentCodersSoup.cpp:
3505         (IPC::ArgumentCoder<ResourceRequest>::encodePlatformData):
3506         (IPC::ArgumentCoder<ResourceRequest>::decodePlatformData):
3507
3508 2014-11-12  Ryuan Choi  <ryuan.choi@navercorp.com>
3509
3510         [EFL] Fix&nb