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