Http tests fails on Debian with Apache 2.4
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2013-08-28  Zan Dobersek  <zdobersek@igalia.com>
2
3         [GTK][WK2] Only set up a RedirectedXCompositeWindow if running under an X11 display
4         https://bugs.webkit.org/show_bug.cgi?id=120321
5
6         Reviewed by Gustavo Noronha Silva.
7
8         Only set up the RedirectedXCompositeWindow member of the WebKitWebViewBasePrivate struct
9         if we're running under an X11 display. This is now done in the webkitWebViewBaseConstructed
10         function rather than the constructor, which is removed.
11
12         This allows for the UIProcess to run in a Wayland environment even when built with accelerated
13         compositing enabled. Of course, at the moment there's no support yet for accelerated compositing
14         under Wayland, so we fall back to rendering the backing store. No changes are introduced to
15         the behavior under X11 - accelerated compositing will be used where possible, if supported.
16
17         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
18         (webkitWebViewBaseConstructed):
19
20 2013-08-28  Zan Dobersek  <zdobersek@igalia.com>
21
22         [GTK][WK2] Disable accelerated compositing under Wayland
23         https://bugs.webkit.org/show_bug.cgi?id=120347
24
25         Reviewed by Martin Robinson.
26
27         Accelerated compositing is not yet supported under the Wayland display protocol,
28         so it should be disabled. Since it is enabled by default and the GTK WK2 API does
29         not provide any way to change that, it's enough to disable it when attaching the
30         WebKitSettings object to the WebPageGroup if running under Wayland.
31
32         * UIProcess/API/gtk/WebKitWebViewGroup.cpp:
33         (webkitWebViewGroupAttachSettingsToPageGroup):
34
35 2013-08-28  Alexandre Abreu  <alexandre.abreu@canonical.com>
36
37         Add a 'isMainFrame' parameter to QWebNavigationRequest.
38         https://bugs.webkit.org/show_bug.cgi?id=118860
39
40         Reviewed by Simon Hausmann.
41
42         * UIProcess/API/qt/qwebnavigationrequest.cpp:
43         (QWebNavigationRequestPrivate::QWebNavigationRequestPrivate):
44         (QWebNavigationRequest::QWebNavigationRequest):
45         (QWebNavigationRequest::navigationType):
46         (QWebNavigationRequest::isMainFrame):
47         * UIProcess/API/qt/qwebnavigationrequest_p.h:
48         * UIProcess/API/qt/tests/publicapi/tst_publicapi.cpp:
49         * UIProcess/qt/QtWebPagePolicyClient.cpp:
50         (WebKit::QtWebPagePolicyClient::decidePolicyForNavigationAction):
51         * UIProcess/qt/QtWebPagePolicyClient.h:
52
53 2013-08-27  Luciano Wolf  <luciano.wolf@openbossa.org>
54
55         100% cpu usage for "transition: opacity" animation
56         https://bugs.webkit.org/show_bug.cgi?id=120012
57
58         Reviewed by Noam Rosenthal.
59
60         Schedule animation timer after scheduling a layer flush. This way it
61         won't overwrite animation timer with "0", thus avoiding 100% cpu usage.
62
63         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
64         (WebKit::CoordinatedLayerTreeHost::scheduleAnimation):
65
66 2013-08-27  Csaba Osztrogonác  <ossy@webkit.org>
67
68         [WK2][Soup] Add WebFrameNetworkingContext::webFrameLoaderClient() after r154490
69         https://bugs.webkit.org/show_bug.cgi?id=120353
70
71         Reviewed by Alexey Proskuryakov.
72
73         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
74         * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
75         (WebKit::WebFrameNetworkingContext::webFrameLoaderClient):
76         * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
77
78 2013-08-26  Santosh Mahto  <santosh.ma@samsung.com>
79
80         Fixing compilation warning "unused parameter" in WebPageProxy.cpp
81         https://bugs.webkit.org/show_bug.cgi?id=120205
82
83         Reviewed by Anders Carlsson.
84
85         * UIProcess/WebPageProxy.cpp:
86         (WebKit::WebPageProxy::findPlugin):
87         (WebKit::WebPageProxy::didBlockInsecurePluginVersion):
88         Added UNUSED_PARAM to avoid warning.
89
90 2013-08-23  Andy Estes  <aestes@apple.com>
91
92         Fix issues found by the Clang Static Analyzer
93         https://bugs.webkit.org/show_bug.cgi?id=120230
94
95         Reviewed by Darin Adler.
96
97         * UIProcess/API/mac/WKBrowsingContextController.mm:
98         (autoreleased): Don't leak CFURLs when in Objective-C GC.
99         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
100         (-[WKAccessibilityWebPageObject accessibilityAttributeValue:forParameter:]):
101         Don't leak CFStrings when in Objective-C GC.
102
103 2013-08-26  Csaba Osztrogonác  <ossy@webkit.org>
104
105         [WK2] Buildfix for non Mac platforms
106         https://bugs.webkit.org/show_bug.cgi?id=120294
107
108         Reviewed by Darin Adler.
109
110         * NetworkProcess/AsynchronousNetworkLoaderClient.cpp:
111         (WebKit::AsynchronousNetworkLoaderClient::didReceiveBuffer):
112         * NetworkProcess/NetworkResourceLoader.h:
113
114 2013-08-26  Alexey Proskuryakov  <ap@apple.com>
115
116         [Mac] can-read-in-dragstart-event.html and can-read-in-copy-and-cut-events.html fail
117         https://bugs.webkit.org/show_bug.cgi?id=113094
118
119         Reviewed by Darin Adler.
120
121         Return new pasteboard change count from all functions that change it.
122
123         * UIProcess/WebContext.h:
124         * UIProcess/WebContext.messages.in:
125         * UIProcess/mac/WebContextMac.mm:
126         (WebKit::WebContext::pasteboardCopy):
127         (WebKit::WebContext::addPasteboardTypes):
128         (WebKit::WebContext::setPasteboardTypes):
129         (WebKit::WebContext::setPasteboardPathnamesForType):
130         (WebKit::WebContext::setPasteboardStringForType):
131         (WebKit::WebContext::setPasteboardBufferForType):
132         * WebProcess/Plugins/PDF/PDFPlugin.mm:
133         (WebKit::PDFPlugin::writeItemsToPasteboard):
134         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
135         (WebKit::WebPlatformStrategies::copy):
136         (WebKit::WebPlatformStrategies::changeCount):
137         (WebKit::WebPlatformStrategies::addTypes):
138         (WebKit::WebPlatformStrategies::setTypes):
139         (WebKit::WebPlatformStrategies::setBufferForType):
140         (WebKit::WebPlatformStrategies::setPathnamesForType):
141         (WebKit::WebPlatformStrategies::setStringForType):
142         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
143
144 2013-08-26  Andreas Kling  <akling@apple.com>
145
146         Unreviewed build fix.
147
148         * WebProcess/WebPage/WebFrame.cpp:
149         (WebKit::WebFrame::createWithCoreMainFrame):
150         (WebKit::WebFrame::createSubframe):
151
152 2013-08-26  Pratik Solanki  <psolanki@apple.com>
153
154         PageGroup::groupSettings() should return a reference
155         https://bugs.webkit.org/show_bug.cgi?id=120319
156
157         Reviewed by Andreas Kling.
158
159         PageGroup::m_groupSettings is never NULL so we can just return a reference from groupSettings().
160
161         * WebProcess/Storage/StorageNamespaceImpl.cpp:
162         (WebKit::StorageNamespaceImpl::createLocalStorageNamespace):
163
164 2013-08-26  Andreas Kling  <akling@apple.com>
165
166         WebCore: Let Page create the main Frame.
167         <https://webkit.org/b/119964>
168
169         Reviewed by Anders Carlsson.
170
171         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
172         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
173         (WebKit::WebFrameLoaderClient::WebFrameLoaderClient):
174
175             This starts out with a null WebFrame* pointer now.
176
177         (WebKit::WebFrameLoaderClient::setWebFrame):
178
179             WebFrame hooks itself up through this as soon as it's constructed.
180
181         (WebKit::WebFrameLoaderClient::frameLoaderDestroyed):
182
183             Tweak an out-of-date comment. The ref() we're balancing out comes from
184             WebFrame::create().
185
186         * WebProcess/WebPage/WebFrame.cpp:
187         (WebKit::WebFrame::createWithCoreMainFrame):
188
189             Rewrote createMainFrame() as createWithCoreMainFrame(). The new method wraps
190             an existing WebCore::Frame instead of creating a new one.
191
192         (WebKit::WebFrame::createSubframe):
193
194             Merged WebFrame::init() into here since the logic isn't shared with main
195             Frame creation anymore.
196
197         (WebKit::WebFrame::create):
198         (WebKit::WebFrame::WebFrame):
199
200             Call WebFrameLoaderClient::setWebFrame(this).
201
202         * WebProcess/WebPage/WebFrame.h:
203
204             WebFrame::m_frameLoaderClient is now an OwnPtr rather than an inline member.
205             This way it can be created before the WebFrame.
206
207         * WebProcess/WebPage/WebPage.cpp:
208         (WebKit::WebPage::WebPage):
209
210             Set up a WebFrameLoaderClient and pass it to the Page constructor along with
211             the other PageClients.
212
213 2013-08-24  Carlos Garcia Campos  <cgarcia@igalia.com>
214
215         [GTK] Add WebKit2 API for isolated worlds
216         https://bugs.webkit.org/show_bug.cgi?id=103377
217
218         Reviewed by Anders Carlsson.
219
220         * GNUmakefile.list.am: Add new files to compilation.
221         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbols.
222         * UIProcess/API/gtk/tests/TestWebExtensions.cpp:
223         (testWebExtensionWindowObjectCleared):
224         (scriptDialogCallback):
225         (runJavaScriptInIsolatedWorldFinishedCallback):
226         (testWebExtensionIsolatedWorld):
227         (beforeAll):
228         * UIProcess/API/gtk/tests/WebExtensionTest.cpp:
229         (echoCallback):
230         (windowObjectCleared):
231         (getWebPage):
232         (methodCallCallback):
233         * WebProcess/InjectedBundle/API/gtk/WebKitFrame.cpp:
234         (webkit_frame_get_javascript_context_for_script_world): New public
235         method to tget the JavaScript execution context for a given script
236         world.
237         * WebProcess/InjectedBundle/API/gtk/WebKitFrame.h:
238         * WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.cpp: Added.
239         (scriptWorlds): Global WebKitScriptWorld map.
240         (_WebKitScriptWorldPrivate::~_WebKitScriptWorldPrivate):
241         (webkitScriptWorldGet): Get the WebKitScriptWorld wrapping the
242         given injected bundle script world.
243         (webkitScriptWorldGetInjectedBundleScriptWorld): Get the injected
244         bundle script world wrapped by the given WebKitScriptWorld.
245         (webkitScriptWorldWindowObjectCleared): Emit
246         WebKitScriptWorld::window-object-cleared signal.
247         (webkitScriptWorldCreate): Create a new WebKitScriptWorld wrapping
248         the given injected bundle script world.
249         (createDefaultScriptWorld): Create the default WebKitScriptWorld
250         wrapping the normal world.
251         (webkit_script_world_get_default): Return the default WebKitScriptWorld.
252         (webkit_script_world_new): Create a new isolated WebKitScriptWorld.
253         * WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.h: Added.
254         * WebProcess/InjectedBundle/API/gtk/WebKitScriptWorldPrivate.h: Added.
255         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
256         (didClearWindowObjectForFrame): Call webkitScriptWorldWindowObjectCleared().
257         (webkitWebPageCreate): Add implementation for callback
258         didClearWindowObjectForFrame in injected bundle loader client.
259         * WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h:
260         Include WebKitScriptWorld.h.
261
262 2013-08-26  Carlos Garcia Campos  <cgarcia@igalia.com>
263
264         [WebKit2] Offsets for WKBundlePageLoaderClient in APIClientTraits are wrong
265         https://bugs.webkit.org/show_bug.cgi?id=120268
266
267         Reviewed by Anders Carlsson.
268
269         * Shared/APIClientTraits.cpp: Use always the first member of every
270         version as the offset of the version.
271
272 2013-08-26  Carlos Garcia Campos  <cgarcia@igalia.com>
273
274         [GTK] Add missing initializer for pluginLoadPolicy in WKPageLoaderClient
275         https://bugs.webkit.org/show_bug.cgi?id=120289
276
277         Reviewed by Philippe Normand.
278
279         * UIProcess/API/gtk/WebKitLoaderClient.cpp:
280         (attachLoaderClientToView): Add initializer for pluginLoadPolicy
281         and rename the comment of the previous one as
282         pluginLoadPolicy_deprecatedForUseWithV2.
283
284 2013-08-26  Carlos Garcia Campos  <cgarcia@igalia.com>
285
286         [GTK] webkitCredentialGetCredential returns a temporary in g_return_val_if_fail
287         https://bugs.webkit.org/show_bug.cgi?id=120287
288
289         Reviewed by Philippe Normand.
290
291         * UIProcess/API/gtk/WebKitCredential.cpp:
292         (webkitCredentialGetCredential): Use ASSERT() instead of
293         g_return_val_if_fail() since this is a private function.
294
295 2013-08-25  Zan Dobersek  <zdobersek@igalia.com>
296
297         Unreviewed GTK build fix after r154565.
298
299         * UIProcess/API/gtk/tests/TestInspector.cpp: Include the Vector header.
300         * UIProcess/API/gtk/tests/TestResources.cpp: Ditto.
301
302 2013-08-24  Darin Adler  <darin@apple.com>
303
304         Frame::tree should return a reference instead of a pointer
305         https://bugs.webkit.org/show_bug.cgi?id=120259
306
307         Reviewed by Andreas Kling.
308
309         * WebProcess/Plugins/PluginView.cpp:
310         (WebKit::PluginView::performJavaScriptURLRequest):
311         * WebProcess/Storage/StorageAreaMap.cpp:
312         (WebKit::StorageAreaMap::dispatchSessionStorageEvent):
313         (WebKit::StorageAreaMap::dispatchLocalStorageEvent):
314         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
315         (WebKit::WebFrameLoaderClient::createFrame):
316         * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
317         (WebKit::WebContextMenuClient::searchWithSpotlight):
318         * WebProcess/WebPage/FindController.cpp:
319         (WebKit::frameWithSelection):
320         (WebKit::FindController::rectsForTextMatches):
321         * WebProcess/WebPage/WebFrame.cpp:
322         (WebKit::WebFrame::init):
323         (WebKit::WebFrame::contentsAsString):
324         (WebKit::WebFrame::name):
325         (WebKit::WebFrame::childFrames):
326         * WebProcess/WebPage/WebPage.cpp:
327         (WebKit::WebPage::clearMainFrameName):
328         (WebKit::WebPage::setDrawsBackground):
329         (WebKit::WebPage::setDrawsTransparentBackground):
330         (WebKit::WebPage::setWindowResizerSize):
331         (WebKit::frameWithSelection):
332         (WebKit::WebPage::unmarkAllMisspellings):
333         (WebKit::WebPage::unmarkAllBadGrammar):
334         (WebKit::pageContainsAnyHorizontalScrollbars):
335         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
336         (WebKit::TiledCoreAnimationDrawingArea::forceRepaint):
337         Use tree(). instead of tree()->.
338
339 2013-08-24  Commit Queue  <commit-queue@webkit.org>
340
341         Unreviewed, rolling out r154545.
342         http://trac.webkit.org/changeset/154545
343         https://bugs.webkit.org/show_bug.cgi?id=120252
344
345         Broke WebKit2 API tests (Requested by andersca on #webkit).
346
347         * GNUmakefile.list.am:
348         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
349         * UIProcess/API/gtk/tests/TestWebExtensions.cpp:
350         (beforeAll):
351         * UIProcess/API/gtk/tests/WebExtensionTest.cpp:
352         (methodCallCallback):
353         * WebProcess/InjectedBundle/API/gtk/WebKitFrame.cpp:
354         (webkit_frame_get_javascript_global_context):
355         * WebProcess/InjectedBundle/API/gtk/WebKitFrame.h:
356         * WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.cpp: Removed.
357         * WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.h: Removed.
358         * WebProcess/InjectedBundle/API/gtk/WebKitScriptWorldPrivate.h: Removed.
359         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
360         (webkitWebPageCreate):
361         * WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h:
362
363 2013-08-24  Carlos Garcia Campos  <cgarcia@igalia.com>
364
365         [GTK] Add WebKit2 API for isolated worlds
366         https://bugs.webkit.org/show_bug.cgi?id=103377
367
368         Reviewed by Anders Carlsson.
369
370         * GNUmakefile.list.am: Add new files to compilation.
371         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbols.
372         * UIProcess/API/gtk/tests/TestWebExtensions.cpp:
373         (testWebExtensionWindowObjectCleared):
374         (scriptDialogCallback):
375         (runJavaScriptInIsolatedWorldFinishedCallback):
376         (testWebExtensionIsolatedWorld):
377         (beforeAll):
378         * UIProcess/API/gtk/tests/WebExtensionTest.cpp:
379         (echoCallback):
380         (windowObjectCleared):
381         (getWebPage):
382         (methodCallCallback):
383         * WebProcess/InjectedBundle/API/gtk/WebKitFrame.cpp:
384         (webkit_frame_get_javascript_context_for_script_world): New public
385         method to tget the JavaScript execution context for a given script
386         world.
387         * WebProcess/InjectedBundle/API/gtk/WebKitFrame.h:
388         * WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.cpp: Added.
389         (scriptWorlds): Global WebKitScriptWorld map.
390         (_WebKitScriptWorldPrivate::~_WebKitScriptWorldPrivate):
391         (webkitScriptWorldGet): Get the WebKitScriptWorld wrapping the
392         given injected bundle script world.
393         (webkitScriptWorldGetInjectedBundleScriptWorld): Get the injected
394         bundle script world wrapped by the given WebKitScriptWorld.
395         (webkitScriptWorldWindowObjectCleared): Emit
396         WebKitScriptWorld::window-object-cleared signal.
397         (webkitScriptWorldCreate): Create a new WebKitScriptWorld wrapping
398         the given injected bundle script world.
399         (createDefaultScriptWorld): Create the default WebKitScriptWorld
400         wrapping the normal world.
401         (webkit_script_world_get_default): Return the default WebKitScriptWorld.
402         (webkit_script_world_new): Create a new isolated WebKitScriptWorld.
403         * WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.h: Added.
404         * WebProcess/InjectedBundle/API/gtk/WebKitScriptWorldPrivate.h: Added.
405         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
406         (didClearWindowObjectForFrame): Call webkitScriptWorldWindowObjectCleared().
407         (webkitWebPageCreate): Add implementation for callback
408         didClearWindowObjectForFrame in injected bundle loader client.
409         * WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h:
410         Include WebKitScriptWorld.h.
411
412 2013-08-24  Carlos Garcia Campos  <cgarcia@igalia.com>
413
414         [GTK] Expose WebKitFrame in WebKit2GTK+ web extensions API
415         https://bugs.webkit.org/show_bug.cgi?id=119743
416
417         Reviewed by Anders Carlsson.
418
419         * GNUmakefile.list.am: Add new files to compilation.
420         * Shared/APIClientTraits.cpp: Update for new interface version.
421         * Shared/APIClientTraits.h: Ditto.
422         * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml: Add WebKitFrame
423         section.
424         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new public
425         symbols.
426         * UIProcess/API/gtk/docs/webkit2gtk.types: Add
427         webkit_frame_get_type.
428         * UIProcess/API/gtk/tests/FrameTest.cpp: Added.
429         (WebKitFrameTest::create):
430         (WebKitFrameTest::webPageFromArgs):
431         (WebKitFrameTest::testMainFrame):
432         (WebKitFrameTest::testURI):
433         (WebKitFrameTest::testJavaScriptContext):
434         (WebKitFrameTest::runTest):
435         (registerTests):
436         * UIProcess/API/gtk/tests/GNUmakefile.am: Add new test files.
437         * UIProcess/API/gtk/tests/TestFrame.cpp: Added.
438         (webkitFrameTestRun):
439         (testWebKitFrameMainFrame):
440         (testWebKitFrameURI):
441         (testWebKitFrameJavaScriptContext):
442         (beforeAll):
443         (afterAll):
444         * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Add
445         willDestroyFrame callback to the injected bundle loader client, to
446         notify the client when a frame is about to be destroyed.
447         * WebProcess/InjectedBundle/API/gtk/WebKitFrame.cpp: Added.
448         (webkit_frame_class_init):
449         (webkitFrameCreate):
450         (webkit_frame_is_main_frame):
451         (webkit_frame_get_uri):
452         (webkit_frame_get_javascript_global_context):
453         * WebProcess/InjectedBundle/API/gtk/WebKitFrame.h: Added.
454         * WebProcess/InjectedBundle/API/gtk/WebKitFramePrivate.h: Added.
455         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
456         (webkitFrameGetOrCreate): Helper function to create a WebKitFrame
457         wrapping the given WebFrame or returning the wrapper if it already
458         exists.
459         (willDestroyFrame): Remove the WebKitFrame wrapping the given
460         WebFrame if it exists.
461         (webkitWebPageCreate): Add willDestroyFrame implementation to
462         injected bundle loader client.
463         (webkit_web_page_get_main_frame): Return the main frame of the
464         page.
465         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.h:
466         * WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h:
467         Include WebKitFrame.h.
468         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
469         (WebKit::InjectedBundlePageLoaderClient::willDestroyFrame): New
470         callback to be called when a frame is about to be destroyed.
471         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
472         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
473         (WebKit::WebFrameLoaderClient::frameLoaderDestroyed): Call
474         willDestroyFrame callback of injected bundle loader client.
475         * WebProcess/qt/QtBuiltinBundlePage.cpp:
476         (WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage): Add
477         willDestroyFrame callback.
478
479 2013-08-24  Antti Koivisto  <antti@apple.com>
480
481         Revert accidental change.
482         
483         Not reviewed.
484
485         * WebProcess/com.apple.WebProcess.sb.in:
486
487 2013-08-23  Beth Dakin  <bdakin@apple.com>
488
489         REGRESSION (r132545): Some PDFs generated by WebKit are blank when viewed in 
490         Adobe Reader
491         https://bugs.webkit.org/show_bug.cgi?id=120240
492         -and corresponding-
493         <rdar://problem/14634453>
494
495         Reviewed by Anders Carlsson.
496
497         Hook up new WebSystemInterface API to find out if the current context is the PDF 
498         context. 
499
500         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
501         (InitWebCoreSystemInterface):
502
503 2013-08-23  Alexey Proskuryakov  <ap@apple.com>
504
505         [WK2] Assertion failures when loading XSL stylesheets with NetworkProcess
506         https://bugs.webkit.org/show_bug.cgi?id=120186
507         <rdar://problem/14080273>
508
509         Reviewed by Brady Eidson.
510
511         Covered by many existing tests.
512
513         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
514         (WebKit::WebPlatformStrategies::loadResourceSynchronously): Pass frame ID and page ID.
515         They are mostly needed for authentication, which is not supported with sync requests,
516         but it will be supported some day.
517
518         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
519         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
520         (WebKit::WebFrameNetworkingContext::webFrameLoaderClient):
521         Added a way to get frame loader client from WebKit NetworkingContext subclass.
522
523 2013-08-22  Carlos Garcia Campos  <cgarcia@igalia.com>
524
525         [GTK] Wrong interface version used in WebKitWebPage for loader client
526         https://bugs.webkit.org/show_bug.cgi?id=120199
527
528         Reviewed by Gustavo Noronha Silva.
529
530         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
531         (webkitWebPageCreate): Use kWKBundlePageLoaderClientCurrentVersion
532         instead of kWKBundlePageResourceLoadClientCurrentVersion in loader
533         client initialization.
534
535 2013-08-22  Simon Cooper  <scooper@apple.com>
536
537         Need to disable FakeSYSVSHM when sandboxing is not enabled
538         https://bugs.webkit.org/show_bug.cgi?id=120182
539         <rdar://problem/14814461>
540
541         Reviewed by Alexey Proskuryakov.
542
543         When not in a sandbox do not enable the FakeSYSVSHIM. This
544         allows LocalConnection to work when Flash Player is run in
545         "Unsafe Mode".
546
547         * PluginProcess/mac/PluginProcessShim.mm:
548         (WebKit::shim_disabled):
549
550 2013-08-22  Andy Estes  <aestes@apple.com>
551
552         <https://webkit.org/b/120180> Fix issues with OTHER_LDFLAGS in various .xcconfig files
553
554         Reviewed by David Kilzer.
555
556         Adding ld flags for ASAN overwrote the unexported symbol flags we were
557         previously specifying. Since the unexported symbol ld flags are only
558         needed for the framework target, move them to WebKit2.xcconfig where we
559         can add them to OTHER_LDFLAGS along with the ASAN values inherited from
560         DebugRelease.xcconfig (and other values).
561
562         * Configurations/Base.xcconfig: Removed the unexported symbol ld flags.
563         * Configurations/WebKit2.xcconfig: ... and moved them here.
564
565 2013-08-21  Tim Horton  <timothy_horton@apple.com>
566
567         Another null-deref under WebDragClient::startDrag
568         https://bugs.webkit.org/show_bug.cgi?id=120145
569         <rdar://problem/14650652>
570
571         Reviewed by Simon Fraser.
572
573         convertImageToBitmap can legitimately return null, so don't dereference it.
574
575         * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
576         (WebKit::WebDragClient::startDrag):
577
578 2013-08-21  Beth Dakin  <bdakin@apple.com>
579
580         <https://webkit.org/b/120140> Clients expect didFirstLayout-related calls to 
581         happen before didLayout
582
583         Reviewed by Anders Carlsson.
584
585         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
586         (WebKit::WebFrameLoaderClient::dispatchDidLayout):
587
588 2013-08-21  Alexey Proskuryakov  <ap@apple.com>
589
590         REGRESSION (r145458?): WebProcess doesn't respect UI process localization
591         https://bugs.webkit.org/show_bug.cgi?id=120096
592
593         Reviewed by Darin Adler.
594
595         We used to get into a situation where CFBundle thought that we had no good localization,
596         and used one passed as default. This is never the case with mixed localizations,
597         so default is just ignored now.
598
599         I think that the previous behavior was a bit of a hack. As WebProcess is not localized,
600         it's more honest to say that we want mixed localizations, and force the language
601         to match UI process localization.
602
603         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.h:
604         (WebKit::ChildProcessMain): Don't set default localization, it's not taken into
605         consideration unless all other attempts to compute bundle localization fail.
606
607         * UIProcess/Launcher/mac/ProcessLauncherMac.mm: (WebKit::createProcess): Pass
608         UI process localization as -AppleLanguages argument, so that Core Foundation uses
609         that instead of actual user languages. We want to match UI process localization.
610
611 2013-08-20  Gavin Barraclough  <barraclough@apple.com>
612
613         https://bugs.webkit.org/show_bug.cgi?id=120093
614         Remove getOwnPropertyDescriptor trap
615
616         Reviewed by Geoff Garen.
617
618         All implementations of this method are now called via the method table, and equivalent in behaviour.
619         Remove all duplicate implementations (and the method table trap), and add a single member function implementation on JSObject.
620
621         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
622         * WebProcess/Plugins/Netscape/JSNPObject.h:
623             - remove getOwnPropertyDescriptor
624
625 2013-08-20  Pratik Solanki  <psolanki@apple.com>
626
627         <https://webkit.org/b/120029> Document::markers() should return a reference
628
629         Reviewed by Andreas Kling.
630
631         Document::m_markers is never NULL so return a reference from Document::markers(). Also mark
632         m_markers as const and initialize it in member initialization.
633
634         * WebProcess/WebPage/FindController.cpp:
635         (WebKit::FindController::rectsForTextMatches):
636         * WebProcess/WebPage/WebPage.cpp:
637         (WebKit::WebPage::unmarkAllMisspellings):
638         (WebKit::WebPage::unmarkAllBadGrammar):
639
640 2013-08-20  Gavin Barraclough  <barraclough@apple.com>
641
642         https://bugs.webkit.org/show_bug.cgi?id=120053
643         Remove custom getOwnPropertyDescriptor for JSNPObject
644
645         Reviewed by Oliver Hunt.
646
647         Think this is the last one!
648
649         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
650             - Remove custom getOwnPropertyDescriptor implementation.
651
652 2013-08-20  Anton Obzhirov  <a.obzhirov@samsung.com>
653
654         <https://webkit.org/b/119487> [Gtk] Cancel authentication on load failed
655
656         Reviewed by Martin Robinson.
657
658         Added callback to handle load-failed event in default authentication dialog.
659         Authentication request gets cancelled and the dialog widget gets destroyed.
660
661         * UIProcess/API/gtk/WebKitAuthenticationDialog.cpp:
662         (pageLoadFailed):
663         (webkitAuthenticationDialogInitialize):
664         (webkitAuthenticationDialogDispose):
665         (webkit_authentication_dialog_class_init):
666         (webkitAuthenticationDialogNew):
667         * UIProcess/API/gtk/WebKitAuthenticationDialog.h:
668         * UIProcess/API/gtk/WebKitWebView.cpp:
669         (webkitWebViewAuthenticate):
670
671 2013-08-20  Allan Sandfeld Jensen  <allan.jensen@digia.com>
672
673         [Qt][WK2] Doesn't build without Plugin-process
674         https://bugs.webkit.org/show_bug.cgi?id=120060
675
676         Reviewed by Jocelyn Turcotte.
677
678         Disable netscape plugin api in WebKit2 when the plugin architecture is unsupported for WebKit2.
679
680         * Target.pri:
681
682 2013-08-19  Ryosuke Niwa  <rniwa@webkit.org>
683
684         <https://webkit.org/b/120049> Delete code for Snow Leopard
685
686         Reviewed by Benjamin Poulain.
687
688         * NetworkProcess/mac/NetworkProcessMac.mm:
689         (WebKit::overrideSystemProxies):
690         (WebKit::NetworkProcess::platformInitializeNetworkProcess):
691         * WebKit2Prefix.h:
692
693 2013-08-19  Beth Dakin  <bdakin@apple.com>
694
695         <https://webkit.org/b/120027> AXObjectCache's 
696         accessibilityEnhancedUserInterfaceEnabled should be initialized on process 
697         creation
698
699         Reviewed by Sam Weinig.
700
701         Right now we only call AXObjectCache::setEnhancedAccessibility() when AppKit sends 
702         us a notification indicating that the value has changed. We should not have to 
703         rely on that to properly initialize this value. It should be done with the 
704         WebProcessCreationParamters. 
705
706         * Shared/WebProcessCreationParameters.cpp:
707         (WebKit::WebProcessCreationParameters::encode):
708         (WebKit::WebProcessCreationParameters::decode):
709         * Shared/WebProcessCreationParameters.h:
710         * UIProcess/mac/WebContextMac.mm:
711         (WebKit::WebContext::platformInitializeWebProcess):
712         * WebProcess/mac/WebProcessMac.mm:
713         (WebKit::WebProcess::platformInitializeWebProcess):
714
715 2013-08-19  Pratik Solanki  <psolanki@apple.com>
716
717         <https://webkit.org/b/119918> Frame::selection() should return a reference
718
719         Reviewed by Darin Adler.
720
721         m_selection is never NULL so return a reference from Frame::selection(). Also removed some
722         unnecessary null checks and assert diff ts exposed as a result.
723
724         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
725         (WebKit::WebEditorClient::updateGlobalSelection):
726         * WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp:
727         (WebKit::collapseSelection):
728         (WebKit::WebEditorClient::updateGlobalSelection):
729         * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
730         (WebKit::WebContextMenuClient::lookUpInDictionary):
731         (WebKit::WebContextMenuClient::searchWithSpotlight):
732         * WebProcess/WebPage/FindController.cpp:
733         (WebKit::frameWithSelection):
734         (WebKit::FindController::updateFindUIAfterPageScroll):
735         (WebKit::FindController::getFindIndicatorBitmapAndRect):
736         (WebKit::FindController::getImageForFindMatch):
737         (WebKit::FindController::selectFindMatch):
738         (WebKit::FindController::updateFindIndicator):
739         (WebKit::FindController::drawRect):
740         * WebProcess/WebPage/WebPage.cpp:
741         (WebKit::WebPage::editorState):
742         (WebKit::WebPage::scaledSnapshotWithOptions):
743         (WebKit::WebPage::centerSelectionInVisibleArea):
744         (WebKit::frameWithSelection):
745         (WebKit::WebPage::clearSelection):
746         (WebKit::WebPage::confirmComposition):
747         (WebKit::WebPage::setComposition):
748         (WebKit::WebPage::currentSelectionAsRange):
749         * WebProcess/WebPage/mac/WebPageMac.mm:
750         (WebKit::WebPage::setComposition):
751         (WebKit::WebPage::insertText):
752         (WebKit::WebPage::insertDictatedText):
753         (WebKit::WebPage::getMarkedRange):
754         (WebKit::WebPage::getSelectedRange):
755         (WebKit::WebPage::getAttributedSubstringFromRange):
756         (WebKit::WebPage::characterIndexForPoint):
757         (WebKit::convertToRange):
758         (WebKit::WebPage::performDictionaryLookupAtLocation):
759         (WebKit::WebPage::readSelectionFromPasteboard):
760         (WebKit::WebPage::getStringSelectionForPasteboard):
761         (WebKit::WebPage::getDataSelectionForPasteboard):
762
763 2013-08-18  Darin Adler  <darin@apple.com>
764
765         <https://webkit.org/b/119989> Make use of Node::ownerDocument a compile time error
766
767         Reviewed by Sam Weinig.
768
769         * WebProcess/Plugins/PDF/PDFPluginChoiceAnnotation.mm:
770         (WebKit::PDFPluginChoiceAnnotation::createAnnotationElement): Use document instead of
771         ownerDocument.
772         * WebProcess/Plugins/PDF/PDFPluginTextAnnotation.mm:
773         (WebKit::PDFPluginTextAnnotation::createAnnotationElement): Ditto.
774
775 2013-08-18  Dan Bernstein  <mitz@apple.com>
776
777         Fix clean engineering builds after r154251.
778
779         * WebKit2.xcodeproj/project.pbxproj: Removed references to the OfflineStorage XPC services
780         from the “Copy XPC services for engineering builds” build phase.
781
782 2013-08-18  Gavin Barraclough  <barraclough@apple.com>
783
784         https://bugs.webkit.org/show_bug.cgi?id=119972
785         Add attributes field to PropertySlot
786
787         Reviewed by Geoff Garen.
788
789         For all JSC types, this makes getOwnPropertyDescriptor redundant.
790         There will be a bit more hacking required in WebCore to remove GOPD whilst maintaining current behaviour.
791         (Current behaviour is in many ways broken, particularly in that GOPD & GOPS are inconsistent, but we should fix incrementally).
792
793         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
794         (WebKit::JSNPObject::getOwnPropertySlot):
795         (WebKit::JSNPObject::getOwnPropertyDescriptor):
796             - Pass attributes to PropertySlot::set* methods.
797
798 2013-08-16  Sam Weinig  <sam@webkit.org>
799
800         <https://webkit.org/b/119911> Remove the unused OfflineStorageProcess
801
802         Reviewed by Darin Adler.
803
804         * Configurations/OfflineStorageProcess.xcconfig: Removed.
805         * Configurations/OfflineStorageService.Development.xcconfig: Removed.
806         * Configurations/OfflineStorageService.xcconfig: Removed.
807         * DerivedSources.make:
808         * OfflineStorageProcess: Removed.
809         * OfflineStorageProcess/EntryPoint: Removed.
810         * OfflineStorageProcess/EntryPoint/mac: Removed.
811         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess: Removed.
812         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/Info.plist: Removed.
813         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/OfflineStorageProcessMain.mm: Removed.
814         * OfflineStorageProcess/EntryPoint/mac/XPCService: Removed.
815         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService: Removed.
816         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService.Development: Removed.
817         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService.Development/Info.plist: Removed.
818         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService/Info.plist: Removed.
819         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageServiceEntryPoint.mm: Removed.
820         * OfflineStorageProcess/OfflineStorageProcess.cpp: Removed.
821         * OfflineStorageProcess/OfflineStorageProcess.h: Removed.
822         * OfflineStorageProcess/OfflineStorageProcess.messages.in: Removed.
823         * OfflineStorageProcess/mac: Removed.
824         * OfflineStorageProcess/mac/OfflineStorageProcessMac.mm: Removed.
825         * OfflineStorageProcess/mac/com.apple.WebKit.OfflineStorage.sb: Removed.
826         * Scripts/webkit2/messages.py:
827         * Shared/OfflineStorage: Removed.
828         * Shared/OfflineStorage/OfflineStorageProcessCreationParameters.cpp: Removed.
829         * Shared/OfflineStorage/OfflineStorageProcessCreationParameters.h: Removed.
830         * WebKit2.xcodeproj/project.pbxproj:
831         Remove.
832
833 2013-08-17  Darin Adler  <darin@apple.com>
834
835         <https://webkit.org/b/119941> Make Page::dragController return a reference
836
837         Reviewed by Andreas Kling.
838
839         * WebProcess/WebPage/WebPage.cpp:
840         (WebKit::WebPage::performDragControllerAction):
841         (WebKit::WebPage::dragEnded):
842         Updated call sites.
843
844 2013-08-17  David Kilzer  <ddkilzer@apple.com>
845
846         WebKit2 fails to build with trunk clang: error: 'WebPluginSiteDataManagerh' is used as a header guard here, followed by #define of a different macro [-Werror,-Wheader-guard]
847         <http://webkit.org/b/119935>
848         <rdar://problem/14764131>
849
850         Reviewed by Darin Adler.
851
852         * UIProcess/Plugins/WebPluginSiteDataManager.h: Fix typo
853         introduced in r78647.
854
855 2013-08-16  Pratik Solanki  <psolanki@apple.com>
856
857         <https://webkit.org/b/119852> Frame::scriptController() should return a reference
858
859         Reviewed by Andreas Kling.
860
861         m_script is never NULL so we can just return a reference. Also remove some pointless null
862         checks as a result of doing this.
863
864         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
865         (WebKit::NPRuntimeObjectMap::globalObject):
866         * WebProcess/Plugins/PluginView.cpp:
867         (WebKit::PluginView::performJavaScriptURLRequest):
868         (WebKit::PluginView::windowScriptNPObject):
869         (WebKit::PluginView::pluginElementNPObject):
870         * WebProcess/WebPage/WebFrame.cpp:
871         (WebKit::WebFrame::jsContext):
872         (WebKit::WebFrame::jsContextForWorld):
873         (WebKit::WebFrame::jsWrapperForWorld):
874         * WebProcess/WebPage/WebInspector.cpp:
875         (WebKit::WebInspector::didSave):
876         (WebKit::WebInspector::didAppend):
877         * WebProcess/WebPage/WebPage.cpp:
878         (WebKit::WebPage::runJavaScriptInMainFrame):
879
880 2013-08-16  Brady Eidson  <beidson@apple.com>
881
882         (NetworkProcess)  Sync XHRs should load using async ResourceHandles, not ResourceHandle::loadResourceSynchronously
883         https://bugs.webkit.org/show_bug.cgi?id=119493
884
885         Reviewed by Alexey Proskuryakov.
886
887         This patch does the following:
888           - Consolidates SchedulableLoader and NetworkResourceLoader into one class.
889           - Removes SyncNetworkResourceLoader.
890           - Adds a NetworkLoaderClient interface that customizes certain behaviors of the NetworkResourceLoader.
891           - Implements a SynchronousNetworkLoaderClient and AsynchronousNetworkLoaderClient for the two different types of loads.
892
893         The AsynchronousNetworkLoaderClient results in messaging back progress to the WebProcess as the load progresses.
894         The SynchronousNetworkLoaderClient accumulates the response, data, and error to be communicated back to the WebProcess
895         only when the load is complete.
896
897         Update small swaths of code to reflect that NetworkResourceLoader is the One True Loader (tm):
898         * NetworkProcess/HostRecord.cpp:
899         (WebKit::HostRecord::scheduleResourceLoader):
900         (WebKit::HostRecord::addLoaderInProgress):
901         (WebKit::removeLoaderFromQueue):
902         (WebKit::HostRecord::removeLoader):
903         (WebKit::HostRecord::servePendingRequestsForQueue):
904         (WebKit::HostRecord::limitsRequests):
905         * NetworkProcess/HostRecord.h:
906
907         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
908         (WebKit::NetworkConnectionToWebProcess::didClose):
909         (WebKit::NetworkConnectionToWebProcess::performSynchronousLoad):
910         (WebKit::NetworkConnectionToWebProcess::removeLoadIdentifier):
911         * NetworkProcess/NetworkConnectionToWebProcess.h:
912
913         * NetworkProcess/NetworkProcess.cpp:
914         * NetworkProcess/NetworkResourceLoadScheduler.cpp:
915         (WebKit::NetworkResourceLoadScheduler::scheduleLoader):
916         (WebKit::NetworkResourceLoadScheduler::removeLoader):
917         (WebKit::NetworkResourceLoadScheduler::receivedRedirect):
918         (WebKit::NetworkResourceLoadScheduler::removeScheduledLoaders):
919         (WebKit::NetworkResourceLoadScheduler::scheduleRemoveLoader):
920         * NetworkProcess/NetworkResourceLoadScheduler.h:
921
922         Combine ScheduleableLoader and NetworkResourceLoader into NetworkResourceLoader:
923         * NetworkProcess/NetworkResourceLoader.cpp:
924         (WebKit::NetworkResourceLoader::NetworkResourceLoader):
925         (WebKit::NetworkResourceLoader::~NetworkResourceLoader):
926         (WebKit::NetworkResourceLoader::isSynchronous):
927         (WebKit::NetworkResourceLoader::start):
928         (WebKit::NetworkResourceLoader::didReceiveResponseAsync):
929         (WebKit::NetworkResourceLoader::didReceiveBuffer):
930         (WebKit::NetworkResourceLoader::didFinishLoading):
931         (WebKit::NetworkResourceLoader::didFail):
932         (WebKit::NetworkResourceLoader::willSendRequestAsync):
933         (WebKit::NetworkResourceLoader::continueWillSendRequest):
934         (WebKit::NetworkResourceLoader::didSendData):
935         (WebKit::NetworkResourceLoader::shouldUseCredentialStorage):
936         (WebKit::NetworkResourceLoader::didReceiveAuthenticationChallenge):
937         (WebKit::NetworkResourceLoader::consumeSandboxExtensions):
938         (WebKit::NetworkResourceLoader::invalidateSandboxExtensions):
939         (WebKit::NetworkResourceLoader::canAuthenticateAgainstProtectionSpaceAsync):
940         * NetworkProcess/NetworkResourceLoader.h:
941         (WebKit::NetworkResourceLoader::create):
942         (WebKit::NetworkResourceLoader::connectionToWebProcess):
943         (WebKit::NetworkResourceLoader::priority):
944         (WebKit::NetworkResourceLoader::request):
945         (WebKit::NetworkResourceLoader::isLoadingMainResource):
946         (WebKit::NetworkResourceLoader::setHostRecord):
947         (WebKit::NetworkResourceLoader::hostRecord):
948         (WebKit::NetworkResourceLoader::sendAbortingOnFailure):
949
950         Add an abstract NetworkLoaderClient to adapt a load to be either synchronous or asynchronous:
951         * NetworkProcess/NetworkLoaderClient.h:
952         (WebKit::NetworkLoaderClient::~NetworkLoaderClient):
953         (WebKit::NetworkLoaderClient::isSynchronous):
954         (WebKit::NetworkLoaderClient::NetworkLoaderClient):
955
956         The asynchronous loader client, primarily to message progress back to the WebProcess as it happens:
957         * NetworkProcess/AsynchronousNetworkLoaderClient.cpp: Added.
958         (WebKit::AsynchronousNetworkLoaderClient::AsynchronousNetworkLoaderClient):
959         (WebKit::AsynchronousNetworkLoaderClient::willSendRequest):
960         (WebKit::AsynchronousNetworkLoaderClient::canAuthenticateAgainstProtectionSpace):
961         (WebKit::AsynchronousNetworkLoaderClient::didReceiveResponse):
962         (WebKit::AsynchronousNetworkLoaderClient::didReceiveBuffer):
963         (WebKit::AsynchronousNetworkLoaderClient::didSendData):
964         (WebKit::AsynchronousNetworkLoaderClient::didFinishLoading):
965         (WebKit::AsynchronousNetworkLoaderClient::didFail):
966         * NetworkProcess/AsynchronousNetworkLoaderClient.h:
967         (WebKit::AsynchronousNetworkLoaderClient::create):
968
969         The synchronous loader client, primarily to accumulate results of the load to send back to the WebProcess all at once:
970         * NetworkProcess/SynchronousNetworkLoaderClient.cpp: Added.
971         (WebKit::SynchronousNetworkLoaderClient::SynchronousNetworkLoaderClient):
972         (WebKit::SynchronousNetworkLoaderClient::~SynchronousNetworkLoaderClient):
973         (WebKit::SynchronousNetworkLoaderClient::willSendRequest):
974         (WebKit::SynchronousNetworkLoaderClient::canAuthenticateAgainstProtectionSpace):
975         (WebKit::SynchronousNetworkLoaderClient::didReceiveResponse):
976         (WebKit::SynchronousNetworkLoaderClient::didReceiveBuffer):
977         (WebKit::SynchronousNetworkLoaderClient::didFinishLoading):
978         (WebKit::SynchronousNetworkLoaderClient::didFail):
979         (WebKit::SynchronousNetworkLoaderClient::sendDelayedReply):
980         * NetworkProcess/SynchronousNetworkLoaderClient.h: Added.
981         (WebKit::SynchronousNetworkLoaderClient::create):
982
983         * NetworkProcess/SchedulableLoader.cpp: Removed.
984         * NetworkProcess/SchedulableLoader.h: Removed.
985         * NetworkProcess/SyncNetworkResourceLoader.cpp: Removed.
986         * NetworkProcess/SyncNetworkResourceLoader.h: Removed.
987
988         * WebKit2.xcodeproj/project.pbxproj:
989
990 2013-08-16  Gabor Rapcsanyi  <rgabor@webkit.org>
991
992         [Qt][ARM] Unreviewed buildfix after 154127.
993
994         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h: Add missing header.
995
996 2013-08-15  Ryuan Choi  <ryuan.choi@samsung.com>
997
998         [EFL] Unreviewed build fix after r154142 and r154144.
999
1000         * UIProcess/WebContext.cpp:
1001         (WebKit::WebContext::useTestingNetworkSession):
1002         Fixed build break when NETWORK_PROCESS is disabled after r154144.
1003
1004 2013-08-15  Chris Fleizach  <cfleizach@apple.com>
1005
1006         <https://webkit.org/b/119858> AX: Crash: com.apple.WebKit.WebContent at com.apple.WebKit2: WebKit::WebPage::accessibilityObjectForMainFramePlugin + 8
1007
1008         Reviewed by Tim Horton.
1009
1010         Ensure that the page is available before accessing it.
1011
1012         * WebProcess/WebPage/mac/WebPageMac.mm:
1013         (WebKit::WebPage::accessibilityObjectForMainFramePlugin):
1014
1015 2013-08-15  Alexey Proskuryakov  <ap@apple.com>
1016
1017         [WK2] NetworkProcess should use a temporary storage session for test
1018         https://bugs.webkit.org/show_bug.cgi?id=119855
1019
1020         Reviewed by Darin Adler.
1021
1022         We used to have a bundle API for WebKitTestRunner to do this in injected bundle, but
1023         NetworkProcess has no injected bundle.
1024
1025         Added a WKContext API, sending the information to NetworkProcess with initialization
1026         parameters. Reworked WebProcess path to do the same for consistency - bundle API
1027         is better per se, but not when we also need to have another one.
1028
1029         * NetworkProcess/NetworkProcess.cpp:
1030         (WebKit::NetworkProcess::initializeNetworkProcess):
1031         * Shared/Network/NetworkProcessCreationParameters.cpp:
1032         (WebKit::NetworkProcessCreationParameters::encode):
1033         (WebKit::NetworkProcessCreationParameters::decode):
1034         * Shared/Network/NetworkProcessCreationParameters.h:
1035         * Shared/WebProcessCreationParameters.cpp:
1036         (WebKit::WebProcessCreationParameters::encode):
1037         (WebKit::WebProcessCreationParameters::decode):
1038         * Shared/WebProcessCreationParameters.h:
1039         * UIProcess/API/C/WKContext.cpp:
1040         (WKContextUseTestingNetworkSession):
1041         * UIProcess/API/C/WKContextPrivate.h:
1042         * UIProcess/WebContext.cpp:
1043         (WebKit::WebContext::WebContext):
1044         (WebKit::WebContext::ensureNetworkProcess):
1045         (WebKit::WebContext::createNewWebProcess):
1046         (WebKit::WebContext::useTestingNetworkSession):
1047         * UIProcess/WebContext.h:
1048         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
1049         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
1050         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1051         * WebProcess/InjectedBundle/InjectedBundle.h:
1052         * WebProcess/WebProcess.cpp:
1053         (WebKit::WebProcess::initializeWebProcess):
1054
1055 2013-08-15  Anders Carlsson  <andersca@apple.com>
1056
1057         <https://webkit.org/b/119859> Frame::loader() should return a reference
1058
1059         Reviewed by Andreas Kling.
1060
1061         * Shared/WebRenderLayer.cpp:
1062         (WebKit::WebRenderLayer::create):
1063         * Shared/WebRenderObject.cpp:
1064         (WebKit::WebRenderObject::create):
1065         * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
1066         (WebKit::GeolocationPermissionRequestManager::startRequestForGeolocation):
1067         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1068         (WKBundleFrameGetFrameLoadState):
1069         (WKBundleFrameClearOpener):
1070         (WKBundleFrameCallShouldCloseOnWebView):
1071         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1072         (WebKit::InjectedBundleNodeHandle::documentFrame):
1073         (WebKit::InjectedBundleNodeHandle::htmlFrameElementContentFrame):
1074         (WebKit::InjectedBundleNodeHandle::htmlIFrameElementContentFrame):
1075         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1076         (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner):
1077         * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
1078         (WebKit::InjectedBundleDOMWindowExtension::frame):
1079         * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:
1080         (WebKit::InjectedBundleHitTestResult::frame):
1081         (WebKit::InjectedBundleHitTestResult::targetFrame):
1082         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1083         (WebKit::PDFPlugin::clickedLink):
1084         * WebProcess/Plugins/PluginView.cpp:
1085         (WebKit::webPage):
1086         (WebKit::PluginView::didFailToInitializePlugin):
1087         (WebKit::PluginView::performFrameLoadURLRequest):
1088         (WebKit::PluginView::userAgent):
1089         (WebKit::PluginView::loadURL):
1090         (WebKit::PluginView::cancelManualStreamLoad):
1091         (WebKit::PluginView::proxiesForURL):
1092         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1093         (WebKit::WebChromeClient::focusedElementChanged):
1094         (WebKit::WebChromeClient::focusedFrameChanged):
1095         (WebKit::WebChromeClient::runBeforeUnloadConfirmPanel):
1096         (WebKit::WebChromeClient::closeWindowSoon):
1097         (WebKit::WebChromeClient::runJavaScriptAlert):
1098         (WebKit::WebChromeClient::runJavaScriptConfirm):
1099         (WebKit::WebChromeClient::runJavaScriptPrompt):
1100         (WebKit::WebChromeClient::unavailablePluginButtonClicked):
1101         (WebKit::WebChromeClient::print):
1102         (WebKit::WebChromeClient::exceededDatabaseQuota):
1103         (WebKit::WebChromeClient::runOpenPanel):
1104         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
1105         (WebKit::WebContextMenuClient::searchWithGoogle):
1106         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1107         (WebKit::WebEditorClient::textFieldDidBeginEditing):
1108         (WebKit::WebEditorClient::textFieldDidEndEditing):
1109         (WebKit::WebEditorClient::textDidChangeInTextField):
1110         (WebKit::WebEditorClient::textDidChangeInTextArea):
1111         (WebKit::WebEditorClient::doTextFieldCommandFromEvent):
1112         (WebKit::WebEditorClient::textWillBeDeletedInTextField):
1113         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1114         (WebKit::WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
1115         (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
1116         (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
1117         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
1118         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
1119         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1120         (WebKit::WebFrameLoaderClient::dispatchWillSendSubmitEvent):
1121         (WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
1122         (WebKit::WebFrameLoaderClient::updateGlobalHistory):
1123         (WebKit::WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
1124         (WebKit::WebFrameLoaderClient::restoreViewState):
1125         (WebKit::WebFrameLoaderClient::createFrame):
1126         (WebKit::WebFrameLoaderClient::createJavaAppletWidget):
1127         (WebKit::WebFrameLoaderClient::objectContentType):
1128         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1129         (WebKit::WebPlatformStrategies::getPluginInfo):
1130         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
1131         (WebKit::WebFrameNetworkingContext::blockedError):
1132         * WebProcess/WebPage/WebFrame.cpp:
1133         (WebKit::WebFrame::didReceivePolicyDecision):
1134         (WebKit::WebFrame::startDownload):
1135         (WebKit::WebFrame::source):
1136         (WebKit::WebFrame::contentsAsString):
1137         (WebKit::WebFrame::url):
1138         (WebKit::WebFrame::parentFrame):
1139         (WebKit::WebFrame::childFrames):
1140         (WebKit::WebFrame::stopLoading):
1141         (WebKit::WebFrame::frameForContext):
1142         (WebKit::WebFrame::provisionalURL):
1143         (WebKit::WebFrame::suggestedFilenameForResourceWithURL):
1144         (WebKit::WebFrame::mimeTypeForResourceWithURL):
1145         (WebKit::WebFrameFilter::shouldIncludeSubframe):
1146         * WebProcess/WebPage/WebPage.cpp:
1147         (WebKit::WebPage::createPlugin):
1148         (WebKit::WebPage::close):
1149         (WebKit::WebPage::tryClose):
1150         (WebKit::WebPage::loadURLRequest):
1151         (WebKit::WebPage::loadDataImpl):
1152         (WebKit::WebPage::linkClicked):
1153         (WebKit::WebPage::stopLoadingFrame):
1154         (WebKit::WebPage::stopLoading):
1155         (WebKit::WebPage::reload):
1156         (WebKit::WebPage::tryRestoreScrollPosition):
1157         (WebKit::WebPage::getMainResourceDataOfFrame):
1158         (WebKit::resourceDataForFrame):
1159         (WebKit::shouldReuseCommittedSandboxExtension):
1160         (WebKit::WebPage::SandboxExtensionTracker::didStartProvisionalLoad):
1161         (WebKit::WebPage::hasLocalDataForURL):
1162         (WebKit::WebPage::setCustomTextEncodingName):
1163         (WebKit::WebPage::canPluginHandleResponse):
1164         (WebKit::WebPage::canShowMIMEType):
1165         (WebKit::WebPage::didCommitLoad):
1166         * WebProcess/WebPage/mac/WebPageMac.mm:
1167         (WebKit::WebPage::platformHasLocalDataForURL):
1168         (WebKit::cachedResponseForURL):
1169         * WebProcess/WebProcess.cpp:
1170         (WebKit::WebProcess::downloadRequest):
1171
1172 2013-08-14  Filip Pizlo  <fpizlo@apple.com>
1173
1174         Typed arrays should be rewritten
1175         https://bugs.webkit.org/show_bug.cgi?id=119064
1176
1177         Reviewed by Oliver Hunt.
1178         
1179         You don't need to include JSUint8Array anymore if you just want to
1180         unwrap one; JSDOMBinding gives you all of the things you need.
1181
1182         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1183
1184 2013-08-15  Eric Carlson  <eric.carlson@apple.com>
1185
1186         [Mac] Remove "legacy" media UI
1187         https://bugs.webkit.org/show_bug.cgi?id=119752
1188
1189         Reviewed by Jer Noble.
1190
1191         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
1192         (InitWebCoreSystemInterface): Remove MediaControllerThemeAvailable.
1193
1194 2013-08-14  Dean Jackson  <dino@apple.com>
1195
1196         <https://webkit.org/b/119827> Allow primary plug-in detection to run more than once if necessary
1197
1198         Reviewed by Tim Horton.
1199
1200         We occasionally see cases where the primary plug-in detection runs before the plugins have been added
1201         to the page, especially if they do so in response to a load event. Tweak the algorithm so that it can
1202         run an arbitrary number of times if it fails.
1203
1204         While here, also have the detection run if there has ever been a plugin in the page as opposed to any
1205         current views. We may have snapshotted a plugin by now and deleted its view.
1206
1207         * WebProcess/WebPage/WebPage.cpp:
1208         (WebKit::WebPage::WebPage): initialise new members.
1209         (WebKit::WebPage::addPluginView): Mark that we've seen a plugin.
1210         (WebKit::WebPage::resetPrimarySnapshottedPlugIn): Reset new members.
1211         (WebKit::WebPage::determinePrimarySnapshottedPlugIn): Exit early if we've never
1212         seen a plugin, rather than if we don't have any active views. Also, if we didn't find anything set
1213         a timer to run again (maximum of two attempts at the moment).
1214         * WebProcess/WebPage/WebPage.h: New members - m_numberOfPrimarySnapshotDetectionAttempts
1215         and m_hasSeenPlugin.
1216
1217 2013-08-14  Dean Jackson  <dino@apple.com>
1218
1219         <https://webkit.org/b/119820> Add pluginView-related logging to WebPage
1220
1221         Reviewed by Tim Horton.
1222
1223         Add some more diagnostic output to help track down bugs.
1224
1225         * WebProcess/WebPage/WebPage.cpp:
1226         (WebKit::WebPage::addPluginView): More logging.
1227         (WebKit::WebPage::removePluginView): Ditto.
1228
1229 2013-08-14  Alexey Proskuryakov  <ap@apple.com>
1230
1231         [WK2] Sync messages with with non-default timeout sent from secondary threads always time out
1232         https://bugs.webkit.org/show_bug.cgi?id=119767
1233
1234         Fix by Justin Bur.
1235         Reviewed by Darin Adler.
1236
1237         * Platform/CoreIPC/Connection.cpp: (CoreIPC::Connection::sendSyncMessageFromSecondaryThread):
1238         The argument to wait() is absolute time, not a delta. This calculation matches one
1239         in Connection::waitForMessage().
1240
1241 2013-08-14  Tim Horton  <timothy_horton@apple.com>
1242
1243         REGRESSION (r153877): Plugin scanning slows creation of WebViews
1244         https://bugs.webkit.org/show_bug.cgi?id=119665
1245         <rdar://problem/14716549>
1246
1247         Reviewed by Darin Adler.
1248
1249         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1250         (WebKit::WebPlatformStrategies::refreshPlugins):
1251         Don't repopulate the plugin cache in refreshPlugins, just invalidate it.
1252         It will be repopulated the next time something tries to use it.
1253
1254 2013-08-12  Dan Bernstein  <mitz@apple.com>
1255
1256         Fixed an off-by-(sizeof(char*) - 1) bug.
1257
1258         Reviewed by Sam Weinig.
1259
1260         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm:
1261         (WebKit::XPCServiceEventHandler): Allocate a sufficiently large buffer.
1262
1263 2013-08-12  Beth Dakin  <bdakin@apple.com>
1264
1265         Remove didNewFirstVisuallyNonEmptyLayout from WebKit2
1266         https://bugs.webkit.org/show_bug.cgi?id=119658
1267
1268         Reviewed by Darin Adler.
1269
1270         Removing this function entirely will change some functionality in the Nightlies, 
1271         but we think that is an acceptable difference for the Nightlies. If is does cause 
1272         a problem though, we can roll out this patch and deprecate the function instead.
1273
1274         * UIProcess/API/C/WKPage.h:
1275         * UIProcess/WebLoaderClient.cpp:
1276         * UIProcess/WebLoaderClient.h:
1277         * UIProcess/WebPageProxy.cpp:
1278         (WebKit::WebPageProxy::initializeLoaderClient):
1279         * UIProcess/WebPageProxy.h:
1280         * UIProcess/WebPageProxy.messages.in:
1281         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
1282         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
1283         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
1284         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1285         (WebKit::WebFrameLoaderClient::dispatchDidLayout):
1286         * WebProcess/WebPage/WebPage.cpp:
1287         (WebKit::WebPage::initializeInjectedBundleLoaderClient):
1288
1289 2013-08-12  Arunprasad Rajkumar  <arurajku@cisco.com>
1290
1291         [Qt] [WebKit2] Remove duplicate RAM Size calculation and reuse WTF::ramSize()
1292         https://bugs.webkit.org/show_bug.cgi?id=119663
1293
1294         Reviewed by Sam Weinig.
1295
1296         * WebProcess/qt/WebProcessQt.cpp:
1297         (WebKit::WebProcess::platformSetCacheModel):
1298
1299 2013-08-12  Anton Obzhirov  <a.obzhirov@samsung.com>
1300
1301         [GTK] Don't load GAIL when using GTK 3.2 or greater
1302         https://bugs.webkit.org/show_bug.cgi?id=72735
1303
1304         Reviewed by Carlos Garcia Campos.
1305
1306         * UIProcess/API/gtk/tests/AccessibilityTestServer.cpp:
1307         (main):
1308
1309 2013-08-09  Beth Dakin  <bdakin@apple.com>
1310
1311         AX: Not able to use arrow keys to read text in a WK2 app
1312         https://bugs.webkit.org/show_bug.cgi?id=119605
1313         -and corresponding-
1314         <rdar://problem/14281275>
1315
1316         Reviewed by Darin Adler.
1317
1318         Make all of these scrolling functions actually return the WebCore bools that 
1319         indicate whether or not scrolling happened. 
1320         * WebProcess/WebPage/WebPage.cpp:
1321         (WebKit::WebPage::scroll):
1322         (WebKit::WebPage::logicalScroll):
1323         (WebKit::WebPage::scrollBy):
1324         * WebProcess/WebPage/WebPage.h:
1325         * WebProcess/WebPage/mac/WebPageMac.mm:
1326         (WebKit::WebPage::executeKeypressCommandsInternal):
1327
1328         This function now gives accessibility a chance to handle the event too. And it 
1329         also actually tracks whether or not the event was handled by scrolling instead of 
1330         assuming that it was and universally returning true.
1331         (WebKit::WebPage::performNonEditingBehaviorForSelector):
1332
1333 2013-08-09  Brian Holt  <brian.holt@samsung.com>
1334
1335         [GTK] [WebKit2] Add an 'authenticate' signal to WebKitWebView
1336         https://bugs.webkit.org/show_bug.cgi?id=99352
1337
1338         Reviewed by Carlos Garcia Campos.
1339
1340         Add a new public class to the API, WebKitAuthenticationRequest, to be
1341         emitted along with a new WebKitWebView::authenticate signal to
1342         let client applications to provide their own authentication
1343         when the user is challenged with HTTP authentication. The
1344         credential is exposed through a new class WebKitCredential.
1345
1346         * GNUmakefile.list.am:
1347         * UIProcess/API/gtk/WebKitAuthenticationDialog.cpp:
1348         (okButtonClicked): Use new API for authentication.
1349         (cancelButtonClicked): Ditto.
1350         (webkitAuthenticationDialogInitialize):Get
1351         authenticationChallenge from request object.
1352         (webkitAuthenticationDialogNew): Ditto.
1353         * UIProcess/API/gtk/WebKitAuthenticationDialog.h:
1354         * UIProcess/API/gtk/WebKitAuthenticationRequest.cpp: Added new
1355         class representing a HTTP authentication request.
1356         (webkitAuthenticationRequestDispose):
1357         (webkit_authentication_request_class_init):
1358         (webkitAuthenticationRequestCreate):
1359         (webkitAuthenticationRequestGetAuthenticationChallenge):
1360         (webkit_authentication_request_can_save_credentials):
1361         (webkit_authentication_request_get_proposed_credential):
1362         (webkit_authentication_request_get_host):
1363         (webkit_authentication_request_get_port):
1364         (webkit_authentication_request_get_realm):
1365         (webkit_authentication_request_get_scheme):
1366         (webkit_authentication_request_is_for_proxy):
1367         (webkit_authentication_request_is_retry):
1368         (webkit_authentication_request_authenticate):
1369         (webkit_authentication_request_cancel):
1370         * UIProcess/API/gtk/WebKitAuthenticationRequest.h: Added.
1371         * UIProcess/API/gtk/WebKitAuthenticationRequestPrivate.h: Added.
1372         * UIProcess/API/gtk/WebKitCredential.cpp: Added new class to
1373         support credentials for HTTP authentication.
1374         (_WebKitCredential::_WebKitCredential):
1375         (webkitCredentialCreate):
1376         (webkitCredentialGetCredential):
1377         (webkit_credential_new):
1378         (webkit_credential_copy):
1379         (webkit_credential_free):
1380         (webkit_credential_get_username):
1381         (webkit_credential_get_password):
1382         (webkit_credential_has_password):
1383         (webkit_credential_get_persistence):
1384         * UIProcess/API/gtk/WebKitCredential.h: Added.
1385         * UIProcess/API/gtk/WebKitCredentialPrivate.h: Added.
1386         * UIProcess/API/gtk/WebKitWebView.cpp: Added authenticate signal.
1387         (webkitWebViewAuthenticate): Default signal handler for authenticate.
1388         (webkit_web_view_class_init): Ditto.
1389         (webkitWebViewHandleAuthenticationChallenge): Create an
1390         authentication request and emit it with authenticate signal.
1391         * UIProcess/API/gtk/WebKitWebView.h: Replaced reserved function
1392         pointer slot with for WebViewClass with function pointer to
1393         authenticate signal handler.
1394         * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml: Added new section for
1395         the authentication request.
1396         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Ditto.
1397         * UIProcess/API/gtk/docs/webkit2gtk.types: Added authentication
1398         request and credential types.
1399         * UIProcess/API/gtk/tests/TestWebKitWebView.cpp: Created a new
1400         unit test for HTTP authentication. A libsoup server callback
1401         handler is installed that creates soup messages with appropriate
1402         headers and body to test HTTP authentication.
1403         (testWebViewAuthenticationRequest): Test the authentication
1404         request and credential API.
1405         (testWebViewAuthenticationCancel): Test cancelled authentication.
1406         (testWebViewAuthenticationFailure): Test repeated authentication failures.
1407         (testWebViewAuthenticationNoCredential): Test continue without
1408         credentials.
1409         (testWebViewAuthenticationStorage): Test credential storage.
1410         (testWebViewAuthenticationSuccess): Test successful authentication.
1411         (beforeAll): Added tests.
1412         * UIProcess/API/gtk/webkit2.h: Added WebKitAuthenticationRequest and
1413         WebKitCredential headers.
1414
1415 2013-08-09  Tim Horton  <timothy_horton@apple.com>
1416
1417         PDFPlugin is disabled by default in nightlies on Mac accidentally
1418         https://bugs.webkit.org/show_bug.cgi?id=119615
1419
1420         Rubber-stamped by Andreas Kling.
1421
1422         Enable PDFPlugin by default on Mac at the WebKit2 level.
1423
1424         * Shared/WebPreferencesStore.h:
1425         * UIProcess/API/C/WKPreferencesPrivate.h:
1426
1427 2013-08-08  Tim Horton  <timothy_horton@apple.com>
1428
1429         navigator.plugins has plugins in it when plugins are disabled
1430         https://bugs.webkit.org/show_bug.cgi?id=119607
1431         <rdar://problem/14678030>
1432
1433         Reviewed by Anders Carlsson.
1434
1435         * UIProcess/WebProcessProxy.cpp:
1436         (WebKit::WebProcessProxy::getPlugins):
1437         Return a list of all plugins, and a list of only application plugins.
1438
1439         * UIProcess/WebProcessProxy.h:
1440         * UIProcess/WebProcessProxy.messages.in:
1441         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
1442         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1443         (WebKit::WebPlatformStrategies::getPluginInfo):
1444         Add applicationPlugin parameter to getPlugins, and storage for the returned list.
1445
1446         (WebKit::WebPlatformStrategies::populatePluginCache):
1447         If plugins are disabled for the given page, give WebCore the list that
1448         only includes application plugins. Otherwise, give it the whole list
1449         as we are doing currently.
1450
1451 2013-08-08  Gavin Barraclough  <barraclough@apple.com>
1452
1453         Disable suppression of plugin process for Java
1454         https://bugs.webkit.org/show_bug.cgi?id=119604
1455
1456         Reviewed by Sam Weinig.
1457
1458         Workaround, the Java plugin doesn't like this.
1459
1460         * PluginProcess/mac/PluginProcessMac.mm:
1461         (WebKit::PluginProcess::platformInitializeProcess):
1462             - +1 active task count on the java plugin, to inhibit supression.
1463
1464 2013-08-08  Dean Jackson  <dino@apple.com>
1465
1466         Add logging to the primary plugin detection
1467         https://bugs.webkit.org/show_bug.cgi?id=119594
1468
1469         Reviewed by Tim Horton.
1470
1471         Add some simple logging to our primary plug-in detection.
1472
1473         * WebProcess/WebPage/WebPage.cpp:
1474         (WebKit::WebPage::determinePrimarySnapshottedPlugIn):
1475
1476 2013-08-08  Alexey Proskuryakov  <ap@apple.com>
1477
1478         WKBundleFrameCopyProvisionalURL crashes when there is no provisional loader
1479         https://bugs.webkit.org/show_bug.cgi?id=119587
1480
1481         Reviewed by Darin Adler.
1482
1483         * WebProcess/WebPage/WebFrame.cpp: (WebKit::WebFrame::provisionalURL): Added a null
1484         check, like we already have in WebFrame::url().
1485
1486 2013-08-07  Antti Koivisto  <antti@apple.com>
1487
1488         Try to fix EFL build.
1489         
1490         Not reviewed.
1491
1492         * CMakeLists.txt:
1493
1494 2013-08-06  Jer Noble  <jer.noble@apple.com>
1495
1496         Crash when entering fullscreen video playback from a WebView using WebKit2
1497         https://bugs.webkit.org/show_bug.cgi?id=119531
1498
1499         Reviewed by Tim Horton.
1500
1501         Initialize wkWindowSetScaledFrame and wkWindowSetAlpha when initializing WebCoreSystemInterface.
1502
1503         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
1504         (InitWebCoreSystemInterface):
1505
1506 2013-08-06  Stephanie Lewis  <slewis@apple.com>
1507
1508         Update Order Files for Safari
1509         <rdar://problem/14517392>
1510
1511         Unreviewed.
1512
1513         * mac/WebKit2.order:
1514
1515 2013-08-04  Sam Weinig  <sam@webkit.org>
1516
1517         Remove support for HTML5 MicroData
1518         https://bugs.webkit.org/show_bug.cgi?id=119480
1519
1520         Reviewed by Anders Carlsson.
1521
1522         * Configurations/FeatureDefines.xcconfig:
1523
1524 2013-08-06  Eunmi Lee  <eunmi15.lee@samsung.com>
1525
1526         [EFL][WK2] Implement gesture recognizer.
1527         https://bugs.webkit.org/show_bug.cgi?id=102643
1528
1529         Reviewed by Gyuyoung Kim.
1530
1531         Recognize tap, pan and pinch gestures using touch events.
1532         The tap gesture is separated into single tap, double tap and
1533         'tap and hold'.
1534
1535         This patch references the webkit NIX port.
1536         https://github.com/WebKitNix/webkitnix
1537
1538         * PlatformEfl.cmake:
1539         * UIProcess/API/efl/EwkView.cpp:
1540         (EwkView::EwkView):
1541         (EwkView::doneWithTouchEvent):
1542         * UIProcess/API/efl/EwkView.h:
1543         * UIProcess/API/efl/GestureRecognizer.cpp: Added.
1544         (WebKit::GestureHandler::create):
1545         (WebKit::GestureHandler::GestureHandler):
1546         (WebKit::GestureHandler::handleSingleTap):
1547         (WebKit::GestureHandler::handleDoubleTap):
1548         (WebKit::GestureHandler::handleTapAndHold):
1549         (WebKit::GestureHandler::handlePanStarted):
1550         (WebKit::GestureHandler::handlePan):
1551         (WebKit::GestureHandler::handlePanFinished):
1552         (WebKit::GestureHandler::handlePinchStarted):
1553         (WebKit::GestureHandler::handlePinch):
1554         (WebKit::GestureHandler::handlePinchFinished):
1555         (WebKit::GestureRecognizer::GestureRecognizer):
1556         (WebKit::GestureRecognizer::~GestureRecognizer):
1557         (WebKit::GestureRecognizer::processTouchEvent):
1558         (WebKit::GestureRecognizer::doubleTapTimerCallback):
1559         (WebKit::GestureRecognizer::tapAndHoldTimerCallback):
1560         (WebKit::GestureRecognizer::exceedsPanThreshold):
1561         (WebKit::GestureRecognizer::exceedsDoubleTapThreshold):
1562         (WebKit::getPointAtIndex):
1563         (WebKit::createVectorWithWKArray):
1564         (WebKit::GestureRecognizer::noGesture):
1565         (WebKit::GestureRecognizer::singleTapGesture):
1566         (WebKit::GestureRecognizer::doubleTapGesture):
1567         (WebKit::GestureRecognizer::panGesture):
1568         (WebKit::GestureRecognizer::pinchGesture):
1569         (WebKit::GestureRecognizer::reset):
1570         (WebKit::GestureRecognizer::stopTapTimers):
1571         * UIProcess/API/efl/GestureRecognizer.h: Added.
1572         (WebKit::GestureRecognizer::create):
1573
1574 2013-07-23  David Farler  <dfarler@apple.com>
1575
1576         Provide optional OTHER_CFLAGS, OTHER_CPPFLAGS, OTHER_LDFLAGS additions for building with ASAN
1577         https://bugs.webkit.org/show_bug.cgi?id=117762
1578
1579         Reviewed by Mark Rowe.
1580
1581         * Configurations/DebugRelease.xcconfig:
1582         Add ASAN_OTHER_CFLAGS, CPLUSPLUSFLAGS, LDFLAGS.
1583         * Configurations/WebContentProcess.xcconfig:
1584         Add ASAN_OTHER_LDFLAGS.
1585         * Configurations/WebKit2.xcconfig:
1586         Add ASAN_OTHER_LDFLAGS.
1587
1588 2013-08-06  Andreas Kling  <akling@apple.com>
1589
1590         REGRESSION(r151403): Resizing is extremely laggy on many sites when plugins are disallowed.
1591         <http://webkit.org/b/119516>
1592         <rdar://problem/14648086>
1593
1594         Reviewed by Simon Fraser.
1595
1596         The web process relies on the WindowAndViewFramesChanged mechanism for caching a copy
1597         of the window rect for fast access from DOMWindow APIs.
1598
1599         We retain part of the optimization introduced in r151403, namely not computing the
1600         viewFrameInWindowCoordinates and accessibilityPosition unless the web process needs them.
1601
1602         * UIProcess/API/mac/WKView.mm:
1603         (-[WKView _updateWindowAndViewFrames]):
1604
1605 2013-07-26  Mark Rowe  <mrowe@apple.com>
1606
1607         Logging should be configurable using human-readable channel names rather than crazy bitmasks
1608         <http://webkit.org/b/119031>
1609
1610         Implement shared logic for initializing logging channels based on human-readable channel names in WTF,
1611         and rework the WebCore, WebKit and WebKit2 logging initialization on top of it.
1612
1613         Logging channels may now be enabled by providing a comma-separated list of channel names, with the special
1614         "all" name enabling all channels. Channel names prefixed with a leading "-" will result in the named channel
1615         being disabled. For instance, specifying "all,-history,-loading" will result in all logging channels except
1616         for history and loading being enabled.
1617
1618         For OS X developers, this also changes the name of the user defaults used to enable logging. This is done to allow
1619         the old user defaults to remain set for those people that need to switch between version of WebKit before and
1620         after this change. Where the old user default keys were WebCoreLogLevel, WebKitLogLevel and WebKit2LogLevel,
1621         the new user default keys are WebCoreLogging, WebKitLogging and WebKit2Logging.
1622
1623         For GTK developers, this changes the separator used in the WEBKIT_DEBUG environment variable to a comma for
1624         consistency with the other platforms and to enable more code sharing.
1625
1626         While doing this work I've also taken the opportunity to eliminate the need to touch multiple files when
1627         adding a new logging channel. Now only the header in the relevant project needs to be updated.
1628
1629         Reviewed by Sam Weinig.
1630
1631         * NetworkProcess/NetworkProcess.cpp: Switch from WebCore's InitializeLogging.h to Logging.h.
1632         * Platform/Logging.cpp: Use WEBKIT2_LOG_CHANNELS to define all of the channels.
1633         (WebKit::initializeLogChannelsIfNecessary): Pass the channels and the log level string to the new WTF function
1634         that handles the initialization.
1635         (WebKit::logChannelByName): Renamed to match our naming conventions. Calls through to the new WTF function
1636         to find a log channel rather than repeating the names of the log channels a further two times each.
1637         (WebKit::logLevelString): Provide a no-op implementation.
1638         * Platform/Logging.h: Declare a WEBKIT2_LOG_CHANNELS macro that can be used to apply a preprocessor macro
1639         across the set of all logging channels. Use this macro to declare the logging channels.
1640         * Platform/efl/LoggingEfl.cpp:
1641         (WebKit::logLevelString): Pull the value out of the WEBKIT_DEBUG environment variable.
1642         * Platform/gtk/LoggingGtk.cpp:
1643         (WebKit::logLevelString): Ditto.
1644         * Platform/mac/Logging.mac.mm:
1645         (WebKit::logLevelString): Pull the value out of the WebKit2Logging user default key.
1646         * Platform/qt/LoggingQt.cpp:
1647         (WebKit::logLevelString): Pull the value out of the QT_WEBKIT_LOG environment variable.
1648         * Shared/WebKit2Initialize.cpp: Switch from WebCore's InitializeLogging.h to Logging.h.
1649         * UIProcess/WebContext.cpp: Switch from WebCore's InitializeLogging.h to Logging.h.
1650
1651 2013-08-05  Anders Carlsson  <andersca@apple.com>
1652
1653         Ignore the Apple Java placeholder plug-in
1654         https://bugs.webkit.org/show_bug.cgi?id=119494
1655         <rdar://problem/14610818>
1656
1657         Reviewed by Beth Dakin.
1658
1659         Never attempt to load the Java placeholder plug-in.
1660
1661         * UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
1662         (WebKit::PluginInfoStore::shouldUsePlugin):
1663
1664 2013-08-03  Tim Horton  <timothy_horton@apple.com>
1665
1666         Unreviewed, build and style fix for r153693.
1667
1668         * UIProcess/WebProcessProxy.cpp:
1669         * WebProcess/Plugins/PDF/PDFPlugin.h:
1670         * WebProcess/WebPage/WebPage.cpp:
1671
1672 2013-08-03  Tim Horton  <timothy_horton@apple.com>
1673
1674         Remove SimplePDFPlugin
1675         https://bugs.webkit.org/show_bug.cgi?id=119437
1676
1677         Reviewed by Alexey Proskuryakov.
1678
1679         * UIProcess/WebProcessProxy.cpp:
1680         (WebKit::WebProcessProxy::getPlugins):
1681         * WebProcess/WebPage/WebPage.cpp:
1682         (WebKit::WebPage::createPlugin):
1683         Don't add SimplePDFPlugin, nor try to instantiate it.
1684
1685         * WebProcess/Plugins/PDF/PDFPlugin.h:
1686         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1687         Merge previously inherited behavior in from SimplePDFPlugin.
1688
1689         * WebKit2.xcodeproj/project.pbxproj:
1690         * WebProcess/Plugins/PDF/SimplePDFPlugin.h: Removed.
1691         * WebProcess/Plugins/PDF/SimplePDFPlugin.mm: Removed.
1692         Remove SimplePDFPlugin.
1693
1694 2013-08-03  Tim Horton  <timothy_horton@apple.com>
1695
1696         Remove pageOverlayShouldApplyFadeWhenPainting() and adopt composited fade for the Mac port
1697         https://bugs.webkit.org/show_bug.cgi?id=119411
1698
1699         Reviewed by Simon Fraser.
1700
1701         Mac is the only holdout that performs non-composited fades of page
1702         overlays. We should adopt that mechanism (as a precursor to doing a
1703         CA-accelerated fade) and remove the now-unnecessary property.
1704
1705         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
1706         (WKBundlePageOverlayFractionFadedIn):
1707         Always return 1 (fully-faded-in) so that clients who attempt to use this
1708         to bake the fade opacity into their painting will paint at full opacity,
1709         allowing us to do the composited fade separately.
1710
1711         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
1712         * WebProcess/WebPage/DrawingArea.h:
1713         * WebProcess/WebPage/DrawingAreaImpl.cpp:
1714         * WebProcess/WebPage/DrawingAreaImpl.h:
1715         * WebProcess/WebPage/LayerTreeHost.h:
1716         * WebProcess/WebPage/PageOverlay.cpp:
1717         (WebKit::PageOverlay::PageOverlay):
1718         (WebKit::PageOverlay::setPage):
1719         (WebKit::PageOverlay::setNeedsDisplay):
1720         (WebKit::PageOverlay::fadeAnimationTimerFired):
1721         * WebProcess/WebPage/PageOverlay.h:
1722         Remove pageOverlayShouldApplyFadeWhenPainting and fractionFadedIn().
1723
1724         * WebProcess/WebPage/FindController.cpp:
1725         (WebKit::FindController::drawRect):
1726         Draw the find overlay without taking the PageOverlay's fade into account.
1727
1728         * WebProcess/WebPage/TapHighlightController.cpp:
1729         (WebKit::TapHighlightController::drawRect):
1730         Remove pageOverlayShouldApplyFadeWhenPainting. Since it's always
1731         "false" for all ports now, take the second path here.
1732
1733         * WebProcess/WebPage/mac/LayerTreeHostMac.h:
1734         * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
1735         (WebKit::LayerTreeHostMac::setPageOverlayOpacity):
1736         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1737         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1738         (WebKit::TiledCoreAnimationDrawingArea::setPageOverlayOpacity):
1739         Implement setPageOverlayOpacity for DrawingAreaImpl
1740         and TiledCoreAnimationDrawingArea.
1741
1742 2013-08-02  Gavin Barraclough  <barraclough@apple.com>
1743
1744         Remove no-arguments constructor to PropertySlot
1745         https://bugs.webkit.org/show_bug.cgi?id=119460
1746
1747         Reviewed by Geoff Garen.
1748
1749         This constructor was unsafe if getValue is subsequently called,
1750         and the property is a getter. Simplest to just remove it.
1751
1752         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
1753         (WebKit::JSNPObject::getOwnPropertyDescriptor):
1754
1755 2013-08-02  Ruth Fong  <ruth_fong@apple.com>
1756
1757         [Forms: color] WebColorPickerMac deconstructor shouldn't assert a variable
1758         <rdar://problem/14627633> and https://bugs.webkit.org/show_bug.cgi?id=119419
1759
1760         Reviewed by Tim Horton.
1761
1762         * UIProcess/mac/WebColorPickerMac.mm:
1763         (WebKit::WebColorPickerMac::~WebColorPickerMac): If the m_colorPickerUI variable
1764           is not null, then properly destroy it first before destroying WebColorPickerMac object.
1765
1766 2013-08-02  Ruth Fong  <ruth_fong@apple.com>
1767
1768         [Forms: color] The positioning of the popover color well is inverted
1769         <rdar://problem/14635621> and https://bugs.webkit.org/show_bug.cgi?id=119455
1770
1771         Reviewed by Tim Horton.
1772
1773         This patch converts the coordinates of the <input type='color'> element to
1774         the window's base coordinate system.
1775
1776         * UIProcess/mac/WebColorPickerMac.mm:
1777         (-[WKColorPopoverMac initWithFrame:inView:]):
1778
1779 2013-08-01  Ruth Fong  <ruth_fong@apple.com>
1780
1781         [Forms: color] <input type='color'> popover color well implementation
1782         <rdar://problem/14411008> and https://bugs.webkit.org/show_bug.cgi?id=119356
1783
1784         Reviewed by Benjamin Poulain.
1785
1786         This patch adds an popover implementation of <input type='color'>.
1787
1788         * Configurations/FeatureDefines.xcconfig: Added and enabled INPUT_TYPE_COLOR_POPOVER.
1789
1790         * UIProcess/API/mac/PageClientImpl.mm:
1791         (WebKit::PageClientImpl::createColorPicker): Updated to pass the 
1792           coordinates of the <input type='color'> element and the WKView 
1793           object for the window.
1794
1795         * UIProcess/WebPageProxy.cpp:
1796         (WebKit::WebPageProxy::viewWillStartLiveResize): Close popover color 
1797           picker when the view is resized.
1798         (WebKit::WebPageProxy::viewInWindowStateDidChange): Close popover color
1799           picker when the view is no longer in the window.
1800         (WebKit::WebPageProxy::showColorPicker): Updated to show either a color panel
1801           or a popover color picker depending on whether INPUT_TYPE_COLOR_POPOVER is enabled.
1802
1803         * UIProcess/mac/WebColorPickerMac.h:
1804         * UIProcess/mac/WebColorPickerMac.mm:
1805         (WebKit::WebColorPickerMac::create):
1806         (WebKit::WebColorPickerMac::~WebColorPickerMac):
1807         (WebKit::WebColorPickerMac::WebColorPickerMac):
1808         (WebKit::WebColorPickerMac::endPicker):
1809         (WebKit::WebColorPickerMac::setSelectedColor):
1810         (WebKit::WebColorPickerMac::showColorPicker):
1811         Methods updated to handle both the color panel implementation and 
1812           the popover implementation; also renamed m_panel to m_colorPickerUI. 
1813
1814         (-[WKColorPopoverMac initWithFrame:WebCore::inView:]):
1815         (-[WKColorPopoverMac setAndShowPicker:WebKit::withColor:]):
1816         (-[WKColorPopoverMac dealloc]):
1817         (-[WKColorPopoverMac invalidate]):
1818         (-[WKColorPopoverMac windowWillClose:]):
1819         (-[WKColorPopoverMac didChooseColor:]):
1820         (-[WKColorPopoverMac setColor:]):
1821         WKColorPopoverMac provides the popover implementation of <input type='color'>.
1822
1823         (-[WKColorPanelMac didChooseColor:]): Updated to match the interface of 
1824           WKColorPickerMac::didChooseColor.
1825
1826 2013-08-01  Anders Carlsson  <andersca@apple.com>
1827
1828         Lots of leaks under WebContext::pluginInfoStoreDidLoadPlugins()
1829         https://bugs.webkit.org/show_bug.cgi?id=119412
1830
1831         Reviewed by Simon Fraser.
1832
1833         For some sick reason, the WKContextClient plugInInformationBecameAvailable callback function
1834         expects a +1 reference to the plug-in array. Isolate that hack to WebContextClient so that
1835         we don't leak the array if there is no WKContextClient.
1836         
1837         * UIProcess/WebContext.cpp:
1838         (WebKit::WebContext::pluginInfoStoreDidLoadPlugins):
1839         * UIProcess/WebContextClient.cpp:
1840         (WebKit::WebContextClient::plugInInformationBecameAvailable):
1841
1842 2013-08-01  Kwang Yul Seo  <skyul@company100.net>
1843
1844         Remove return statement in void function
1845         https://bugs.webkit.org/show_bug.cgi?id=119379
1846
1847         Reviewed by Darin Adler.
1848
1849         It does not make sense to return a value in void function.
1850
1851         * WebProcess/WebProcess.cpp:
1852         (WebKit::addCaseFoldedCharacters):
1853
1854 2013-08-01  Kwang Yul Seo  <skyul@company100.net>
1855
1856         [WK2] Add USE(SOUP) guard in WebProcess::destroyPrivateBrowsingSession
1857         https://bugs.webkit.org/show_bug.cgi?id=119381
1858
1859         Reviewed by Darin Adler.
1860
1861         The is a followup to r153355. I missed to add USE(SOUP) guard in
1862         WebProcess::destroyPrivateBrowsingSession.
1863
1864         * WebProcess/WebProcess.cpp:
1865         (WebKit::WebProcess::destroyPrivateBrowsingSession):
1866
1867 2013-08-01  Milian Wolff  <milian.wolff@kdab.com>
1868
1869         [Qt] Enable QML handling of crashed/unresponsive QtWebProcess
1870         https://bugs.webkit.org/show_bug.cgi?id=108474
1871
1872         Forward the processDidCrash, didRelaunchProcess, processDidBecomeUnresponsive
1873         and processDidBecomeResponsive signals to QML's WebView.experimental.
1874
1875         Reviewed by Jocelyn Turcotte.
1876
1877         * UIProcess/API/qt/qquickwebview.cpp:
1878         (QQuickWebViewPrivate::processDidCrash):
1879         (QQuickWebViewPrivate::didRelaunchProcess):
1880         (QQuickWebViewPrivate::processDidBecomeUnresponsive):
1881         (QQuickWebViewPrivate::processDidBecomeResponsive):
1882         * UIProcess/API/qt/qquickwebview_p.h:
1883         * UIProcess/API/qt/qquickwebview_p_p.h:
1884         (QQuickWebViewPrivate):
1885
1886 2013-07-31  Kwang Yul Seo  <skyul@company100.net>
1887
1888         Use emptyString instead of String("")
1889         https://bugs.webkit.org/show_bug.cgi?id=119335
1890
1891         Reviewed by Darin Adler.
1892
1893         Use emptyString() instead of String("") because it is better style and
1894         faster. This is a followup to r116908, removing all occurrences of
1895         String("") from WebKit.
1896
1897         * Shared/mac/WebEventFactory.mm:
1898         (WebKit::textFromEvent):
1899         (WebKit::unmodifiedTextFromEvent):
1900
1901 2013-07-31  Ruth Fong  <ruth_fong@apple.com>
1902
1903         <input type=color> Mac UI behaviour
1904         <rdar://problem/10269922> and https://bugs.webkit.org/show_bug.cgi?id=61276
1905
1906         Implemented <input type='color'> on Mac using the native color picker. 
1907
1908         Reviewed by Brady Eidson.
1909
1910         Code for WebColorPickerMac is derived from Chromium's color_chooser_mac.mm:
1911         https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/ui/cocoa/color_chooser_mac.mm
1912
1913         * Configurations/FeatureDefines.xcconfig: Enabled INPUT_TYPE_COLOR.
1914
1915         * UIProcess/API/mac/PageClientImpl.mm:
1916         (WebKit::PageClientImpl::createColorPicker): Replaced stub implementation
1917           and return a WebColorPickerMac object.
1918
1919         * UIProcess/WebColorPicker.cpp:
1920         (WebKit::WebColorPicker::invalidate): Updated to call endChooser().
1921         (WebKit::WebColorPicker::showColorPicker): Added stub implementation.
1922         * UIProcess/WebColorPicker.h:
1923
1924         * UIProcess/WebPageProxy.cpp:
1925         (WebKit::WebPageProxy::close): Removed invalidation of removed color picker objects.
1926         (WebKit::WebPageProxy::showColorPicker): Updated so that it works for
1927           multiple <input type='color'> elements on a page.
1928         (WebKit::WebPageProxy::didEndColorPicker): Removed cleanup of removed color picker objects.
1929         (WebKit::WebPageProxy::resetStateAfterProcessExited): Removed cleanup of removed color picker objects.
1930
1931         * UIProcess/mac/WebColorPickerMac.h: Added.
1932         * UIProcess/mac/WebColorPickerMac.mm: Added.
1933         (WebKit::WebColorPickerMac::create):
1934         (WebKit::WebColorPickerMac::~WebColorPickerMac):
1935         (WebKit::WebColorPickerMac::WebColorPickerMac):
1936         (WebKit::WebColorPickerMac::endPicker):
1937         (WebKit::WebColorPickerMac::setSelectedColor):
1938         (WebKit::WebColorPickerMac::didChooseColor):
1939         (WebKit::WebColorPickerMac::showColorPicker):
1940         WebColorPickerMac contains a reference to a WKColorPanelMac object
1941           and is responsible for maintaining the color picker UI.
1942
1943         (-[WKColorPanelMac setAndShowPicker:withColor:]):
1944         (-[WKColorPanelMac invalidate]):
1945         (-[WKColorPanelMac windowWillClose:]):
1946         (-[WKColorPanelMac didChooseColor:]):
1947         (-[WKColorPanelMac setColor:]):
1948         WKColorPanelMac is a wrapper for a NSColorPanel object and 
1949           is responsible for the color picker UI.
1950
1951         * WebKit2.xcodeproj/project.pbxproj:
1952
1953         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1954         (WebKit::WebChromeClient::createColorChooser): Updated to always create a 
1955           WebColorChooser object.
1956
1957         * WebProcess/WebCoreSupport/WebColorChooser.cpp:
1958         (WebKit::WebColorChooser::reattachColorChooser): Sets the page's 
1959           active color chooser to the current object and pings the UIProcess
1960           to show the color picker.
1961         (WebKit::WebColorChooser::setSelectedColor): Only sets the color in the
1962           color picker if the WebColorChooser object is the active color element.
1963         * WebProcess/WebCoreSupport/WebColorChooser.h:
1964
1965 2013-07-30  Gavin Barraclough  <barraclough@apple.com>
1966
1967         Some cleanup in JSValue::get
1968         https://bugs.webkit.org/show_bug.cgi?id=119343
1969
1970         Reviewed by Geoff Garen.
1971
1972         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
1973         (WebKit::JSNPObject::getOwnPropertySlot):
1974         * WebProcess/Plugins/Netscape/JSNPObject.h:
1975             - getOwnPropertySlot, JSCell -> JSObject
1976
1977 2013-07-31  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1978
1979         [Qt] Build WebKit with C++11
1980         https://bugs.webkit.org/show_bug.cgi?id=119337
1981
1982         Reviewed by Csaba Osztrogonác.
1983
1984         We no longer need to enable C++11 specifically for WebKit2.
1985
1986         * WebKit2.pri:
1987
1988 2013-07-30  Tim Horton  <timothy_horton@apple.com>
1989
1990         DHTML drag can result in a null-deref under WebDragClient::startDrag
1991         https://bugs.webkit.org/show_bug.cgi?id=119297
1992         <rdar://problem/14213012>
1993
1994         Reviewed by Simon Fraser.
1995
1996         * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
1997         (WebKit::convertImageToBitmap):
1998         ShareableBitmap::createShareable can return null, but shouldn't dereference that.
1999
2000 2013-07-30  Ruth Fong  <ruth_fong@apple.com>
2001
2002         Rename <input type='color'> functions in WebPageProxy, WebColorPicker
2003         <rdar://problem/14549771> and https://bugs.webkit.org/show_bug.cgi?id=119097
2004
2005         Reviewed by Tim Horton.
2006
2007         In bug 119025, WebColorChooserProxy was renamed WebColorPicker. This patch makes the UIProcess consistent
2008         by renaming UIProcess INPUT_TYPE_COLOR functions from ...colorChooser to ...colorPicker.
2009
2010         * UIProcess/WebColorPicker.cpp:
2011         (WebKit::WebColorPicker::endPicker):
2012         * UIProcess/WebColorPicker.h:
2013         * UIProcess/WebColorPickerResultListenerProxy.cpp:
2014         (WebKit::WebColorPickerResultListenerProxy::setColor):
2015         * UIProcess/WebPageProxy.cpp:
2016         (WebKit::WebPageProxy::showColorPicker):
2017         (WebKit::WebPageProxy::setColorPickerColor):
2018         (WebKit::WebPageProxy::endColorPicker):
2019         (WebKit::WebPageProxy::didEndColorPicker):
2020         * UIProcess/WebPageProxy.h:
2021         * UIProcess/WebPageProxy.messages.in:
2022         * UIProcess/qt/WebColorPickerQt.cpp:
2023         (WebKit::WebColorPickerQt::createItem):
2024         (WebKit::WebColorPickerQt::notifyColorSelected):
2025         (WebKit::WebColorPickerQt::endPicker):
2026         * UIProcess/qt/WebColorPickerQt.h:
2027         * WebProcess/WebCoreSupport/WebColorChooser.cpp:
2028         (WebKit::WebColorChooser::WebColorChooser):
2029         (WebKit::WebColorChooser::setSelectedColor):
2030         (WebKit::WebColorChooser::endChooser):
2031         * WebProcess/WebPage/WebPage.cpp:
2032         (WebKit::WebPage::didEndColorPicker):
2033         * WebProcess/WebPage/WebPage.h:
2034         * WebProcess/WebPage/WebPage.messages.in:
2035
2036 2013-07-30  Anders Carlsson  <andersca@apple.com>
2037
2038         Speculative fix for crash due to string access on multiple threads
2039         https://bugs.webkit.org/show_bug.cgi?id=119279
2040         <rdar://problem/14267833>
2041
2042         Reviewed by Darin Adler.
2043
2044         We can't use String::isolatedCopy for passing the local storage directory to the storage thread since
2045         that returns a String that's copied and then destroyed after the call to bind returns, leaving a small window
2046         where the refcount can be accessed simultaneously from two threads.
2047
2048         Work around this by passing a PassRefPtr<StringImpl> to bind instead; the act of copying the PassRefPtr will
2049         clear out the original and so when the original is destroyed the underlying StringImpl pointer will be null.
2050
2051         * UIProcess/Storage/LocalStorageDatabaseTracker.cpp:
2052         (WebKit::LocalStorageDatabaseTracker::setLocalStorageDirectory):
2053         (WebKit::LocalStorageDatabaseTracker::setLocalStorageDirectoryInternal):
2054         * UIProcess/Storage/LocalStorageDatabaseTracker.h:
2055
2056 2013-07-30  Tim Horton  <timothy_horton@apple.com>
2057
2058         Fix typo in enum name ("SelectionInSnaphot" -> "SelectionInSnapshot")
2059         https://bugs.webkit.org/show_bug.cgi?id=119275
2060
2061         Reviewed by Simon Fraser.
2062
2063         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
2064         (WebKit::imageForRect):
2065         * WebProcess/WebPage/WebPage.cpp:
2066         (WebKit::WebPage::scaledSnapshotWithOptions):
2067         Fix typo.
2068
2069 2013-07-30  Anders Carlsson  <andersca@apple.com>
2070
2071         Plug-in process crashes if plug-in is destroyed as a result of sending NPObjectMessageReceiver::Deallocate
2072         https://bugs.webkit.org/show_bug.cgi?id=119270
2073         <rdar://problem/13368226>
2074
2075         Reviewed by Darin Adler.
2076
2077         Normally we use the PluginDestructionProtector RAII object to prevent plug-ins from being destroyed while
2078         they're executing code. However, in the case of the NPObjectMessageReceiver::Deallocate message, we can't do this
2079         since we don't know the plug-in or connection. 
2080         
2081         Instead, add a counter to Connection that keeps track of whether sendSync is currently called and defer plug-in
2082         destruction if it is. (This approach is actually more robust and we should investigate getting rid of the destruction protector).
2083
2084         * Platform/CoreIPC/Connection.cpp:
2085         (CoreIPC::Connection::Connection):
2086         (CoreIPC::Connection::sendSyncMessage):
2087         * Platform/CoreIPC/Connection.h:
2088         (CoreIPC::Connection::inSendSync):
2089         * PluginProcess/PluginControllerProxy.cpp:
2090         (WebKit::PluginControllerProxy::destroy):
2091
2092 2013-07-30  Tim Horton  <timothy_horton@apple.com>
2093
2094         Null deref under WebPage::scaledSnapshotWithOptions
2095         https://bugs.webkit.org/show_bug.cgi?id=119243
2096         <rdar://problem/14502050>
2097
2098         Reviewed by Darin Adler.
2099
2100         * WebProcess/WebPage/WebPage.cpp:
2101         (WebKit::WebPage::scaledSnapshotWithOptions):
2102         WebFrame::coreFrame() can be null (if the Frame is already torn down),
2103         so we should check it.
2104
2105 2013-07-30  Tim Horton  <timothy_horton@apple.com>
2106
2107         Null deref under PluginView::handlesPageScaleFactor()
2108         https://bugs.webkit.org/show_bug.cgi?id=119231
2109         <rdar://problem/14440207>
2110
2111         Reviewed by Darin Adler.
2112
2113         Null-check the PluginView in the caller as well.
2114
2115         * WebProcess/WebPage/WebFrame.cpp:
2116         (WebKit::WebFrame::handlesPageScaleGesture):
2117
2118 2013-07-30  Patrick Gansterer  <paroga@webkit.org>
2119
2120         Remove unused Download*.cpp files
2121         https://bugs.webkit.org/show_bug.cgi?id=119248
2122
2123         Reviewed by Anders Carlsson.
2124
2125         * Shared/Downloads/cfnet/DownloadCFNet.cpp: Removed.
2126         * Shared/Downloads/curl/DownloadCurl.cpp: Removed.
2127
2128 2013-07-30  Jeff Miller  <jeffm@apple.com>
2129
2130         Page for WKPageLoaderClient processDidCrash callback always reports a process identifier of 0
2131         https://bugs.webkit.org/show_bug.cgi?id=119269
2132         <rdar://problem/14582393>
2133
2134         Reviewed by Anders Carlsson.
2135
2136         * UIProcess/WebPageProxy.cpp:
2137         (WebKit::WebPageProxy::processIdentifier):
2138         Return 0 if the page is closed instead of requiring isValid().
2139
2140 2013-07-30  Kwang Yul Seo  <skyul@company100.net>
2141
2142         [WK2] Move the implementation of WebEditorClient::checkTextOfParagraph to WebEditorClient.cpp
2143         https://bugs.webkit.org/show_bug.cgi?id=119034
2144
2145         Reviewed by Anders Carlsson.
2146
2147         The Mac and EFL ports use the same implementation of
2148         WebEditorClient::checkTextOfParagraph and GTK will use the same
2149         implementation too. So rather than duplicating the same code in
2150         platform specific files, move the implementation to platform agnostic
2151         WebProcess/WebCoreSupport/WebEditorClient.cpp.
2152
2153         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
2154         (WebKit::WebEditorClient::checkTextOfParagraph):
2155         * WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp:
2156         * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
2157
2158 2013-07-30  Brian Holt  <brian.holt@samsung.com>
2159
2160         [WebKit2] [Gtk] WebKitResponsePolicyDecision URI response property incorrect
2161         https://bugs.webkit.org/show_bug.cgi?id=119258
2162
2163         Reviewed by Martin Robinson.
2164
2165         Corrected the installed URI response property from PROP_REQUEST to
2166         PROP_RESPONSE and type from WEBKIT_TYPE_URI_REQUEST to
2167         WEBKIT_TYPE_URI_RESPONSE.
2168
2169         * UIProcess/API/gtk/WebKitResponsePolicyDecision.cpp:
2170         (webkit_response_policy_decision_class_init):
2171
2172 2013-07-29  Carlos Garcia Campos  <cgarcia@igalia.com>
2173
2174         Unreviewed. Fix make distcheck.
2175
2176         * GNUmakefile.list.am: Add missing header file to compilation.
2177
2178 2013-07-29  Tim Horton  <timothy_horton@apple.com>
2179
2180         [wk2] Flush the WebProcess’ implicit transaction when using endDeferringViewInWindowChangesSync
2181         https://bugs.webkit.org/show_bug.cgi?id=119225
2182         <rdar://problem/14568841>
2183
2184         Reviewed by Simon Fraser.
2185
2186         Tell CoreAnimation to flush the implicit transaction before replying
2187         when using endDeferringViewInWindowChangesSync, as that method's contract
2188         is that the WebProcess is totally ready to be in-window when it returns.
2189
2190         * UIProcess/API/mac/WKView.mm:
2191         (-[WKView endDeferringViewInWindowChanges]):
2192         Adopt viewInWindowStateDidChange.
2193
2194         (-[WKView endDeferringViewInWindowChangesSync]):
2195         Adopt viewInWindowStateDidChange, asking it to send a reply only if we're going to wait for one.
2196
2197         * UIProcess/WebPageProxy.cpp:
2198         (WebKit::WebPageProxy::viewInWindowStateDidChange):
2199         (WebKit::WebPageProxy::viewStateDidChange):
2200         Pull viewInWindowStateDidChange out of viewStateDidChange.
2201         Request a reply from SetIsInWindow if we're told to.
2202
2203         * UIProcess/WebPageProxy.h: Add WantsReplyOrNot and viewInWindowStateDidChange.
2204         * WebProcess/WebPage/WebPage.cpp:
2205         (WebKit::WebPage::didUpdateInWindowStateTimerFired):
2206         Don't build this version on Mac, we'll have a WebPageMac version.
2207
2208         (WebKit::WebPage::setIsInWindow):
2209         Only start the timer to send the didUpdateInWindowState reply if we're asked to.
2210
2211         * WebProcess/WebPage/WebPage.h:
2212         * WebProcess/WebPage/WebPage.messages.in:
2213         Add an argument to the SetIsInWindow message for whether the WebProcess
2214         should inform the UIProcess when SetIsInWindow completes or not.
2215
2216         * WebProcess/WebPage/mac/WebPageMac.mm:
2217         (WebKit::WebPage::didUpdateInWindowStateTimerFired):
2218         Tell CA to flush the implicit transaction before telling the UIProcess that
2219         we're finished moving in-window.
2220
2221 2013-07-29  Tim Horton  <timothy_horton@apple.com>
2222
2223         Null deref under PluginView::handlesPageScaleFactor()
2224         https://bugs.webkit.org/show_bug.cgi?id=119231
2225         <rdar://problem/14440207>
2226
2227         Reviewed by Simon Fraser.
2228
2229         * WebProcess/Plugins/PluginView.cpp:
2230         (WebKit::PluginView::handlesPageScaleFactor):
2231         * WebProcess/Plugins/PluginView.h:
2232         Null-check m_plugin and check m_isInitialized.
2233         Make pageScaleFactor() and handlesPageScaleFactor const.
2234
2235 2013-07-29  Anders Carlsson  <andersca@apple.com>
2236
2237         Remove setUnderlayPage() and associated code
2238         https://bugs.webkit.org/show_bug.cgi?id=119220
2239         <rdar://problem/14392426>
2240
2241         Reviewed by Jessie Berlin.
2242
2243         This is dead code, get rid of it.
2244
2245         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
2246         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
2247         * WebProcess/WebPage/WebPage.cpp:
2248         (WebKit::WebPage::close):
2249         (WebKit::WebPage::layoutIfNeeded):
2250         (WebKit::WebPage::drawRect):
2251         * WebProcess/WebPage/WebPage.h:
2252
2253 2013-07-29  Sergio Correia  <sergio.correia@openbossa.org>
2254
2255         CoordinatedGraphics: Add API to get and set the active state of a WebView
2256         https://bugs.webkit.org/show_bug.cgi?id=119067
2257
2258         Reviewed by Noam Rosenthal.
2259
2260         A view being in the "active" state generally means that it is not in the
2261         "background", although this definition can vary depending on the platform
2262         under consideration.
2263
2264         This patch adds the following APIs to WKView:
2265         - bool WKViewIsActive(WKViewRef)
2266         This API accepts a WKViewRef as parameter and returns a boolean indicating
2267         whether the given view is active.
2268
2269         - void WKViewSetIsActive(WKViewRef, bool)
2270         This API accepts a WKViewRef and a boolean as parameteres, and it sets the
2271         active state of the given view to the given boolean argument.
2272
2273         * UIProcess/API/C/CoordinatedGraphics/WKView.cpp:
2274         (WKViewIsActive): API added.
2275         (WKViewSetIsActive): Ditto.
2276         * UIProcess/API/C/CoordinatedGraphics/WKView.h: Export aforementioned API.
2277         * UIProcess/CoordinatedGraphics/WebView.cpp:
2278         (WebKit::WebView::initialize): Use new setActive method.
2279         (WebKit::WebView::setActive): Added method to set the active state of the
2280         view.
2281         (WebKit::WebView::isActive): Added method to return the active state of
2282         view.
2283         (WebKit::WebView::enterAcceleratedCompositingMode): Use new setActive
2284         method.
2285         (WebKit::WebView::exitAcceleratedCompositingMode): Ditto.
2286         * UIProcess/CoordinatedGraphics/WebView.h: Added declarations of isActive
2287         and setActive.
2288
2289 2013-07-29  Jae Hyun Park  <jae.park@company100.net>
2290
2291         Remove duplicated LayerTreeHost::supportsAcceleratedCompositing
2292         https://bugs.webkit.org/show_bug.cgi?id=118949
2293
2294         Reviewed by Noam Rosenthal.
2295
2296         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2297         * WebProcess/WebPage/LayerTreeHost.h:
2298         (WebKit::LayerTreeHost::supportsAcceleratedCompositing):
2299
2300 2013-07-29  Zan Dobersek  <zdobersek@igalia.com>
2301
2302         [Automake] Remove references to non-existent *_CFLAGS and *_LIBS variables
2303         https://bugs.webkit.org/show_bug.cgi?id=119212
2304
2305         Reviewed by Carlos Garcia Campos.
2306
2307         * GNUmakefile.am: Remove references to GLOBALDEPS_(CFLAGS|LIBS) and CLUTTER_(CFLAGS|LIBS)
2308         variables that are not defined during the configuration process.
2309
2310 2013-07-28  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
2311
2312         [EFL][WK2] Simplify context_menu_spelling_items_availability unit test
2313         https://bugs.webkit.org/show_bug.cgi?id=119085
2314
2315         Reviewed by Gyuyoung Kim.
2316
2317         Use findContextMenuItem method to check whether the item
2318         appears in context menu.
2319
2320         * UIProcess/API/efl/tests/test_ewk2_text_checker.cpp:
2321         (EWK2TextCheckerTest::findContextMenuItem):
2322         Do not report failure inside the method.
2323         It doesn't allow to test the negative test cases.
2324
2325         (EWK2TextCheckerTest::checkCorrectnessOfSpellingItems):
2326         Use findContextMenuItem method.
2327
2328         (EWK2TextCheckerTest::toogleCheckSpellingWhileTyping):
2329         (EWK2TextCheckerTest::selectLearnSpelling):
2330         (EWK2TextCheckerTest::selectIgnoreSpelling):
2331         Verify the return value of findContextMenuItem.
2332
2333         (TEST_F):
2334         Reset wasContextMenuShown variable, it's needed after r152153.
2335         Use waitUntilTrue method.
2336
2337 2013-07-27  Jacky Jiang  <zhajiang@blackberry.com>
2338
2339         Replace all uses of GraphicsLayer::create function with the one that takes a GraphicsLayerFactory
2340         https://bugs.webkit.org/show_bug.cgi?id=119186
2341
2342         Reviewed by Anders Carlsson.
2343
2344         * UIProcess/mac/RemoteLayerTreeHost.mm:
2345         (WebKit::RemoteLayerTreeHost::getOrCreateLayer):
2346
2347 2013-07-27  Chris Fleizach  <cfleizach@apple.com>
2348
2349         AX: VoiceOver not working with data detection page overlays
2350         https://bugs.webkit.org/show_bug.cgi?id=118680
2351
2352         Reviewed by Sam Weinig.
2353
2354         Expose API in BundlePageOverlay so that accessibility attributes can be retrieved through the overlay.
2355         This requires two methods in a new callback struct. One to copy the attribute names, and the other to 
2356         copy the attribute values. I've folded both parameterized and non-parameterized attribute names into one method
2357         with a boolean to determine which one should be used. The non-parameterized attributes are not used or passed to the
2358         overlay at this time as there are no clients with such a need.
2359
2360         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
2361         (PageOverlayClientImpl::setAccessibilityClient):
2362         (PageOverlayClientImpl::PageOverlayClientImpl):
2363         (PageOverlayClientImpl::copyAccessibilityAttributeValue):
2364         (PageOverlayClientImpl::copyAccessibilityAttributeNames):
2365         (WKBundlePageOverlaySetAccessibilityClient):
2366         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:
2367         * WebProcess/WebPage/PageOverlay.cpp:
2368         (WebKit::PageOverlay::copyAccessibilityAttributeValue):
2369         (WebKit::PageOverlay::copyAccessibilityAttributeNames):
2370         * WebProcess/WebPage/PageOverlay.h:
2371         (WebKit::PageOverlay::Client::copyAccessibilityAttributeValue):
2372         (WebKit::PageOverlay::Client::copyAccessibilityAttributeNames):
2373         (WebKit::PageOverlay::client):
2374         * WebProcess/WebPage/WebPage.cpp:
2375         (WebKit::WebPage::pageOverlayCopyAccessibilityAttributeValue):
2376         (WebKit::WebPage::pageOverlayCopyAccessibilityAttributesNames):
2377         * WebProcess/WebPage/WebPage.h:
2378         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
2379         (-[WKAccessibilityWebPageObject accessibilityParameterizedAttributeNames]):
2380         (-[WKAccessibilityWebPageObject _convertScreenPointToWindow:]):
2381         (-[WKAccessibilityWebPageObject accessibilityAttributeValue:forParameter:]):
2382
2383 2013-07-27  Simon Fraser  <simon.fraser@apple.com>
2384
2385         If entering fullscreen for a window fails, don't leave things in a bad state
2386         https://bugs.webkit.org/show_bug.cgi?id=119179
2387
2388         Reviewed by Sam Weinig.
2389         
2390         On Lion, attempting to take a video fullscreen when the Safari window is already
2391         fullscreen can sometimes fail, and AppKit informs us via windowDidFailToEnterFullScreen:
2392         
2393         When this happens we have to undo the work done when entering fullscreen, to
2394         avoid leaving things in a bad state.
2395
2396         * UIProcess/mac/WKFullScreenWindowController.mm:
2397         (-[WKFullScreenWindowController finishedEnterFullScreenAnimation:]):
2398
2399 2013-07-26  Tim Horton  <timothy_horton@apple.com>
2400
2401         Add a mode where autosizing fixes the FrameView height to at least the WKView height
2402         https://bugs.webkit.org/show_bug.cgi?id=119104
2403         <rdar://problem/14549021>
2404
2405         Reviewed by Anders Carlsson.
2406
2407         * Shared/WebPageCreationParameters.cpp:
2408         (WebKit::WebPageCreationParameters::encode):
2409         (WebKit::WebPageCreationParameters::decode):
2410         * Shared/WebPageCreationParameters.h:
2411         Add autoSizingShouldExpandToViewHeight parameter.
2412
2413         * UIProcess/API/mac/WKView.mm:
2414         (-[WKView minimumWidthForAutoLayout]):
2415         (-[WKView setMinimumWidthForAutoLayout:]):
2416         Un-deprecate these as they're still useful if not sending a height.
2417
2418         (-[WKView shouldExpandToViewHeightForAutoLayout]):
2419         (-[WKView setShouldExpandToViewHeightForAutoLayout:]):
2420         * UIProcess/API/mac/WKViewPrivate.h:
2421         New property, forward to WebPageProxy.
2422
2423         * UIProcess/WebPageProxy.cpp:
2424         (WebKit::WebPageProxy::WebPageProxy):
2425         (WebKit::WebPageProxy::creationParameters):
2426         (WebKit::WebPageProxy::setAutoSizingShouldExpandToViewHeight):
2427         * UIProcess/WebPageProxy.h:
2428         (WebKit::WebPageProxy::autoSizingShouldExpandToViewHeight):
2429         New property, forward to WebPage.
2430
2431         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2432         (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
2433         If enabled, update the FrameView's autoSizeFixedMinimumHeight.
2434
2435         * WebProcess/WebPage/WebPage.cpp:
2436         (WebKit::WebPage::WebPage):
2437         (WebKit::WebPage::setAutoSizingShouldExpandToViewHeight):
2438         * WebProcess/WebPage/WebPage.h:
2439         (WebKit::WebPage::autoSizingShouldExpandToViewHeight):
2440         New property; if enabled, set FrameView's autoSizeFixedMinimumHeight,
2441         otherwise reset it to 0.
2442
2443         * WebProcess/WebPage/WebPage.messages.in:
2444         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
2445         (WebKit::TiledCoreAnimationDrawingArea::updateIntrinsicContentSizeTimerFired):
2446         (WebKit::TiledCoreAnimationDrawingArea::updateGeometry):
2447         Retrieve intrinsic content size explicitly from the FrameView, as
2448         it may not have used it as its final contentsSize if
2449         autoSizeFixedMinimumHeight is set.
2450
2451         Set the WebPage's size in case the load is committed so that the
2452         WebFrameLoaderClient doesn't reset us to the wrong size.
2453
2454         Update autoSizeFixedMinimumHeight if enabled when the view size changes.
2455
2456 2013-07-25  Andreas Kling  <akling@apple.com>
2457
2458         ChromeClient::focusedNodeChanged() should be focusedElementChanged().
2459         <http://webkit.org/b/119110>
2460
2461         Reviewed by Anders Carlsson.
2462
2463         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2464         (WebKit::WebChromeClient::focusedElementChanged):
2465         * WebProcess/WebCoreSupport/WebChromeClient.h:
2466
2467 2013-07-25  Kwang Yul Seo  <skyul@company100.net>
2468
2469         [WK2][Soup] Add private browsing support
2470         https://bugs.webkit.org/show_bug.cgi?id=118657
2471
2472         Reviewed by Gustavo Noronha Silva.
2473
2474         Support private browsing in WK2 by implementing private browsing
2475         related methods in WebFrameNetworkingContext.
2476
2477         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2478         (WebKit::InjectedBundle::setPrivateBrowsingEnabled):
2479         Add USE(SOUP) guard.
2480
2481         * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
2482         Add private browsing support methods. Copied from the Mac port.
2483         (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
2484         (WebKit::WebFrameNetworkingContext::destroyPrivateBrowsingSession):
2485         (WebKit::WebFrameNetworkingContext::storageSession):
2486         Check if the frame enables private browsing and return the private
2487         browsing session.
2488         * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
2489
2490         * WebProcess/WebProcess.cpp:
2491         (WebKit::WebProcess::ensurePrivateBrowsingSession):
2492         Add USE(SOUP) guard.
2493
2494 2013-07-25  Kwang Yul Seo  <skyul@company100.net>
2495
2496         Build fix: use of long long in CoreIPC::ArgumentEncoder and CoreIPC::ArgumentDecoder
2497         https://bugs.webkit.org/show_bug.cgi?id=118228
2498
2499         Reviewed by Anders Carlsson.
2500
2501         Build fails on some platforms where int64_t and long long are different types.
2502
2503         * Shared/FileAPI/BlobRegistrationData.cpp:
2504         (WebKit::BlobRegistrationData::encode):
2505         Add explicit casts to int64_t.
2506         (WebKit::BlobRegistrationData::decode):
2507         Use int64_t instead of long long.
2508
2509 2013-07-25  Anders Carlsson  <andersca@apple.com>
2510
2511         Remove lastModifiedDate from ResourceResponse
2512         https://bugs.webkit.org/show_bug.cgi?id=119092
2513
2514         Reviewed by Andreas Kling.
2515
2516         Update for WebCore changes.
2517
2518         * WebProcess/Plugins/PluginView.cpp:
2519         (WebKit::lastModifiedDate):
2520         Use ResourceResponse::lastModified() to get the last modified date.
2521
2522         (WebKit::PluginView::Stream::didReceiveResponse):
2523         Call the static lastModified function.
2524
2525         (WebKit::PluginView::manualLoadDidReceiveResponse):
2526         Ditto.
2527
2528 2013-07-25  Carlos Garcia Campos  <cgarcia@igalia.com>
2529
2530         [GTK] Add support for running unit tests in the web process
2531         https://bugs.webkit.org/show_bug.cgi?id=118427
2532
2533         Reviewed by Gustavo Noronha Silva.
2534
2535         Some tests, like GObject DOM bindings API tests, run entirely in
2536         the WebProcess, so we just need to start the test from the UI
2537         process and wait until the test finishes running in the
2538         WebProcess. Tests are split in two files, one containing the
2539         actual test that runs in the WebProcess and another one to add the
2540         tests to the glib test system that works as a
2541         proxy. WebProcessTestRunner class starts a private DBus session
2542         bus and starts the tests sending a message to the WebExtension
2543         waiting until it finishes or fails. WebProcess tests are created
2544         by defining a class derived from WebProcessTest class and
2545         implementing the static create method and the virtual runTest
2546         method. The macro REGISTER_TEST is used by the web process tests
2547         to register their test cases. This patch includes the migration
2548         of the WebKitDOMNode test, all other GObject DOM bindings tests
2549         will be migrated in the same way in follow up patches.
2550
2551         * UIProcess/API/gtk/tests/DOMNodeTest.cpp: Added.
2552         (WebKitDOMNodeTest::create): Create a new WebKitDOMNodeTest.
2553         (WebKitDOMNodeTest::webPageFromArgs): Get the pageID parameter
2554         from the arguments dictionary.
2555         (WebKitDOMNodeTest::testHierarchyNavigation):
2556         (WebKitDOMNodeTest::testInsertion):
2557         (WebKitDOMNodeTest::runTest): Run the given test.
2558         (registerTests): Register test cases.
2559         * UIProcess/API/gtk/tests/GNUmakefile.am: Add new files to
2560         compilation.
2561         * UIProcess/API/gtk/tests/TestDOMNode.cpp: Added.
2562         (testWebKitDOMNodeHierarchyNavigation):
2563         (testWebKitDOMNodeInsertion):
2564         (beforeAll):
2565         (afterAll):
2566         * UIProcess/API/gtk/tests/TestMain.cpp:
2567         (main): Unset DBUS_SESSION_BUS_ADDRESS environment variable to
2568         make sure that the GLib bus singleton is initialized by the
2569         private DBus session bus created by the tests.
2570         * UIProcess/API/gtk/tests/WebProcessTest.cpp: Added.
2571         (testsMap): Initialize and get the global map of tests.
2572         (WebProcessTest::add): Add a new test to the map, keeping a
2573         function to create the test.
2574         (WebProcessTest::create): Create a test for the given name.
2575         (methodCallCallback): Handle RunTest DBus method. It creates and
2576         runs the given test.
2577         (webkit_web_extension_initialize):Register the DBus service for
2578         this WebExtension.
2579         * UIProcess/API/gtk/tests/WebProcessTest.h: Added.
2580         * UIProcess/API/gtk/tests/WebProcessTestRunner.cpp: Added.
2581         (WebProcessTestRunner::WebProcessTestRunner): Start a private DBus
2582         session bus and get a connection to it.
2583         (WebProcessTestRunner::~WebProcessTestRunner): Stop the private
2584         DBus session bus.
2585         (WebProcessTestRunner::proxyCreatedCallback):
2586         (WebProcessTestRunner::proxy): Create a new proxy to send messages
2587         to the WebExtension if it doesn't exists.
2588         (WebProcessTestRunner::onNameAppeared): Called when the DBus
2589         service has been registered in the WebExtension and it's safe to
2590         create a proxy.
2591         (WebProcessTestRunner::onNameVanished): Called when the DBus
2592         service is unregistered. This happens when the web process crash,
2593         so we just exit here, because the g_asserts in the web process
2594         have already registered the error message.
2595         (WebProcessTestRunner::testFinishedCallback): Called when the
2596         WebProcess tests has finished.
2597         (WebProcessTestRunner::runTest): Send a message to the
2598         WebExtension to start the given test and monitor the service.
2599         (WebProcessTestRunner::finishTest): Save the test result and
2600         finish the main loop.
2601         * UIProcess/API/gtk/tests/WebProcessTestRunner.h: Added.
2602
2603 2013-05-05  Geoffrey Garen  <ggaren@apple.com>
2604
2605         Rolled back in r149527 with crash fixed.
2606
2607         Reviewed by Oliver Hunt.
2608
2609             Rationalized 'this' value conversion
2610             https://bugs.webkit.org/show_bug.cgi?id=115542
2611
2612 2013-07-24  Ruth Fong  <ruth_fong@apple.com>
2613
2614         Rename WebColorChooserProxy
2615         <rdar://problem/14528039> and https://bugs.webkit.org/show_bug.cgi?id=119025
2616
2617         Reviewed by Brady Eidson.
2618
2619         Renamed WebColorChooserProxy to WebColorPicker since the name WebColorChoooserProxy
2620         implies that it represents the same object as WebColorChooser, which is not true.
2621         Also, renamed createColorChooserProxy to createColorPicker in WebPageProxy and 
2622         platform-equivalent versions of it.
2623
2624         * CMakeLists.txt:
2625         * GNUmakefile.list.am:
2626         * Target.pri:
2627         * UIProcess/API/gtk/PageClientImpl.cpp:
2628         (WebKit::PageClientImpl::createColorPicker):
2629         * UIProcess/API/gtk/PageClientImpl.h:
2630         * UIProcess/API/mac/PageClientImpl.h:
2631         * UIProcess/API/mac/PageClientImpl.mm:
2632         (WebKit::PageClientImpl::createColorPicker):
2633         * UIProcess/API/qt/raw/qrawwebview.cpp:
2634         (QRawWebViewPrivate::createColorPicker):
2635         * UIProcess/API/qt/raw/qrawwebview_p_p.h:
2636         * UIProcess/CoordinatedGraphics/WebView.cpp:
2637         (WebKit::WebView::createColorPicker):
2638         * UIProcess/CoordinatedGraphics/WebView.h:
2639         * UIProcess/PageClient.h:
2640         * UIProcess/WebColorChooserProxy.cpp: Removed.
2641         * UIProcess/WebColorChooserProxy.h: Removed.
2642         * UIProcess/WebColorPicker.cpp: Copied from Source/WebKit2/UIProcess/WebColorChooserProxy.cpp.
2643         (WebKit::WebColorPicker::WebColorPicker):
2644         (WebKit::WebColorPicker::~WebColorPicker):
2645         (WebKit::WebColorPicker::endChooser):
2646         (WebKit::WebColorPicker::setSelectedColor):
2647         * UIProcess/WebColorPicker.h: Copied from Source/WebKit2/UIProcess/WebColorChooserProxy.h.
2648         (WebKit::WebColorPicker::create):
2649         * UIProcess/WebPageProxy.cpp:
2650         (WebKit::WebPageProxy::close):
2651         (WebKit::WebPageProxy::showColorChooser):
2652         (WebKit::WebPageProxy::setColorChooserColor):
2653         (WebKit::WebPageProxy::endColorChooser):
2654         (WebKit::WebPageProxy::didEndColorChooser):
2655         (WebKit::WebPageProxy::resetStateAfterProcessExited):
2656         * UIProcess/WebPageProxy.h: Renamed m_colorChooser to m_colorPicker.
2657         * UIProcess/qt/QtPageClient.cpp:
2658         (WebKit::QtPageClient::createColorPicker):
2659         * UIProcess/qt/QtPageClient.h:
2660         * UIProcess/qt/WebColorChooserProxyQt.cpp: Removed.
2661         * UIProcess/qt/WebColorChooserProxyQt.h: Removed.
2662         * UIProcess/qt/WebColorPickerQt.cpp: Added.
2663         (WebKit::ColorChooserContextObject::ColorChooserContextObject):
2664         (WebKit::ColorChooserContextObject::currentColor):
2665         (WebKit::ColorChooserContextObject::elementRect):
2666         (WebKit::ColorChooserContextObject::accept):
2667         (WebKit::ColorChooserContextObject::reject):
2668         (WebKit::WebColorPickerQt::WebColorPickerQt):
2669         (WebKit::WebColorPickerQt::~WebColorPickerQt):
2670         (WebKit::WebColorPickerQt::createItem):
2671         (WebKit::WebColorPickerQt::createContext):
2672         (WebKit::WebColorPickerQt::setSelectedColor):
2673         (WebKit::WebColorPickerQt::notifyColorSelected):
2674         (WebKit::WebColorPickerQt::endChooser):
2675         * UIProcess/qt/WebColorPickerQt.h: Added.
2676         (WebKit::WebColorPickerQt::create):
2677         * WebKit2.xcodeproj/project.pbxproj:
2678
2679 2013-07-24  Anders Carlsson  <andersca@apple.com>
2680
2681         Crash when calling WKPageGetProcessIdentifier after aborted process launch
2682         https://bugs.webkit.org/show_bug.cgi?id=119069
2683         <rdar://problem/14494064>
2684
2685         Reviewed by Andreas Kling.
2686
2687         * UIProcess/WebPageProxy.cpp:
2688         (WebKit::WebPageProxy::processIdentifier):
2689         Check if the page is closed instead of checking whether we have a process - We'll always have a process.
2690         
2691         (WebKit::WebPageProxy::isValid):
2692         Make this const.
2693
2694         * UIProcess/WebPageProxy.h:
2695
2696 2013-07-24  Kwang Yul Seo  <skyul@company100.net>
2697
2698         [WK2][Soup] Add entry point for network process
2699         https://bugs.webkit.org/show_bug.cgi?id=110136
2700
2701         Reviewed by Gustavo Noronha Silva.
2702
2703         Original patch by Balazs Kelemen <kbalazs@webkit.org>.
2704
2705         Added a common entry point for non-Mac Unix ports.
2706
2707         * NetworkProcess/unix/NetworkProcessMainUnix.cpp: Added.
2708         (WebKit::NetworkProcessMain):
2709         * NetworkProcess/unix/NetworkProcessMainUnix.h: Added.
2710         * unix/NetworkMainUnix.cpp: Added.
2711         (main):
2712
2713 2013-07-24  Jessie Berlin  <jberlin@apple.com>
2714
2715         Remove WKPageGetPlugInInformation - it is not used anymore
2716         https://bugs.webkit.org/show_bug.cgi?id=119047
2717
2718         Reviewed by Alexey Proskuryakov.
2719
2720         Revert r151172, which fixed a crash introduced in r151043, r151054, which fixed some naming
2721         and ref-churn issues introduced in r151043, and r151043, which added
2722         WKPageGetPlugInInformation.
2723
2724         * UIProcess/API/C/mac/WKPagePrivateMac.cpp:
2725         (WKPageIsURLKnownHSTSHost):
2726         * UIProcess/API/C/mac/WKPagePrivateMac.h:
2727         * UIProcess/Plugins/PluginProcessManager.h:
2728         * UIProcess/Plugins/mac/PluginProcessManagerMac.mm:
2729         * UIProcess/WebPageProxy.cpp:
2730         (WebKit::WebPageProxy::close):
2731         * UIProcess/WebPageProxy.h:
2732         * UIProcess/WebPageProxy.messages.in:
2733         * UIProcess/mac/WebPageProxyMac.mm:
2734         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
2735         * WebProcess/Plugins/PDF/SimplePDFPlugin.h:
2736         * WebProcess/Plugins/Plugin.h:
2737         * WebProcess/Plugins/PluginProxy.h:
2738         * WebProcess/Plugins/PluginView.h:
2739         * WebProcess/WebPage/WebPage.h:
2740         * WebProcess/WebPage/WebPage.messages.in:
2741         * WebProcess/WebPage/mac/WebPageMac.mm:
2742
2743 2013-07-24  Jessie Berlin  <jberlin@apple.com>
2744
2745         Remove WKPageGetPlugInInformation - it is not used anymore
2746         https://bugs.webkit.org/show_bug.cgi?id=119047
2747
2748         Rubber-stamped by Alexey Proskuryakov.
2749
2750         Revert r152328, which added a key used only in the callback info for
2751         WKPageGetPlugInInformation.
2752
2753         * Shared/API/c/WKPluginInformation.cpp:
2754         * Shared/API/c/WKPluginInformation.h:
2755         * Shared/Plugins/Netscape/PluginInformation.cpp:
2756         * Shared/Plugins/Netscape/PluginInformation.h:
2757         * UIProcess/WebPageProxy.h:
2758         * UIProcess/WebPageProxy.messages.in:
2759         * UIProcess/mac/WebPageProxyMac.mm:
2760         (WebKit::WebPageProxy::containsPlugInCallback):
2761         * WebProcess/WebPage/mac/WebPageMac.mm:
2762         (WebKit::WebPage::containsPluginViewsWithPluginProcessToken):
2763
2764 2013-07-24  Anton Obzhirov  <a.obzhirov@samsung.com>
2765
2766         [GTK] TestInspectorServer unit test is timing out
2767         https://bugs.webkit.org/show_bug.cgi?id=105866
2768
2769         Reviewed by Gustavo Noronha Silva.
2770
2771         The test failed because it couldn't find inspector resources in default folder
2772         (make install step was missing). It uses now resources available in
2773         WebKitBuild folder. WebInspectorServerGtk was refactored as well to make
2774         easier to use WEBKIT_INSPECTOR_SERVER_PATH variable.
2775
2776         * UIProcess/API/gtk/tests/GNUmakefile.am:
2777         * UIProcess/API/gtk/tests/InspectorTestServer.cpp:
2778         (main):
2779         * UIProcess/API/gtk/tests/TestInspectorServer.cpp:
2780         (testInspectorServerPageList):
2781         * UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp:
2782         (WebKit::WebInspectorServer::platformResourceForPath):
2783         (WebKit::WebInspectorServer::buildPageList):
2784         (WebKit::WebInspectorServer::inspectorServerFilesPath):
2785
2786 2013-07-23  Simon Cooper  <scooper@apple.com>
2787
2788         10.7: Java applets do not work due to sandbox violation/exception
2789         https://bugs.webkit.org/show_bug.cgi?id=118920
2790         <rdar://problem/14471541&12910934&14223830&14260729&14267679>
2791
2792         Reviewed by Alexey Proskuryakov.
2793
2794         Introduce versioning into the common profile and use it to fix
2795         a number of issues with Java on 10.7 and 10.8. Allow writing the
2796         com.apple.java.util.prefs preference file. This change also
2797         introduces a "/Library/Application Support/Java/PublicFiles"
2798         area which Java can read without any restrictions. Files written
2799         to this location will need to be created and written to by
2800         a privileged process.
2801
2802         * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
2803         * Resources/PlugInSandboxProfiles/com.oracle.java.JavaAppletPlugin.sb:
2804
2805 2013-07-23  Eunmi Lee  <eunmi15.lee@samsung.com>
2806
2807         [EFL][WK2] Add doneWithTouchEvent callback to the WKViewClient.
2808         https://bugs.webkit.org/show_bug.cgi?id=110085
2809
2810         Reviewed by Kenneth Rohde Christiansen.
2811
2812         Add doneWithTouchEvent callback to the WKViewClient in order to get the
2813         result of touch events in the EwkView. The result will be used to
2814         recognize gestures in the Bug 102643.
2815
2816         APIs to get values from WKTouchEventRef and WKTouchPointRef are added
2817         because WKTypeRef is opaque to the applications.
2818
2819         * UIProcess/API/C/CoordinatedGraphics/WKView.h:
2820         * UIProcess/API/C/efl/WKAPICastEfl.h:
2821         (WebKit::toAPI):
2822         * UIProcess/API/C/efl/WKEventEfl.cpp:
2823         (WKTouchEventGetType):
2824         (WKTouchEventGetTouchPoints):
2825         (WKTouchEventGetModifiers):
2826         (WKTouchEventGetTimestamp):
2827         (WKTouchPointGetID):
2828         (WKTouchPointGetState):
2829         (WKTouchPointGetScreenPosition):
2830         (WKTouchPointGetPosition):
2831         (WKTouchPointGetRadius):
2832         (WKTouchPointGetRotationAngle):
2833         (WKTouchPointGetForceFactor):
2834         * UIProcess/API/C/efl/WKEventEfl.h:
2835         * UIProcess/API/efl/EwkView.cpp:
2836         (EwkView::doneWithTouchEvent):
2837         * UIProcess/API/efl/EwkView.h:
2838         * UIProcess/CoordinatedGraphics/WebView.cpp:
2839         (WebKit::WebView::doneWithTouchEvent):
2840         * UIProcess/CoordinatedGraphics/WebViewClient.cpp:
2841         (WebKit::WebViewClient::doneWithTouchEvent):
2842         * UIProcess/CoordinatedGraphics/WebViewClient.h:
2843         * UIProcess/efl/ViewClientEfl.cpp:
2844         (WebKit::ViewClientEfl::doneWithTouchEvent):
2845         (WebKit::ViewClientEfl::ViewClientEfl):
2846         * UIProcess/efl/ViewClientEfl.h:
2847
2848 2013-07-22  Alexey Proskuryakov  <ap@apple.com>
2849
2850         Frequent MESSAGE_CHECK failures in WebPageProxy::didReceiveEvent
2851         https://bugs.webkit.org/show_bug.cgi?id=118976
2852         <rdar://problem/14155030>
2853
2854         Reviewed by Sam Weinig.
2855
2856         * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::resetStateAfterProcessExited):
2857         Clear m_gestureEventQueue, just like we clear all other event queues here.
2858
2859 2013-07-21  Anders Carlsson  <andersca@apple.com>
2860
2861         Java Updater not launched on Lion and Mountain Lion
2862         https://bugs.webkit.org/show_bug.cgi?id=118953
2863         <rdar://problem/14496721>
2864
2865         Reviewed by Sam Weinig.
2866
2867         On Lion and Mountain Lion, -[NSURL isEqual:] will return NO for two file URLs if one of
2868         them has "localhost" specified, even if the paths are otherwise equal. Work around this by
2869         comparing the paths directly.
2870
2871         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
2872         (WebKit::isJavaUpdaterURL):
2873
2874 2013-07-19  Morten Stenshorne  <mstensho@opera.com>
2875
2876         [GTK] Need a way to enable region based columns from the command line
2877         https://bugs.webkit.org/show_bug.cgi?id=116611
2878
2879         Reviewed by Martin Robinson.
2880
2881         Add an environment variable to enable experimental features.
2882
2883         This provides a means to enable experimental features without polluting
2884         the public API.
2885
2886         Environment variable name: WEBKITGTK_EXPERIMENTAL_FEATURES
2887
2888         Format: WEBKITGTK_EXPERIMENTAL_FEATURES="<feature1>=1,<feature2>=1,..."
2889         Or, to enable all experimental features: WEBKITGTK_EXPERIMENTAL_FEATURES=all
2890
2891         So far the only feature is region based columns (implement multicol using
2892         the CSS regions implementation rather than ColumnInfo & co) - REGION_BASED_COLUMNS.
2893
2894         Example: WEBKITGTK_EXPERIMENTAL_FEATURES="REGION_BASED_COLUMNS=1"
2895
2896         * GNUmakefile.list.am:
2897         * PlatformGTK.cmake:
2898         * UIProcess/API/gtk/WebKitSettings.cpp:
2899         (webKitSettingsConstructed):
2900         (webkit_settings_class_init):
2901         * UIProcess/gtk/ExperimentalFeatures.cpp: Added.
2902         (WebKit):
2903         (Setting):
2904         (WebKit::ExperimentalFeatures::ExperimentalFeatures):
2905         (WebKit::ExperimentalFeatures::isEnabled):
2906         (WebKit::ExperimentalFeatures::setEnableByName):
2907         (WebKit::ExperimentalFeatures::parseEnvironment):
2908         * UIProcess/gtk/ExperimentalFeatures.h: Added.
2909         (WebKit):
2910         (ExperimentalFeatures):
2911
2912 2013-07-18  Eunmi Lee  <eunmi15.lee@samsung.com>
2913
2914         [WK2] Share Qt port's codes to find zoomable area with CoordinatedGraphics.
2915         https://bugs.webkit.org/show_bug.cgi?id=118585
2916
2917         Reviewed by Anders Carlsson.
2918
2919         The function to find zoomable area is needed in order to implement the
2920         feature to scale for double-tap gesture. The WK2 EFL and NIX port want
2921         to use that function, so extract the code from the Qt port, make it
2922         usable in the CoordinatedGraphics and add API and callback.
2923
2924         * CMakeLists.txt:
2925         * Target.pri:
2926         * UIProcess/API/C/CoordinatedGraphics/WKView.cpp:
2927         (WKViewFindZoomableAreaForRect):
2928         * UIProcess/API/C/CoordinatedGraphics/WKView.h:
2929         * UIProcess/API/efl/EwkView.cpp:
2930         (EwkView::didFindZoomableArea):
2931         * UIProcess/API/efl/EwkView.h:
2932         * UIProcess/CoordinatedGraphics/WebPageProxyCoordinatedGraphics.cpp: Added.
2933         (WebKit::WebPageProxy::findZoomableAreaForPoint):
2934         (WebKit::WebPageProxy::didFindZoomableArea):
2935         * UIProcess/CoordinatedGraphics/WebView.cpp:
2936         (WebKit::WebView::didFindZoomableArea):
2937         (WebKit::WebView::findZoomableAreaForPoint):
2938         * UIProcess/CoordinatedGraphics/WebView.h:
2939         * UIProcess/CoordinatedGraphics/WebViewClient.cpp:
2940         (WebKit::WebViewClient::didFindZoomableArea):
2941         * UIProcess/CoordinatedGraphics/WebViewClient.h:
2942         * UIProcess/PageClient.h:
2943         * UIProcess/WebPageProxy.h:
2944         * UIProcess/WebPageProxy.messages.in:
2945         * UIProcess/efl/ViewClientEfl.cpp:
2946         (WebKit::ViewClientEfl::didFindZoomableArea):
2947         (WebKit::ViewClientEfl::ViewClientEfl):
2948         * UIProcess/efl/ViewClientEfl.h:
2949         * UIProcess/qt/WebPageProxyQt.cpp:
2950         * WebProcess/WebPage/CoordinatedGraphics/WebPageCoordinatedGraphics.cpp: Added.
2951         (WebKit::WebPage::findZoomableAreaForPoint):
2952         * WebProcess/WebPage/WebPage.cpp:
2953         * WebProcess/WebPage/WebPage.h:
2954         * WebProcess/WebPage/WebPage.messages.in:
2955
2956 2013-07-18  Simon Cooper  <scooper@apple.com>
2957
2958         Flash Player: deny file-read-data /Library/Application Support/Macromedia/FlashAuthor.cfg
2959         https://bugs.webkit.org/show_bug.cgi?id=118874
2960         <rdar://problem/14271327>
2961
2962         Reviewed by Alexey Proskuryakov.
2963
2964         Silently deny access to FlashAuthor.cfg. This location contains
2965         files containing lists of paths that Flash Player will
2966         "allow" access to (without asking the user). Since the plugin
2967         sandbox won't permit the access to the listed paths it is better
2968         to silently block attempts to read this "whitelist".
2969
2970         * Resources/PlugInSandboxProfiles/com.macromedia.Flash Player.plugin.sb:
2971
2972 2013-07-18  Tim Horton  <timothy_horton@apple.com>
2973
2974         [wk2] Ensure that the plugin layer is removed completely when the PluginProcess crashes
2975         https://bugs.webkit.org/show_bug.cgi?id=118862
2976
2977         Reviewed by Anders Carlsson.
2978
2979         * WebProcess/Plugins/PluginView.cpp:
2980         (WebKit::PluginView::PluginView):
2981         Add m_pluginProcessHasCrashed.
2982
2983         (WebKit::PluginView::platformLayer):
2984         Don't return the plugin's layer if it has crashed.
2985
2986         (WebKit::PluginView::pluginProcessCrashed):
2987         Set m_pluginProcessHasCrashed.
2988         Cause a style recalc so that we rebuild the layer tree; our layer won't be included.
2989
2990         * WebProcess/Plugins/PluginView.h:
2991         Add m_pluginProcessHasCrashed.
2992
2993 2013-07-18  Alexey Proskuryakov  <ap@apple.com>
2994
2995         <rdar://problem/13886443> Assertion failures in NetworkProcess in SandboxExtension::revoke when aborting SyncNetworkResourceLoader
2996         <rdar://problem/13826348> ASSERT(!m_useCount) fails in NetworkProcess at SandboxExtension::~SandboxExtension
2997         https://bugs.webkit.org/show_bug.cgi?id=118855
2998
2999         Reviewed by Brady Eidson.
3000
3001         * NetworkProcess/NetworkResourceLoader.cpp:
3002         (WebKit::NetworkResourceLoader::cleanup):
3003         (WebKit::NetworkResourceLoader::didFinishLoading):
3004         (WebKit::NetworkResourceLoader::didFail):
3005         Moved sandbox extension invalidation to cleanup() meaning that we won't fail to
3006         do this when aborting a loader that currently loading from network.
3007     
3008         * NetworkProcess/SchedulableLoader.cpp:
3009         (WebKit::SchedulableLoader::SchedulableLoader):
3010         (WebKit::SchedulableLoader::consumeSandboxExtensions):
3011         (WebKit::SchedulableLoader::invalidateSandboxExtensions):
3012         * NetworkProcess/SchedulableLoader.h:
3013         Keep track of whether sandbox extensions are consumed, we don't want to revoke
3014         extensions that were never consumed (as used to be the case with sync loaders,
3015         and would be with async ones after the above fix). Also, get rid of extensions
3016         immediately when invalidating, we won't need them again.
3017
3018 2013-07-18  Tim Horton  <timothy_horton@apple.com>
3019
3020         Remove PDFViewController and WKView "custom representations"
3021         https://bugs.webkit.org/show_bug.cgi?id=118720
3022
3023         Reviewed by Alexey Proskuryakov.
3024
3025         PDFViewController was the only implementation of
3026         a "custom representation" for a WKView. As it has
3027         been superceded by PDFPlugin, we can remove both
3028         PDFViewController and the notion of a WKView custom
3029         representation.
3030
3031         * UIProcess/API/gtk/PageClientImpl.cpp:
3032         * UIProcess/API/gtk/PageClientImpl.h:
3033         * UIProcess/API/mac/PDFViewController.h: Removed.
3034         * UIProcess/API/mac/PDFViewController.mm: Removed.
3035         * UIProcess/API/mac/PageClientImpl.h:
3036         * UIProcess/API/mac/PageClientImpl.mm:
3037         * UIProcess/API/mac/WKView.mm:
3038         (-[WKView accessibilityFocusedUIElement]):
3039         (-[WKView accessibilityHitTest:]):
3040         (-[WKView accessibilityAttributeValue:]):
3041         (-[WKView printOperationWithPrintInfo:forFrame:]):
3042         * UIProcess/API/mac/WKViewInternal.h:
3043         * UIProcess/API/qt/raw/qrawwebview_p_p.h:
3044         * UIProcess/CoordinatedGraphics/WebView.cpp:
3045         * UIProcess/CoordinatedGraphics/WebView.h:
3046         * UIProcess/DrawingAreaProxy.h:
3047         * UIProcess/DrawingAreaProxyImpl.cpp:
3048         * UIProcess/DrawingAreaProxyImpl.h:
3049         * UIProcess/PageClient.h:
3050         * UIProcess/WebPageProxy.cpp:
3051         (WebKit::WebPageProxy::WebPageProxy):
3052         (WebKit::WebPageProxy::supportsTextEncoding):
3053         (WebKit::WebPageProxy::supportsTextZoom):
3054         (WebKit::WebPageProxy::setTextZoomFactor):
3055         (WebKit::WebPageProxy::setPageZoomFactor):
3056         (WebKit::WebPageProxy::setPageAndTextZoomFactors):
3057         (WebKit::WebPageProxy::findString):
3058         (WebKit::WebPageProxy::countStringMatches):
3059         (WebKit::WebPageProxy::didCommitLoadForFrame):
3060         * UIProcess/WebPageProxy.h:
3061         (WebKit::WebPageProxy::textZoomFactor):
3062         (WebKit::WebPageProxy::pageZoomFactor):
3063         * UIProcess/WebPageProxy.messages.in:
3064         * UIProcess/qt/QtPageClient.h:
3065         * WebKit2.xcodeproj/project.pbxproj:
3066         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
3067         (WebKit::WebFrameLoaderClient::WebFrameLoaderClient):
3068         (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
3069         (WebKit::WebFrameLoaderClient::committedLoad):
3070         (WebKit::WebFrameLoaderClient::finishedLoading):
3071         (WebKit::WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
3072         (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
3073         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
3074         * WebProcess/WebPage/DrawingArea.h:
3075         * WebProcess/WebPage/DrawingArea.messages.in:
3076         * WebProcess/WebPage/DrawingAreaImpl.cpp:
3077         (WebKit::DrawingAreaImpl::setNeedsDisplayInRect):
3078         (WebKit::DrawingAreaImpl::scroll):
3079         (WebKit::DrawingAreaImpl::exitAcceleratedCompositingMode):
3080         (WebKit::DrawingAreaImpl::display):
3081         * WebProcess/WebPage/DrawingAreaImpl.h:
3082         * WebProcess/WebPage/WebPage.cpp:
3083         * WebProcess/WebPage/WebPage.h:
3084         * WebProcess/WebPage/mac/WebPageMac.mm:
3085         (WebKit::WebPage::platformPreferencesDidChange):
3086         * mac/WebKit2.order:
3087
3088 2013-07-18  Dong-Gwan Kim  <donggwan.kim@samsung.com>
3089
3090         [EFL][WK2] Replace mouseClick with more meaningful method in test_ewk2_color_picker.cpp
3091         https://bugs.webkit.org/show_bug.cgi?id=118797
3092
3093         Reviewed by Christophe Dumez.
3094
3095         Some mouseClick methods are used in test_ewk2_color_picker.cpp.
3096         But it is difficult to understand what they mean.
3097         So i would like to replace those with more meaningful method for readability.
3098
3099         * UIProcess/API/efl/tests/test_ewk2_color_picker.cpp:
3100         (EWK2ColorPickerTest::clickButton):
3101         (TEST_F):
3102
3103 2013-07-18  Eunmi Lee  <eunmi15.lee@samsung.com>
3104
3105         [WK2] Replace getRect() to pixelSnappedBoundingBox().
3106         https://bugs.webkit.org/show_bug.cgi?id=118588
3107
3108         Reviewed by Noam Rosenthal.
3109
3110         The Node::getRect() function was removed in the
3111         http://trac.webkit.org/changeset/128006, so use
3112         pixelSnappedBoundingBox() instead.
3113
3114         * WebProcess/WebPage/WebPage.cpp:
3115         (WebKit::WebPage::findZoomableAreaForPoint):
3116
3117 2013-07-18  Dong-Gwan Kim  <donggwan.kim@samsung.com>
3118
3119         [EFL][WK2] Replace mouseClick with more meaningful method in test_ewk2_context_menu.cpp
3120         https://bugs.webkit.org/show_bug.cgi?id=118796
3121
3122         Reviewed by Christophe Dumez.
3123
3124         Some mouseClick methods are used in test_ewk2_context_menu.cpp.
3125         But it is difficult to understand what they mean.
3126         So i would like to replace those with more meaningful method for readability.
3127
3128         * UIProcess/API/efl/tests/test_ewk2_context_menu.cpp:
3129         (EWK2ContextMenuTest::testContextMenu):
3130         (EWK2ContextMenuTest::testContextMenuForRemoveAndAppend):
3131         (EWK2ContextMenuTest::testContextMenuForSubmenu):
3132         (EWK2ContextMenuTest::finishTest):
3133         (EWK2ContextMenuTest::showContextMenu):
3134         (TEST_F):
3135
3136 2013-07-18  Dong-Gwan Kim  <donggwan.kim@samsung.com>
3137
3138         [EFL][WK2] Replace mouseClick with more meaningful method in test_ewk2_file_chooser_request.cpp
3139         https://bugs.webkit.org/show_bug.cgi?id=118792
3140
3141         Reviewed by Christophe Dumez.
3142
3143         Some mouseClick methods are used in test_ewk2_file_chooser_request.cpp.
3144         But it is difficult to understand what they mean.
3145         So i would like to replace those with more meaningful method for readability.
3146
3147         * UIProcess/API/efl/tests/test_ewk2_file_chooser_request.cpp:
3148         (EWK2FileChooserRequestTest::clickFileInput):
3149         (TEST_F):
3150
3151 2013-07-18  Dong-Gwan Kim  <donggwan.kim@samsung.com>
3152
3153         [EFL][WK2] Move all the static methods into EWK2TextCheckerTest in test_ewk2_text_checker.cpp
3154         https://bugs.webkit.org/show_bug.cgi?id=118790
3155
3156         Reviewed by Christophe Dumez.
3157
3158         All the static methods should be moved to EWK2TextCheckerTest.
3159
3160         * UIProcess/API/efl/tests/test_ewk2_text_checker.cpp:
3161         (EWK2TextCheckerTest::resetCallbacksExecutionStats):
3162         (EWK2TextCheckerTest::onTimeout):
3163         (EWK2TextCheckerTest::onSettingChange):
3164         (EWK2TextCheckerTest::onSpellDocumentTag):
3165         (EWK2TextCheckerTest::onSpellDocumentTagClose):
3166         (EWK2TextCheckerTest::onSpellingCheck):
3167         (EWK2TextCheckerTest::onSpellingForKnownWord):
3168         (EWK2TextCheckerTest::onWordGuesses):
3169         (EWK2TextCheckerTest::onWordLearn):
3170         (EWK2TextCheckerTest::onWordIgnore):
3171         (EWK2TextCheckerTest::findContextMenuItem):
3172         (EWK2TextCheckerTest::checkCorrectnessOfSpellingItems):
3173         (EWK2TextCheckerTest::toogleCheckSpellingWhileTyping):
3174         (EWK2TextCheckerTest::checkClientSuggestionsForWord):
3175         (EWK2TextCheckerTest::selectLearnSpelling):
3176         (EWK2TextCheckerTest::selectIgnoreSpelling):
3177         (EWK2TextCheckerTest::countContextMenuItems):
3178         (EWK2TextCheckerTest::clickButton):
3179         (EWK2TextCheckerTest::showContextMenu):
3180         (EWK2TextCheckerTest::selectFirstWord):
3181
3182 2013-07-17  Tim Horton  <timothy_horton@apple.com>
3183
3184         Update blocked/missing plug-in UI
3185         https://bugs.webkit.org/show_bug.cgi?id=118347
3186         <rdar://problem/14209318>
3187
3188         Reviewed by Sam Weinig.
3189
3190         * Platform/CoreIPC/HandleMessage.h:
3191         (CoreIPC::callMemberFunction):
3192         Add a 6 argument -> 4 reply message handler.
3193         (It seems that FindPlugin is getting a little out of hand.)
3194
3195         * Shared/APIClientTraits.cpp:
3196         * Shared/APIClientTraits.h:
3197         * UIProcess/API/C/WKPage.h:
3198         * UIProcess/WebLoaderClient.cpp:
3199         (WebKit::WebLoaderClient::pluginLoadPolicy):
3200         * UIProcess/WebLoaderClient.h:
3201         Add an unavailability description out-argument to a new version of
3202         pluginLoadPolicy, so clients can override the text of the unavailable
3203         plugin indicator. Bump the WKPageLoaderClient version and update APIClientTraits.
3204
3205         * UIProcess/WebPageProxy.cpp:
3206         (WebKit::WebPageProxy::findPlugin):
3207         * UIProcess/WebPageProxy.h:
3208         * UIProcess/WebPageProxy.messages.in:
3209         Plumb the unavailability description through to the WebProcess via
3210         the FindPlugin message.
3211
3212         * WebProcess/WebPage/WebPage.cpp:
3213         (WebKit::WebPage::createPlugin):
3214         Acquire the unavailability description from the client
3215         (via FindPlugin) and hand it to the RenderEmbeddedObject.
3216
3217 2013-07-17  Commit Queue  <commit-queue@webkit.org>
3218
3219         Unreviewed, rolling out r152701, r152703, r152739, r152754,
3220         and r152756.
3221         http://trac.webkit.org/changeset/152701
3222         http://trac.webkit.org/changeset/152703
3223         http://trac.webkit.org/changeset/152739
3224         http://trac.webkit.org/changeset/152754
3225         http://trac.webkit.org/changeset/152756
3226         https://bugs.webkit.org/show_bug.cgi?id=118821
3227
3228         this was a buggy fix and we're going to try something
3229         different (Requested by thorton on #webkit).
3230
3231         * Platform/CoreIPC/HandleMessage.h:
3232         * Shared/APIClientTraits.cpp:
3233         * Shared/APIClientTraits.h:
3234         * UIProcess/API/C/WKPage.h:
3235         * UIProcess/WebLoaderClient.cpp:
3236         (WebKit::WebLoaderClient::pluginLoadPolicy):
3237         * UIProcess/WebLoaderClient.h:
3238         * UIProcess/WebPageProxy.cpp:
3239         (WebKit::WebPageProxy::findPlugin):
3240         * UIProcess/WebPageProxy.h:
3241         * UIProcess/WebPageProxy.messages.in:
3242         * WebProcess/Plugins/PluginProcessConnection.cpp:
3243         (WebKit::PluginProcessConnection::didClose):
3244         * WebProcess/Plugins/PluginView.cpp:
3245         (WebKit::PluginView::pluginProcessCrashed):
3246         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3247         (WebKit::WebChromeClient::shouldUnavailablePluginMessageBeButton):
3248         * WebProcess/WebCoreSupport/WebChromeClient.h:
3249         * WebProcess/WebPage/WebPage.cpp:
3250         (WebKit::WebPage::createPlugin):
3251         (WebKit::WebPage::canPluginHandleResponse):
3252
3253 2013-07-17  Alexey Proskuryakov  <ap@apple.com>
3254
3255         [Mac] Crashes in CFURLGetBytes under WebProcess::updateActivePages()
3256         https://bugs.webkit.org/show_bug.cgi?id=118814
3257         <rdar://problem/14173389>
3258
3259         Reviewed by Brady Eidson.
3260
3261         Speculative fix. It's unclear how we end up with an invalid URL when committing
3262         a load.
3263
3264         * WebProcess/mac/WebProcessMac.mm: (WebKit::WebProcess::updateActivePages):
3265         Added a null check.
3266
3267 2013-07-17  Commit Queue  <commit-queue@webkit.org>
3268
3269         Unreviewed, rolling out r152786 and r152789.
3270         http://trac.webkit.org/changeset/152786
3271         http://trac.webkit.org/changeset/152789
3272         https://bugs.webkit.org/show_bug.cgi?id=118807
3273
3274         overly platform specific and dirty API (and Sam says no)
3275         (Requested by thorton on #webkit).
3276
3277         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
3278         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:
3279         * WebProcess/WebPage/PageOverlay.cpp:
3280         * WebProcess/WebPage/PageOverlay.h:
3281         * WebProcess/WebPage/WebPage.cpp:
3282         * WebProcess/WebPage/WebPage.h:
3283         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
3284
3285 2013-07-17  Tim Horton  <timothy_horton@apple.com>
3286
3287         AX: VoiceOver not working with data detection page overlays
3288         https://bugs.webkit.org/show_bug.cgi?id=118680
3289
3290         Reviewed by Anders Carlsson.
3291
3292         Bump the API version after r152786.
3293
3294         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:
3295
3296 2013-07-17  Simon Cooper  <scooper@apple.com>
3297
3298         YouTube webcam capture (Flash Plug-in) in Safari can't see built-in camera
3299         https://bugs.webkit.org/show_bug.cgi?id=118787
3300         <rdar://problem/14418799>
3301
3302         Reviewed by Alexey Proskuryakov.
3303
3304         Add support for built-in cameras, including the original iSight.
3305
3306         * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
3307         * Resources/PlugInSandboxProfiles/com.macromedia.Flash Player.plugin.sb:
3308
3309 2013-07-17  Chris Fleizach  <cfleizach@apple.com>
3310
3311         AX: VoiceOver not working with data detection page overlays
3312         https://bugs.webkit.org/show_bug.cgi?id=118680
3313
3314         Reviewed by Tim Horton.
3315
3316         Expose API methods so that a client implementing data detectors is able to respond
3317         to the needs of accessibility clients like VoiceOver.
3318
3319         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
3320         (PageOverlayClientImpl::supportsDataDetection):
3321         (PageOverlayClientImpl::dataDetectorExistsAtPoint):
3322         (PageOverlayClientImpl::dataDetectorCopyTypeAtPoint):
3323         (PageOverlayClientImpl::showDataDetectorMenuAtPoint):
3324         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:
3325         * WebProcess/WebPage/PageOverlay.cpp:
3326         (WebKit::PageOverlay::supportsDataDetection):
3327         (WebKit::PageOverlay::dataDetectorExistsAtPoint):
3328         (WebKit::PageOverlay::dataDetectorCopyTypeAtPoint):
3329         (WebKit::PageOverlay::dataDetectorOpenMenuAtPoint):
3330         * WebProcess/WebPage/PageOverlay.h:
3331         (WebKit::PageOverlay::Client::supportsDataDetection):
3332         (WebKit::PageOverlay::Client::dataDetectorExistsAtPoint):
3333         (WebKit::PageOverlay::Client::dataDetectorCopyTypeAtPoint):
3334         (WebKit::PageOverlay::Client::showDataDetectorMenuAtPoint):
3335         * WebProcess/WebPage/WebPage.cpp:
3336         (WebKit::WebPage::pageOverlayOpenDataDetectorMenuAtPoint):
3337         (WebKit::WebPage::pageOverlayDataDetectorCopyTypeAtPoint):
3338         (WebKit::WebPage::pageOverlayDataDetectorExistsAtPoint):
3339         (WebKit::WebPage::pageOverlaySupportsDataDetection):
3340         * WebProcess/WebPage/WebPage.h:
3341         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
3342         (-[WKAccessibilityWebPageObject accessibilityParameterizedAttributeNames]):
3343         (-[WKAccessibilityWebPageObject _convertScreenPointToWindow:]):
3344         (-[WKAccessibilityWebPageObject accessibilityAttributeValue:forParameter:]):
3345
3346 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
3347
3348         [EFL][WK2] EWK2CookieManagerTest should be defined by inheriting from EWK2UnitTestBase.
3349         https://bugs.webkit.org/show_bug.cgi?id=118721
3350
3351         Reviewed by Christophe Dumez.
3352
3353         It should be defined as relevant test class specific to each test file for more readability.
3354         It could be helpful to remove unnecessary static methods.
3355
3356         * UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp:
3357         (compareHostNames):
3358         (onCookiesChanged):
3359         (EWK2CookieManagerTest::getAcceptPolicy):
3360         (EWK2CookieManagerTest::getHostnamesWithCookies):
3361         (EWK2CookieManagerTest::freeHostNames):
3362         (EWK2CookieManagerTest::countHostnamesWithCookies):
3363         (TEST_F):
3364
3365 2013-07-16  Balazs Kelemen  <kbalazs@webkit.org>
3366
3367         [CMake] Undefined references should be detected at build time
3368         https://bugs.webkit.org/show_bug.cgi?id=110236
3369
3370         Reviewed by Christophe Dumez.
3371
3372         Add library dependencies that were not defined explicitly before.
3373
3374         * CMakeLists.txt:
3375         * PlatformEfl.cmake:
3376
3377 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
3378
3379         [EFL][WK2] EWK2WindowFeaturesTest should be defined by inheriting from EWK2UnitTestBase.
3380         https://bugs.webkit.org/show_bug.cgi?id=118780
3381
3382         Reviewed by Christophe Dumez.
3383
3384         It should be defined as relevant test class specific to each test file for more readability.
3385         It could be helpful to remove unnecessary static methods.
3386
3387         * UIProcess/API/efl/tests/test_ewk2_window_features.cpp:
3388         (EWK2WindowFeaturesTest::createDefaultWindow):
3389         (EWK2WindowFeaturesTest::createWindow):
3390         (TEST_F):
3391
3392 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
3393
3394         [EFL][WK2] EWK2ViewTest should be defined by inheriting from EWK2UnitTestBase.
3395         https://bugs.webkit.org/show_bug.cgi?id=118779
3396
3397         Reviewed by Christophe Dumez.
3398
3399         It should be defined as relevant test class specific to each test file for more readability.
3400         It could be helpful to remove unnecessary static methods.
3401
3402         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
3403         (EWK2ViewTest::onLoadFinishedForRedirection):
3404         (EWK2ViewTest::serverCallbackNavigation):
3405         (EWK2ViewTest::onFormAboutToBeSubmitted):
3406         (EWK2ViewTest::fullScreenCallback):
3407         (EWK2ViewTest::fullScreenExitCallback):
3408         (EWK2ViewTest::checkAlert):
3409         (EWK2ViewTest::checkConfirm):
3410         (EWK2ViewTest::checkPrompt):
3411         (EWK2ViewTest::onTextFound):
3412         (EWK2ViewTest::onVibrate):
3413         (EWK2ViewTest::onCancelVibration):
3414         (EWK2ViewTest::loadVibrationHTMLString):
3415         (EWK2ViewTest::onContentsSizeChangedPortrait):
3416         (EWK2ViewTest::onContentsSizeChangedLandscape):
3417         (EWK2ViewTest::PageContentsAsMHTMLCallback):
3418         (EWK2ViewTest::PageContentsAsStringCallback):
3419         (TEST_F):
3420
3421 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
3422
3423         [EFL][WK2] EWK2StorageManagerTest should be defined by inheriting from EWK2UnitTestBase.
3424         https://bugs.webkit.org/show_bug.cgi?id=118777
3425
3426         Reviewed by Christophe Dumez.
3427
3428         It should be defined as relevant test class specific to each test file for more readability.
3429         It could be helpful to remove unnecessary static methods.
3430
3431         * UIProcess/API/efl/tests/test_ewk2_storage_manager.cpp:
3432         (EWK2StorageManagerTest::OriginData::OriginData):
3433         (EWK2StorageManagerTest::getStorageOriginsCallback):
3434         (EWK2StorageManagerTest::timerCallback):
3435         (EWK2StorageManagerTest::checkOrigin):
3436         (TEST_F):
3437
3438 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
3439
3440         [EFL][WK2] EWK2PopupMenuTest should be defined by inheriting from EWK2UnitTestBase.
3441         https://bugs.webkit.org/show_bug.cgi?id=118775
3442
3443         Reviewed by Christophe Dumez.
3444
3445         It should be defined as relevant test class specific to each test file for more readability.
3446         It could be helpful to remove unnecessary static methods.
3447
3448         * UIProcess/API/efl/tests/test_ewk2_popup_menu.cpp:
3449         (EWK2PopupMenuTest::checkBasicPopupMenuItem):
3450         (EWK2PopupMenuTest::selectItemAfterDelayed):
3451         (EWK2PopupMenuTest::showPopupMenu):
3452         (TEST_F):
3453
3454 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
3455
3456         [EFL][WK2] EWK2FileChooserRequestTest should be defined by inheriting from EWK2UnitTestBase.
3457         https://bugs.webkit.org/show_bug.cgi?id=118773
3458
3459         Reviewed by Christophe Dumez.
3460
3461         It should be defined as relevant test class specific to each test file for more readability.
3462         It could be helpful to remove unnecessary static methods.
3463
3464         * UIProcess/API/efl/tests/test_ewk2_file_chooser_request.cpp:
3465         (EWK2FileChooserRequestTest::onFileChooserRequest):
3466         (EWK2FileChooserRequestTest::compareStrings):
3467         (EWK2FileChooserRequestTest::freeStringList):
3468         (TEST_F):
3469
3470 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
3471
3472         [EFL][WK2] EWK2FaviconDatabaseTest should be defined by inheriting from EWK2UnitTestBase.
3473         https://bugs.webkit.org/show_bug.cgi?id=118772
3474
3475         Reviewed by Christophe Dumez.
3476
3477         It should be defined as relevant test class specific to each test file for more readability.
3478         It could be helpful to remove unnecessary static methods.
3479
3480         * UIProcess/API/efl/tests/test_ewk2_favicon_database.cpp:
3481         (EWK2FaviconDatabaseTest::se