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