[Mac] Crashes in CFURLGetBytes under WebProcess::updateActivePages()
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2013-07-17  Alexey Proskuryakov  <ap@apple.com>
2
3         [Mac] Crashes in CFURLGetBytes under WebProcess::updateActivePages()
4         https://bugs.webkit.org/show_bug.cgi?id=118814
5         <rdar://problem/14173389>
6
7         Reviewed by Brady Eidson.
8
9         Speculative fix. It's unclear how we end up with an invalid URL when committing
10         a load.
11
12         * WebProcess/mac/WebProcessMac.mm: (WebKit::WebProcess::updateActivePages):
13         Added a null check.
14
15 2013-07-17  Commit Queue  <commit-queue@webkit.org>
16
17         Unreviewed, rolling out r152786 and r152789.
18         http://trac.webkit.org/changeset/152786
19         http://trac.webkit.org/changeset/152789
20         https://bugs.webkit.org/show_bug.cgi?id=118807
21
22         overly platform specific and dirty API (and Sam says no)
23         (Requested by thorton on #webkit).
24
25         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
26         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:
27         * WebProcess/WebPage/PageOverlay.cpp:
28         * WebProcess/WebPage/PageOverlay.h:
29         * WebProcess/WebPage/WebPage.cpp:
30         * WebProcess/WebPage/WebPage.h:
31         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
32
33 2013-07-17  Tim Horton  <timothy_horton@apple.com>
34
35         AX: VoiceOver not working with data detection page overlays
36         https://bugs.webkit.org/show_bug.cgi?id=118680
37
38         Reviewed by Anders Carlsson.
39
40         Bump the API version after r152786.
41
42         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:
43
44 2013-07-17  Simon Cooper  <scooper@apple.com>
45
46         YouTube webcam capture (Flash Plug-in) in Safari can't see built-in camera
47         https://bugs.webkit.org/show_bug.cgi?id=118787
48         <rdar://problem/14418799>
49
50         Reviewed by Alexey Proskuryakov.
51
52         Add support for built-in cameras, including the original iSight.
53
54         * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
55         * Resources/PlugInSandboxProfiles/com.macromedia.Flash Player.plugin.sb:
56
57 2013-07-17  Chris Fleizach  <cfleizach@apple.com>
58
59         AX: VoiceOver not working with data detection page overlays
60         https://bugs.webkit.org/show_bug.cgi?id=118680
61
62         Reviewed by Tim Horton.
63
64         Expose API methods so that a client implementing data detectors is able to respond
65         to the needs of accessibility clients like VoiceOver.
66
67         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
68         (PageOverlayClientImpl::supportsDataDetection):
69         (PageOverlayClientImpl::dataDetectorExistsAtPoint):
70         (PageOverlayClientImpl::dataDetectorCopyTypeAtPoint):
71         (PageOverlayClientImpl::showDataDetectorMenuAtPoint):
72         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:
73         * WebProcess/WebPage/PageOverlay.cpp:
74         (WebKit::PageOverlay::supportsDataDetection):
75         (WebKit::PageOverlay::dataDetectorExistsAtPoint):
76         (WebKit::PageOverlay::dataDetectorCopyTypeAtPoint):
77         (WebKit::PageOverlay::dataDetectorOpenMenuAtPoint):
78         * WebProcess/WebPage/PageOverlay.h:
79         (WebKit::PageOverlay::Client::supportsDataDetection):
80         (WebKit::PageOverlay::Client::dataDetectorExistsAtPoint):
81         (WebKit::PageOverlay::Client::dataDetectorCopyTypeAtPoint):
82         (WebKit::PageOverlay::Client::showDataDetectorMenuAtPoint):
83         * WebProcess/WebPage/WebPage.cpp:
84         (WebKit::WebPage::pageOverlayOpenDataDetectorMenuAtPoint):
85         (WebKit::WebPage::pageOverlayDataDetectorCopyTypeAtPoint):
86         (WebKit::WebPage::pageOverlayDataDetectorExistsAtPoint):
87         (WebKit::WebPage::pageOverlaySupportsDataDetection):
88         * WebProcess/WebPage/WebPage.h:
89         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
90         (-[WKAccessibilityWebPageObject accessibilityParameterizedAttributeNames]):
91         (-[WKAccessibilityWebPageObject _convertScreenPointToWindow:]):
92         (-[WKAccessibilityWebPageObject accessibilityAttributeValue:forParameter:]):
93
94 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
95
96         [EFL][WK2] EWK2CookieManagerTest should be defined by inheriting from EWK2UnitTestBase.
97         https://bugs.webkit.org/show_bug.cgi?id=118721
98
99         Reviewed by Christophe Dumez.
100
101         It should be defined as relevant test class specific to each test file for more readability.
102         It could be helpful to remove unnecessary static methods.
103
104         * UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp:
105         (compareHostNames):
106         (onCookiesChanged):
107         (EWK2CookieManagerTest::getAcceptPolicy):
108         (EWK2CookieManagerTest::getHostnamesWithCookies):
109         (EWK2CookieManagerTest::freeHostNames):
110         (EWK2CookieManagerTest::countHostnamesWithCookies):
111         (TEST_F):
112
113 2013-07-16  Balazs Kelemen  <kbalazs@webkit.org>
114
115         [CMake] Undefined references should be detected at build time
116         https://bugs.webkit.org/show_bug.cgi?id=110236
117
118         Reviewed by Christophe Dumez.
119
120         Add library dependencies that were not defined explicitly before.
121
122         * CMakeLists.txt:
123         * PlatformEfl.cmake:
124
125 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
126
127         [EFL][WK2] EWK2WindowFeaturesTest should be defined by inheriting from EWK2UnitTestBase.
128         https://bugs.webkit.org/show_bug.cgi?id=118780
129
130         Reviewed by Christophe Dumez.
131
132         It should be defined as relevant test class specific to each test file for more readability.
133         It could be helpful to remove unnecessary static methods.
134
135         * UIProcess/API/efl/tests/test_ewk2_window_features.cpp:
136         (EWK2WindowFeaturesTest::createDefaultWindow):
137         (EWK2WindowFeaturesTest::createWindow):
138         (TEST_F):
139
140 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
141
142         [EFL][WK2] EWK2ViewTest should be defined by inheriting from EWK2UnitTestBase.
143         https://bugs.webkit.org/show_bug.cgi?id=118779
144
145         Reviewed by Christophe Dumez.
146
147         It should be defined as relevant test class specific to each test file for more readability.
148         It could be helpful to remove unnecessary static methods.
149
150         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
151         (EWK2ViewTest::onLoadFinishedForRedirection):
152         (EWK2ViewTest::serverCallbackNavigation):
153         (EWK2ViewTest::onFormAboutToBeSubmitted):
154         (EWK2ViewTest::fullScreenCallback):
155         (EWK2ViewTest::fullScreenExitCallback):
156         (EWK2ViewTest::checkAlert):
157         (EWK2ViewTest::checkConfirm):
158         (EWK2ViewTest::checkPrompt):
159         (EWK2ViewTest::onTextFound):
160         (EWK2ViewTest::onVibrate):
161         (EWK2ViewTest::onCancelVibration):
162         (EWK2ViewTest::loadVibrationHTMLString):
163         (EWK2ViewTest::onContentsSizeChangedPortrait):
164         (EWK2ViewTest::onContentsSizeChangedLandscape):
165         (EWK2ViewTest::PageContentsAsMHTMLCallback):
166         (EWK2ViewTest::PageContentsAsStringCallback):
167         (TEST_F):
168
169 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
170
171         [EFL][WK2] EWK2StorageManagerTest should be defined by inheriting from EWK2UnitTestBase.
172         https://bugs.webkit.org/show_bug.cgi?id=118777
173
174         Reviewed by Christophe Dumez.
175
176         It should be defined as relevant test class specific to each test file for more readability.
177         It could be helpful to remove unnecessary static methods.
178
179         * UIProcess/API/efl/tests/test_ewk2_storage_manager.cpp:
180         (EWK2StorageManagerTest::OriginData::OriginData):
181         (EWK2StorageManagerTest::getStorageOriginsCallback):
182         (EWK2StorageManagerTest::timerCallback):
183         (EWK2StorageManagerTest::checkOrigin):
184         (TEST_F):
185
186 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
187
188         [EFL][WK2] EWK2PopupMenuTest should be defined by inheriting from EWK2UnitTestBase.
189         https://bugs.webkit.org/show_bug.cgi?id=118775
190
191         Reviewed by Christophe Dumez.
192
193         It should be defined as relevant test class specific to each test file for more readability.
194         It could be helpful to remove unnecessary static methods.
195
196         * UIProcess/API/efl/tests/test_ewk2_popup_menu.cpp:
197         (EWK2PopupMenuTest::checkBasicPopupMenuItem):
198         (EWK2PopupMenuTest::selectItemAfterDelayed):
199         (EWK2PopupMenuTest::showPopupMenu):
200         (TEST_F):
201
202 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
203
204         [EFL][WK2] EWK2FileChooserRequestTest should be defined by inheriting from EWK2UnitTestBase.
205         https://bugs.webkit.org/show_bug.cgi?id=118773
206
207         Reviewed by Christophe Dumez.
208
209         It should be defined as relevant test class specific to each test file for more readability.
210         It could be helpful to remove unnecessary static methods.
211
212         * UIProcess/API/efl/tests/test_ewk2_file_chooser_request.cpp:
213         (EWK2FileChooserRequestTest::onFileChooserRequest):
214         (EWK2FileChooserRequestTest::compareStrings):
215         (EWK2FileChooserRequestTest::freeStringList):
216         (TEST_F):
217
218 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
219
220         [EFL][WK2] EWK2FaviconDatabaseTest should be defined by inheriting from EWK2UnitTestBase.
221         https://bugs.webkit.org/show_bug.cgi?id=118772
222
223         Reviewed by Christophe Dumez.
224
225         It should be defined as relevant test class specific to each test file for more readability.
226         It could be helpful to remove unnecessary static methods.
227
228         * UIProcess/API/efl/tests/test_ewk2_favicon_database.cpp:
229         (EWK2FaviconDatabaseTest::serverCallback):
230         (EWK2FaviconDatabaseTest::requestFaviconData):
231         (TEST_F):
232
233 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
234
235         [EFL][WK2] EWK2EinaSharedStringTest should be defined by inheriting from EWK2UnitTestBase.
236         https://bugs.webkit.org/show_bug.cgi?id=118771
237
238         Reviewed by Christophe Dumez.
239
240         It should be defined as relevant test class specific to each test file for more readability.
241         It could be helpful to remove unnecessary static methods.
242
243         * UIProcess/API/efl/tests/test_ewk2_eina_shared_string.cpp:
244         (EWK2EinaSharedStringTest::checkString):
245         (TEST_F):
246
247 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
248
249         [EFL][WK2] EWK2DownloadJobTest should be defined by inheriting from EWK2UnitTestBase.
250         https://bugs.webkit.org/show_bug.cgi?id=118769
251
252         Reviewed by Christophe Dumez.
253
254         It should be defined as relevant test class specific to each test file for more readability.
255         It could be helpful to remove unnecessary static methods.
256
257         * UIProcess/API/efl/tests/test_ewk2_download_job.cpp:
258         (EWK2DownloadJobTest::fileExists):
259         (EWK2DownloadJobTest::serverCallback):
260         (EWK2DownloadJobTest::on_download_requested):
261         (EWK2DownloadJobTest::on_download_cancelled):
262         (EWK2DownloadJobTest::on_download_failed):
263         (EWK2DownloadJobTest::on_download_finished):
264         (TEST_F):
265
266 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
267
268         [EFL][WK2] EWK2AuthRequestTest should be defined by inheriting from EWK2UnitTestBase.
269         https://bugs.webkit.org/show_bug.cgi?id=118766
270
271         Reviewed by Christophe Dumez.
272
273         It should be defined as relevant test class specific to each test file for more readability.
274         It could be helpful to remove unnecessary static methods.
275
276         * UIProcess/API/efl/tests/test_ewk2_auth_request.cpp:
277         (EWK2AuthRequestTest::serverCallback):
278         (EWK2AuthRequestTest::onAuthenticationRequest):
279         (EWK2AuthRequestTest::onLoadFinished):
280         (TEST_F):
281
282 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
283
284         [EFL][WK2] EWK2ContextMenuTest should be defined by inheriting from EWK2UnitTestBase.
285         https://bugs.webkit.org/show_bug.cgi?id=118767
286
287         Reviewed by Christophe Dumez.
288
289         It should be defined as relevant test class specific to each test file for more readability.
290         It could be helpful to remove unnecessary static methods.
291
292         * UIProcess/API/efl/tests/test_ewk2_context_menu.cpp:
293         (EWK2ContextMenuTest::checkBasicContextMenuItem):
294         (EWK2ContextMenuTest::customItemSelected):
295         (EWK2ContextMenuTest::showContextMenu):
296         (EWK2ContextMenuTest::showContextMenuForRemoveAndAppend):
297         (EWK2ContextMenuTest::showContextMenuForSubmenu):
298         (EWK2ContextMenuTest::hideContextMenu):
299         (TEST_F):
300
301 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
302
303         [EFL][WK2] EWK2ContextTest should be defined by inheriting from EWK2UnitTestBase.
304         https://bugs.webkit.org/show_bug.cgi?id=118763
305
306         Reviewed by Christophe Dumez.
307
308         It should be defined as relevant test class specific to each test file for more readability.
309         It could be helpful to remove unnecessary static methods.
310
311         * UIProcess/API/efl/tests/test_ewk2_context.cpp:
312         (EWK2ContextTest::schemeRequestCallback):
313         (TEST_F):
314
315 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
316
317         [EFL][WK2] EWK2DatabaseManagerTest should be defined by inheriting from EWK2UnitTestBase
318         https://bugs.webkit.org/show_bug.cgi?id=118726
319
320         Reviewed by Christophe Dumez.
321
322         It should be defined as relevant test class specific to each test file for more readability.
323         It could be helpful to remove unnecessary static methods.
324
325         * UIProcess/API/efl/tests/test_ewk2_database_manager.cpp:
326         (EWK2DatabaseManagerTest::OriginData::OriginData):
327         (EWK2DatabaseManagerTest::databaseOriginsCallback):
328         (EWK2DatabaseManagerTest::timerCallback):
329         (TEST_F):
330
331 2013-07-17  Dong-Gwan Kim  <donggwan.kim@samsung.com>
332
333         [EFL][WK2] EWK2ColorPickerTest should be defined by inheriting from EWK2UnitTestBase.
334         https://bugs.webkit.org/show_bug.cgi?id=118762
335
336         Reviewed by Christophe Dumez.
337
338         It should be defined as relevant test class specific to each test file for more readability.
339         It could be helpful to remove unnecessary static methods.
340
341         * UIProcess/API/efl/tests/test_ewk2_color_picker.cpp:
342         (EWK2ColorPickerTest::onColorPickerDone):
343         (EWK2ColorPickerTest::setColorPickerColor):
344         (EWK2ColorPickerTest::showColorPicker):
345         (EWK2ColorPickerTest::hideColorPicker):
346         (EWK2ColorPickerTest::hideColorPickerByRemovingElement):
347         (TEST_F):
348
349 2013-07-16  Gordon Sheridan  <gordon_sheridan@apple.com>
350
351         setPluginUnavailabilityReason can destroy renderObject before obscurity check
352         https://bugs.webkit.org/show_bug.cgi?id=118770
353         <rdar://problem/14462331>
354
355         Reviewed by Tim Horton.
356
357         * WebProcess/WebPage/WebPage.cpp:
358         (WebKit::WebPage::createPlugin):
359         Moved obscurity check to before renderObject is potentially destroyed.
360
361 2013-07-16  Alexey Proskuryakov  <ap@apple.com>
362
363         REGRESSION (r150291): Chinese predictive input pop-up disappears on twitter.com
364         https://bugs.webkit.org/show_bug.cgi?id=118739
365         <rdar://problem/14300350>
366
367         Reviewed by Daniel Bates.
368
369         EditorState tracking on UI side is very fragile. This is a targeted fix just for
370         this specific scenario.
371
372         The issue was that we had a stale m_temporarilyClosedComposition flag, which was
373         making UI process believe that a composition was closed from WebProcess side,
374         and notify input method about that. It shouldn't have been a problem, because there
375         is no composition at this point indeed, but this extra call is a problem for
376         predictive input, which works in a somewhat unconventional way (<rdar://problem/14458297>).
377
378         * UIProcess/mac/WebPageProxyMac.mm:
379         (WebKit::WebPageProxy::insertText): Reset m_temporarilyClosedComposition flag when
380         getting new EditorState in response to performing this action. There is certainly
381         no composition after insertText, and all interested parties are on the same page
382         already.
383
384 2013-07-16  Jessie Berlin  <jberlin@apple.com>
385
386         Fix some NSDictionary misuse pointed out by the clang static analyzer
387         https://bugs.webkit.org/show_bug.cgi?id=118736
388
389         Reviewed by Anders Carlsson.
390
391         * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
392         (WebKit::WebEditorClient::documentFragmentFromAttributedString):
393         Do not put a key with a nil value pair into the NSDictionary.
394
395 2013-07-16  Michael Brüning  <michael.bruning@digia.com>
396
397         [Qt] Replace Nokia with Qt Project in service name.
398         https://bugs.webkit.org/show_bug.cgi?id=118729
399
400         Reviewed by Simon Hausmann.
401
402         * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
403         (WebKit::ProcessLauncher::launchProcess):
404
405 2013-07-16  Dong-Gwan Kim  <donggwan.kim@samsung.com>
406
407         EWK2BackForwardListTest should be defined by inheriting from EWK2UnitTestBase.
408         https://bugs.webkit.org/show_bug.cgi?id=118717
409
410         Reviewed by Christophe Dumez.
411
412         * UIProcess/API/efl/tests/test_ewk2_back_forward_list.cpp:
413         (EWK2BackForwardListTest::checkItem):
414         (EWK2BackForwardListTest::urlFromTitle):
415         (EWK2BackForwardListTest::freeEinaList):
416         (TEST_F):
417
418 2013-07-16  Kangil Han  <kangil.han@samsung.com>
419
420         Use toHTMLSelectElement and dismiss isHTMLSelectElement
421         https://bugs.webkit.org/show_bug.cgi?id=118714
422
423         Reviewed by Ryosuke Niwa.
424
425         To avoid direct use of static_cast, this patch introduces toHTMLIFrameElement for code cleanup.
426         Additionally, this patch removes isHTMLSelectElement because not all element subclasses can be checked by a combination of tag names.
427
428         * WebProcess/Plugins/PDF/PDFPluginChoiceAnnotation.mm:
429         (WebKit::PDFPluginChoiceAnnotation::commit):
430
431 2013-07-16  Dong-Gwan Kim  <donggwan.kim@samsung.com>
432
433         Replace mouseClick with more meaningful method in test_ewk2_text_checker.cpp
434         https://bugs.webkit.org/show_bug.cgi?id=118699
435
436         Reviewed by Christophe Dumez.
437
438         Many mouseClick methods are used in test_ewk2_text_checker.cpp.
439         But it is difficult to understand what they mean.
440         So i would like to replace those with more meaningful method for readability.
441
442         * UIProcess/API/efl/tests/test_ewk2_text_checker.cpp:
443         (EWK2TextCheckerTest::clickSelectAllWordsWithSpellcheckButton):
444         (EWK2TextCheckerTest::clickSelectAllWordsWithoutSpellcheckButton):
445         (EWK2TextCheckerTest::clickSelectSubWordWithSpellcheckButton):
446         (EWK2TextCheckerTest::showContextMenuWithFirstLineText):
447         (EWK2TextCheckerTest::showContextMenuWithSecondLineText):
448         (EWK2TextCheckerTest::selectFirstWordInFirstLineText):
449         (EWK2TextCheckerTest::selectFirstWordInSecondLineText):
450         (TEST_F):
451
452 2013-07-15  Kangil Han  <kangil.han@samsung.com>
453
454         Introduce toHTMLIFrameElement
455         https://bugs.webkit.org/show_bug.cgi?id=118672
456
457         Reviewed by Ryosuke Niwa.
458
459         To avoid direct use of static_cast, this patch introduces toHTMLIFrameElement for code cleanup.
460
461         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
462         (WebKit::InjectedBundleNodeHandle::htmlIFrameElementContentFrame):
463
464 2013-07-15  Tim Horton  <timothy_horton@apple.com>
465
466         Update blocked/missing plug-in UI
467         https://bugs.webkit.org/show_bug.cgi?id=118347
468         <rdar://problem/14209318>
469
470         Reviewed by Sam Weinig.
471         Patch by Antoine Quint, Anders Carlsson, Sam Weinig, and myself.
472
473         * Platform/CoreIPC/HandleMessage.h:
474         (CoreIPC::callMemberFunction):
475         Add a 6 argument -> 4 reply message handler.
476         (It seems that FindPlugin is getting a little out of hand.)
477
478         * Shared/APIClientTraits.cpp:
479         * Shared/APIClientTraits.h:
480         * UIProcess/API/C/WKPage.h:
481         * UIProcess/WebLoaderClient.cpp:
482         (WebKit::WebLoaderClient::pluginLoadPolicy):
483         * UIProcess/WebLoaderClient.h:
484         Add an unavailability description out-argument to a new version of
485         pluginLoadPolicy, so clients can override the text of the unavailable
486         plugin indicator. Bump the WKPageLoaderClient version and update APIClientTraits.
487
488         * UIProcess/WebPageProxy.cpp:
489         (WebKit::WebPageProxy::findPlugin):
490         * UIProcess/WebPageProxy.h:
491         * UIProcess/WebPageProxy.messages.in:
492         Plumb the unavailability description through to the WebProcess via
493         the FindPlugin message.
494
495         * WebProcess/Plugins/PluginProcessConnection.cpp:
496         (WebKit::PluginProcessConnection::didClose):
497         Make a strongly referencing copy of the list of PluginProxies, so we can
498         throw them away without the HashMap being mutated underneath us (see the comment).
499
500         * WebProcess/Plugins/PluginView.cpp:
501         (WebKit::PluginView::pluginProcessCrashed):
502         Invalidate the plug-in's widget before setting the plugin unavailability reason,
503         because doing so would cause the plug-in's renderer to be torn down, making
504         invalidate() crash.
505
506         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
507         (WebKit::WebChromeClient::shouldUnavailablePluginMessageIncludeButton):
508         * WebProcess/WebCoreSupport/WebChromeClient.h:
509         Rename from shouldUnavailablePluginMessageBeButton to
510         shouldUnavailablePluginMessageIncludeButton for accuracy.
511
512         * WebProcess/WebPage/WebPage.cpp:
513         (WebKit::WebPage::createPlugin):
514         Acquire the unavailability description from the client
515         (via FindPlugin) and hand it to the RenderEmbeddedObject.
516         (WebKit::WebPage::canPluginHandleResponse):
517         Re-acquire the plugin's renderer, in case setPluginUnavailabilityReason destroyed it.
518
519 2013-07-15  Simon Cooper  <scooper@apple.com>
520
521         PluginProcess deny file-read-data /Library/Application Support/Macromedia/FlashPlayerTrust
522         https://bugs.webkit.org/show_bug.cgi?id=118690
523         <rdar://problem/14255963>
524
525         Reviewed by Dean Jackson.
526
527         Silently deny access to FlashPlayerTrust. This location contains
528         files containing lists of paths that Flash Player will
529         "allow" access to (without asking the user). Since the plugin
530         sandbox won't permit the access to the listed paths it is better
531         to silently block attempts to read these "whitelists". The
532         "whitelists" are created by other Adobe "installer" like
533         applications.
534
535         * Resources/PlugInSandboxProfiles/com.macromedia.Flash Player.plugin.sb:
536
537 2013-07-14  Jon Lee  <jonlee@apple.com>
538
539         Calling Notification.requestPermission() without a callback crashes
540         https://bugs.webkit.org/show_bug.cgi?id=118654
541         <rdar://problem/14293352>
542
543         Reviewed by Alexey Proskuryakov.
544
545         When requestPermission() is called, we short-circuit if we know the permission was already set.
546         The callback handler gets invoked. But now that callbacks are optional, we need to check to make
547         sure a callback was provided.
548
549         * WebProcess/Notifications/NotificationPermissionRequestManager.cpp:
550         (WebKit::NotificationPermissionRequestManager::startRequest): Check for the callback.
551
552 2013-07-15  Anton Obzhirov  <a.obzhirov@samsung.com>
553
554         [GTK] Remote inspector server should send an error page if resources not found
555         https://bugs.webkit.org/show_bug.cgi?id=117137
556
557         Reviewed by Gustavo Noronha Silva.
558
559         Sometimes it is difficult to understand why remote inspector fails to deliver the content.
560         This patch gives an option to show error page with some basic explanation.
561
562         * UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp:
563         (WebKit::WebInspectorServer::platformResourceForPath):
564
565 2013-07-15  Simon Pena  <simon.pena@samsung.com>
566
567         [GTK] [WK2] Check if the keyEventQueue is empty in WebPageProxy::getEditorCommandsForKeyEvent
568         https://bugs.webkit.org/show_bug.cgi?id=118530
569
570         Reviewed by Carlos Garcia Campos.
571
572         When a key event is started in the WebProcess (e.g. in the inspector)
573         it doesn't have an associated GdkEvent queued. Adding a check in 
574         WebPageProxy::getEditorCommandsForKeyEvent ensures there's always a queued
575         key event to process.
576
577         In GTK-WK2, inspector-protocol/input/dispatchKeyEvent.html no longer crashes once
578         this fix is in place. 
579
580         * UIProcess/gtk/WebPageProxyGtk.cpp:
581         (WebKit::WebPageProxy::getEditorCommandsForKeyEvent): Ensure m_keyEventQueue is
582         not empty.
583
584 2013-07-15  Alberto Garcia  <berto@igalia.com>
585
586         [WK2][GTK] SIGSEV in webkitWebViewBaseSizeAllocate
587         https://bugs.webkit.org/show_bug.cgi?id=118052
588
589         Reviewed by Carlos Garcia Campos.
590
591         We don't need to check whether the drawing area is empty or not in
592         order to set needsResizeOnMap.
593
594         It can also happen that the drawing area pointer is null (if
595         e.g. the web process crashes), which is the reason for this
596         SIGSEGV.
597
598         A test to prevent this was added in r88646 but was later moved to
599         resizeWebKitWebViewBaseFromAllocation().
600
601         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
602         (webkitWebViewBaseSizeAllocate):
603
604 2013-07-10  Roger Fong  <roger_fong@apple.com>
605
606         Plugins that don't support snapshotting should not all autostart.
607         https://bugs.webkit.org/show_bug.cgi?id=118572
608         <rdar://problem/14324391>.
609
610         Reviewed by Dean Jackson.
611
612         * WebProcess/Plugins/PluginView.cpp:
613         (WebKit::PluginView::shouldNotAddLayer): This method determines whether or not we should add the plugin's layer to the tree.
614         It should not be added if the plugin is in it's snapshotted state but does not actually support snapshotting.
615         (WebKit::PluginView::pluginSnapshotTimerFired): If the plugin does not support snapshotting go straight 
616         to the the DisplayingSnapshot state.
617         * WebProcess/Plugins/PluginView.h:
618
619 2013-07-11  Jessie Berlin  <jberlin@apple.com>
620
621         WebResourceCacheManager::cfURLCacheHostNamesWithCallback leaks an array (pointed out by the
622         clang static analyzer)
623         https://bugs.webkit.org/show_bug.cgi?id=118533
624
625         Reviewed by Anders Carlsson.
626
627         * WebProcess/ResourceCache/cf/WebResourceCacheManagerCFNet.cpp:
628         (WebKit::WebResourceCacheManager::cfURLCacheHostNamesWithCallback):
629
630 2013-07-11  Sergio Correia  <sergio.correia@openbossa.org>
631
632         Use GOwnPtr in PluginProcessProxyUnix to manage stdOut variable
633         https://bugs.webkit.org/show_bug.cgi?id=118568
634
635         Reviewed by Martin Robinson.
636
637         * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
638         (WebKit::PluginProcessProxy::scanPlugin):
639
640 2013-07-11  Timothy Hatcher  <timothy@apple.com>
641
642         Revert r152267 and soft link WebInspectorUI.framework again.
643
644         https://bugs.webkit.org/show_bug.cgi?id=118544
645
646         Reviewed by David Kilzer.
647
648         * Configurations/WebKit2.xcconfig:
649         * UIProcess/mac/WebInspectorProxyMac.mm:
650         (WebKit::inspectorReallyUsesWebKitUserInterface):
651         * WebKit2.xcodeproj/project.pbxproj:
652         * WebProcess/WebPage/mac/WebInspectorMac.mm:
653         (WebKit::inspectorReallyUsesWebKitUserInterface):
654
655 2013-07-11  Jae Hyun Park  <jae.park@company100.net>
656
657         [Coordinated Graphics] Parameter of commitSceneState should be const
658         https://bugs.webkit.org/show_bug.cgi?id=118564
659
660         Reviewed by Noam Rosenthal.
661
662         Parameter of commitSceneState should be const as there should not be any
663         modifications to the passed CoordinatedGraphicsState.
664
665         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
666         (WebKit::CoordinatedLayerTreeHost::commitSceneState):
667         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
668
669 2013-07-10  Mark Rowe  <mrowe@apple.com>
670
671         <rdar://problem/14395759> PluginProcess sometimes logs an error about being unable to load WebKit2.framework.
672
673         Reviewed by Alexey Proskuryakov.
674
675         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
676         (WebKit::PluginProcessProxy::createPropertyListFile): Ensure that any environment variables
677         specified in dynamic linker load commands are passed to the subprocess that we spawn to create
678         the MIME type property list.
679
680 2013-07-10  Brady Eidson  <beidson@apple.com>
681
682         Some Java plugin instances can deadlock with the WebProcess on NPP_Destroy.
683         <rdar://problem/14286390> and https://bugs.webkit.org/show_bug.cgi?id=118535
684
685         Reviewed by Alexey Proskuryakov.
686
687         * Shared/Plugins/NPObjectProxy.cpp:
688         (WebKit::NPObjectProxy::~NPObjectProxy): ASSERT this is the main thread.
689         (WebKit::NPObjectProxy::NP_Deallocate): If this isn't the main thread, call it again on the main thread.
690
691 2013-07-10  Sergio Correia  <sergio.correia@openbossa.org>
692
693         Remove the meshType from CoordinatedCustomFilterOperation
694         https://bugs.webkit.org/show_bug.cgi?id=118529
695
696         Reviewed by Noam Rosenthal.
697
698         Following the removal of the meshType from CustomFilterOperation in r149153,
699         remove also the meshType from CoordinatedCustomFilterOperation.
700
701         No new tests, no new functionality.
702
703         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
704         (CoreIPC::::encode): Remove dead comment.
705         (CoreIPC::::decode): Remove meshType from CoordinatedCustomFilterOperation
706         call.
707
708 2013-07-09  Byungwoo Lee  <bw80.lee@samsung.com>
709
710         [EFL] tooltip callback doesn't work.
711         https://bugs.webkit.org/show_bug.cgi?id=118522
712
713         Reviewed by Christophe Dumez.
714
715         Add missing code to connect didChangeTooltip callback.
716
717         * UIProcess/efl/ViewClientEfl.cpp:
718         (WebKit::ViewClientEfl::ViewClientEfl):
719
720 2013-07-09  Jer Noble  <jer.noble@apple.com>
721
722         Reviewed by Simon Fraser.
723
724         Remember the scroll position and restore after exiting full-screen mode.
725         https://bugs.webkit.org/show_bug.cgi?id=61956
726         <rdar://problem/9544461>
727
728         Call into the main FrameView to save the scroll position before swapping the
729         WebView into the full-screen window, and restore the scroll position after 
730         swapping the WebView back into the browser window.
731
732         * UIProcess/mac/WKFullScreenWindowController.mm:
733         (-[WKFullScreenWindowController finishedEnterFullScreenAnimation:]):
734         (-[WKFullScreenWindowController beganExitFullScreenAnimation]):
735
736         In WebKit2, this requires some communication between the WebProcess and the
737         UIProcess, so add two new messages to WebFullScreenManager to be called by
738         its proxy.
739
740         * UIProcess/WebFullScreenManagerProxy.h:
741         * UIProcess/WebFullScreenManagerProxy.cpp:
742         (WebKit::WebFullScreenManagerProxy::saveScrollPosition):
743         (WebKit::WebFullScreenManagerProxy::restoreScrollPosition):
744         * WebProcess/FullScreen/WebFullScreenManager.h:
745         * WebProcess/FullScreen/WebFullScreenManager.messages.in:
746         * WebProcess/FullScreen/WebFullScreenManager.cpp:
747         (WebKit::WebFullScreenManager::saveScrollPosition):
748         (WebKit::WebFullScreenManager::restoreScrollPosition):
749
750 2013-07-07  Carlos Garcia Campos  <cgarcia@igalia.com>
751
752         [GTK] Runtime critical warning when unloading a module that failed to load
753         https://bugs.webkit.org/show_bug.cgi?id=118425
754
755         Reviewed by Martin Robinson.
756
757         * Platform/gtk/ModuleGtk.cpp:
758         (WebKit::Module::load): Show an error message when the module
759         fails to load.
760         (WebKit::Module::unload): Check module pointer before calling
761         unload method.
762
763 2013-07-05  Tim Horton  <timothy_horton@apple.com>
764
765         [wk2] Add API to lock the scroll position at the top or bottom of the page
766         https://bugs.webkit.org/show_bug.cgi?id=118429
767         <rdar://problem/14120323>
768
769         Reviewed by Anders Carlsson.
770
771         * Shared/WebPageCreationParameters.cpp:
772         (WebKit::WebPageCreationParameters::encode):
773         (WebKit::WebPageCreationParameters::decode):
774         * Shared/WebPageCreationParameters.h:
775         Pass the current ScrollPinningBehavior across to the WebPage upon creation.
776
777         * UIProcess/API/C/WKPage.cpp:
778         (WKPageGetScrollPinningBehavior):
779         (WKPageSetScrollPinningBehavior):
780         * UIProcess/API/C/WKPagePrivate.h:
781         SPI to get/set the WebPageProxy's current ScrollPinningBehavior.
782         Convert between WK API type and WebCore enum.
783
784         * UIProcess/WebPageProxy.cpp:
785         (WebKit::WebPageProxy::WebPageProxy):
786         (WebKit::WebPageProxy::creationParameters):
787         Send ScrollPinningBehavior when creating a WebPage.
788
789         (WebKit::WebPageProxy::setScrollPinningBehavior):
790         Pass ScrollPinningBehavior changes across to the WebProcess (and save it
791         in WebPageProxy so it can be sent back across if the WebProcess crashes).
792
793         * UIProcess/WebPageProxy.h:
794         (WebKit::WebPageProxy::scrollPinningBehavior):
795         Getter/setter and storage for m_scrollPinningBehavior.
796
797         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
798         (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
799         Inform new FrameViews of the current ScrollPinningBehavior.
800
801         * WebProcess/WebPage/WebPage.cpp:
802         (WebKit::WebPage::WebPage):
803         Set our ScrollPinningBehavior based on our creation parameters.
804
805         (WebKit::WebPage::setScrollPinningBehavior):
806         Inform the FrameView of ScrollPinningBehavior changes.
807
808         * WebProcess/WebPage/WebPage.h:
809         (WebKit::WebPage::scrollPinningBehavior): Added.
810         (WebKit::WebPage::setScrollPinningBehavior): Added.
811         Add storage for m_scrollPinningBehavior.
812
813         * WebProcess/WebPage/WebPage.messages.in:
814         Add SetScrollPinningBehavior message.
815
816 2013-07-05  Krzysztof Wolanski  <k.wolanski@samsung.com>
817
818         [EFL][WK2] Implement unit test callbacks: onWordLearn and onWordIgnore.
819         https://bugs.webkit.org/show_bug.cgi?id=118392
820
821         Reviewed by Christophe Dumez.
822
823         Simulate behavior of Learn and Ignore Word in the text field.
824
825         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
826         (EWK2UnitTest::EWK2UnitTestBase::mouseDoubleClick):
827         Select the entire word in the text field.
828
829         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.h:
830         * UIProcess/API/efl/tests/test_ewk2_text_checker.cpp:
831         (onSpellingForKnownWord):
832         (onWordLearn):
833         (onWordIgnore):
834         (selectLearnSpelling):
835         (selectIgnoreSpelling):
836
837 2013-07-05  Xabier Rodriguez Calvar  <calvaris@igalia.com>
838
839         [GTK] WebKit2 test TestWebKitFaviconDatabase times out with recent glib
840         https://bugs.webkit.org/show_bug.cgi?id=111434
841
842         Reviewed by Carlos Garcia Campos.
843
844         * UIProcess/API/gtk/tests/TestWebKitFaviconDatabase.cpp:
845         (testNotInitialized):
846         (testSetDirectory):
847         (testClearDatabase):
848         (testGetFavicon):
849         (testGetFaviconURI): Removed gconstpointer parameter.
850         (testWebViewFavicon): Fixed to make it work together with the
851         other tests and removed gconstpointer parameter.
852         (testFaviconDatabase): Created to call all tests in the proper
853         order.
854         (beforeAll): Changed to call only testFaviconDatabase instead of
855         the separate tests.
856
857 2013-07-05  Xabier Rodriguez Calvar  <calvaris@igalia.com>
858
859         TestWebKitFaviconDatabase/clear-database is not testing things properly
860         https://bugs.webkit.org/show_bug.cgi?id=118404
861
862         Reviewed by Carlos Garcia Campos.
863
864         * UIProcess/API/gtk/tests/TestWebKitFaviconDatabase.cpp:
865         (testClearDatabase): Check for an existing icon that can make the
866         test fail if clear database is not working.
867
868 2013-07-04  Anders Carlsson  <andersca@apple.com>
869
870         Paint the page background if we haven't received our first update
871         https://bugs.webkit.org/show_bug.cgi?id=118402
872         <rdar://problem/13893308>
873
874         Reviewed by Simon Fraser.
875
876         Make sure that we always paint something when we haven't received our first update from the web process.
877
878         * UIProcess/API/mac/WKView.mm:
879         (-[WKView drawRect:]):
880         * UIProcess/DrawingAreaProxyImpl.h:
881         (WebKit::DrawingAreaProxyImpl::hasReceivedFirstUpdate):
882
883 2013-07-04  Anders Carlsson  <andersca@apple.com>
884
885         Crash when createPluginInternal ends up destroying the plug-in
886         https://bugs.webkit.org/show_bug.cgi?id=118397
887         <rdar://problem/14155051>
888
889         Reviewed by Simon Fraser.
890
891         Keep the WebProcessConnection object alive while calling createPluginInternal and handle
892         the IPC connection going away.
893
894         * PluginProcess/WebProcessConnection.cpp:
895         (WebKit::WebProcessConnection::createPluginAsynchronously):
896
897 2013-07-03  Gordon Sheridan  <gordon_sheridan@apple.com>
898
899         Implement mechanism to detect (partially) hidden blocked plugins.
900         https://bugs.webkit.org/show_bug.cgi?id=117998
901
902         Reviewed by Dean Jackson.
903
904         * Shared/Plugins/Netscape/PluginInformation.h:
905         * Shared/Plugins/Netscape/PluginInformation.cpp:
906         (WebKit::plugInInformationReplacementObscuredKey):
907         Add key for plugInInformation dictionaries.
908
909         (WebKit::createPluginInformationDictionary):
910         Add boolean parameter identifying whether the replacement for a blocked plugin is obscured, and add it to the dictionary.
911
912         * Shared/API/c/WKPluginInformation.h:
913         * Shared/API/c/WKPluginInformation.cpp:
914         (WKPluginInformationReplacementObscuredKey):
915         Provide the C API for the plugInInformationReplacementObscuredKey().
916
917         * UIProcess/WebPageProxy.h:
918         * UIProcess/WebPageProxy.cpp:
919         (WebKit::WebPageProxy::didBlockInsecurePluginVersion):
920         Add bool replacementObscured parameter to pass on argument to createPluginInformationDictionary().
921
922         * UIProcess/WebPageProxy.messages.in:
923         Add bool replacementObscured parameter to DidBlockInsecurePluginVersion() message.
924
925         * WebProcess/WebPage/WebPage.cpp:
926         (WebKit::WebPage::createPlugin):
927         Invoke isReplacementObscured() method for blocked plugins.
928
929 2013-07-03  Alexey Proskuryakov  <ap@apple.com>
930
931         <rdar://problem/14271105> Flash Player: deny ipc-posix-sem 59918130
932         <rdar://problem/14349560> Flash Player: deny ipc-posix-sem MacromediaSemaphoreDig on many sites
933
934         Reviewed by Sam Weinig.
935
936         * Resources/PlugInSandboxProfiles/com.macromedia.Flash Player.plugin.sb:
937         semaphore-owner doesn't appear to work the way we need it to, removing it (at least for now).
938
939 2013-07-03  Simon Pena  <simon.pena@samsung.com>
940
941         WebTextCheckerClient doesn't initialize output arguments.
942         https://bugs.webkit.org/show_bug.cgi?id=83683
943
944         Reviewed by Martin Robinson.
945
946         Callers of checkSpellingOfString and checkGrammarOfString expect
947         certain default values when no misspelled (or bad grammar) string
948         is found. They try to do that by initialising the reply arguments
949         that go into the IPC calls, but these values are ultimately ignored (see
950         HandleMessage.h, where the replyArguments are declared).
951
952         In the past, this seems to have led to various issues, (see
953         TextCheckingHelper::findFirstMisspelling in TextCheckingHelper.cpp),
954         where these return values are asserted and checked to be in the right range.
955
956         This patch initialises the values, so even if no available client
957         implements the methods (or if the implementation forgets to do it) the callers
958         will have their expected output.
959
960         However, and for a general case, we probably need a way to tell the caller
961         that any existing value in the output arguments will be ignored.
962
963         * UIProcess/WebTextCheckerClient.cpp:
964         (WebKit::WebTextCheckerClient::checkSpellingOfString):
965         (WebKit::WebTextCheckerClient::checkGrammarOfString):
966
967
968 2013-07-03  Sergio Villar Senin  <svillar@igalia.com>
969
970         [GTK][WK2] SIGSEV in WebKit::WebPageContextMenuClient::customContextMenuItemSelected
971         https://bugs.webkit.org/show_bug.cgi?id=116867
972
973         Reviewed by Anders Carlsson.
974
975         We did not reset the clients on WebPageProxy::close(), so right
976         clicking on a link after starting the navigation to some other
977         page was causing crashes because code was trying to access an
978         already freed m_contextMenuClient.
979
980         There were some other clients that could potentially trigger the
981         same issues. Reset them all to null to prevent this situation.
982
983         * UIProcess/WebPageProxy.cpp:
984         (WebKit::WebPageProxy::close):
985
986 2013-07-03  Simon Pena  <simon.pena@samsung.com>
987
988         Output arguments used in IPC calls should be returned initialised
989         https://bugs.webkit.org/show_bug.cgi?id=118354
990
991         Reviewed by Anders Carlsson.
992
993         When Download::shouldDecodeSourceDataOfMIMEType and Download::retrieveDestinationWithSuggestedFilename
994         call DownloadProxy::shouldDecodeSourceDataOfMIMEType and DownloadProxy::decideDestinationWithSuggestedFilename
995         through IPC, they assume the output arguments result and allowOverwrite have
996         been initialised.
997
998         This patch initialises these arguments also in the unlikely event that a
999         m_webContext is not available.
1000
1001         * UIProcess/Downloads/DownloadProxy.cpp:
1002         (WebKit::DownloadProxy::shouldDecodeSourceDataOfMIMEType):
1003         (WebKit::DownloadProxy::decideDestinationWithSuggestedFilename):
1004
1005 2013-07-03  Sergio Villar Senin  <svillar@igalia.com>
1006
1007         [WK2][GTK] Invalid ASSERTs in WebResources loading code
1008         https://bugs.webkit.org/show_bug.cgi?id=118352
1009
1010         Reviewed by Carlos Garcia Campos.
1011
1012         The WebKitWebView keeps track of the resources being loaded in a
1013         map. A couple of ASSERTs verify that every loaded resource is
1014         stored in that map.
1015
1016         The map that is cleared each time a new load starts so there is a
1017         small chance that we get notifications for resources that
1018         correspond to previous page loads
1019         (and thus are not stored in the map). We should remove the ASSERT
1020         which is not valid anymore.
1021
1022         * UIProcess/API/gtk/WebKitWebView.cpp:
1023         (webkitWebViewGetLoadingWebResource):
1024
1025 2013-07-03  Carlos Garcia Campos  <cgarcia@igalia.com>
1026
1027         [GTK] Migrate WebKitWebContext to GTask
1028         https://bugs.webkit.org/show_bug.cgi?id=117153
1029
1030         Reviewed by Gustavo Noronha Silva.
1031
1032         * UIProcess/API/gtk/WebKitWebContext.cpp:
1033         (webkitWebContextGetPluginThread):
1034         (webkit_web_context_get_plugins):
1035         (webkit_web_context_get_plugins_finish):
1036
1037 2013-07-02  Zan Dobersek  <zdobersek@igalia.com>
1038
1039         [WK2] Invalidate FontCache before purging MemoryCache upon WebProcess termination/closure
1040         https://bugs.webkit.org/show_bug.cgi?id=118280
1041
1042         Reviewed by Darin Adler.
1043
1044         Invalidate the FontCache before disabling and purging the MemoryCache in WebProcess::didClose
1045         and WebProcess::terminate. This frees up additional references to objects that were held
1046         by the FontCache, reducing the amount of 'LEAK: *' output when exiting MiniBrowser or
1047         WebKitTestRunner in debug builds.
1048
1049         * WebProcess/WebProcess.cpp:
1050         (WebKit::WebProcess::terminate):
1051         (WebKit::WebProcess::didClose):
1052
1053 2013-07-02  Jessie Berlin  <jberlin@apple.com>
1054
1055         The callback for WKPageGetPlugInInformation needs info about whether or not there are any
1056         non-playing instances of the plug-in on the page
1057         https://bugs.webkit.org/show_bug.cgi?id=118330
1058
1059         Reviewed by Anders Carlsson.
1060
1061         Add another key value pair to the dictionary passed to the callback.
1062
1063         * Shared/API/c/WKPluginInformation.cpp:
1064         (WKPlugInInformationPageContainsNonPlayingInstanceOfPlugInKey):
1065         * Shared/API/c/WKPluginInformation.h:
1066
1067         * Shared/Plugins/Netscape/PluginInformation.cpp:
1068         (WebKit::plugInInformationPageContainsNonPlayingInstanceOfPlugInKey):
1069         (WebKit::createPlugInInformationDictionary):
1070         Add the information about whether or not the page contains a non-playing instance of that
1071         plug-in to the plug-in information dictionary.
1072         * Shared/Plugins/Netscape/PluginInformation.h:
1073
1074         * UIProcess/WebPageProxy.h:
1075         * UIProcess/WebPageProxy.messages.in:
1076         * UIProcess/mac/WebPageProxyMac.mm:
1077         (WebKit::WebPageProxy::containsPlugInCallback):
1078         Check if any of the MIME types of the plug-in instances that are present on the page but are
1079         not playing match the instance of plug-in being searched for.
1080         * WebProcess/WebPage/mac/WebPageMac.mm:
1081         (WebKit::addPlugInMimeTypesFromNodeListForNonPlayingPlugIns):
1082         Based roughly off of addPlugInsFromNodeListMatchingPlugInOrigin in
1083         HTMLPlugInImageElement.cpp.
1084         (WebKit::WebPage::containsPluginViewsWithPluginProcessToken):
1085         Based roughly off of HTMLPlugInImageElement::restartSimilarPlugIns.
1086
1087 2013-07-02  Alexey Proskuryakov  <ap@apple.com>
1088
1089         security/block-test.html fails when NetworkProcess is enabled
1090         https://bugs.webkit.org/show_bug.cgi?id=118320
1091         <rdar://problem/14309423>
1092
1093         Reviewed by Geoff Garen.
1094
1095         * NetworkProcess/NetworkResourceLoader.cpp:
1096         (WebKit::NetworkResourceLoader::wasBlocked):
1097         (WebKit::NetworkResourceLoader::cannotShowURL):
1098         Implemented missing ResourceHandleClient functions.
1099
1100 2013-07-02  Ada Chan  <adachan@apple.com>
1101
1102         Fix crash when PageBanner::detachFromPage() is called from WebPage::~WebPage().
1103         https://bugs.webkit.org/show_bug.cgi?id=118268
1104
1105         Reviewed by Beth Dakin.
1106
1107         * WebProcess/WebPage/mac/PageBannerMac.mm:
1108         (WebKit::PageBanner::detachFromPage): Add some null checks. m_webPage->corePage()
1109         can be null if this method is called after the web page is closed.
1110
1111 2013-07-02  Jae Hyun Park  <jae.park@company100.net>
1112
1113         Implement CoordinatedSurface for Threaded Coordinated Graphics
1114         https://bugs.webkit.org/show_bug.cgi?id=109661
1115
1116         Reviewed by Noam Rosenthal.
1117
1118         This is a preparation patch for Threaded Coordianted Graphics.
1119
1120         This patch implements ThreadSafeCoordinatedSurface using ImageBuffer as a
1121         backend. Also, this patch moves common implementation to CoordinatedSurface to
1122         prevent duplication of code.
1123
1124         * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
1125         (WebKit::WebCoordinatedSurface::WebCoordinatedSurface):
1126         * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
1127
1128 2013-07-01  Alexey Proskuryakov  <ap@apple.com>
1129
1130         Clean up private browsing session tracking
1131         https://bugs.webkit.org/show_bug.cgi?id=118266
1132         <rdar://problem/13078036>
1133
1134         Reviewed by Brady Eidson.
1135
1136         Instead of counting API calls, we now watch actual WebPreferences objects.
1137
1138         * UIProcess/API/C/WKPreferences.cpp: (WKPreferencesSetPrivateBrowsingEnabled):
1139         Removed code that used to notify WebContext. It's now done by WebPreferences.
1140
1141         * UIProcess/WebContext.h:
1142         * UIProcess/WebContext.cpp:
1143         (WebKit::WebContext::ensureNetworkProcess): Instead of counting the number of times
1144         API was called, rely on WebPreferences tracking.
1145         (WebKit::WebContext::willStartUsingPrivateBrowsing): Ditto. This function is
1146         now only called when we detect a change in private browsing state.
1147         (WebKit::WebContext::willStopUsingPrivateBrowsing): Ditto.
1148         (WebKit::WebContext::createNewWebProcess): Tell the new process to create a private
1149         browsing session if needed.
1150
1151         * UIProcess/WebPreferences.h:
1152         * UIProcess/WebPreferences.cpp:
1153         (WebKit::WebPreferences::addPageGroup): Count how many page groups use private
1154         browsing, and notify WebContext when a session is needed. Note that we don't notify
1155         WebContext about WebPreferences without any page groups, because it's likely
1156         that preferences will be updated by the client before groups are associated.
1157         (WebKit::WebPreferences::removePageGroup): Ditto.
1158         (WebKit::WebPreferences::updateBoolValueForKey): Perform special handling for
1159         private browsing mode changes.
1160         (WebKit::WebPreferences::updatePrivateBrowsingValue): Notify WebContext when
1161         it's time to create or destroy a private browsing session.
1162         (WebKit::WebPreferences::anyPageGroupsAreUsingPrivateBrowsing): A getter for
1163         WebContext to know when any page groups are in private browsing mode.
1164
1165         * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::updatePreferences):
1166         Don't create a private browsing session implicitly, UI process takes care of it.
1167
1168 2013-07-01  Timothy Hatcher  <timothy@apple.com>
1169
1170         Link to WebInspectorUI.framework at build time instead of soft linking.
1171
1172         https://bugs.webkit.org/show_bug.cgi?id=118261
1173
1174         Reviewed by Joseph Pecoraro.
1175
1176         * Configurations/WebKit2.xcconfig:
1177         * UIProcess/mac/WebInspectorProxyMac.mm:
1178         (WebKit::inspectorReallyUsesWebKitUserInterface):
1179         * WebKit2.xcodeproj/project.pbxproj:
1180         * WebProcess/WebPage/mac/WebInspectorMac.mm:
1181         (WebKit::inspectorReallyUsesWebKitUserInterface):
1182
1183 2013-07-01  Tim Horton  <timothy_horton@apple.com>
1184
1185         [wk2] TiledCoreAnimationDrawingArea should support scrolling its exposed rect
1186         https://bugs.webkit.org/show_bug.cgi?id=118173
1187         <rdar://problem/14301166>
1188
1189         Reviewed by Anders Carlsson.
1190
1191         Offset the exposed rect passed from the WKView by the main frame's current scroll position
1192         before sending it to our TiledBackings, so that it is in the same coordinate space as their
1193         ordinary visibleRects.
1194
1195         This has the side effect of making clips-to-exposed-rect testable (though useless) in Safari.
1196
1197         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1198         Add updateScrolledExposedRect() and m_scrolledExposedRect.
1199
1200         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1201         (WebKit::TiledCoreAnimationDrawingArea::scroll):
1202         Call updateScrolledExposedRect when the main frame scrolls.
1203
1204         (WebKit::TiledCoreAnimationDrawingArea::setExposedRect):
1205         Remove a FIXME about this change.
1206         Call updateScrolledExposedRect instead of passing down the unscrolled rect.
1207
1208         (WebKit::TiledCoreAnimationDrawingArea::setClipsToExposedRect):
1209         Call updateScrolledExposedRect, because that method will short-circuit if
1210         setClipsToExposedRect is false, so we need to update here for correctness
1211         if we get a setExposedRect(), setClipsToExposedRect(true) pair.
1212
1213         (WebKit::TiledCoreAnimationDrawingArea::updateScrolledExposedRect):
1214         Update m_scrolledExposedRect and propagate it to our TiledBackings.
1215
1216         (WebKit::TiledCoreAnimationDrawingArea::flushLayers):
1217         (WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer):
1218         (WebKit::TiledCoreAnimationDrawingArea::createPageOverlayLayer):
1219         (WebKit::TiledCoreAnimationDrawingArea::didCommitChangesForLayer):
1220         Use the scrolled exposed rect.
1221
1222 2013-07-01  Ada Chan  <adachan@apple.com>
1223
1224         Properly hide the header and footer banners if they are set to null.
1225         https://bugs.webkit.org/show_bug.cgi?id=118219
1226
1227         Reviewed by Beth Dakin.
1228         
1229         Call Page::addFooterWithHeight(0) to remove the parent layer that hosts the banner when
1230         the footer banner is detached. Similarly for the header banner.
1231
1232         * WebProcess/WebPage/mac/PageBannerMac.mm:
1233         (WebKit::PageBanner::detachFromPage):
1234
1235 2013-07-01  Jochen Eisinger  <jochen@chromium.org>
1236
1237         Remove support for consumable user gestures
1238         https://bugs.webkit.org/show_bug.cgi?id=118247
1239
1240         Reviewed by Geoffrey Garen.
1241
1242         * WebProcess/Notifications/WebNotificationManager.cpp:
1243         (WebKit::WebNotificationManager::didClickNotification):
1244         * WebProcess/Plugins/PluginView.cpp:
1245         (WebKit::PluginView::performFrameLoadURLRequest):
1246         (WebKit::PluginView::evaluate):
1247         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
1248         (WebKit::WebContextMenuClient::searchWithGoogle):
1249
1250 2013-06-27  Jer Noble  <jer.noble@apple.com>
1251
1252         Audio in apps which embed WebViews is corrupted.
1253         https://bugs.webkit.org/show_bug.cgi?id=118163
1254
1255         Reviewed by Maciej Stachowiak.
1256
1257         Expose the WebCore lowPowerVideoAudioBufferSizeEnabled setting to WebKit2 clients.
1258
1259         * Shared/WebPreferencesStore.h:
1260         * WebProcess/WebPage/WebPage.cpp:
1261         (WebKit::WebPage::updatePreferences):
1262
1263 2013-07-01  Sam Weinig  <sam@webkit.org>
1264
1265         WKPageLoadDataWithUserData neglects to set the base URL that is passed in
1266         <rdar://problem/14306784>
1267         https://bugs.webkit.org/show_bug.cgi?id=118256
1268
1269         Reviewed by Anders Carlsson.
1270
1271         * WebProcess/WebPage/WebPage.cpp:
1272         (WebKit::WebPage::loadData):
1273         Pass the baseURL, not blankURL(), and remove an unnecessary multiplication by sizeof(uint8_t) which is always 1.
1274
1275 2013-07-01  Kangil Han  <kangil.han@samsung.com>
1276
1277         Adopt toHTMLTextAreaElement for code cleanup
1278         https://bugs.webkit.org/show_bug.cgi?id=118226
1279
1280         Reviewed by Andreas Kling.
1281
1282         To enhance readability, this patch adopts toHTMLTextAreaElement.
1283         This also helps out to reduce duplicated use of static_cast.
1284
1285         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1286         (WebKit::InjectedBundleNodeHandle::htmlTextAreaElementLastChangeWasUserEdit):
1287         * WebProcess/Plugins/PDF/PDFPluginTextAnnotation.mm:
1288         (WebKit::PDFPluginTextAnnotation::createAnnotationElement):
1289         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1290         (WebKit::WebEditorClient::textDidChangeInTextArea):
1291         * WebProcess/WebPage/WebFrame.cpp:
1292         (WebKit::WebFrame::containsAnyFormControls):
1293
1294 2013-06-28  Andreas Kling  <akling@apple.com>
1295
1296         Fix Windows builds after deprecatedCharactersWithNullTermination() removal.
1297
1298         * Platform/CoreIPC/win/ConnectionWin.cpp:
1299         (CoreIPC::Connection::createServerAndClientIdentifiers):
1300
1301 2013-06-28  Tim Horton  <timothy_horton@apple.com>
1302
1303         [wk2] WKView shouldn't force scrolling off if shouldClipToVisibleRect is set
1304         https://bugs.webkit.org/show_bug.cgi?id=118174
1305         <rdar://problem/14301175>
1306
1307         Reviewed by Anders Carlsson.
1308
1309         * UIProcess/API/mac/WKView.mm:
1310         (-[WKView _updateViewExposedRect]):
1311         Pass whether or not clips-to-visibleRect is enabled down to the WebPageProxy.
1312
1313         (-[WKView setMinimumSizeForAutoLayout:]):
1314         Disable scrolling when using autolayout instead of when using clips-to-visibleRect.
1315
1316         (-[WKView setShouldClipToVisibleRect:]):
1317         Clipping to the WKView's visibleRect does not strictly require scrolling to be disabled,
1318         and in fact there are cases (RTL/TB pagination) where we *must* scroll, even when the view
1319         is big enough to fit the content (the case clip-to-visibleRect was added for).
1320
1321         * UIProcess/WebPageProxy.cpp:
1322         (WebKit::WebPageProxy::WebPageProxy):
1323         * UIProcess/WebPageProxy.h:
1324         * UIProcess/mac/WebPageProxyMac.mm:
1325         (WebKit::WebPageProxy::viewExposedRectChanged):
1326         (WebKit::WebPageProxy::exposedRectChangedTimerFired):
1327         Keep track of and forward to the drawing area whether or not clips-to-visibleRect is enabled.
1328
1329         * WebProcess/WebPage/DrawingArea.h:
1330         (WebKit::DrawingArea::setClipsToExposedRect): Added.
1331         (WebKit::DrawingArea::didChangeScrollOffsetForAnyFrame): Added a missing space.
1332
1333         * WebProcess/WebPage/WebPage.cpp:
1334         (WebKit::WebPage::viewExposedRectChanged):
1335         * WebProcess/WebPage/WebPage.h:
1336         * WebProcess/WebPage/WebPage.messages.in:
1337         Forward clips-to-visibleRect enabled state to the drawing area.
1338
1339         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1340         Add storage for m_clipsToExposedRect.
1341
1342         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1343         (WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea):
1344         (WebKit::TiledCoreAnimationDrawingArea::flushLayers):
1345         (WebKit::TiledCoreAnimationDrawingArea::setClipsToExposedRect):
1346         (WebKit::TiledCoreAnimationDrawingArea::updateMainFrameClipsToExposedRect):
1347         (WebKit::TiledCoreAnimationDrawingArea::createPageOverlayLayer):
1348         (WebKit::TiledCoreAnimationDrawingArea::didCommitChangesForLayer):
1349         Check m_clipsToExposedRect instead of the main-frame's isScrollable() to determine
1350         whether we should tell our TiledBackings to clip to the exposed rect we provide.
1351
1352         We don't need to listen to mainFrameScrollabilityChanged anymore.
1353
1354 2013-06-28  Gavin Barraclough  <barraclough@apple.com>
1355
1356         Stale occlusion state after moving page back into window
1357         https://bugs.webkit.org/show_bug.cgi?id=118202
1358
1359         Reviewed by Anders Carlsson.
1360         
1361         We need to update the occlusion state when the page goes back into the window.
1362
1363         * UIProcess/API/mac/WKView.mm:
1364         (-[WKView viewDidMoveToWindow]):
1365             - update occlusion state.
1366
1367 2013-06-28  Gwang Yoon Hwang  <ryumiel@company100.net>
1368
1369         Coordinated Graphics: Separate CoordinatedLayerTreeHost into CoordinatedLayerTreeHost and CompositingCoordinator
1370         https://bugs.webkit.org/show_bug.cgi?id=104360
1371
1372         Reviewed by Noam Rosenthal.
1373
1374         The CoordinatedLayerTreeHost has too many responsibilities. It
1375         implements LayerTreeHost, GraphicsLayerClient,
1376         CoordinatedGraphicsLayerClient, CoordinatedImageBacking::Client,
1377         UpdateAtlas::Client, GraphicsLayerFactory and
1378         WebCustomFilterProgramProxyClient.
1379
1380         This refactoring reduces the responsibilities of CoordinatedLayerTreeHost.
1381
1382         This patch introduces a new class called CompositingCoordinator, which
1383         takes the responsibility of managing compositing resources in
1384         WebProcess.
1385
1386         CoordinatedLayerTreeHost is responsible only for the scheduling and
1387         IPC-specific stuff, which are relevant only for WebKit2.
1388
1389         No new tests, covered by existing tests.
1390
1391         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1392         (WebKit::CoordinatedLayerTreeHost::~CoordinatedLayerTreeHost):
1393         (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
1394         (WebKit::CoordinatedLayerTreeHost::setRootCompositingLayer):
1395         (WebKit::CoordinatedLayerTreeHost::invalidate):
1396         (WebKit::CoordinatedLayerTreeHost::forceRepaint):
1397         (WebKit::CoordinatedLayerTreeHost::sizeDidChange):
1398         (WebKit::CoordinatedLayerTreeHost::setVisibleContentsRect):
1399         (WebKit::CoordinatedLayerTreeHost::renderNextFrame):
1400         (WebKit::CoordinatedLayerTreeHost::purgeBackingStores):
1401         (WebKit::CoordinatedLayerTreeHost::willSyncLayerState):
1402         (WebKit::CoordinatedLayerTreeHost::prepareCustomFilterProxiesForAnimations):
1403         (WebKit::CoordinatedLayerTreeHost::checkCustomFilterProgramProxies):
1404         (WebKit::CoordinatedLayerTreeHost::removeCustomFilterProgramProxy):
1405         (WebKit::CoordinatedLayerTreeHost::didFlushRootLayer):
1406         (WebKit::CoordinatedLayerTreeHost::performScheduledLayerFlush):
1407         (WebKit::CoordinatedLayerTreeHost::createPageOverlayLayer):
1408         (WebKit::CoordinatedLayerTreeHost::paintLayerContents):
1409         (WebKit::CoordinatedLayerTreeHost::commitSceneState):
1410         (WebKit::CoordinatedLayerTreeHost::deviceOrPageScaleFactorChanged):
1411         (WebKit::CoordinatedLayerTreeHost::graphicsLayerFactory):
1412         (WebKit::CoordinatedLayerTreeHost::scheduleAnimation):
1413         (WebKit::CoordinatedLayerTreeHost::commitScrollOffset):
1414         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
1415         * WebProcess/WebPage/LayerTreeHost.h:
1416
1417 2013-06-28  Anders Carlsson  <andersca@apple.com>
1418
1419         Make the UI process run the Java Updater
1420         https://bugs.webkit.org/show_bug.cgi?id=118197
1421         <rdar://problem/14255677>
1422
1423         Reviewed by Sam Weinig.
1424
1425         Patch the relevant NSWorkspace method and pipe through the request to launch the Java updater to the UI process.
1426
1427         * PluginProcess/PluginProcess.h:
1428         * PluginProcess/mac/PluginProcessMac.mm:
1429         (WebKit::replacedNSWorkspace_launchApplicationAtURL_options_configuration_error):
1430         (WebKit::initializeCocoaOverrides):
1431         (WebKit::PluginProcess::launchApplicationAtURL):
1432         * UIProcess/Plugins/PluginProcessProxy.h:
1433         * UIProcess/Plugins/PluginProcessProxy.messages.in:
1434         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
1435         (WebKit::isJavaUpdaterURL):
1436         (WebKit::shouldLaunchApplicationAtURL):
1437         (WebKit::PluginProcessProxy::launchApplicationAtURL):
1438
1439 2013-06-28  Tim Horton  <timothy_horton@apple.com>
1440
1441         WARN_UNUSED_RESULT can't be used in API headers, but WKBundlePageExtendIncrementalRenderingSuppression tries to
1442         https://bugs.webkit.org/show_bug.cgi?id=118196
1443         <rdar://problem/14303613>
1444
1445         Reviewed by Anders Carlsson.
1446
1447         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
1448
1449 2013-06-28  Andreas Kling  <akling@apple.com>
1450
1451         Don't fire process-became-responsive callback when disconnecting it.
1452         <http://webkit.org/b/118166>
1453
1454         Reviewed by Anders Carlsson.
1455
1456         When disconnecting from a web process, call ResponsivenessTimer::invalidate() instead of
1457         stop() to avoid firing the didBecomeResponsive() callback.
1458
1459         This lets the UI process react faster to actually unresponsive processes.
1460
1461         * UIProcess/WebProcessProxy.cpp:
1462         (WebKit::WebProcessProxy::disconnect):
1463
1464 2013-06-28  Sergio Villar Senin  <svillar@igalia.com>
1465
1466         [WK2][GTK] 100% CPU usage rendering a page with animations
1467         https://bugs.webkit.org/show_bug.cgi?id=117703
1468
1469         Reviewed by Martin Robinson.
1470
1471         Unconditionally update the value of m_lastFlushTime in
1472         ::flushAndRenderLayers. By doing that we avoid a neverending
1473         sequence of layer flushes that happened when m_lastFlushTime==0
1474         and flushPendingLayerChanges() was false. In that situation the
1475         value m_lastFlushTime was never updated so a new flush was always
1476         rescheduled.
1477
1478         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
1479         (WebKit::LayerTreeHostGtk::flushAndRenderLayers):
1480
1481 2013-06-28  Andres Gomez  <agomez@igalia.com>
1482
1483         [GTK] MiniBrowser doesn't solve the saving location when there are no XDG settings
1484         https://bugs.webkit.org/show_bug.cgi?id=117538
1485
1486         Reviewed by Carlos Garcia Campos.
1487
1488         If the XDG specification is not working for the "Downloads"
1489         directory, let's use HOME as fallback.
1490
1491         * UIProcess/API/gtk/WebKitDownload.cpp:
1492         (webkitDownloadDecideDestination):
1493
1494 2013-06-28  Dariusz Frankiewicz  <d.frankiewic@samsung.com>
1495
1496         [EFL][WK2] Add spellcheck API tests in unit tests.
1497         https://bugs.webkit.org/show_bug.cgi?id=118123
1498
1499         Reviewed by Christophe Dumez.
1500
1501         According to discussion in bug https://bugs.webkit.org/show_bug.cgi?id=113742
1502         we're moving spelling tests from layout tests to unit tests.
1503
1504         * UIProcess/API/efl/tests/resources/spelling_selection_tests.html: Added.
1505         New file is needed to make tests, with and without spellcheck attribute.
1506         File contains basic site with content editable fields and buttons which select
1507         different parts of misspelled words.
1508
1509         * UIProcess/API/efl/tests/test_ewk2_text_checker.cpp:
1510         (countContextMenuItems):
1511         Added method used to count number of items in context menu.
1512
1513 2013-06-27  Kangil Han  <kangil.han@samsung.com>
1514
1515         Adopt is/toHTMLInputElement for code cleanup
1516         https://bugs.webkit.org/show_bug.cgi?id=118130
1517
1518         Reviewed by Antti Koivisto.
1519
1520         To enhance readability, this patch adopts is/toHTMLInputElement.
1521         This also helps out to reduce duplicated use of static_cast.
1522
1523         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1524         (WebKit::InjectedBundleNodeHandle::setHTMLInputElementValueForUser):
1525         (WebKit::InjectedBundleNodeHandle::isHTMLInputElementAutofilled):
1526         (WebKit::InjectedBundleNodeHandle::setHTMLInputElementAutofilled):
1527         (WebKit::InjectedBundleNodeHandle::htmlInputElementLastChangeWasUserEdit):
1528         * WebProcess/Plugins/PDF/PDFPluginTextAnnotation.mm:
1529         (WebKit::PDFPluginTextAnnotation::createAnnotationElement):
1530         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1531         (WebKit::WebChromeClient::focusedNodeChanged):
1532         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1533         (WebKit::WebEditorClient::textFieldDidBeginEditing):
1534         (WebKit::WebEditorClient::textFieldDidEndEditing):
1535         (WebKit::WebEditorClient::textDidChangeInTextField):
1536         (WebKit::WebEditorClient::doTextFieldCommandFromEvent):
1537         (WebKit::WebEditorClient::textWillBeDeletedInTextField):
1538         * WebProcess/WebPage/WebFrame.cpp:
1539         (WebKit::WebFrame::containsAnyFormControls):
1540         * WebProcess/WebPage/WebPage.cpp:
1541         (WebKit::WebPage::editorState):
1542
1543 2013-06-27  Eunmi Lee  <eunmi15.lee@samsung.com>
1544
1545         [EFL][WK2] Add WK2 C API to handle touch events.
1546         https://bugs.webkit.org/show_bug.cgi?id=108915
1547
1548         Reviewed by Gyuyoung Kim.
1549
1550         Touch events for our target platforms differ (XInput2, Wayland, Tizen) so
1551         for the EFL port we want to be able to feed events manually.
1552
1553         To keep our current API for desktop EFL/Enlightenment working, we convert
1554         our currently limited EFL events to the new EFL specific C EwkTouchPoint
1555         and EwkTouchEvent type.
1556
1557         EwkTouchPoint and EwkTouchEvent are exposed as WKTouchPointRef and
1558         WKTouchEventRef, so they are opaque in the applications.
1559
1560         The WKViewSendTouchEvent can be used for any use-case (platform/product)
1561         not involving the EFL events.
1562
1563         At the same time we make sure to avoid using WK2 internals in our EFL API
1564         implementation.
1565
1566         * PlatformEfl.cmake:
1567         * Shared/API/c/efl/WKBaseEfl.h:
1568         * Shared/APIObject.h:
1569         * Shared/NativeWebTouchEvent.h:
1570         (WebKit::NativeWebTouchEvent::nativeEvent):
1571         * Shared/efl/NativeWebTouchEventEfl.cpp:
1572         (WebKit::NativeWebTouchEvent::NativeWebTouchEvent):
1573         * Shared/efl/WebEventFactory.cpp:
1574         (WebKit::toWebPlatformTouchPointState):
1575         (WebKit::toWebEventType):
1576         (WebKit::toWebEventModifiers):
1577         (WebKit::WebEventFactory::createWebTouchEvent):
1578         * Shared/efl/WebEventFactory.h:
1579         * UIProcess/API/C/efl/WKAPICastEfl.h:
1580         * UIProcess/API/C/efl/WKEventEfl.cpp: Added.
1581         (WKTouchPointCreate):
1582         (WKTouchEventCreate):
1583         * UIProcess/API/C/efl/WKEventEfl.h: Added.
1584         * UIProcess/API/C/efl/WKViewEfl.cpp:
1585         (WKViewSendTouchEvent):
1586         * UIProcess/API/C/efl/WKViewEfl.h:
1587         * UIProcess/API/efl/EwkView.cpp:
1588         (toWKTouchPointState):
1589         (toWKEventModifiers):
1590         (EwkView::feedTouchEvent):
1591         (EwkView::feedTouchEvents):
1592         * UIProcess/efl/EwkTouchEvent.cpp: Added.
1593         (WebKit::EwkTouchEvent::EwkTouchEvent):
1594         * UIProcess/efl/EwkTouchEvent.h: Added.
1595         (WebKit::EwkTouchEvent::create):
1596         (WebKit::EwkTouchEvent::eventType):
1597         (WebKit::EwkTouchEvent::touchPoints):
1598         (WebKit::EwkTouchEvent::modifiers):
1599         (WebKit::EwkTouchEvent::timestamp):
1600         (WebKit::EwkTouchEvent::type):
1601         * UIProcess/efl/EwkTouchPoint.cpp: Added.
1602         (WebKit::EwkTouchPoint::EwkTouchPoint):
1603         * UIProcess/efl/EwkTouchPoint.h: Added.
1604         (WebKit::EwkTouchPoint::create):
1605         (WebKit::EwkTouchPoint::id):
1606         (WebKit::EwkTouchPoint::state):
1607         (WebKit::EwkTouchPoint::screenPosition):
1608         (WebKit::EwkTouchPoint::position):
1609         (WebKit::EwkTouchPoint::radius):
1610         (WebKit::EwkTouchPoint::rotationAngle):
1611         (WebKit::EwkTouchPoint::forceFactor):
1612         (WebKit::EwkTouchPoint::type):
1613         * UIProcess/efl/WebViewEfl.cpp:
1614         (WebKit::WebViewEfl::sendTouchEvent):
1615         * UIProcess/efl/WebViewEfl.h:
1616
1617 2013-06-27  Csaba Osztrogonác  <ossy@webkit.org>
1618
1619         Fix cast-align warnings in WebKit2/Platform/CoreIPC
1620         https://bugs.webkit.org/show_bug.cgi?id=117987
1621
1622         Reviewed by Rob Buis, WK2 signed-off by Anders Carlsson.
1623
1624         * Platform/CoreIPC/ArgumentDecoder.cpp:
1625         (CoreIPC::ArgumentDecoder::decode):
1626         * Platform/CoreIPC/ArgumentEncoder.cpp:
1627         (CoreIPC::ArgumentEncoder::encode):
1628
1629 2013-06-27  Commit Queue  <commit-queue@webkit.org>
1630
1631         Unreviewed, rolling out r152074.
1632         http://trac.webkit.org/changeset/152074
1633         https://bugs.webkit.org/show_bug.cgi?id=118137
1634
1635         It caused lots of layout and API test crash on Qt Wk2.
1636         (Requested by kadam on #webkit).
1637
1638         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1639         (WebKit::CoordinatedLayerTreeHost::~CoordinatedLayerTreeHost):
1640         (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
1641         (WebKit::CoordinatedLayerTreeHost::setRootCompositingLayer):
1642         (WebKit::CoordinatedLayerTreeHost::invalidate):
1643         (WebKit::CoordinatedLayerTreeHost::forceRepaint):
1644         (WebKit::CoordinatedLayerTreeHost::sizeDidChange):
1645         (WebKit::CoordinatedLayerTreeHost::flushPendingLayerChanges):
1646         (WebKit::CoordinatedLayerTreeHost::clearPendingStateChanges):
1647         (WebKit::CoordinatedLayerTreeHost::initializeRootCompositingLayerIfNeeded):
1648         (WebKit::CoordinatedLayerTreeHost::syncLayerState):
1649         (WebKit::CoordinatedLayerTreeHost::prepareCustomFilterProxiesIfNeeded):
1650         (WebKit::CoordinatedLayerTreeHost::checkCustomFilterProgramProxies):
1651         (WebKit::CoordinatedLayerTreeHost::removeCustomFilterProgramProxy):
1652         (WebKit::CoordinatedLayerTreeHost::detachLayer):
1653         (WebKit::CoordinatedLayerTreeHost::performScheduledLayerFlush):
1654         (WebKit::CoordinatedLayerTreeHost::syncDisplayState):
1655         (WebKit::CoordinatedLayerTreeHost::didPerformScheduledLayerFlush):
1656         (WebKit::CoordinatedLayerTreeHost::createPageOverlayLayer):
1657         (WebKit::CoordinatedLayerTreeHost::createImageBackingIfNeeded):
1658         (WebKit::CoordinatedLayerTreeHost::createImageBacking):
1659         (WebKit::CoordinatedLayerTreeHost::updateImageBacking):
1660         (WebKit::CoordinatedLayerTreeHost::clearImageBackingContents):
1661         (WebKit::CoordinatedLayerTreeHost::removeImageBacking):
1662         (WebKit::CoordinatedLayerTreeHost::flushPendingImageBackingChanges):
1663         (WebKit::CoordinatedLayerTreeHost::notifyAnimationStarted):
1664         (WebKit::CoordinatedLayerTreeHost::notifyFlushRequired):
1665         (WebKit::CoordinatedLayerTreeHost::paintContents):
1666         (WebKit::CoordinatedLayerTreeHost::createGraphicsLayer):
1667         (WebKit::CoordinatedLayerTreeHost::deviceScaleFactor):
1668         (WebKit::CoordinatedLayerTreeHost::pageScaleFactor):
1669         (WebKit::CoordinatedLayerTreeHost::createUpdateAtlas):
1670         (WebKit::CoordinatedLayerTreeHost::removeUpdateAtlas):
1671         (WebKit::CoordinatedLayerTreeHost::visibleContentsRect):
1672         (WebKit::CoordinatedLayerTreeHost::mainContentsLayer):
1673         (WebKit::CoordinatedLayerTreeHost::setVisibleContentsRect):
1674         (WebKit::CoordinatedLayerTreeHost::deviceOrPageScaleFactorChanged):
1675         (WebKit::CoordinatedLayerTreeHost::graphicsLayerFactory):
1676         (WebKit::CoordinatedLayerTreeHost::scheduleAnimation):
1677         (WebKit::CoordinatedLayerTreeHost::renderNextFrame):
1678         (WebKit::CoordinatedLayerTreeHost::purgeBackingStores):
1679         (WebKit::CoordinatedLayerTreeHost::paintToSurface):
1680         (WebKit::CoordinatedLayerTreeHost::scheduleReleaseInactiveAtlases):
1681         (WebKit::CoordinatedLayerTreeHost::releaseInactiveAtlasesTimerFired):
1682         (WebKit::CoordinatedLayerTreeHost::commitScrollOffset):
1683         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
1684         * WebProcess/WebPage/LayerTreeHost.h:
1685         (WebKit::LayerTreeHost::setVisibleContentsRect):
1686         (WebKit::LayerTreeHost::renderNextFrame):
1687         (WebKit::LayerTreeHost::purgeBackingStores):
1688
1689 2013-06-27  Xabier Rodriguez Calvar  <calvaris@igalia.com>
1690
1691         Fixing some compiler warnings
1692         https://bugs.webkit.org/show_bug.cgi?id=117791
1693
1694         Reviewed by Martin Robinson.
1695
1696         * UIProcess/API/gtk/tests/WebExtensionTest.cpp: Properly
1697         initialized GDBusInterfaceVTable.
1698         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
1699         (webkitWebPageCreate): Added missing fields to the
1700         WKBundlePageLoaderClient.
1701
1702 2013-06-27  Iago Toral Quiroga  <itoral@igalia.com>
1703
1704         Use consistent file names for WidgetBackingStoreGtkX11 class
1705         https://bugs.webkit.org/show_bug.cgi?id=118124
1706
1707         Reviewed by Carlos Garcia Campos.
1708
1709         * UIProcess/cairo/BackingStoreCairo.cpp:
1710
1711 2013-06-27  Alberto Garcia  <agarcia@igalia.com>
1712
1713         [GTK] [WK2] Check value of WEBKIT_INJECTED_BUNDLE_PATH
1714         https://bugs.webkit.org/show_bug.cgi?id=118055
1715
1716         Reviewed by Carlos Garcia Campos.
1717
1718         If the directory pointed at by WEBKIT_INJECTED_BUNDLE_PATH does
1719         not exist, fall back to the system directory.
1720
1721         This makes MiniBrowser work outside the build tree.
1722
1723         * UIProcess/API/gtk/WebKitWebContext.cpp:
1724         (injectedBundleDirectory):
1725
1726 2013-06-26  Simon Cooper  <scooper@apple.com>
1727
1728         Sometimes the Flash Player plugin cannot make outgoing connections
1729         https://bugs.webkit.org/show_bug.cgi?id=118110
1730         <rdar://problem/14270933>
1731
1732         Reviewed by Alexey Proskuryakov.
1733
1734         Allow outgoing and incoming UDP data. Tidy up the QuickTime
1735         profile as it gets the UDP ability from the common profile.
1736
1737         * Resources/PlugInSandboxProfiles/com.apple.QuickTime Plugin.plugin.sb:
1738         * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
1739
1740 2013-06-26  Simon Cooper  <scooper@apple.com>
1741
1742         Flash Player: deny ipc-posix-sem 59918130
1743         https://bugs.webkit.org/show_bug.cgi?id=118107
1744         <rdar://problem/14271105>
1745
1746         Reviewed by Alexey Proskuryakov.
1747
1748         Allow same-sandbox scoped semaphores on Mavericks. Permit the
1749         named semaphore for older releases.
1750
1751         * Resources/PlugInSandboxProfiles/com.macromedia.Flash Player.plugin.sb:
1752
1753 2013-06-26  Gwang Yoon Hwang  <ryumiel@company100.net>
1754
1755         Coordinated Graphics: Separate CoordinatedLayerTreeHost into CoordinatedLayerTreeHost and CompositingCoordinator
1756         https://bugs.webkit.org/show_bug.cgi?id=104360
1757
1758         Reviewed by Noam Rosenthal.
1759
1760         The CoordinatedLayerTreeHost has too many responsibilities. It
1761         implements LayerTreeHost, GraphicsLayerClient,
1762         CoordinatedGraphicsLayerClient, CoordinatedImageBacking::Client,
1763         UpdateAtlas::Client, GraphicsLayerFactory and
1764         WebCustomFilterProgramProxyClient.
1765
1766         This refactoring reduces the responsibilities of CoordinatedLayerTreeHost.
1767
1768         This patch introduces a new class called CompositingCoordinator, which
1769         takes the responsibility of managing compositing resources in
1770         WebProcess.
1771
1772         CoordinatedLayerTreeHost is responsible only for the scheduling and
1773         IPC-specific stuff, which are relevant only for WebKit2.
1774
1775         No new tests, covered by existing tests.
1776
1777         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1778         (WebKit::CoordinatedLayerTreeHost::~CoordinatedLayerTreeHost):
1779         (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
1780         (WebKit::CoordinatedLayerTreeHost::setRootCompositingLayer):
1781         (WebKit::CoordinatedLayerTreeHost::invalidate):
1782         (WebKit::CoordinatedLayerTreeHost::forceRepaint):
1783         (WebKit::CoordinatedLayerTreeHost::sizeDidChange):
1784         (WebKit::CoordinatedLayerTreeHost::setVisibleContentsRect):
1785         (WebKit::CoordinatedLayerTreeHost::renderNextFrame):
1786         (WebKit::CoordinatedLayerTreeHost::purgeBackingStores):
1787         (WebKit::CoordinatedLayerTreeHost::willSyncLayerState):
1788         (WebKit::CoordinatedLayerTreeHost::prepareCustomFilterProxiesForAnimations):
1789         (WebKit::CoordinatedLayerTreeHost::checkCustomFilterProgramProxies):
1790         (WebKit::CoordinatedLayerTreeHost::removeCustomFilterProgramProxy):
1791         (WebKit::CoordinatedLayerTreeHost::didFlushRootLayer):
1792         (WebKit::CoordinatedLayerTreeHost::performScheduledLayerFlush):
1793         (WebKit::CoordinatedLayerTreeHost::createPageOverlayLayer):
1794         (WebKit::CoordinatedLayerTreeHost::paintLayerContents):
1795         (WebKit::CoordinatedLayerTreeHost::commitSceneState):
1796         (WebKit::CoordinatedLayerTreeHost::deviceOrPageScaleFactorChanged):
1797         (WebKit::CoordinatedLayerTreeHost::graphicsLayerFactory):
1798         (WebKit::CoordinatedLayerTreeHost::scheduleAnimation):
1799         (WebKit::CoordinatedLayerTreeHost::commitScrollOffset):
1800         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
1801         * WebProcess/WebPage/LayerTreeHost.h:
1802
1803 2013-06-26  Simon Cooper  <scooper@apple.com>
1804
1805         Silverlight deny ipc-posix-sem LC_Mutex playing Amazon Prime videos
1806         https://bugs.webkit.org/show_bug.cgi?id=118102
1807         <rdar://problem/14194077>
1808
1809         Reviewed by Alexey Proskuryakov.
1810
1811         Allow same-sandbox scoped semaphores on Mavericks. Permit the
1812         named semaphore for older releases.
1813
1814         * Resources/PlugInSandboxProfiles/com.microsoft.SilverlightPlugin.sb:
1815
1816 2013-06-26  Simon Cooper  <scooper@apple.com>
1817
1818         Update ColorSync shared memory names in plug-in sandbox profile
1819         https://bugs.webkit.org/show_bug.cgi?id=118099
1820
1821         Reviewed by Alexey Proskuryakov.
1822
1823         Update the common profile to use the names used in Mavericks
1824
1825         * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
1826
1827 2013-06-26  Anders Carlsson  <andersca@apple.com>
1828
1829         Deprecate StringImpl::charactersWithNullTermination
1830         https://bugs.webkit.org/show_bug.cgi?id=118108
1831
1832         Reviewed by Beth Dakin.
1833
1834         Rename calls to charactersWithNullTermination to deprecatedCharactersWithNullTermination.
1835
1836         * Platform/CoreIPC/win/ConnectionWin.cpp:
1837         (CoreIPC::Connection::createServerAndClientIdentifiers):
1838
1839 2013-06-26  Simon Cooper  <scooper@apple.com>
1840
1841         QuickTime plug-in cannot update com.apple.quicktime.plugin.preferences.plist file
1842         https://bugs.webkit.org/show_bug.cgi?id=118098
1843         <rdar://problem/13888138>
1844
1845         Reviewed by Alexey Proskuryakov.
1846
1847         Allow the preference file to be written
1848
1849         * Resources/PlugInSandboxProfiles/com.apple.QuickTime Plugin.plugin.sb:
1850
1851 2013-06-24  Simon Cooper  <scooper@apple.com>
1852
1853         Silverlight triggers sandbox violations: deny network-bind 0.0.0.0:0
1854         https://bugs.webkit.org/show_bug.cgi?id=117966
1855         <rdar://problem/13927918>
1856
1857         Reviewed by Sam Weinig.
1858
1859         Allow assigning (via bind) an ephemeral port before connecting
1860
1861         * Resources/PlugInSandboxProfiles/com.apple.QuickTime Plugin.plugin.sb:
1862         * Resources/PlugInSandboxProfiles/com.macromedia.Flash Player.plugin.sb:
1863         * Resources/PlugInSandboxProfiles/com.microsoft.SilverlightPlugin.sb:
1864         * Resources/PlugInSandboxProfiles/com.oracle.java.JavaAppletPlugin.sb:
1865
1866 2013-06-24  Simon Cooper  <scooper@apple.com>
1867
1868         PluginProcess deny file-read-data /Network/Library under addVolumeTracker
1869         https://bugs.webkit.org/show_bug.cgi?id=117965
1870         <rdar://problem/14121247>
1871
1872         Reviewed by Alexey Proskuryakov.
1873
1874         Silently deny reading /Network/Applications and 
1875         /Network/Library.
1876
1877         * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
1878
1879 2013-06-24  Kangil Han  <kangil.han@samsung.com>
1880
1881         Adopt is/toHTMLFormElement for code cleanup
1882         https://bugs.webkit.org/show_bug.cgi?id=117937
1883
1884         Reviewed by Andreas Kling.
1885
1886         This refers to http://src.chromium.org/viewvc/blink?view=revision&revision=152859
1887
1888         To enhance readibility, this patch adopts is/toHTMLFormElement.
1889         This also helps out to reduce duplicated use of static_cast.
1890
1891         * WebProcess/WebPage/WebFrame.cpp:
1892         (WebKit::WebFrame::containsAnyFormElements):
1893
1894 2013-06-24  Simon Cooper  <scooper@apple.com>
1895
1896         deny file-read-data /Library/CoreMediaIO/Plug-Ins/DAL
1897         https://bugs.webkit.org/show_bug.cgi?id=117964
1898         <rdar://problem/14036864>
1899
1900         Reviewed by Alexey Proskuryakov.
1901
1902         Permit reading of the /Library/CoreMediaIO/Plug-Ins/DAL
1903         subdirectory.
1904
1905         * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
1906
1907 2013-06-24  Simon Cooper  <scooper@apple.com>
1908
1909         Repeating sandbox violations when playing Amazon Prime videos with Flash
1910         https://bugs.webkit.org/show_bug.cgi?id=117953
1911         <rdar://problem/14193693>
1912
1913         Reviewed by Alexey Proskuryakov.
1914
1915         Add some missing "standard" files for network service lookups
1916
1917         * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
1918
1919 2013-06-24  Simon Cooper  <scooper@apple.com>
1920
1921         Plug-in sandbox violations attempting to access com.apple.CoreGraphics.plist
1922         https://bugs.webkit.org/show_bug.cgi?id=117963
1923         <rdar://problem/14084234>
1924
1925         Reviewed by Alexey Proskuryakov.
1926
1927         Permit the reading of the com.apple.CoreGraphics preference file
1928
1929         * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
1930
1931 2013-06-24  Simon Cooper  <scooper@apple.com>
1932
1933         com.oracle.javadeployment.plist is not correctly specified in the JavaApplet plugin profile
1934         https://bugs.webkit.org/show_bug.cgi?id=117961
1935         <rdar://problem/14223823>
1936
1937         Reviewed by Alexey Proskuryakov.
1938
1939         Remove the trailing extraneous .plist from the preference file rule
1940
1941         * Resources/PlugInSandboxProfiles/com.oracle.java.JavaAppletPlugin.sb:
1942
1943 2013-06-24  Simon Cooper  <scooper@apple.com>
1944
1945         PluginProcess sandbox violations on com.apple.networkConnect.plist when resetting Safari
1946         https://bugs.webkit.org/show_bug.cgi?id=117958
1947         <rdar://problem/13938149>
1948
1949         Reviewed by Alexey Proskuryakov.
1950
1951         Allow reading the com.apple.networkConnect plist.
1952
1953         * Resources/PlugInSandboxProfiles/com.apple.ist.ds.appleconnect.webplugin.sb:
1954
1955 2013-06-24  Simon Cooper  <scooper@apple.com>
1956
1957         Java sandbox violation ipc-posix-shm-read-data /tmp/com.apple.csseed.67
1958         https://bugs.webkit.org/show_bug.cgi?id=117954
1959         <rdar://problem/14166577>
1960
1961         Reviewed by Alexey Proskuryakov.
1962
1963         Permit read access to this shared memory segment
1964
1965         * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
1966
1967 2013-06-24  Simon Cooper  <scooper@apple.com>
1968
1969         Plugin Sandbox violation in /Library/Audio/Sounds/Banks
1970         https://bugs.webkit.org/show_bug.cgi?id=117957
1971         <rdar://problem/14163582>
1972
1973         Reviewed by Alexey Proskuryakov.
1974
1975         Permit read access to subdirectories under /Library/Audio/Sounds
1976
1977         * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
1978
1979 2013-06-24  Nick Diego Yamane  <nick.yamane@openbossa.org>
1980
1981         Make sure m_iconDatabaseImpl is not null before closing it
1982         https://bugs.webkit.org/show_bug.cgi?id=117943
1983
1984         Reviewed by Simon Fraser.
1985
1986         Since r150474 WebIconDatabase is closed unconditionally in
1987         TestController destructor, in that case WebKitTestRunner crashes
1988         when no icon database path is set. This misbehavior was observed in
1989         ports such as efl and nix.
1990         In this patch, WebIconDatabase::close() calls m_iconDatabaseImpl->close()
1991         only if m_iconDatabaseImpl is not null, as it's already being done in other
1992         WebIconDatabase's methods, such as isOpen().
1993
1994         * UIProcess/WebIconDatabase.cpp:
1995         (WebKit::WebIconDatabase::close):
1996
1997 2013-06-24  Ruth Fong  <ruth_fong@apple.com>
1998
1999         Expose the mediaHasAudio() function in WK2
2000         https://bugs.webkit.org/show_bug.cgi?id=117946
2001         <rdar://problem/14250527>
2002
2003         Reviewed by Beth Dakin.
2004
2005         Exposes the WebCore::HTMLMediaElement::mediaHasAudio() function
2006         in WK2.
2007
2008         * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp:
2009         (WKBundleHitTestResultMediaHasAudio): Added.
2010         * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.h:
2011         * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:
2012         (WebKit::InjectedBundleHitTestResult::mediaHasAudio): Added.
2013         * WebProcess/InjectedBundle/InjectedBundleHitTestResult.h:
2014
2015 2013-06-24  Anders Carlsson  <andersca@apple.com>
2016
2017         REGRESSION (r147591): can't type in Adobe Connect
2018         https://bugs.webkit.org/show_bug.cgi?id=117947
2019         <rdar://problem/14223539>
2020
2021         Reviewed by Andreas Kling.
2022
2023         With the change in r147591, it is now possible for a plug-in element to be focused before the plug-in
2024         starts. Handle this by focusing the plug-in right after it's started if necessary.
2025
2026         * WebProcess/Plugins/PluginView.cpp:
2027         (WebKit::PluginView::didInitializePlugin):
2028
2029 2013-06-24  Simon Fraser  <simon.fraser@apple.com>
2030
2031         Move displayID stuff from Widget to Chrome
2032         https://bugs.webkit.org/show_bug.cgi?id=117944
2033
2034         Reviewed by Anders Carlsson.
2035
2036         In r151877 I polluted Widget with displayID-related stuff. This would
2037         be better on HostWindow, so move it there. This is a net code reduction,
2038         and eliminates PlatformScreenMac.h, and the NSScreen category.
2039
2040         * WebProcess/WebPage/WebPage.cpp:
2041         (WebKit::WebPage::windowScreenDidChange): Go via chrome().
2042
2043 2013-06-24  Krzysztof Wolanski  <k.wolanski@samsung.com>
2044
2045         [EFL][WK2] Implement unit test callback: onWordGuesses.
2046         https://bugs.webkit.org/show_bug.cgi?id=117794
2047
2048         Reviewed by Christophe Dumez.
2049
2050         * UIProcess/API/efl/tests/test_ewk2_text_checker.cpp:
2051         (onWordGuesses):
2052         Add client suggestions for the word.
2053
2054         (checkClientSuggestionsForWord):
2055         Verify the suggestions that were given by the client.
2056
2057 2013-06-17  Darin Adler  <darin@apple.com>
2058
2059         Sort all the Xcode project files
2060         https://bugs.webkit.org/show_bug.cgi?id=117696
2061
2062         Reviewed by Anders Carlsson.
2063
2064         * WebKit2.xcodeproj/project.pbxproj: Ran the sort-Xcode-project-file script.
2065
2066 2013-06-22  Dean Jackson  <dino@apple.com>
2067
2068         Slightly reduce width threshold on detection of primary snapshotted Plug-In
2069         https://bugs.webkit.org/show_bug.cgi?id=117914
2070         <rdar://problem/14136687>
2071
2072         Reviewed by Simon Fraser.
2073
2074         We've noticed some content that should be detected as the primary snapshotted plug-in,
2075         but is just a bit smaller than our 450x300 minimum threshold. Reduce the width to 400.
2076
2077         * WebProcess/WebPage/WebPage.cpp: Change primarySnapshottedPlugInMinimumWidth from 450 to 400.
2078
2079 2013-06-22  Simon Fraser  <simon.fraser@apple.com>
2080
2081         screen.availWidth always returns width of primary display
2082         https://bugs.webkit.org/show_bug.cgi?id=117863
2083
2084         Reviewed by Geoffrey Garen.
2085     
2086         In WebKit2, Widgets have no platformWidget, so trying to get to the
2087         NSScreen via the platform widget's window never succeeded, and we always
2088         fell back on getting info for the main display.
2089
2090         However, we were already pushing the WKView's displayID down to the
2091         WebProcess for the requestAnimationFrame infrastructure, so use that.
2092         
2093         The WebProcess would not receive a displayID for a WKView until the window
2094         was activated; fix by calling -doWindowDidChangeScreen when the view
2095         moves to a window, rather than doing it from -_windowDidBecomeKey:.
2096         
2097         * UIProcess/API/mac/WKView.mm:
2098         (-[WKView viewDidMoveToWindow]):
2099         (-[WKView _windowDidBecomeKey:]):
2100
2101 2013-06-21  Carlos Garcia Campos  <cgarcia@igalia.com>
2102
2103         [GTK] Do not try to load videos in unit tests
2104         https://bugs.webkit.org/show_bug.cgi?id=117866
2105
2106         Reviewed by Philippe Normand.
2107
2108         It makes the tests slower, and generates and error because we use
2109         a fake src.
2110
2111         * UIProcess/API/gtk/tests/TestContextMenu.cpp:
2112         (testContextMenuDefaultMenu): Use preload='none' in video tag.
2113         * UIProcess/API/gtk/tests/TestWebKitWebView.cpp:
2114         (testWebViewMouseTarget): Ditto.
2115
2116 2013-06-21  Christophe Dumez  <ch.dumez@sisa.samsung.com>
2117
2118         REGRESSION (r150663): Using webkitAudioContext in Inspector makes it undefined everywhere
2119         https://bugs.webkit.org/show_bug.cgi?id=117825
2120
2121         Reviewed by Kentaro Hara.
2122
2123         Use Settings to enable Web Audio instead of RuntimeEnabledFeatures.
2124
2125         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2126         (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner):
2127         * WebProcess/WebPage/WebPage.cpp:
2128         (WebKit::WebPage::updatePreferences):
2129
2130 2013-06-21  Sergio Correia  <sergio.correia@openbossa.org>
2131
2132         [WK2][EFL]: Invalidate the ProcessLauncher when the process is terminated before it has finished launching
2133         https://bugs.webkit.org/show_bug.cgi?id=117865
2134
2135         Reviewed by Christophe Dumez.
2136
2137         Original patch from Carlos Garcia Campos for the Gtk port.
2138
2139         * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
2140         (WebKit::ProcessLauncher::terminateProcess): If process is still
2141         launching, just invalidate the launcher. Reset the process
2142         identifier after killing the process.
2143
2144 2013-06-20  Carlos Garcia Campos  <cgarcia@igalia.com>
2145
2146         [GTK] Migrate WebKitWebResource to GTask
2147         https://bugs.webkit.org/show_bug.cgi?id=117152
2148
2149         Reviewed by Gustavo Noronha Silva.
2150
2151         * UIProcess/API/gtk/WebKitWebResource.cpp:
2152         (resourceDataCallback):
2153         (webkit_web_resource_get_data):
2154         (webkit_web_resource_get_data_finish):
2155
2156 2013-06-20  Sergio Correia  <sergio.correia@openbossa.org>
2157
2158         [WK2] Looping for EINTR on close() is incorrect for Linux, at least
2159         https://bugs.webkit.org/show_bug.cgi?id=117266
2160
2161         Reviewed by Darin Adler.
2162
2163         Call closeWithRetry() to work around a difference in how the retry needs to
2164         be done on Linux.
2165
2166         * Platform/CoreIPC/unix/AttachmentUnix.cpp:
2167         (CoreIPC::Attachment::dispose):
2168         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2169         (CoreIPC::Connection::platformInvalidate):
2170         * Platform/unix/SharedMemoryUnix.cpp:
2171         (WebKit::SharedMemory::Handle::~Handle):
2172         (WebKit::SharedMemory::create):
2173         (WebKit::SharedMemory::~SharedMemory):
2174         (WebKit::SharedMemory::createHandle):
2175         * PluginProcess/PluginProcess.cpp:
2176         (WebKit::PluginProcess::createWebProcessConnection):
2177         * SharedWorkerProcess/SharedWorkerProcess.cpp:
2178         (WebKit::SharedWorkerProcess::createWebProcessConnection):
2179         * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
2180         (WebKit::ProcessLauncher::launchProcess): All these places had
2181         ``close-followed-by-EINTR-handling'' replaced with the new closeWithRetry()
2182         function added in this commit.
2183
2184 2013-06-20  Brady Eidson  <beidson@apple.com>
2185
2186         WebProcess hangs loading eff.org (Waiting forever on a sync XHR, NetworkProcess unable to service it).
2187         <rdar://problem/14112329> and https://bugs.webkit.org/show_bug.cgi?id=117842
2188
2189         Reviewed by Alexey Proskuryakov.
2190
2191         * NetworkProcess/HostRecord.cpp:
2192         (WebKit::removeLoaderFromQueue): Utility to clear a Loader out of a LoaderQueue.
2193         (WebKit::HostRecord::removeLoader): Use removeLoaderFromQueue, and also try to clear the loader from m_syncLoadersPending.
2194         (WebKit::HostRecord::servePendingRequestsForQueue): Small refactoring/cleanup.
2195         (WebKit::HostRecord::limitsRequests): Change so that if the number of loaders in flight is exactly equal to the limit, then
2196           allow serving a synchronous loader to go exactly one beyond the limit.
2197         * NetworkProcess/HostRecord.h:
2198
2199         Make the static maxRequestsInFlightPerHost a member of the NetworkResourceLoadScheduler, instead:
2200         * NetworkProcess/NetworkResourceLoadScheduler.cpp:
2201         (WebKit::NetworkResourceLoadScheduler::NetworkResourceLoadScheduler):
2202         (WebKit::NetworkResourceLoadScheduler::hostForURL):
2203         * NetworkProcess/NetworkResourceLoadScheduler.h:
2204
2205         * NetworkProcess/mac/NetworkResourceLoadSchedulerMac.mm:
2206         (WebKit::NetworkResourceLoadScheduler::platformInitializeMaximumHTTPConnectionCountPerHost): Tell CFNetwork to allow
2207           7 connections per host instead of 6, but tell the scheduler that 6 is still the normal limit.
2208
2209 2013-06-20  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
2210
2211         [EFL][WK2] Update text checker documentation.
2212         https://bugs.webkit.org/show_bug.cgi?id=117828
2213
2214         Reviewed by Christophe Dumez.
2215
2216         * UIProcess/API/efl/ewk_text_checker.h:
2217         The client is not responsible for destroying the memory.
2218
2219 2013-06-19  Sam Weinig  <sam@webkit.org>
2220
2221         Expose plug-ins CFBundleShortVersionString in the WKPluginInformation dictionary
2222         https://bugs.webkit.org/show_bug.cgi?id=117816
2223
2224         Reviewed by Geoffrey Garen.
2225
2226         - Adds a new key for the WKPluginInformation dictionary: WKPluginInformationBundleShortVersionKey().
2227
2228         * Shared/API/c/WKPluginInformation.cpp:
2229         (WKPluginInformationBundleShortVersionKey):
2230         * Shared/API/c/WKPluginInformation.h:
2231         * Shared/Plugins/Netscape/PluginInformation.cpp:
2232         (WebKit::pluginInformationBundleShortVersionKey):
2233         * Shared/Plugins/Netscape/PluginInformation.h:
2234         * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
2235         (WebKit::NetscapePluginModule::getPluginInfo):
2236         * Shared/Plugins/Netscape/mac/PluginInformationMac.mm:
2237         (WebKit::getPlatformPluginModuleInformation):
2238         * Shared/Plugins/PluginModuleInfo.h:
2239
2240 2013-06-19  Ruth Fong  <ruth_fong@apple.com>
2241
2242         <rdar://problem/14197983> Rename functions from Bug 117667 and add safeguards for !ENABLE(VIDEO) platforms (117765)
2243         https://bugs.webkit.org/show_bug.cgi?id=117765
2244
2245         Patch by Ruth Fong <ruth_fong@apple.com>.
2246         Reviewed by Brady Eidson.
2247
2248         * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp:
2249         (WKBundleHitTestResultGetMediaType): Updated to use mediaType().
2250
2251         * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:
2252         (WebKit::InjectedBundleHitTestResult::mediaType): Updated.
2253         Renamed getMediaType() to mediaType() and now handles !ENABLE(VIDEO) platforms.
2254
2255         * WebProcess/InjectedBundle/InjectedBundleHitTestResult.h:
2256
2257 2013-06-19  Benjamin Poulain  <bpoulain@apple.com>
2258
2259         Use the PlatformEvent timestamp when creating a DOM Event
2260         https://bugs.webkit.org/show_bug.cgi?id=117179
2261
2262         Reviewed by Darin Adler.
2263
2264         * Shared/mac/WebEventFactory.mm:
2265         (WebKit::WebEventFactory::createWebMouseEvent):
2266         (WebKit::WebEventFactory::createWebWheelEvent):
2267         (WebKit::WebEventFactory::createWebKeyboardEvent):
2268         (WebKit::WebEventFactory::createWebGestureEvent):
2269
2270 2013-06-19  Anders Carlsson  <andersca@apple.com>
2271
2272         REGRESSION: Cannot open Silverlight preferences via context menu
2273         https://bugs.webkit.org/show_bug.cgi?id=117806
2274         <rdar://problem/14166644>
2275
2276         Reviewed by Beth Dakin.
2277
2278         Hook the LSOpenCFURLRef function and make the UI process open the URL if it's the URL for the
2279         Silverlight Preferences application. This is what we do for the Flash updater.
2280
2281         * PluginProcess/PluginProcess.h:
2282         * PluginProcess/mac/PluginProcessMac.mm:
2283         (WebKit::openCFURLRef):
2284         (WebKit::initializeShim):
2285         (WebKit::PluginProcess::openURL):
2286         * PluginProcess/mac/PluginProcessShim.h:
2287         * PluginProcess/mac/PluginProcessShim.mm:
2288         (WebKit::shimLSOpenCFURLRef):
2289         * UIProcess/Plugins/PluginProcessProxy.h:
2290         * UIProcess/Plugins/PluginProcessProxy.messages.in:
2291         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
2292         (WebKit::isSilverlightPreferencesURL):
2293         (WebKit::shouldOpenURL):
2294         (WebKit::PluginProcessProxy::openURL):
2295
2296 2013-06-19  Krzysztof Wolanski  <k.wolanski@samsung.com>
2297
2298         [EFL][WK2] Implement unit test callback: onSettingChange.
2299         https://bugs.webkit.org/show_bug.cgi?id=117728
2300
2301         Reviewed by Christophe Dumez.
2302
2303         It is finally possible to implement missing unit tests as WebKit2-EFL
2304         has delivered sub menu (r150254).
2305         Add two unit tests for checking onSettingChange callback behaviour,
2306         when toggling "Check Spelling While Typing" in context menu.
2307
2308         Changed types inside callbacksExecutionStats struct from bit field to bool,
2309         because casting from bit field to &bool is invalid (in using waitUntilTrue method).
2310
2311         * UIProcess/API/efl/tests/test_ewk2_text_checker.cpp:
2312         (resetCallbacksExecutionStats):
2313         (onSettingChange):
2314         (findContextMenuItem):
2315         Get determined option from context menu.
2316
2317         (checkCorrectnessOfSpellingItems):
2318         Changed the name of onContextMenuShow method to be consistent with new methods.
2319
2320         (toogleCheckSpellingWhileTyping):
2321         Select "Check Spelling While Typing" in context menu to test whether
2322         onSettingChange is called.
2323
2324 2013-06-19  Carlos Garcia Campos  <cgarcia@igalia.com>
2325
2326         [GTK][SOUP] Migrate SoupRequestManager to GTask
2327         https://bugs.webkit.org/show_bug.cgi?id=117157
2328
2329         Reviewed by Gustavo Noronha Silva.
2330
2331         GSimpleAsyncResult has been deprecated in favour of GTask.
2332
2333         * WebProcess/soup/WebKitSoupRequestGeneric.cpp:
2334         (webkitSoupRequestGenericSendAsync):
2335         (webkitSoupRequestGenericSendFinish):
2336         * WebProcess/soup/WebSoupRequestManager.cpp:
2337         (WebKit::WebSoupRequestAsyncData::WebSoupRequestAsyncData):
2338         (WebKit::WebSoupRequestAsyncData::releaseTask):
2339         (WebKit::WebSoupRequestManager::didHandleURIRequest):
2340         (WebKit::WebSoupRequestManager::didFailURIRequest):
2341         (WebKit::WebSoupRequestManager::send):
2342         (WebKit::WebSoupRequestManager::finish):
2343         * WebProcess/soup/WebSoupRequestManager.h:
2344
2345 2013-06-19  Carlos Garcia Campos  <cgarcia@igalia.com>
2346
2347         [GTK] Migrate WebKitFaviconDatabase to GTask
2348         https://bugs.webkit.org/show_bug.cgi?id=117156
2349
2350         Reviewed by Gustavo Noronha Silva.
2351
2352         * UIProcess/API/gtk/WebKitFaviconDatabase.cpp:
2353         (processPendingIconsForPageURL):
2354         (webkit_favicon_database_get_favicon):
2355         (webkit_favicon_database_get_favicon_finish):
2356
2357 2013-06-19  Carlos Garcia Campos  <cgarcia@igalia.com>
2358
2359         [GTK] Migrate WebKitWebView to GTask
2360         https://bugs.webkit.org/show_bug.cgi?id=117154
2361
2362         Reviewed by Gustavo Noronha Silva.
2363
2364         * UIProcess/API/gtk/WebKitWebView.cpp:
2365         (didValidateCommand):
2366         (webkit_web_view_can_execute_editing_command):
2367         (webkit_web_view_can_execute_editing_command_finish):
2368         (webkitWebViewRunJavaScriptCallback):
2369         (webkit_web_view_run_javascript):
2370         (webkit_web_view_run_javascript_finish):
2371         (resourcesStreamReadCallback):
2372         (webkit_web_view_run_javascript_from_gresource):
2373         (webkit_web_view_run_javascript_from_gresource_finish):
2374         (fileReplaceContentsCallback):
2375         (getContentsAsMHTMLDataCallback):
2376         (webkit_web_view_save):
2377         (webkit_web_view_save_finish):
2378         (webkit_web_view_save_to_file):
2379         (webkit_web_view_save_to_file_finish):
2380         (webKitWebViewDidReceiveSnapshot):
2381         (webkit_web_view_get_snapshot):
2382         (webkit_web_view_get_snapshot_finish):
2383
2384 2013-06-18  Carlos Garcia Campos  <cgarcia@igalia.com>
2385
2386         [GTK] Migrate WebKitCookieManager to GTask
2387         https://bugs.webkit.org/show_bug.cgi?id=117150
2388
2389         Reviewed by Gustavo Noronha Silva.
2390
2391         Don't use helper structs for async data since the cancellable is
2392         now accessible from the GTask.
2393
2394         * UIProcess/API/gtk/WebKitCookieManager.cpp:
2395         (webkitCookieManagerGetAcceptPolicyCallback):
2396         (webkit_cookie_manager_get_accept_policy):
2397         (webkit_cookie_manager_get_accept_policy_finish):
2398         (webkitCookieManagerGetDomainsWithCookiesCallback):
2399         (webkit_cookie_manager_get_domains_with_cookies):
2400         (webkit_cookie_manager_get_domains_with_cookies_finish):
2401
2402 2013-06-18  Roger Fong  <roger_fong@apple.com>
2403
2404         Unreviewed. Fix a typo that may be causing some test failures.
2405
2406         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
2407         (WebKit::WebFrameNetworkingContext::scheduledRunLoopPairs):
2408
2409 2013-06-18  Anders Carlsson  <andersca@apple.com>
2410
2411         Make it possible to set a minimum height for auto-layout
2412         https://bugs.webkit.org/show_bug.cgi?id=117758
2413         <rdar://problem/12849080>
2414
2415         Reviewed by Tim Horton.
2416
2417         Change a bunch of minimumLayoutWidth declarations to minimumLayoutSize and add a new minimumLayoutSize property.
2418         If minimumLayoutSize.height is greater than zero, use it to set the minimum layout size on the frame view.
2419
2420         * Shared/WebPageCreationParameters.cpp:
2421         (WebKit::WebPageCreationParameters::encode):
2422         (WebKit::WebPageCreationParameters::decode):
2423         * Shared/WebPageCreationParameters.h:
2424         * UIProcess/API/mac/WKView.mm:
2425         (-[WKView _setIntrinsicContentSize:]):
2426         (-[WKView minimumLayoutWidth]):
2427         (-[WKView setMinimumLayoutWidth:]):
2428         (-[WKView minimumWidthForAutoLayout]):
2429         (-[WKView setMinimumWidthForAutoLayout:]):
2430         (-[WKView minimumSizeForAutoLayout]):
2431         (-[WKView setMinimumSizeForAutoLayout:]):
2432         * UIProcess/API/mac/WKViewPrivate.h:
2433         * UIProcess/DrawingAreaProxy.h:
2434         (WebKit::DrawingAreaProxy::minimumLayoutSizeDidChange):
2435         * UIProcess/WebPageProxy.cpp:
2436         (WebKit::WebPageProxy::WebPageProxy):
2437         (WebKit::WebPageProxy::creationParameters):
2438         (WebKit::WebPageProxy::setMinimumLayoutSize):
2439         * UIProcess/WebPageProxy.h:
2440         (WebKit::WebPageProxy::minimumLayoutSize):
2441         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
2442         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
2443         (WebKit::TiledCoreAnimationDrawingAreaProxy::TiledCoreAnimationDrawingAreaProxy):
2444         (WebKit::TiledCoreAnimationDrawingAreaProxy::minimumLayoutSizeDidChange):
2445         (WebKit::TiledCoreAnimationDrawingAreaProxy::didUpdateGeometry):
2446         (WebKit::TiledCoreAnimationDrawingAreaProxy::intrinsicContentSizeDidChange):
2447         (WebKit::TiledCoreAnimationDrawingAreaProxy::sendUpdateGeometry):
2448         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2449         (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
2450         * WebProcess/WebPage/WebPage.cpp:
2451         (WebKit::WebPage::WebPage):
2452         (WebKit::WebPage::setMinimumLayoutSize):
2453         * WebProcess/WebPage/WebPage.h:
2454         (WebKit::WebPage::minimumLayoutSize):
2455         * WebProcess/WebPage/WebPage.messages.in:
2456         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
2457         (WebKit::TiledCoreAnimationDrawingArea::mainFrameContentSizeChanged):
2458         (WebKit::TiledCoreAnimationDrawingArea::updateGeometry):
2459
2460 2013-06-18  Simon Cooper  <scooper@apple.com>
2461
2462         sandbox violation when Flash runs for the first time
2463         https://bugs.webkit.org/show_bug.cgi?id=117753
2464         <rdar://problem/14165466>
2465
2466         Reviewed by Alexey Proskuryakov.
2467
2468         Allow flash to try and change the ownership of directories it has just created.
2469
2470         * Resources/PlugInSandboxProfiles/com.macromedia.Flash Player.plugin.sb:
2471
2472 2013-06-18  Ruth Fong  <ruth_fong@apple.com>
2473
2474         Expose a getMediaType method in WebKit
2475         https://bugs.webkit.org/show_bug.cgi?id=117667
2476
2477         Reviewed by Brady Eidson.
2478
2479         * GNUmakefile.list.am:
2480         * Target.pri:
2481         Updated to include the added header file InjectedBundleHitTestResultMediaType.h
2482         
2483         * UIProcess/API/C/WKAPICast.h:
2484         (WebKit::toBundleHitTestResultMediaType):
2485         (WebKit::toAPI):
2486         Added methods to convert between BundleHitTestResultMediaType
2487         and WKBundleHitTestResultMediaType.
2488
2489         * WebKit2.xcodeproj/project.pbxproj: Updated to include
2490         InjectedBundleHitTestResultMediaType.h in the WebKit2 project.
2491
2492         * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp:
2493         (WKBundleHitTestResultGetMediaType): Exposes the method getMediaType and
2494         hooks into InjectedBundleHitTestResult::getMediaType.
2495
2496         * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.h:
2497
2498         * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:
2499         (WebKit::InjectedBundleHitTestResult::getMediaType): Added to return 
2500         what type, if any, a media element is.
2501
2502         * WebProcess/InjectedBundle/InjectedBundleHitTestResult.h:
2503
2504         * WebProcess/InjectedBundle/InjectedBundleHitTestResultMediaType.h: Added
2505         to contain new BundleHitTestResultMediaType enums.
2506
2507 2013-06-18  Roger Fong  <roger_fong@apple.com>
2508
2509         Re-implement WebFrameNetworkingContext.
2510         <rdar://problem/13174821>.
2511
2512         Reviewed by Alexey Proskuryakov.
2513
2514         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h: Added.
2515         (WebKit::WebFrameNetworkingContext::create):
2516         (WebKit::WebFrameNetworkingContext::WebFrameNetworkingContext):
2517         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm: Added.
2518         (WebKit::WebFrameNetworkingContext::setPrivateBrowsingStorageSessionIdentifierBase):
2519         (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
2520         (WebKit::WebFrameNetworkingContext::destroyPrivateBrowsingSession):
2521         (WebKit::WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
2522         (WebKit::WebFrameNetworkingContext::needsSiteSpecificQuirks):
2523         (WebKit::WebFrameNetworkingContext::localFileContentSniffingEnabled):
2524         (WebKit::WebFrameNetworkingContext::scheduledRunLoopPairs):
2525         (WebKit::WebFrameNetworkingContext::sourceApplicationAuditData):
2526         (WebKit::WebFrameNetworkingContext::blockedError):
2527         (WebKit::WebFrameNetworkingContext::storageSession):
2528
2529 2013-06-18  Alexey Proskuryakov  <ap@apple.com>
2530
2531         <rdar://problem/13174821> Remove files with an incorrect license.
2532
2533         Rubber-stamped by Maciej Stachowiak.
2534
2535         This will break the build, stay tuned for a fix coming soon.
2536
2537         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h: Removed.
2538         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm: Removed.
2539
2540 2013-06-17  Santosh Mahto  <santosh.ma@samsung.com>
2541
2542         Extra whitespace in blank line in PlatformPopupMenuData.cpp
2543         https://bugs.webkit.org/show_bug.cgi?id=117627
2544
2545         Reviewed by Brent Fulgham.
2546
2547         * Shared/PlatformPopupMenuData.cpp:
2548         (WebKit::PlatformPopupMenuData::decode):
2549         Removing extra space
2550
2551 2013-06-17  Beth Dakin  <bdakin@apple.com>
2552
2553         PageBanners appear over HTML5 video when media element is in full screen mode
2554         https://bugs.webkit.org/show_bug.cgi?id=117721
2555         -and corresponding-
2556         <rdar://problem/13686998>
2557
2558         Reviewed by Sam Weinig.
2559
2560         When an element enters fullscreen, hide the banners. Show them again when the 
2561         element exits fullscreen.
2562         * WebProcess/FullScreen/WebFullScreenManager.cpp:
2563         (WebKit::WebFullScreenManager::willEnterFullScreen):
2564         (WebKit::WebFullScreenManager::willExitFullScreen):
2565
2566         Handle hiding and showing by removing or re-creating a parent layer for m_layer.
2567         * WebProcess/WebPage/PageBanner.cpp:
2568         (WebKit::PageBanner::hide):
2569         (WebKit::PageBanner::showIfHidden):
2570         * WebProcess/WebPage/PageBanner.h:
2571         * WebProcess/WebPage/mac/PageBannerMac.mm:
2572         (WebKit::PageBanner::PageBanner):
2573         (WebKit::PageBanner::hide):
2574         (WebKit::PageBanner::showIfHidden):
2575         (WebKit::PageBanner::mouseEvent):
2576         * WebProcess/WebPage/WebPage.cpp:
2577         (WebKit::WebPage::hidePageBanners):
2578         (WebKit::WebPage::showPageBanners):
2579         * WebProcess/WebPage/WebPage.h:
2580
2581 2013-06-17  Ruth Fong  <ruth_fong@apple.com>
2582
2583         REGRESSION: Important controls are missing from <video> element UI, when compared to QuickTime
2584         https://bugs.webkit.org/show_bug.cgi?id=20599
2585
2586         Add a "Download Video"/"Download Audio" context menu item to download media
2587         elements.
2588
2589         Reviewed by Beth Dakin.
2590
2591         * Shared/API/c/WKContextMenuItemTypes.h: Updated to include
2592         an enum type for the "Download Video/Audio" context menu item.
2593
2594         * Shared/API/c/WKSharedAPICast.h: Updated to associate
2595         the enums in WebKit and WebCore that handle the "Download Video/Audio"
2596         context menu item.
2597
2598         * UIProcess/API/efl/ewk_context_menu.cpp:
2599         * UIProcess/API/efl/ewk_context_menu_item.cpp:
2600         * UIProcess/API/efl/ewk_context_menu_item.h:
2601         Updated to include new EWK enum type for "Download Video/Audio" context menu item.
2602
2603         * UIProcess/WebPageProxy.cpp: Updated to 
2604         handle the "Download Video/Audio" context menu item mouse click
2605         and download the media item in the UI process.
2606
2607 2013-06-17  Ralph Thomas  <ralpht@gmail.com>
2608
2609         [CoordinatedGraphics][CSS Shaders] Use forwarding header for TextureMapperPlatformCompiledProgram.h
2610         https://bugs.webkit.org/show_bug.cgi?id=117712
2611
2612         Reviewed by Noam Rosenthal.
2613
2614         * Shared/CoordinatedGraphics/WebCustomFilterProgramProxy.h:
2615
2616 2013-06-17  Mark Rowe  <mrowe@apple.com>
2617
2618         <rdar://problem/13145014> Allow CoreIPC messages to transmit importance boosts
2619
2620         Transmitting the importance boost from the UI process to the web process is particularly
2621         important when disabling process suppression on a web process, as it will minimize the
2622         delays that can occur before the message instructing process suppression to be disabled
2623         is processed by the web process.
2624
2625         We keep the importance boost alive for the duration of the CoreIPC message handler. We
2626         achieve this by having an ImportanceAssertion object that owns the assertion, and whose
2627         lifetime is tied to that of the MessageDecoder.
2628
2629         Reviewed by Anders Carlsson.
2630
2631         * Platform/CoreIPC/MessageDecoder.cpp:
2632         (CoreIPC::MessageDecoder::setImportanceAssertion): Associate an importance assertion
2633         with this message.
2634         * Platform/CoreIPC/MessageDecoder.h:
2635         * Platform/CoreIPC/mac/ConnectionMac.cpp:
2636         (CoreIPC::Connection::open): Mark our receive port as allowing importance boosts to be received.
2637         (CoreIPC::Connection::receiveSourceEventHandler):
2638         * Platform/CoreIPC/mac/ImportanceAssertion.h:
2639         (CoreIPC::ImportanceAssertion::create):
2640         (CoreIPC::ImportanceAssertion::~ImportanceAssertion): Release the assertion.
2641         (CoreIPC::ImportanceAssertion::ImportanceAssertion): Take an assertion if a boost was present in
2642         the Mach message.
2643
2644 2013-06-17  Mark Rowe  <mrowe@apple.com>
2645
2646         <rdar://problem/14051357> Web processes sometimes remain in a suppressed
2647         state after their window is unoccluded.
2648
2649         The code in WKView that responds to occlusion notifications was incorrectly
2650         treating the window's occlusion state as being an enum rather than the set of
2651         flags that it is.
2652
2653         Reviewed by Oliver Hunt.
2654
2655         * UIProcess/API/mac/WKView.mm:
2656         (-[WKView _windowDidChangeOcclusionState:]): Test only the visibility state.
2657         (-[WKView setWindowOcclusionDetectionEnabled:]): Ditto.
2658
2659 2013-06-17  Michael Brüning  <michael.bruning@digia.com>
2660
2661         [Qt] Remove Qt specific QTKIT flagged code.
2662         https://bugs.webkit.org/show_bug.cgi?id=117635
2663
2664         Reviewed by Simon Hausmann.
2665
2666         Due to disabling QTKIT for Qt in r151546, the
2667         code the flags that are not taken into account
2668         anymore and the code that has been rendered
2669         unreachable by this are removed.
2670
2671         * Target.pri:
2672         * UIProcess/qt/WebContextQt.cpp:
2673         (WebKit::WebContext::platformInitializeWebProcess):
2674         * WebProcess/WebCoreSupport/qt/WebSystemInterface.h: Removed.
2675         * WebProcess/WebCoreSupport/qt/WebSystemInterface.mm: Removed.
2676         * WebProcess/WebPage/WebPage.cpp:
2677         (WebKit::WebPage::updatePreferences):
2678         * WebProcess/qt/WebProcessMainQt.cpp:
2679         (WebKit::WebProcessMainQt):
2680
2681 2013-06-17  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
2682
2683         Unreviewed, rolling out r151632.
2684         http://trac.webkit.org/changeset/151632
2685         https://bugs.webkit.org/show_bug.cgi?id=117585
2686
2687         Debug build error ASSERT(WTF_USE_GRAMMAR_CHECKING) for non MAC
2688         platforms
2689
2690         * Shared/API/c/WKSharedAPICast.h:
2691         (WebKit::toAPI):
2692         (WebKit::toImpl):
2693         * UIProcess/API/efl/ewk_context_menu_item.cpp:
2694         (getEwkActionFromWKTag):
2695         * UIProcess/API/efl/tests/test_ewk2_text_checker.cpp:
2696         (onContextMenuShow):
2697         (TEST_F):
2698         * UIProcess/API/gtk/WebKitContextMenuActions.cpp:
2699         (webkitContextMenuActionGetActionTag):
2700         (webkitContextMenuActionGetForContextMenuItem):
2701         (webkitContextMenuActionGetLabel):
2702         * UIProcess/WebPageProxy.cpp:
2703         (WebKit::WebPageProxy::contextMenuItemSelected):
2704
2705 2013-06-14  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
2706
2707         Context menu grammar checking items are available when GRAMMAR_CHECKING macro is off
2708         https://bugs.webkit.org/show_bug.cgi?id=117585
2709
2710         Reviewed by Anders Carlsson.
2711
2712         Add GRAMMAR_CHECKING guard to the context menu grammar items.
2713
2714         * Shared/API/c/WKSharedAPICast.h:
2715         (WebKit::toAPI):
2716         (WebKit::toImpl):
2717         * UIProcess/API/efl/ewk_context_menu_item.cpp:
2718         (getEwkActionFromWKTag):
2719         * UIProcess/API/efl/tests/test_ewk2_text_checker.cpp:
2720         (checkSpellingItemsAvailability):
2721         Change callback name, to be consistent with a newly added.
2722
2723         (checkSpellingAndGrammarSubmenuAvailability):
2724         (checkGrammarWithSpellingItemAvailability):
2725         Add two unit tests for EFL to check whether context menu grammar items are
2726         available only when GRAMMAR_CHECKING macro is enabled.
2727
2728         * UIProcess/API/gtk/WebKitContextMenuActions.cpp:
2729         (webkitContextMenuActionGetActionTag):
2730         (webkitContextMenuActionGetForContextMenuItem):
2731         (webkitContextMenuActionGetLabel):
2732         * UIProcess/WebPageProxy.cpp:
2733         (WebKit::WebPageProxy::contextMenuItemSelected):
2734
2735 2013-06-14  Dean Jackson  <dino@apple.com>
2736
2737         Crash in supportsSnapshotting
2738         https://bugs.webkit.org/show_bug.cgi?id=117670
2739         <rdar://problem/14059711>
2740
2741         Reviewed by Darin Adler.
2742
2743         Speculative fix for deferencing a null RefPtr in supportsSnapshotting.
2744         It seems like it was possible to get in a state where the plugin machinery
2745         would fire up and attempt to get a screenshot before there was an active
2746         connection to the plugin process (usually under periods of high load, such
2747         as opening a lot of tabs at once). In this case we're now returning false
2748         from supportsSnapshotting, which will trigger the plugin to restart, but
2749         that's better than requesting a snapshot on something that doesn't yet exist.
2750
2751         * WebProcess/Plugins/PluginProxy.cpp:
2752         (WebKit::PluginProxy::supportsSnapshotting): Guard for an empty connection object.
2753
2754 2013-06-14  Enrica Casucci  <enrica@apple.com>
2755
2756         WKPageFindStringMatches ignores the kWKFindOptionsBackwards option.
2757         https://bugs.webkit.org/show_bug.cgi?id=117647
2758         <rdar://problem/13881024>
2759
2760         Reviewed by Darin Adler.
2761         
2762         The API returns the matched ranges in the DOM order regardless of the
2763         find direction, but the index of the first match after the user selection
2764         should take the find direction into account.
2765
2766         Extended existing test in TestWebKitAPI.
2767
2768         * Shared/API/c/WKFindOptions.h: Added enum for the case where there are
2769         no matches after the user selection in the direction of the find.
2770
2771 2013-06-14  Andres Gomez  <agomez@igalia.com>
2772
2773         [GTK] Compilation problems - hb.h not found
2774         https://bugs.webkit.org/show_bug.cgi?id=117636
2775
2776         Unreviewed GTK+ build fix.
2777
2778         * GNUmakefile.am: Added freetype cflags for WebKit2 GTK+ Platform
2779         library.
2780
2781 2013-06-13  Michał Pakuła vel Rutka  <m.pakula@samsung.com>
2782
2783         [EFL][WK2] Wrong context menu and popup menu positions when scroll is applied
2784         https://bugs.webkit.org/show_bug.cgi?id=116610
2785
2786         Reviewed by Noam Rosenthal.
2787
2788         WebKit2 EFL uses fixed layout - because of this ScrollView::contentsToWindow, does
2789         not take scroll into account, as it is meant to be handled by UI application.
2790         When popup and context menu are created, after calling contentsToWindow their position
2791         are not adjusted to page scroll.
2792         Added two functions to EwkView and WKView, converting contents position to user viewport
2793         coordinates, to adjust popup and context menu positions.
2794
2795         * UIProcess/API/C/CoordinatedGraphics/WKView.cpp:
2796         (WKViewContentsToUserViewport):
2797         * UIProcess/API/C/CoordinatedGraphics/WKView.h:
2798         * UIProcess/API/efl/EwkView.cpp:
2799         (EwkView::showContextMenu):
2800         (EwkView::requestPopupMenu):
2801         * UIProcess/CoordinatedGraphics/WebView.cpp:
2802         (WebKit::WebView::contentsToUserViewport):
2803         * UIProcess/CoordinatedGraphics/WebView.h:
2804
2805 2013-06-12  Anders Carlsson  <andersca@apple.com>
2806
2807         Remove the notion of inactive plug-ins
2808         https://bugs.webkit.org/show_bug.cgi?id=117570
2809         <rdar://problem/13484213>
2810
2811         Reviewed by Tim Horton.
2812
2813         Remove code that deals with inactive plug-ins. We still keep around the kWKPluginLoadPolicyInactive API enum for now.
2814
2815         * Shared/Plugins/PluginModuleInfo.h:
2816         * UIProcess/API/C/WKAPICast.h:
2817         (WebKit::toWKPluginLoadPolicy):
2818         (WebKit::toPluginModuleLoadPolicy):
2819         * UIProcess/Plugins/PluginInfoStore.cpp:
2820         * UIProcess/Plugins/PluginInfoStore.h:
2821         * UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
2822         (WebKit::PluginInfoStore::shouldUsePlugin):
2823         (WebKit::PluginInfoStore::defaultLoadPolicyForPlugin):
2824         * UIProcess/WebPageProxy.cpp:
2825         (WebKit::WebPageProxy::findPlugin):
2826         (WebKit::WebPageProxy::unavailablePluginButtonClicked):
2827         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2828         (WebKit::WebChromeClient::shouldUnavailablePluginMessageBeButton):
2829         (WebKit::WebChromeClient::unavailablePluginButtonClicked):
2830         * WebProcess/WebPage/WebPage.cpp:
2831         (WebKit::WebPage::createPlugin):
2832
2833 2013-06-12  Hugo Parente Lima  <hugo.lima@openbossa.org>
2834
2835         [GTK] Explicit include glib.h to avoid compilation errors if libsoup isn't used.
2836         https://bugs.webkit.org/show_bug.cgi?id=117564
2837
2838         Reviewed by Martin Robinson.
2839
2840         * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
2841
2842 2013-06-12  Zan Dobersek  <zdobersek@igalia.com>
2843
2844         [GTK] Move more build targets for source code that's free of layer violations into libPlatform
2845         https://bugs.webkit.org/show_bug.cgi?id=115936
2846
2847         Reviewed by Martin Robinson.
2848
2849         * GNUmakefile.am: Add GStreamer dependency's CFLAGS to the list of libPlatformGtk2 CPPFLAGS.
2850
2851 2013-06-12  Ruth Fong  <ruth_fong@apple.com>
2852
2853         "Open Video in New Window" doesn't make sense in fullscreen
2854         https://bugs.webkit.org/show_bug.cgi?id=117556
2855
2856         Reviewed by Beth Dakin.
2857
2858         Adds method mediaIsInFullscreen() that checks if a media element is in
2859         fullscreen mode, which is needed to decide when to display the
2860         "Open Video in New Window" context menu item.
2861
2862         * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp:
2863         (WKBundleHitTestResultMediaIsInFullscreen): Added.
2864         Hooks into new InjectedBundleHitTestResult::mediaIsInFullscreen() method.
2865         * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.h:
2866         * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:
2867         (WebKit::InjectedBundleHitTestResult::mediaIsInFullscreen): Added.
2868         Checks if media element is in fullscreen.
2869         * WebProcess/InjectedBundle/InjectedBundleHitTestResult.h:
2870
2871 2013-06-12  Ruth Fong  <ruth_fong@apple.com>
2872
2873         Allow for toggling fullscreen on <video> elements
2874         https://bugs.webkit.org/show_bug.cgi?id=117220
2875
2876         Reviewed by Dean Jackson.
2877
2878         * Shared/API/c/WKContextMenuItemTypes.h:
2879         * Shared/API/c/WKSharedAPICast.h:
2880         Added variables to support the toggle-ability of the fullscreen
2881         video context menu item.
2882
2883 2013-06-12  Carlos Garcia Campos  <cgarcia@igalia.com>
2884
2885         [GTK] Invalidate the ProcessLauncher when the process is terminated before it has finished launching
2886         https://bugs.webkit.org/show_bug.cgi?id=117412
2887
2888         Reviewed by Anders Carlsson.
2889
2890         * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
2891         (WebKit::ProcessLauncher::terminateProcess): If process is still
2892         launching just invalidate the launcher. Reset the process
2893         identifier after killing the process.
2894
2895 2013-06-12  Jae Hyun Park  <jae.park@company100.net>
2896
2897         [Coordinated Graphics] Remove unused headers in CoordinatedLayerTreeHostProxy
2898         https://bugs.webkit.org/show_bug.cgi?id=117539
2899
2900         Reviewed by Noam Rosenthal.
2901
2902         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
2903         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
2904
2905 2013-06-12  Zan Dobersek  <zdobersek@igalia.com>
2906
2907         [GTK] Remove the WebCoreLayer(Gtk2).a archives before regenerating them
2908         https://bugs.webkit.org/show_bug.cgi?id=116723
2909
2910         Reviewed by Carlos Garcia Campos.
2911
2912         * GNUmakefile.am: When generating the WebCoreLayerGtk2.a archive from all the dependency archives, remove the
2913         current archive (if any). Updating an existent archive in an incremental build is not bulletproof and can lead
2914         to corrupt archives and subsequent build failures. On the other hand, the archive generation is not expensive
2915         and produces a working archive without problems even on incremental builds.
2916
2917 2013-06-12  Zan Dobersek  <zdobersek@igalia.com>
2918
2919         Unreviewed GTK build fix.
2920
2921         * GNUmakefile.list.am: Adding missing build targets to the plugin process after r151480.
2922
2923 2013-06-11  Gavin Barraclough  <barraclough@apple.com>
2924
2925         Add NSSupportsAppNap keys to WebProcess, PluginProcess
2926         https://bugs.webkit.org/show_bug.cgi?id=117528
2927
2928         Reviewed by Mark Rowe.
2929
2930         * PluginProcess/EntryPoint/mac/LegacyProcess/Info.plist:
2931         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64.Info.plist:
2932         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist:
2933         * WebProcess/EntryPoint/mac/LegacyProcess/Info.plist:
2934         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info.plist:
2935         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist:
2936             - add NSSupportsAppNap key.
2937
2938 2013-06-11  Oliver Hunt  <oliver@apple.com>
2939
2940         Make sure we aren't throttling plugin timers during initialisation and destruction
2941         https://bugs.webkit.org/show_bug.cgi?id=117522
2942
2943         Reviewed by Darin Adler.
2944
2945         Add a new ActivityAssertion RAII class to handle allowing/disallowing
2946         timer throttling.  Then make use of it during plugin initialisation
2947         and destruction, as well as any synchronous messages (on the basis
2948         that if another process is waiting for the plugin we shouldn't be
2949         throttling timers).
2950
2951         * CMakeLists.txt:
2952         * GNUmakefile.list.am:
2953         * PluginProcess/WebProcessConnection.cpp:
2954         (WebKit::WebProcessConnection::didReceiveSyncMessage):
2955         (WebKit::WebProcessConnection::destroyPlugin):
2956         (WebKit::WebProcessConnection::createPlugin):
2957         * Shared/ActivityAssertion.cpp: Added.
2958         (WebKit::ActivityAssertion::ActivityAssertion):
2959         (WebKit::ActivityAssertion::~ActivityAssertion):
2960         * Shared/ActivityAssertion.h: Added.
2961         * Target.pri:
2962         * WebKit2.xcodeproj/project.pbxproj:
2963
2964 2013-06-06  Timothy Hatcher  <timothy@apple.com>
2965
2966         Update the framework bundle identifier for the Web Inspector.
2967
2968         Reviewed by Mark Rowe.
2969
2970         * UIProcess/mac/WebInspectorProxyMac.mm:
2971         (WebKit::inspectorReallyUsesWebKitUserInterface):
2972         (WebKit::WebInspectorProxy::inspectorPageURL):
2973         (WebKit::WebInspectorProxy::inspectorBaseURL):
2974         * WebProcess/WebPage/mac/WebInspectorMac.mm:
2975         (WebKit::inspectorReallyUsesWebKitUserInterface):
2976         (WebKit::WebInspector::localizedStringsURL):
2977
2978 2013-06-11  Jer Noble  <jer.noble@apple.com>
2979
2980         Do not filter cookies requested through the CookieStorageShim.
2981         https://bugs.webkit.org/show_bug.cgi?id=117511
2982         <rdar://problem/13603433>
2983
2984         Reviewed by Beth Dakin.
2985
2986         Since the shim function is called when the underlying media engine is
2987         creating an HTTPRequest, use CookieRequestHeaderFieldValue (which does
2988         not filter out HTTP-only cookies) rather than CookiesForDOM (which does).
2989
2990         * Shared/mac/CookieStorageShim.cpp:
2991         (WebKit::webKitCookieStorageCopyRequestHeaderFieldsForURL):
2992
2993 2013-06-11  Seokju Kwon  <seokju.kwon@gmail.com>
2994
2995         Remove leftover wxWebkit code
2996         https://bugs.webkit.org/show_bug.cgi?id=117471
2997
2998         Reviewed by Andreas Kling.
2999
3000         * Scripts/generate-forwarding-headers.pl:
3001
3002 2013-06-11  Changhyup Jwa  <ch.jwa@samsung.com>
3003
3004         [EFL][WK2] Add fallback for EWK2UnitTestBase if opengl is not available.
3005         https://bugs.webkit.org/show_bug.cgi?id=117504
3006
3007         Reviewed by Christophe Dumez.
3008
3009         There're many fails on efl webkit2 unit test if opengl is not available.
3010         So, add fallback to non-opengl evas engine.
3011
3012         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
3013         (EWK2UnitTest::EWK2UnitTestBase::SetUp):
3014
3015 2013-06-11  Csaba Osztrogonác  <ossy@webkit.org>
3016
3017         Make WTR use its own temporary directory for application cache
3018         https://bugs.webkit.org/show_bug.cgi?id=117143
3019
3020         Reviewed by Alexey Proskuryakov.
3021
3022         * UIProcess/API/C/WKContext.cpp:
3023         (WKContextSetApplicationCacheDirectory):
3024         * UIProcess/API/C/WKContextPrivate.h:
3025         * UIProcess/WebContext.cpp:
3026         (WebKit::WebContext::applicationCacheDirectory):
3027         * UIProcess/WebContext.h:
3028         (WebKit::WebContext::setApplicationCacheDirectory):
3029         * UIProcess/efl/WebContextEfl.cpp:
3030         (WebKit::WebContext::platformDefaultApplicationCacheDirectory):
3031         * UIProcess/gtk/WebContextGtk.cpp:
3032         (WebKit::WebContext::platformDefaultApplicationCacheDirectory):
3033         * UIProcess/mac/WebContextMac.mm:
3034         (WebKit::WebContext::platformDefaultApplicationCacheDirectory):
3035         * UIProcess/qt/WebContextQt.cpp:
3036         (WebKit::WebContext::platformDefaultApplicationCacheDirectory):
3037
3038 2013-06-11  Michał Pakuła vel Rutka  <m.pakula@samsung.com>
3039
3040         [EFL][WK2] Fix test_ewk2_context_menu
3041         https://bugs.webkit.org/show_bug.cgi?id=116601
3042
3043         Reviewed by Gyuyoung Kim.
3044
3045         test_ewk2_context_menu is always passing, it does not test any context menu feature
3046         as it ends before context menu is called.
3047         One single test was divided into two tests: testing WebKit2 created context menu and
3048         testing menus and items created by application.
3049
3050         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
3051         (EWK2UnitTest::EWK2UnitTestBase::waitUntilTrue): added function introducing internal loop until boolean value is changed to true
3052         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.h:
3053         * UIProcess/API/efl/tests/test_ewk2_context_menu.cpp:
3054         (customItemSelected):
3055         (showContextMenu):
3056         (showContextMenuForRemoveAndAppend):
3057         (showContextMenuForSubmenu):
3058         (hideContextMenu):
3059         (TEST_F):
3060
3061 2013-06-11  Ryuan Choi  <ryuan.choi@samsung.com>
3062
3063         [EFL][WK2] Add ewk_view_navigate API
3064         https://bugs.webkit.org/show_bug.cgi?id=117467
3065
3066         Reviewed by Christophe Dumez.
3067
3068         The applications will use this API to navigate history more than one step.
3069
3070         * UIProcess/API/efl/ewk_back_forward_list_item_private.h:
3071         (EwkBackForwardListItem::wkItem): Return WKBackForwardListItemRef for page to navigate.
3072         * UIProcess/API/efl/ewk_view.cpp:
3073         (ewk_view_navigate_to): Added new API.
3074         * UIProcess/API/efl/ewk_view.h:
3075         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
3076         (TEST_F): Added more test case for navigation.
3077
3078 2013-06-10  Jae Hyun Park  <jae.park@company100.net>
3079
3080         [CoordinatedGraphics] Typos in custom shader support
3081         https://bugs.webkit.org/show_bug.cgi?id=117413
3082
3083         Reviewed by Noam Rosenthal.
3084
3085         Wrong keyframe is passed when assigning filterValue.
3086
3087         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
3088         (WebKit::CoordinatedLayerTreeHost::prepareCustomFilterProxiesIfNeeded):
3089
3090 2013-06-10  Seokju Kwon  <seokju.kwon@gmail.com>
3091
3092         [Qt][GTK] Build fix after r151403
3093         https://bugs.webkit.org/show_bug.cgi?id=117452
3094
3095         Reviewed by Csaba Osztrogonác.
3096
3097         * UIProcess/API/gtk/PageClientImpl.cpp:
3098         (WebKit::PageClientImpl::preferencesDidChange):
3099         * UIProcess/API/gtk/PageClientImpl.h:
3100         * UIProcess/API/qt/raw/qrawwebview_p_p.h:
3101         (QRawWebViewPrivate::preferencesDidChange):
3102         * UIProcess/qt/QtPageClient.h:
3103         (WebKit::QtPageClient::preferencesDidChange):
3104
3105 2013-06-10  Commit Queue  <commit-queue@webkit.org>
3106
3107         Unreviewed, rolling out r151411.
3108         http://trac.webkit.org/changeset/151411
3109         https://bugs.webkit.org/show_bug.cgi?id=117453
3110
3111         because it is duplicated with Bug 117441 (Requested by
3112         gyuyoung_ on #webkit).
3113
3114         * UIProcess/efl/WebViewEfl.cpp:
3115         * UIProcess/efl/WebViewEfl.h:
3116
3117 2013-06-10  Jaehun Lim  <ljaehun.lim@samsung.com>
3118
3119         Fix build error and warning
3120         https://bugs.webkit.org/show_bug.cgi?id=117441
3121
3122         Reviewed by Anders Carlsson.
3123
3124         * UIProcess/CoordinatedGraphics/WebView.cpp:
3125         (WebKit::WebView::preferencesDidChange): Added.
3126         (WebKit::WebView::createPopupMenuProxy): Remove 'page'.
3127         * UIProcess/CoordinatedGraphics/WebView.h:
3128
3129 2013-06-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3130
3131         Unreviewed, EFL Build fix after r151403.
3132
3133         Added preferencesDidChange to WebViewEfl.
3134
3135         * UIProcess/efl/WebViewEfl.cpp:
3136         (WebKit::WebViewEfl::preferencesDidChange):
3137         * UIProcess/efl/WebViewEfl.h:
3138
3139 2013-06-10  Anders Carlsson  <andersca@apple.com>
3140
3141         Crash in StorageAreaMap::applyChange when clearing local storage in another web process
3142         https://bugs.webkit.org/show_bug.cgi?id=117440
3143         <rdar://problem/13961548>
3144
3145         Reviewed by Tim Horton.
3146
3147         Add an early return so we won't try to look up a null key in the m_pendingValueChanges map.
3148         Also, fix an assertion - it's fine for m_storageMap to be null in applyChange.
3149
3150         * WebProcess/Storage/StorageAreaMap.cpp:
3151         (WebKit::StorageAreaMap::applyChange):
3152
3153 2013-06-10  Sergio Correia  <sergio.correia@openbossa.org>
3154
3155         [WK2][CoordinatedGraphics] Add default case to switches to fix strict build
3156         https://bugs.webkit.org/show_bug.cgi?id=117416
3157
3158         Reviewed by Noam Rosenthal.
3159
3160         This patch fixes a strict build by asserting on the default case of two
3161         switch statements where gcc was previously complaining of unhandled cases.
3162
3163         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
3164         (CoreIPC::::encode):
3165         (CoreIPC::::decode):
3166
3167 2013-06-10  Anders Carlsson  <andersca@apple.com>
3168
3169         -[WKView _updateWindowAndViewFrames] should avoid updating the view frame in window coordinates if we don't have plugins
3170         https://bugs.webkit.org/show_bug.cgi?id=117420
3171         <rdar://problem/14073034>
3172
3173         Reviewed by Tim Horton.
3174
3175         If plug-ins are disabled there's no need for the web process to know about the view frame in window coordinates so only
3176         send it when plug-ins are enabled. In addition, if accessibility is disabled we don't need to send a message at all.
3177
3178         * UIProcess/API/mac/PageClientImpl.h:
3179         * UIProcess/API/mac/PageClientImpl.mm:
3180         (WebKit::PageClientImpl::preferencesDidChange):
3181         Call through to -[WKView _preferencesDidChange].
3182
3183         * UIProcess/API/mac/WKView.mm:
3184         (-[WKView _updateWindowAndViewFrames]):
3185         Don't compute viewFrameInWindowCoordinates or accessibilityPosition unless they're required. If neither are required,
3186         don't even send a message to the web process.
3187
3188         (-[WKView _preferencesDidChange]):
3189         Update _needsViewFrameInWindowCoordinates and call -[WKView _updateWindowAndViewFrames] if needed.
3190
3191         (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
3192         Set _needsViewFrameInWindowCoordinates based on whether plug-ins are enabled or not.
3193
3194         * UIProcess/WebPageProxy.cpp:
3195         (WebKit::WebPageProxy::preferencesDidChange):
3196         Call the page client.
3197
3198 2013-06-10  Bear Travis  <betravis@adobe.com>
3199
3200         [CSS Shapes][CSS Exclusions] Split CSS Exclusions and CSS Shapes code
3201         https://bugs.webkit.org/show_bug.cgi?id=117162
3202
3203         Reviewed by Alexandru Chiculita.
3204
3205         Adding the WebCore/rendering/shapes directory to the include list.
3206
3207         * CMakeLists.txt:
3208
3209 2013-06-10  Iago Toral Quiroga  <itoral@igalia.com>
3210
3211         Use Cairo implementation of the WidgetBackingStore instead of X11 when running on Wayland
3212         https://bugs.webkit.org/show_bug.cgi?id=116717
3213
3214         Reviewed by Martin Robinson.
3215
3216         Decide which implementation of WidgetBackingStore to use (X11 or Cairo)
3217         depending on whether we are running on X11 or not. Select Cairo
3218         implementation when not running in X11.
3219
3220         * UIProcess/cairo/BackingStoreCairo.cpp:
3221         (WebKit):
3222         (WebKit::createBackingStoreForGTK):
3223         (WebKit::BackingStore::incorporateUpdate):
3224
3225 2013-06-09  Jae Hyun Park  <jae.park@company100.net>
3226
3227         [CoordinatedGraphics] Typo in argument decoder for CoordinatedGraphicsState
3228         https://bugs.webkit.org/show_bug.cgi?id=117384
3229
3230         Reviewed by Noam Rosenthal.
3231
3232         For CSS Shaders, it must decode state.customFiltersToRemove instead of
3233         state.updateAtlasesToRemove.
3234
3235         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
3236         (CoreIPC::::decode):
3237
3238 2013-06-08  Jae Hyun Park  <jae.park@company100.net>
3239
3240         [Coordinated Graphics] Pass the ownership of GraphicsSurface explicitly
3241         https://bugs.webkit.org/show_bug.cgi?id=117379
3242
3243         Reviewed by Noam Rosenthal.
3244
3245         When creating WebCoordinatedSurface with GraphicsSurface, it is clearer
3246         to pass the ownership of the created GraphicsSurface explicitly.
3247
3248         * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
3249         (WebKit::WebCoordinatedSurface::create):
3250
3251 2013-06-07  Anders Carlsson  <andersca@apple.com>
3252
3253         Coalesce multiple calls to WebPageProxy::windowAndViewFramesChanged
3254         https://bugs.webkit.org/show_bug.cgi?id=117364
3255         <rdar://problem/14042099>
3256
3257         Reviewed by Geoffrey Garen.
3258
3259         -[WKView _updateWindowAndViewFrames] can be called many times per run loop iteration so coalesce calls
3260         to WebPageProxy::windowAndViewFrames using dispatch_async.
3261
3262         * UIProcess/API/mac/WKView.mm:
3263         (-[WKView _updateWindowAndViewFrames]):
3264
3265 2013-06-07  Thomas Deniau  <deniau@apple.com>
3266
3267         Reproducible crash with triple-finger-tap "define word" gesture on a Netflix video
3268         https://bugs.webkit.org/show_bug.cgi?id=117020
3269
3270         Reviewed by Ryosuke Niwa.
3271
3272         * WebProcess/WebPage/mac/WebPageMac.mm:
3273         (WebKit::WebPage::performDictionaryLookupAtLocation):
3274         Don't invoke the Dictionary lookup when we failed to extract the range of the token
3275         surrounding the tapped position.
3276
3277 2013-06-07  Enrique Ocana Gonzalez  <eocanha@igalia.com>
3278
3279         [GTK] Weird behaviour and no clues to the user when the shared memory file can't be opened
3280         https://bugs.webkit.org/show_bug.cgi?id=117063
3281
3282         Reviewed by Anders Carlsson.
3283
3284         Log error message when the shared memory file can't be opened in
3285         Unix platform using a release build
3286
3287         * Platform/unix/SharedMemoryUnix.cpp:
3288         (WebKit::SharedMemory::create):
3289
3290 2013-06-07  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
3291
3292         [EFL][WK2] Context menu spellchecking items are not available when "Check Spelling While Typing" is off
3293         https://bugs.webkit.org/show_bug.cgi?id=117190
3294
3295         Reviewed by Christophe Dumez.
3296
3297         Context menu items (suggestions, learn and ignore word) are not available
3298         due to missing dictionary. To get the suggestions for the misspelled word,
3299         the dictionary has to be loaded first.
3300
3301         WebKit loads the default dictionary when check spelling while typing is being enabled.
3302         However, context menu spellchecking items should be present even if this setting is off.
3303
3304         * UIProcess/API/efl/ewk_context.cpp:
3305         (EwkContext::EwkContext):
3306         Load the user's default dictionary to ensure context menu spellchecking items.
3307         The dictionary is loaded asynchronously so it shouldn't delay application.
3308
3309         * UIProcess/API/efl/ewk_text_checker.h:
3310         Update doc. Spelling suggestions, learn and ignore word should be available
3311         independently of checking spelling while typing setting.
3312
3313         * UIProcess/API/efl/tests/test_ewk2_text_checker.cpp:
3314         (onContextMenuShow):
3315         (TEST_F):
3316         Add two unit tests to check whether the default dictionary is loaded and
3317         whether the context menu spelling items are available.
3318
3319         * UIProcess/efl/TextCheckerEfl.cpp:
3320         (WebKit::TextChecker::setContinuousSpellCheckingEnabled):
3321         (WebKit::TextChecker::continuousSpellCheckingEnabledStateChanged):
3322         Not set the default dictionary while enabling the setting, it's already loaded.
3323
3324 2013-06-07  Michał Pakuła vel Rutka  <m.pakula@samsung.com>
3325
3326         [EFL][WK2] Implement customContextMenuItemSelected
3327         https://bugs.webkit.org/show_bug.cgi?id=117298
3328
3329         Reviewed by Christophe Dumez.
3330
3331         When custom context menu item is selected using ewk API, the feedback is not
3332         sent back to application, as customContextMenuItemSelected was unimplemented in
3333         contextMenuClientEfl.
3334
3335         * UIProcess/API/efl/EwkView.cpp:
3336         (EwkView::customContextMenuItemSelected):
3337         * UIProcess/API/efl/EwkView.h:
3338         * UIProcess/API/efl/ewk_view.h: added custom_item_selected callback.
3339         * UIProcess/efl/ContextMenuClientEfl.cpp:
3340         (customContextMenuItemSelected):
3341         (ContextMenuClientEfl::ContextMenuClientEfl):
3342
3343 2013-06-06  Oliver Hunt  <oliver@apple.com>
3344
3345         Completely initialize ChildProcess state on launch
3346         https://bugs.webkit.org/show_bug.cgi?id=117328
3347
3348         Reviewed by Sam Weinig.
3349
3350         Use setProcessSuppressionEnabledInternal to avoid setProcessSuppressionEnabled
3351         "optimizing" our initialization away.
3352
3353         * Shared/mac/ChildProcessMac.mm:
3354         (WebKit::ChildProcess::platformInitialize):
3355
3356 2013-06-06  Rafael Brandao  <rafael.lobo@openbossa.org>
3357
3358         [Gtk] Connection is leaking when WebProcess is terminated
3359         https://bugs.webkit.org/show_bug.cgi?id=117293
3360
3361         Reviewed by Martin Robinson.
3362
3363         Connection is leaking because WorkQueue::SocketEventSource inherits from
3364         WorkQueue::EventSource but when it is destroyed, the actual destructor running
3365         is the one from base class; however, subclass contains a function binded from
3366         Connection (m_closeFunction) and we need to do this extra cleanup, otherwise
3367         WorkQueue will keep Connection alive. A better explanation of this fix is provided
3368         on http://stackoverflow.com/questions/461203/when-to-use-virtual-destructors
3369
3370         A quick way to see the leak is to change WK2 test "ReloadPageAfterCrash" to terminate
3371         WebProcess N times and add a printf on Connection destructor.
3372
3373         * Platform/gtk/WorkQueueGtk.cpp:
3374         (WorkQueue::EventSource::~EventSource): Adds a virtual destructor to enable
3375         the subclass to do its own cleanup.
3376
3377 2013-06-06  Jae Hyun Park  <jae.park@company100.net>
3378
3379         Coordinated Graphics : Refactor CoordinatedSurface to manage the lifecycle of GraphicsContext
3380         https://bugs.webkit.org/show_bug.cgi?id=108899
3381
3382         Reviewed by Noam Rosenthal.
3383
3384         This is a preparation patch for Threaded Coordinated Graphics.
3385
3386         This patch changes CoordinatedSurface to be responsible for the
3387         lifecycle of GraphicsContext used in Coordinated Graphics System.
3388         CoordinatedImageBacking and UpdateAtlas do not ask for the ownership
3389         of GraphicsContext anymore. Instead, those classes use client pattern to
3390         ask the CoordiantedSurface to paint to the GraphicsContext.
3391
3392         This refactoring is needed to implement CoordinatedSurface for Threaded
3393         Coordinated Graphics.
3394
3395         * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
3396         (WebKit::WebCoordinatedSurface::paintToSurface):
3397         * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
3398         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
3399         (WebKit::CoordinatedLayerTreeHost::paintToSurface):
3400         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
3401
3402 2013-06-05  Kangil Han  <kangil.han@samsung.com>
3403
3404         [EFL][WK2] Fix test_ewk2_view unit test timed out issue
3405         https://bugs.webkit.org/show_bug.cgi?id=117251
3406
3407         Reviewed by Christophe Dumez.
3408
3409         'ewk_view_contents_size_changed' unit test case has been timed out since r150802 because
3410         same size is filtered by WebView class. So create one different test html string that has
3411         different size to continue unit tests.
3412
3413         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
3414         (onContentsSizeChangedPortrait):
3415         (onContentsSizeChangedLandscape):
3416         (TEST_F):
3417
3418 2013-06-05  Bear Travis  <betravis@adobe.com>
3419
3420         [CSS Exclusions][CSS Shapes] Split CSS Exclusions & Shapes compile & runtime flags
3421         https://bugs.webkit.org/show_bug.cgi?id=117172
3422
3423         Reviewed by Alexandru Chiculita.
3424
3425         Adding the CSS_SHAPES compile flag.
3426
3427         * Configurations/FeatureDefines.xcconfig:
3428
3429 2013-06-05  Anders Carlsson  <andersca@apple.com>
3430
3431         Crash if an IPC connection is invalidated before it's completely set up
3432         https://bugs.webkit.org/show_bug.cgi?id=117274
3433         <rdar://problem/13319035>
3434
3435         Reviewed by Andreas Kling.
3436
3437         Resume our dispatch sources on the connection queue so we won't get invalidation callbacks before
3438         all sources have been set up.
3439
3440         * Platform/CoreIPC/mac/ConnectionMac.cpp:
3441         (CoreIPC::Connection::open):
3442         (CoreIPC::Connection::sendOutgoingMessage):
3443         (CoreIPC::Connection::initializeDeadNameSource):
3444         (CoreIPC::Connection::receiveSourceEventHandler):
3445
3446 2013-06-05  Tim Horton  <timothy_horton@apple.com>
3447
3448         [wk2] WebProcess' page-in-window count can be wrong
3449         https://bugs.webkit.org/show_bug.cgi?id=117106
3450         <rdar://problem/14040991>
3451
3452         Reviewed by Anders Carlsson.
3453
3454         If we're using a single WebProcess and a window is closed, we were
3455         not decrementing the page-in-window count (because we apparently don't
3456         setIsInWindow(false) a WebPage in a closing window before tearing it down).
3457
3458         Turn the page-in-window count into a HashSet of pageIDs instead.
3459
3460         * WebProcess/WebPage/WebPage.cpp:
3461         (WebKit::WebPage::WebPage):
3462         (WebKit::WebPage::setIsInWindow):
3463         Send the pageID instead (this change is just so that I don't need to
3464         fetch the WebPage in WebProcess::removeWebPage).
3465
3466         * WebProcess/WebProcess.cpp:
3467         (WebKit::WebProcess::WebProcess):
3468         Remove m_inWindowPageCount.
3469
3470         (WebKit::WebProcess::removeWebPage):
3471         Ensure that WebPages being torn-down are removed from the in-window WebPage set.
3472
3473         (WebKit::WebProcess::pageDidEnterWindow):
3474         (WebKit::WebProcess::pageWillLeaveWindow):
3475         Use our new HashSet instead of a count.
3476
3477         (WebKit::WebProcess::nonVisibleProcessCleanupTimerFired):
3478         Make sure that we don't have any visible pages before doing cleanup.
3479
3480         * WebProcess/WebProcess.h:
3481         Remove m_inWindowPageCount.
3482         Add m_inWindowPageSet.
3483         Make pageDidEnterWindow/pageWillLeaveWindow take pageID instead of WebPage.
3484
3485 2013-06-05  Tim Horton  <timothy_horton@apple.com>
3486
3487         REGRESSION (r148713): Crash under waitForDidUpdateInWindowState
3488         https://bugs.webkit.org/show_bug.cgi?id=117268
3489         <rdar://problem/13822353>
3490
3491         Reviewed by Anders Carlsson.
3492
3493         Check if the WebProcess is valid before waiting for a message from it.
3494         Reset the bool that tells us that we have an outstanding didUpdateInWindowState message if the WebProcess quits.
3495
3496         * UIProcess/WebPageProxy.cpp:
3497         (WebKit::WebPageProxy::waitForDidUpdateInWindowState):
3498         (WebKit::WebPageProxy::resetStateAfterProcessExited):
3499
3500 2013-06-05  Gwang Yoon Hwang  <ryumiel@company100.net>
3501
3502         [Coordinated Graphics] Prevent a recursive painting in CoordinatedGraphicsLayer
3503         https://bugs.webkit.org/show_bug.cgi?id=117222
3504
3505         Reviewed by Noam Rosenthal.
3506
3507         CoordinatedGraphicsLayer::flushCompositingState() will cross frame
3508         boundaries if the GraphicsLayers are connected. In this case,
3509         updateContentBuffers will invoke a painting of a sub-frame that causes
3510         flushCompositingState recursively.
3511
3512         To prevent this behavior this patch extracts updateContentBuffers from
3513         flushCompositingState, and places it in
3514         updateContentBuffersIncludeSublayers, which traverses the tree
3515         separately from flushing the state for painting.
3516
3517         No new tests, covered by existing tests.
3518
3519         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
3520         (WebKit::CoordinatedLayerTreeHost::flushPendingLayerChanges):
3521
3522 2013-06-05  Gwang Yoon Hwang  <ryumiel@company100.net>
3523
3524         [Coordinated Graphics] Rename client classes for CoordinatedImageBacking and UpdateAtlas.
3525         https://bugs.webkit.org/show_bug.cgi?id=111948
3526