Fix Mac CMake build after r206261
[WebKit.git] / Source / WebKit2 / ChangeLog
1 2016-09-23  Jonathan Bedard  <jbedard@apple.com>
2
3         Fix Mac CMake build after r206261
4         https://bugs.webkit.org/show_bug.cgi?id=162493
5
6         Reviewed by Alex Christensen.
7
8         * CMakeLists.txt: Exclude WebTextChecker from Mac CMake builds.
9         * PlatformEfl.cmake: Ditto.
10         * PlatformGTK.cmake: Ditto.
11
12 2016-09-23  Carlos Garcia Campos  <cgarcia@igalia.com>
13
14         [GTK] BadDamage X error in /webkit2/WebKitWebView/preferred-size
15         https://bugs.webkit.org/show_bug.cgi?id=162489
16
17         Reviewed by Michael Catanzaro.
18
19         Do a XSync right after creating/destroying the XDamage used by the redirected window in X11.
20
21         * UIProcess/gtk/AcceleratedBackingStoreX11.cpp:
22         (WebKit::AcceleratedBackingStoreX11::~AcceleratedBackingStoreX11):
23         (WebKit::AcceleratedBackingStoreX11::update):
24
25 2016-09-23  Antoine Quint  <graouts@apple.com>
26
27         Add a new runtime flag for work on modern media controls (off by default)
28         https://bugs.webkit.org/show_bug.cgi?id=162420
29         <rdar://problem/27989489>
30
31         Reviewed by Eric Carlson.
32
33         * Shared/WebPreferencesDefinitions.h:
34         * WebProcess/InjectedBundle/InjectedBundle.cpp:
35         (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner):
36         * WebProcess/WebPage/WebPage.cpp:
37         (WebKit::WebPage::updatePreferences):
38
39 2016-09-23  Carlos Garcia Campos  <cgarcia@igalia.com>
40
41         REGRESSION(r194387): Crash on github.com in IntlDateTimeFormat::resolvedOptions in C locale
42         https://bugs.webkit.org/show_bug.cgi?id=162139
43
44         Reviewed by Michael Catanzaro.
45
46         Handle the case of "C" locale passed by the user using "en-US" as default to match what
47         WTF::platformUserPreferredLanguages() does.
48
49         * UIProcess/API/gtk/WebKitWebContext.cpp:
50         (webkit_web_context_set_preferred_languages): Remove the call to languageDidChange() because
51         overrideUserPreferredLanguages() already calls it, so we were actually notifying the observers twice.
52
53 2016-09-23  Carlos Garcia Campos  <cgarcia@igalia.com>
54
55         [GTK] Improve performance when resizing a window with multiple web views in X11
56         https://bugs.webkit.org/show_bug.cgi?id=162413
57
58         Reviewed by Michael Catanzaro.
59
60         Resizing a window with a single way view performs good enough, but when adding more tabs, the performance
61         decreases a lot. This is because resize is a sync operation, and the UI process waits for the web process to
62         have a new update for the new size, while still draws the previous frame. This is needed for the visible web
63         view, to avoid flickering and artifacts while resizing, but for all other hidden web views, we don't really need
64         to block the UI process. This doesn't happen in Wayland, because in Wayland we never block the UI process while
65         waiting for web process update after a resize.
66
67         * UIProcess/AcceleratedDrawingAreaProxy.cpp:
68         (WebKit::AcceleratedDrawingAreaProxy::waitForAndDispatchDidUpdateBackingStoreState): Return early if the web
69         view is not visible.
70         * UIProcess/gtk/AcceleratedBackingStoreX11.cpp:
71         (WebKit::AcceleratedBackingStoreX11::update): Only schedule a redraw on a damage event when the view is visible.
72         * WebProcess/WebPage/gtk/AcceleratedSurfaceX11.cpp:
73         (WebKit::AcceleratedSurfaceX11::AcceleratedSurfaceX11): Do a XSync right after creating the new pixmap.
74         (WebKit::AcceleratedSurfaceX11::resize): Ditto.
75
76 2016-09-22  Daniel Bates  <dabates@apple.com>
77
78         Remove more ENABLE(TEXT_AUTOSIZING) code
79         https://bugs.webkit.org/show_bug.cgi?id=162456
80
81         Reviewed by Simon Fraser.
82
83         * UIProcess/API/efl/ewk_settings.cpp:
84         (ewk_settings_text_autosizing_enabled_set):
85         (ewk_settings_text_autosizing_enabled_get):
86         * UIProcess/API/efl/tests/test_ewk2_settings.cpp:
87         (TEST_F):
88
89 2016-09-22  Jonathan Bedard  <jbedard@apple.com>
90
91         Automatic Text Replacement Testing in WebKit2
92         https://bugs.webkit.org/show_bug.cgi?id=161919
93
94         Reviewed by Ryosuke Niwa.
95
96         Implemented test hooks for text replacement for WebKit2.
97         Note that spell checking has not been implemented, so most tests which use text replacement still fail.
98
99         * UIProcess/API/C/WKTextChecker.cpp: Added #ifdefs to include file for iOS and Mac.
100         (WKTextCheckerSetTestingMode): Added.
101         * UIProcess/API/C/WKTextChecker.h: Added #ifdefs to include file for iOS and Mac.
102         * UIProcess/TextChecker.h: Added hooks to bypass writing to NSUserDefaults.
103         * UIProcess/WebPageProxy.cpp:
104         (WebKit::WebPageProxy::toggleSmartInsertDelete):  New message to toggle TextChecker flag.
105         (WebKit::WebPageProxy::toggleAutomaticQuoteSubstitution): Ditto.
106         (WebKit::WebPageProxy::toggleAutomaticLinkDetection): Ditto.
107         (WebKit::WebPageProxy::toggleAutomaticDashSubstitution): Ditto.
108         (WebKit::WebPageProxy::toggleAutomaticTextReplacement): Ditto.
109         * UIProcess/WebPageProxy.h: Added messages to toggle TextChecker flags.
110         * UIProcess/WebPageProxy.messages.in: Ditto.
111         * UIProcess/efl/TextCheckerEfl.cpp: Implemented new TextChecker hooks for non-Cocoa platforms.
112         * UIProcess/gtk/TextCheckerGtk.cpp: Ditto.
113         (WebKit::TextChecker::mutableState): Ditto.
114         * UIProcess/ios/TextCheckerIOS.mm: Implemented new TextChecker hooks.
115         (WebKit::TextChecker::mutableState): Allow modification of text checker without writing to NSUserDefaults.
116         (WebKit::TextChecker::state): Call mutableState.
117         (WebKit::TextChecker::accessSmartInsertDeleteEnabled): Dummy function.
118         * UIProcess/mac/TextCheckerMac.mm:
119         (WebKit::refresh): Reload TextChecker configuration from NSUserDefaults.
120         (WebKit::TextChecker::mutableState): Allow modification of text checker without writing to NSUserDefaults.
121         (WebKit::TextChecker::state): Call mutableState().
122         (WebKit::TextChecker::accessSmartInsertDeleteEnabled): Allow toggling of smartInsertDeleteEnabled without writing to NSUserDefaults.
123         (WebKit::initializeState): Deleted.
124         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
125         (WKBundleSetAutomaticLinkDetectionEnabled): Deleted.
126         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: Removed WKBundleSetAutomaticLinkDetectionEnabled.
127         * WebProcess/InjectedBundle/InjectedBundle.cpp:
128         (WebKit::InjectedBundle::setAutomaticLinkDetectionEnabled): Deleted.
129         * WebKit2.xcodeproj/project.pbxproj: Added WKTextChecker to Mac and iOS.
130         * WebProcess/InjectedBundle/InjectedBundle.h: Remove setAutomaticLinkDetectionEnabled.
131         * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
132         (WebKit::WebEditorClient::toggleSmartInsertDelete): Send message to UI process to toggle TextChecker.
133         (WebKit::WebEditorClient::toggleAutomaticQuoteSubstitution): Ditto.
134         (WebKit::WebEditorClient::toggleAutomaticLinkDetection): Ditto.
135         (WebKit::WebEditorClient::toggleAutomaticDashSubstitution): Ditto.
136         (WebKit::WebEditorClient::toggleAutomaticTextReplacement): Ditto.
137
138 2016-09-22  Carlos Garcia Campos  <cgarcia@igalia.com>
139
140         [GTK] Rename DataObjectGtk as SelectionData
141         https://bugs.webkit.org/show_bug.cgi?id=162380
142
143         Reviewed by Žan Doberšek.
144
145         * PlatformGTK.cmake:
146         * Shared/gtk/ArgumentCodersGtk.cpp:
147         (IPC::ArgumentCoder<SelectionData>::encode):
148         (IPC::ArgumentCoder<SelectionData>::decode):
149         * Shared/gtk/ArgumentCodersGtk.h:
150         * Shared/gtk/WebSelectionData.cpp: Renamed from Source/WebKit2/Shared/gtk/PasteboardContent.cpp.
151         (WebKit::WebSelectionData::WebSelectionData):
152         (WebKit::WebSelectionData::encode):
153         (WebKit::WebSelectionData::decode):
154         * Shared/gtk/WebSelectionData.h: Renamed from Source/WebKit2/Shared/gtk/PasteboardContent.h.
155         * UIProcess/API/gtk/PageClientImpl.cpp:
156         (WebKit::PageClientImpl::startDrag):
157         * UIProcess/API/gtk/PageClientImpl.h:
158         * UIProcess/PageClient.h:
159         * UIProcess/WebPageProxy.cpp:
160         (WebKit::WebPageProxy::performDragControllerAction):
161         (WebKit::WebPageProxy::startDrag):
162         * UIProcess/WebPageProxy.h:
163         * UIProcess/WebPageProxy.messages.in:
164         * UIProcess/WebPasteboardProxy.h:
165         * UIProcess/WebPasteboardProxy.messages.in:
166         * UIProcess/gtk/DragAndDropHandler.cpp:
167         (WebKit::DragAndDropHandler::DroppingContext::DroppingContext):
168         (WebKit::DragAndDropHandler::startDrag):
169         (WebKit::DragAndDropHandler::fillDragData):
170         (WebKit::DragAndDropHandler::finishDrag):
171         (WebKit::DragAndDropHandler::dropDataSelection):
172         (WebKit::DragAndDropHandler::dragEntered):
173         (WebKit::DragAndDropHandler::dragDataSelection):
174         (WebKit::DragAndDropHandler::dragMotion):
175         (WebKit::DragAndDropHandler::dragLeave):
176         (WebKit::DragAndDropHandler::drop):
177         * UIProcess/gtk/DragAndDropHandler.h:
178         * UIProcess/gtk/WebPasteboardProxyGtk.cpp:
179         (WebKit::WebPasteboardProxy::writeToClipboard):
180         (WebKit::WebPasteboardProxy::readFromClipboard):
181         (WebKit::WebPasteboardProxy::setPrimarySelectionOwner): Deleted.
182         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
183         (WebKit::WebPlatformStrategies::writeToClipboard):
184         (WebKit::WebPlatformStrategies::readFromClipboard):
185         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
186         * WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp:
187         (WebKit::WebDragClient::startDrag):
188         * WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp:
189         * WebProcess/WebPage/WebPage.cpp:
190         (WebKit::WebPage::performDragControllerAction):
191         * WebProcess/WebPage/WebPage.h:
192         * WebProcess/WebPage/WebPage.messages.in:
193
194 2016-09-21  Dan Bernstein  <mitz@apple.com>
195
196         [macOS] Upon layout, _webView:renderingProgressDidChange: fires before the intrinsic content size is updated
197         https://bugs.webkit.org/show_bug.cgi?id=162359
198         <rdar://problem/27776454>
199
200         Reviewed by Tim Horton.
201
202         Test: added to TestWebKitAPI/Tests/WebKit2Cocoa/AutoLayoutIntegration.mm
203
204         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h: Fixed a bug where
205           m_pendingNewlyReachedLayoutMilestones was never initialized.
206
207         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h: Added
208           m_pendingNewlyReachedLayoutMilestones member variable to this derived class as well.
209         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
210         (WebKit::TiledCoreAnimationDrawingArea::flushLayers): If we have pending milestones, notify
211           the WebPageProxy now, after any content size changes have been sent.
212         (WebKit::TiledCoreAnimationDrawingArea::dispatchDidReachLayoutMilestone): New override that
213           accumulates the milestones into m_pendingNewlyReachedLayoutMilestones and returns true,
214           so that the caller won’t notify the WebPageProxy immediately.
215
216 2016-09-21  Anders Carlsson  <andersca@apple.com>
217
218         support openPaymentSetup API on ApplePaySession object
219         https://bugs.webkit.org/show_bug.cgi?id=162357
220         rdar://problem/26776939
221
222         Reviewed by Tim Horton.
223
224         * UIProcess/ApplePay/WebPaymentCoordinatorProxy.cpp:
225         (WebKit::WebPaymentCoordinatorProxy::openPaymentSetup):
226         Call through to platformOpenPaymentSetup, and in the completion handler, send back a OpenPaymentSetupReply message.
227
228         * UIProcess/ApplePay/WebPaymentCoordinatorProxy.h:
229         Add new members.
230
231         * UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in:
232         Add OpenPaymentSetup message.
233
234         * UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm:
235         (WebKit::WebPaymentCoordinatorProxy::platformOpenPaymentSetup):
236         Allocate a PKPassLibrary and call openPaymentSetupForMerchantIdentifier:domain:completion: on it.
237
238         * WebProcess/ApplePay/WebPaymentCoordinator.cpp:
239         (WebKit::generateOpenPaymentSetupReplyID):
240         New helper function to generate a reply ID.
241
242         (WebKit::WebPaymentCoordinator::openPaymentSetup):
243         Add the completion handler to m_pendingOpenPaymentSetupCallbacks and send a OpenPaymentSetup message to the UI process.
244
245         (WebKit::WebPaymentCoordinator::openPaymentSetupReply):
246         Grab the callback given its ID and invoke it.
247
248         * WebProcess/ApplePay/WebPaymentCoordinator.h:
249         Add new members.
250
251         * WebProcess/ApplePay/WebPaymentCoordinator.messages.in:
252         Add OpenPaymentSetupReply message.
253
254 2016-09-21  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
255
256         Unreviewed, build fix.
257
258         * UIProcess/gtk/AcceleratedBackingStoreWayland.cpp:
259         (WebKit::AcceleratedBackingStoreWayland::paint): fix usage of deviceScaleFactor variable which was
260         removed.
261
262 2016-09-20  Carlos Garcia Campos  <cgarcia@igalia.com>
263
264         [GTK] Clean up DataObjectGtk handling
265         https://bugs.webkit.org/show_bug.cgi?id=162267
266
267         Reviewed by Michael Catanzaro.
268
269         In some cases the ownership of DataObjectGtk instances is not clear enough, and we have hacks to avoid memory
270         leaks because of that.
271
272         * Shared/gtk/ArgumentCodersGtk.cpp:
273         (IPC::encodeImage): Use Image instead of GdkPixbuf.
274         (IPC::decodeImage): Ditto.
275         (IPC::ArgumentCoder<DataObjectGtk>::encode):
276         (IPC::ArgumentCoder<DataObjectGtk>::decode):
277         (IPC::encode): Deleted.
278         (IPC::decode): Deleted.
279         (IPC::ArgumentCoder<DragData>::encode): Deleted.
280         (IPC::ArgumentCoder<DragData>::decode): Deleted.
281         * Shared/gtk/ArgumentCodersGtk.h:
282         * Shared/gtk/PasteboardContent.cpp:
283         (WebKit::PasteboardContent::PasteboardContent): Add empty constructor that creates a new DataObjectGtk, a
284         constructor that receives a const reference and another one that takes the ownership of the given DataObjectGtk.
285         (WebKit::PasteboardContent::encode):
286         (WebKit::PasteboardContent::decode):
287         * Shared/gtk/PasteboardContent.h: Use Ref instead of RefPtr for the DataObjectGtk member.
288         * UIProcess/API/gtk/PageClientImpl.cpp:
289         (WebKit::PageClientImpl::startDrag): Transfer the DataObjectGtk to the DragAndDropHandler, instead of using DragData.
290         * UIProcess/API/gtk/PageClientImpl.h:
291         * UIProcess/PageClient.h:
292         * UIProcess/WebPageProxy.cpp:
293         (WebKit::WebPageProxy::performDragControllerAction): Instead of sending a DragData object to the web process,
294         send the DataObjectGtk and DragData members needed as parameters.
295         (WebKit::WebPageProxy::startDrag): Transfer the received DataObjectGtk to page client, instead of using
296         DragData. Also notify the web process that drag started.
297         * UIProcess/WebPageProxy.h:
298         * UIProcess/WebPageProxy.messages.in: Update StartDrag message parameters.
299         * UIProcess/gtk/DragAndDropHandler.cpp:
300         (WebKit::DragAndDropHandler::DragAndDropHandler): Remove unneeded initialization.
301         (WebKit::DragAndDropHandler::startDrag): Take ownership of the given DataObjectGtk.
302         * UIProcess/gtk/DragAndDropHandler.h:
303         * UIProcess/gtk/WebPasteboardProxyGtk.cpp:
304         (WebKit::WebPasteboardProxy::writeToClipboard):
305         (WebKit::WebPasteboardProxy::readFromClipboard):
306         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
307         (WebKit::WebPlatformStrategies::writeToClipboard):
308         (WebKit::WebPlatformStrategies::readFromClipboard):
309         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
310         * WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp:
311         (WebKit::convertCairoSurfaceToShareableBitmap):
312         (WebKit::WebDragClient::startDrag): Do not create a DragData and pass the DataObjectGtk directly to the
313         message. Also notify the WebPage that drag is about to start.
314         * WebProcess/WebPage/WebPage.cpp:
315         (WebKit::WebPage::performDragControllerAction): Remove explicit DataObjectGtk derefs and simply create a
316         DragData using the DataObjectGtk pointer as platform data.
317         * WebProcess/WebPage/WebPage.h:
318         * WebProcess/WebPage/WebPage.messages.in: Update PerformDragControllerAction message parameters.
319
320 2016-09-20  Hunseop Jeong  <hs85.jeong@samsung.com>
321
322         [EFL] ewk_context_menu_item_select test have been failed
323         https://bugs.webkit.org/show_bug.cgi?id=162143
324
325         Reviewed by Gyuyoung Kim.
326
327         ewk_context_menu_item_select has been waited until test page loading is finished, but it is
328         unnecessary to wait the loading is finished. It would be good to pass if *testFinished*
329         flag is true.
330
331         * UIProcess/API/efl/tests/test_ewk2_context_menu.cpp:
332         (EWK2ContextMenuTest::checkBasicContextMenuItem):
333         (EWK2ContextMenuTest::testContextMenu):
334         (TEST_F):
335
336 2016-09-20  Keith Rollin  <krollin@apple.com>
337
338         Add new logging for network resource loading
339         https://bugs.webkit.org/show_bug.cgi?id=162237
340
341         Reviewed by Antti Koivisto.
342
343         Add new logging along the non-main path for resource loading. This
344         logging should allow us to differentiate between lack-of-logging due
345         execution along a path that doesn't have logging statements and
346         lack-of-logging due to a hung process.
347
348         * NetworkProcess/NetworkResourceLoader.cpp:
349         (WebKit::NetworkResourceLoader::start):
350         (WebKit::NetworkResourceLoader::startNetworkLoad):
351         (WebKit::NetworkResourceLoader::setDefersLoading):
352         (WebKit::NetworkResourceLoader::abort):
353         (WebKit::NetworkResourceLoader::didReceiveBuffer):
354         * NetworkProcess/NetworkResourceLoader.h:
355         * WebProcess/Network/WebLoaderStrategy.cpp:
356         (WebKit::WebLoaderStrategy::loadResource):
357         (WebKit::WebLoaderStrategy::scheduleLoad):
358
359 2016-09-20  Anders Carlsson  <andersca@apple.com>
360
361         Can't present a payment sheet if a sheet is already active in another window
362         https://bugs.webkit.org/show_bug.cgi?id=162314
363         rdar://problem/27643511
364
365         Reviewed by Tim Horton.
366
367         Instead of keeping track of whether a sheet is active or not, keep track of its underlying payment coordinator proxy,
368         so we can hide it and send a cancel event to WebCore if another sheet is being presented.
369
370         * UIProcess/ApplePay/WebPaymentCoordinatorProxy.cpp:
371         (WebKit::WebPaymentCoordinatorProxy::~WebPaymentCoordinatorProxy):
372         (WebKit::WebPaymentCoordinatorProxy::showPaymentUI):
373         (WebKit::WebPaymentCoordinatorProxy::didReachFinalState):
374
375 2016-09-20  Keith Rollin  <krollin@apple.com>
376
377         Adjust current networking logging
378         https://bugs.webkit.org/show_bug.cgi?id=162235
379
380         Reviewed by Antti Koivisto.
381
382         Update the "always on" network logging in order to better track the
383         loading of a particular resource and to better bind together the
384         resources downloaded for a particular page and frame. Do this by
385         consistently logging pageID, frameID, and resourceID.
386
387         * NetworkProcess/NetworkResourceLoader.cpp:
388         (WebKit::NetworkResourceLoader::didFinishLoading):
389         (WebKit::NetworkResourceLoader::didFailLoading):
390         (WebKit::NetworkResourceLoader::continueWillSendRequest):
391         * WebProcess/Network/WebLoaderStrategy.cpp:
392         (WebKit::WebLoaderStrategy::scheduleLoad):
393         (WebKit::WebLoaderStrategy::startLocalLoad):
394         * WebProcess/Network/WebResourceLoader.cpp:
395         (WebKit::WebResourceLoader::create):
396         (WebKit::WebResourceLoader::WebResourceLoader):
397         (WebKit::WebResourceLoader::willSendRequest):
398         (WebKit::WebResourceLoader::didReceiveResponse):
399         (WebKit::WebResourceLoader::didReceiveData):
400         (WebKit::WebResourceLoader::didFinishResourceLoad):
401         (WebKit::WebResourceLoader::didFailResourceLoad):
402         (WebKit::WebResourceLoader::didReceiveResource):
403         * WebProcess/Network/WebResourceLoader.h:
404
405 2016-09-19  Wenson Hsieh  <wenson_hsieh@apple.com>
406
407         Add a unit test covering <https://trac.webkit.org/changeset/205983>
408         https://bugs.webkit.org/show_bug.cgi?id=162112
409
410         Reviewed by Beth Dakin.
411
412         Adds some a test support method as SPI on WKWebView to determine whether to request candidates. See
413         Tools/ChangeLog for more details.
414
415         * UIProcess/API/Cocoa/WKWebView.mm:
416         (-[WKWebView _shouldRequestCandidates]):
417         (-[WKWebView _forceRequestCandidates]): Deleted.
418         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
419
420 2016-09-19  Anders Carlsson  <andersca@apple.com>
421
422         Suppress JavaScript prompts early on in certain cases
423         https://bugs.webkit.org/show_bug.cgi?id=162243
424         rdar://problem/27661602
425
426         Reviewed by Geoffrey Garen.
427
428         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
429         (WebKit::shouldSuppressJavaScriptDialogs):
430         Add helper function.
431
432         (WebKit::WebChromeClient::runJavaScriptAlert):
433         (WebKit::WebChromeClient::runJavaScriptConfirm):
434         (WebKit::WebChromeClient::runJavaScriptPrompt):
435         Call helper function and return early if we should supress dialogs.
436
437 2016-09-19  Keith Rollin  <krollin@apple.com>
438
439         Reduce logging from WebResourceLoader::didReceiveData
440         https://bugs.webkit.org/show_bug.cgi?id=162233
441
442         Reviewed by Antti Koivisto.
443
444         Only log once even if called multiple times for a single resource.
445
446         * WebProcess/Network/WebResourceLoader.cpp:
447         (WebKit::WebResourceLoader::didReceiveData):
448         * WebProcess/Network/WebResourceLoader.h:
449
450 2016-09-19  Daniel Bates  <dabates@apple.com>
451
452         Remove ENABLE(TEXT_AUTOSIZING) automatic text size adjustment code
453         https://bugs.webkit.org/show_bug.cgi?id=162167
454
455         Reviewed by Simon Fraser.
456
457         * Configurations/FeatureDefines.xcconfig:
458         * WebProcess/WebPage/WebPage.cpp:
459         (WebKit::WebPage::updatePreferences):
460
461 2016-09-19  Alex Christensen  <achristensen@webkit.org>
462
463         Only override URLParser::enabled if NSUserDefaults object exists
464         https://bugs.webkit.org/show_bug.cgi?id=162131
465
466         Reviewed by Sam Weinig.
467
468         * Shared/Cocoa/WebKit2InitializeCocoa.mm:
469         (WebKit::platformInitializeWebKit2):
470         * Shared/WebKit2Initialize.cpp:
471         When I enable URLParser by default, I will want the default to only be overwritten if there is a
472         NSUserDefaults key for URLParserEnabled.  Right now it is setting URLParser::enabled to false always,
473         which isn't a problem because the default is also false.  When the default is true, that will overwrite the default.
474
475 2016-09-19  Joseph Pecoraro  <pecoraro@apple.com>
476
477         Web Inspector: Bring the inspected page's window forward when activating element search
478         https://bugs.webkit.org/show_bug.cgi?id=162114
479         <rdar://problem/28349357>
480
481         Reviewed by Brian Burg.
482
483         * UIProcess/WebInspectorProxy.h:
484         * UIProcess/WebInspectorProxy.cpp:
485         (WebKit::WebInspectorProxy::elementSelectionChanged):
486         When element search is activated allow the platform to bring
487         the window containing the inspected page to the foreground.
488
489         (WebKit::WebInspectorProxy::platformBringInspectedPageToFront):
490         * UIProcess/efl/WebInspectorProxyEfl.cpp:
491         (WebKit::WebInspectorProxy::platformBringInspectedPageToFront):
492         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
493         (WebKit::WebInspectorProxy::platformBringInspectedPageToFront):
494         Default empty implementation for ports.
495
496         * UIProcess/mac/WebInspectorProxyMac.mm:
497         (WebKit::WebInspectorProxy::platformBringInspectedPageToFront):
498         Bring the window containing the inspected page to the foreground.
499
500 2016-09-18  Michael Catanzaro  <mcatanzaro@igalia.com>
501
502         [GTK] Empty referer header after WebKit session state restoration trips Bad Behavior Wordpress plugin
503         https://bugs.webkit.org/show_bug.cgi?id=159606
504
505         Reviewed by Carlos Garcia Campos.
506
507         Leave the referrer member of FrameState unset when restoring from session state, unless
508         there is actually a nonempty referrer saved in the state. If we set it to an empty string,
509         then an empty referrer gets sent to the server, which some servers do not accept. It
510         triggers the Bad Behavior plugin on my WordPress blog, for instance. It also breaks vox.com.
511
512         * UIProcess/API/gtk/WebKitWebViewSessionState.cpp:
513         (decodeFrameState):
514
515 2016-09-18  Chelsea Pugh  <cpugh@apple.com>
516
517         [iOS] Remove unused methods from _WKInputDelegate
518         https://bugs.webkit.org/show_bug.cgi?id=162098
519
520         Reviewed by Anders Carlsson.
521
522         * UIProcess/API/Cocoa/_WKInputDelegate.h:
523
524 2016-09-18  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
525
526         [GTK] Stop using glReadPixels() to blit AC surfaces in the UIProcess under Wayland
527         https://bugs.webkit.org/show_bug.cgi?id=161530
528
529         Reviewed by Carlos Garcia Campos.
530
531         Use gdk_cairo_draw_from_gl when all necessary conditions exist.
532
533         * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:
534         (WebKit::ThreadedCompositor::create): take TextureMapper::PaintFlags as optional argument.
535         (WebKit::ThreadedCompositor::ThreadedCompositor): ditto.
536         (WebKit::ThreadedCompositor::renderLayerTree): relay paint flags to TextureMapper::beginPaint.
537         * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.h:
538         * UIProcess/gtk/AcceleratedBackingStoreWayland.cpp:
539         (WebKit::AcceleratedBackingStoreWayland::paint): use the faster gdk_cairo_draw_from_gl when a new
540         enough GTK+ is in use.
541         * WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp:
542         (WebKit::ThreadedCoordinatedLayerTreeHost::ThreadedCoordinatedLayerTreeHost): create compositor
543         with PaintingMirrored flag if we have recent GTK+ and are running under Wayland.
544         * WebProcess/WebPage/gtk/AcceleratedSurfaceX11.h: implement shouldPaintMirrored by always
545         returning false.
546         * WebProcess/WebPage/gtk/AcceleratedSurfaceWayland.h: implement shouldPaintMirrored by always
547         returning true.
548         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
549         (WebKit::LayerTreeHostGtk::compositeLayersToContext): pass PaintingMirror flag to TextureMapper
550         when under a recent enough GTK+ and Wayland.
551
552 2016-09-17  Carlos Garcia Campos  <cgarcia@igalia.com>
553
554         [GTK] Move the rendering of auth dialog shadow to the auth dialog widget
555         https://bugs.webkit.org/show_bug.cgi?id=162061
556
557         Reviewed by Michael Catanzaro.
558
559         Instead of rendering the shadow in the web view, we can let the auth dialog do it. This fixes the rendering of
560         the shadow in Wayland when using gdk_cairo_draw_from_gl().
561
562         * UIProcess/API/gtk/WebKitAuthenticationDialog.cpp:
563         (webkitAuthenticationDialogDraw): Draw the shadow before rendering the child.
564         (webkitAuthenticationDialogSizeAllocate): Center the child on the allocated space.
565         (webkit_authentication_dialog_class_init): Add size_allocate implementation.
566         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
567         (webkitWebViewBaseDraw): Do not draw the shadow when auth dialog is present.
568         (webkitWebViewBaseSizeAllocate): Give the whole web view allocation to the auth dialog.
569
570 2016-09-17  Carlos Garcia Campos  <cgarcia@igalia.com>
571
572         [ThreadedCompositor] Scrolling artifacts on accelerated subframes
573         https://bugs.webkit.org/show_bug.cgi?id=149060
574
575         Reviewed by Michael Catanzaro.
576
577         The problem is that we are scrolling the main frame even when scrolling is not delegated.
578
579         * WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp:
580         (WebKit::ThreadedCoordinatedLayerTreeHost::scrollNonCompositedContents): Return early if main frame view doesn't
581         delegate scrolling.
582
583 2016-09-16  Simon Fraser  <simon.fraser@apple.com>
584
585         WKWebViewConfiguration's _incrementalRenderingSuppressionTimeout should be an NSTimeInterval
586         https://bugs.webkit.org/show_bug.cgi?id=162092
587
588         Reviewed by Anders Carlsson.
589         
590         The _incrementalRenderingSuppressionTimeout property should be a NSTimeInterval, not a CGFloat.
591
592         * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
593         (-[WKWebViewConfiguration _incrementalRenderingSuppressionTimeout]):
594         (-[WKWebViewConfiguration _setIncrementalRenderingSuppressionTimeout:]):
595         * UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:
596
597 2016-09-15  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
598
599         [GTK] Surface created for glReadPixels path on Wayland is bigger than needed
600         https://bugs.webkit.org/show_bug.cgi?id=162025
601
602         Reviewed by Carlos Garcia Campos.
603
604         * UIProcess/gtk/AcceleratedBackingStoreWayland.cpp:
605         (WebKit::AcceleratedBackingStoreWayland::paint): the texture created by the Wayland
606         compositor is already scaled, so scaling its size when creating the surface causes it
607         to end up bigger than necessary.
608
609 2016-09-16  David Kilzer  <ddkilzer@apple.com>
610
611         ASSERT accidentally commented out in r204916
612         <https://webkit.org/b/162077>
613
614         Reviewed by Anders Carlsson.
615
616         * UIProcess/WebPageProxy.cpp:
617         (WebKit::WebPageProxy::terminateProcess): Comment in the ASSERT
618         back in.
619
620 2016-09-16  Wenson Hsieh  <wenson_hsieh@apple.com>
621
622         Inserting a space after inserting an accepted candidate scrolls the document and causes a flicker
623         https://bugs.webkit.org/show_bug.cgi?id=162009
624         <rdar://problem/28086237>
625
626         Reviewed by Tim Horton.
627
628         After inserting a text candidate, if the candidate ended with a soft space, the next space we insert should just
629         replace the soft space. This currently works because we leave the text insertion out of the list of
630         KeypressCommands sent to the web process and instead replace the soft space via WebPage::InsertTextAsync.
631         However, this means when the web process handles this keydown event, the current editor will not handle it,
632         since the list of key commands is empty despite the text and unmodified text being non-empty.
633
634         To fix this, when sending keydown or keyup events where we replace a soft space, we set the key event's text to
635         an empty string instead of a space. This allows us to return early in EventHandler::keyEvent and avoid the
636         codepath that tries to insert text into the current editor and (in the case of inserting a ' ') scrolls the
637         document if necessary. Since we've already handled text insertion via WebPage::InsertTextAsync, there is no need
638         to also dispatch the keypress to the editor.
639
640         Additionally, this patch addresses flickering in the candidates UI due to the fact that we're asynchronously
641         replacing the last soft space. During this operation, we select the range of the soft space and then insert the
642         new text. This causes a momentary range selection which the web process notifies the UI process about, prompting
643         us to hide the candidates list. To address this, we suppress the EditorStateChanged message fired from the web
644         process to the UI process while we're selecting the original range to replace.
645
646         This patch adds 3 new WebKit API tests.
647
648         * Shared/NativeWebKeyboardEvent.h:
649         * Shared/mac/NativeWebKeyboardEventMac.mm:
650         (WebKit::NativeWebKeyboardEvent::NativeWebKeyboardEvent):
651         * Shared/mac/WebEventFactory.h:
652         * Shared/mac/WebEventFactory.mm:
653         (WebKit::textFromEvent):
654         (WebKit::unmodifiedTextFromEvent):
655         (WebKit::WebEventFactory::createWebKeyboardEvent):
656         * UIProcess/API/Cocoa/WKWebView.mm:
657         (-[WKWebView _handleAcceptedCandidate:]):
658         (-[WKWebView _didHandleAcceptedCandidate]):
659         (-[WKWebView _didUpdateCandidateListVisibility:]):
660         (-[WKWebView _forceRequestCandidates]):
661         (-[WKWebView _handleControlledElementIDResponse:]): Deleted.
662         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
663         * UIProcess/API/mac/WKView.mm:
664         (-[WKView _didHandleAcceptedCandidate]):
665         (-[WKView _didUpdateCandidateListVisibility:]):
666         * UIProcess/Cocoa/WebViewImpl.h:
667         * UIProcess/Cocoa/WebViewImpl.mm:
668         (WebKit::WebViewImpl::forceRequestCandidatesForTesting):
669         (WebKit::WebViewImpl::becomeFirstResponder):
670         (WebKit::WebViewImpl::didHandleAcceptedCandidate):
671         (WebKit::WebViewImpl::insertText):
672         (WebKit::WebViewImpl::performKeyEquivalent):
673         (WebKit::WebViewImpl::keyUp):
674         (WebKit::WebViewImpl::keyDown):
675         (WebKit::WebViewImpl::flagsChanged):
676         * UIProcess/WebPageProxy.cpp:
677         (WebKit::WebPageProxy::insertTextAsync):
678         * UIProcess/WebPageProxy.h:
679         * WebProcess/WebPage/WebPage.cpp:
680         (WebKit::WebPage::insertTextAsync):
681         (WebKit::WebPage::didChangeSelection):
682         * WebProcess/WebPage/WebPage.h:
683         * WebProcess/WebPage/WebPage.messages.in:
684
685 2016-09-16  Anders Carlsson  <andersca@apple.com>
686
687         Add support for enum class parameters in the message generator
688         https://bugs.webkit.org/show_bug.cgi?id=162036
689
690         Reviewed by Brady Eidson.
691
692         Also, convert the WebPage::SetLayerHostingMode to take an actual enum class.
693
694         * Scripts/webkit/messages.py:
695         (function_parameter_type):
696         Change this to take the parameter kind as well, and use the raw type for enums.
697
698         (arguments_type):
699         (message_to_struct_declaration):
700         Pass the kind to function_parameter_type.
701
702         (forward_declaration):
703         (forward_declarations_for_namespace):
704         Forward declare enums with "enum class".
705
706         (headers_for_type):
707         Add WebKit::LayerHostingMode as a special case.
708
709         (generate_message_handler):
710         Pass the kind to function_parameter_type.
711
712         * Scripts/webkit/parser.py:
713         (parse_parameters_string):
714         Parse 'enum' as well.
715
716         * Shared/LayerTreeContext.h:
717         Add enum traits.
718
719         * UIProcess/WebPageProxy.cpp:
720         (WebKit::WebPageProxy::viewDidEnterWindow):
721         (WebKit::WebPageProxy::layerHostingModeDidChange):
722         * WebProcess/WebPage/WebPage.cpp:
723         (WebKit::WebPage::reinitializeWebPage):
724         (WebKit::WebPage::setLayerHostingMode):
725         * WebProcess/WebPage/WebPage.h:
726         Change unsigned to LayerHostingMode.
727
728         * WebProcess/WebPage/WebPage.messages.in:
729         Change unsigned to LayerHostingMode.
730
731 2016-09-16  Commit Queue  <commit-queue@webkit.org>
732
733         Unreviewed, rolling out r206000.
734         https://bugs.webkit.org/show_bug.cgi?id=162062
735
736         inadvertent GCC requirement bump (Requested by mcatanzaro on
737         #webkit).
738
739         Reverted changeset:
740
741         "Add support for enum class parameters in the message
742         generator"
743         https://bugs.webkit.org/show_bug.cgi?id=162036
744         http://trac.webkit.org/changeset/206000
745
746 2016-09-15  Brady Eidson  <beidson@apple.com>
747
748         WKWebView.hasOnlySecureContent always returns "YES" after going back to a CachedPage (even if it has http resources).
749         <rdar://problem/27681261> and https://bugs.webkit.org/show_bug.cgi?id=162043
750
751         Reviewed by Brent Fulgham. 
752
753         * Scripts/webkit/messages.py:
754         (headers_for_type): Add a custom header, and alphabetize existing ones.
755
756         * Shared/WebCoreArgumentCoders.h: Add EnumTraits for HasInsecureContent.
757
758         * UIProcess/PageLoadState.h:
759         (WebKit::PageLoadState::committedHasInsecureContent):
760
761         * UIProcess/WebPageProxy.cpp:
762         (WebKit::WebPageProxy::hasInsecureContent):
763         (WebKit::WebPageProxy::didCommitLoadForFrame): If the WebProcess included an existing "HasInsecureContent" value, use it.
764         * UIProcess/WebPageProxy.h:
765         * UIProcess/WebPageProxy.messages.in:
766
767         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
768         (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad): 
769         (WebKit::WebFrameLoaderClient::savePlatformDataToCachedFrame): Save the "HasInsecureContent" value to the CachedFrame in
770           case we restore it in the future.
771         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
772
773 2016-09-15  Anders Carlsson  <andersca@apple.com>
774
775         Actually assign the decoded enum value to the output value
776         https://bugs.webkit.org/show_bug.cgi?id=162042
777
778         Reviewed by Brady Eidson.
779
780         * Platform/IPC/Decoder.h:
781
782 2016-09-15  Anders Carlsson  <andersca@apple.com>
783
784         Add support for enum class parameters in the message generator
785         https://bugs.webkit.org/show_bug.cgi?id=162036
786
787         Reviewed by Brady Eidson.
788
789         Also, convert the WebPage::SetLayerHostingMode to take an actual enum class.
790
791         * Scripts/webkit/messages.py:
792         (function_parameter_type):
793         Change this to take the parameter kind as well, and use the raw type for enums.
794
795         (arguments_type):
796         (message_to_struct_declaration):
797         Pass the kind to function_parameter_type.
798
799         (forward_declaration):
800         (forward_declarations_for_namespace):
801         Forward declare enums with "enum class".
802
803         (headers_for_type):
804         Add WebKit::LayerHostingMode as a special case.
805
806         (generate_message_handler):
807         Pass the kind to function_parameter_type.
808
809         * Scripts/webkit/parser.py:
810         (parse_parameters_string):
811         Parse 'enum' as well.
812
813         * Shared/LayerTreeContext.h:
814         Add enum traits.
815
816         * UIProcess/WebPageProxy.cpp:
817         (WebKit::WebPageProxy::viewDidEnterWindow):
818         (WebKit::WebPageProxy::layerHostingModeDidChange):
819         * WebProcess/WebPage/WebPage.cpp:
820         (WebKit::WebPage::reinitializeWebPage):
821         (WebKit::WebPage::setLayerHostingMode):
822         * WebProcess/WebPage/WebPage.h:
823         Change unsigned to LayerHostingMode.
824
825         * WebProcess/WebPage/WebPage.messages.in:
826         Change unsigned to LayerHostingMode.
827
828 2016-09-14  Beth Dakin  <bdakin@apple.com>
829
830         dictionaryPopupInfoForRange() can change selection temporarily; updates should not 
831         be sent to the UIProcess.
832         https://bugs.webkit.org/show_bug.cgi?id=162008
833         -and corresponding-
834         rdar://problem/28312297
835
836         Reviewed by Tim Horton.
837
838         This patch prevents the selection changes that occur while gathering 
839         dictionaryPopupInfo from being propagated to the UIProcess.
840         * WebProcess/WebPage/WebPage.cpp:
841         (WebKit::WebPage::didChangeSelection):
842         * WebProcess/WebPage/WebPage.h:
843         * WebProcess/WebPage/mac/WebPageMac.mm:
844         (WebKit::WebPage::dictionaryPopupInfoForRange):
845
846 2016-09-14  Wenson Hsieh  <wenson_hsieh@apple.com>
847
848         Media controls behave strangely when changing media sources
849         https://bugs.webkit.org/show_bug.cgi?id=161914
850         <rdar://problem/28227805>
851
852         Reviewed by Tim Horton.
853
854         Allows a web page to have an active video for a media control manager even if no audio or video is currently
855         being produced. This is because the media element may be in a state where it is changing its source and does not
856         currently have a video or audio track.
857
858         * UIProcess/WebPageProxy.cpp:
859         (WebKit::WebPageProxy::hasActiveVideoForControlsManager):
860
861 2016-09-14  Beth Dakin  <bdakin@apple.com>
862
863         Add needsPlainTextQuirk and send it to the UIProcess
864         https://bugs.webkit.org/show_bug.cgi?id=161996
865         -and corresponding-
866         rdar://problem/26013388
867
868         Rubber-stamped by Simon Fraser.
869
870         Quick clean-up.
871         * WebProcess/WebPage/WebPage.cpp:
872         (WebKit::needsPlainTextQuirk):
873
874 2016-09-14  Beth Dakin  <bdakin@apple.com>
875
876         Add needsPlainTextQuirk and send it to the UIProcess
877         https://bugs.webkit.org/show_bug.cgi?id=161996
878         -and corresponding-
879         rdar://problem/26013388
880
881         Reviewed by Anders Carlsson.
882
883         WebPageProxy should keep track of m_needsPlainTextQuirk.
884         * UIProcess/WebPageProxy.cpp:
885         (WebKit::WebPageProxy::setNeedsPlainTextQuirk):
886         * UIProcess/WebPageProxy.h:
887         (WebKit::WebPageProxy::needsPlainTextQuirk):
888         (WebKit::WebPageProxy::needsHiddenContentEditableQuirk): Deleted.
889         * UIProcess/WebPageProxy.messages.in:
890
891         If m_needsPlainTextQuirk is true, set it back to false on page transition.
892         * WebProcess/WebPage/WebPage.cpp:
893         (WebKit::WebPage::didStartPageTransition):
894
895         The sites that need this quirk.
896         (WebKit::needsPlainTextQuirk):
897         (WebKit::WebPage::didChangeSelection):
898         * WebProcess/WebPage/WebPage.h:
899
900 2016-09-14  Eric Carlson  <eric.carlson@apple.com>
901
902         [MediaStream] Minor cleanup
903         https://bugs.webkit.org/show_bug.cgi?id=161976
904
905         Reviewed by Youenn Fablet and Dean Jackson.
906
907         * UIProcess/UserMediaPermissionRequestProxy.cpp:
908
909 2016-09-14  Beth Dakin  <bdakin@apple.com>
910
911         Add needsHiddenContentEditableQuirk and send it to the UIProcess
912         https://bugs.webkit.org/show_bug.cgi?id=161984
913         -and corresponding-
914         rdar://problem/26013388
915
916         Reviewed by Anders Carlsson.
917
918         Keep track of m_needsHiddenContentEditableQuirk in WebPageProxy.
919         * UIProcess/WebPageProxy.cpp:
920         (WebKit::WebPageProxy::setNeedsHiddenContentEditableQuirk):
921         * UIProcess/WebPageProxy.h:
922         (WebKit::WebPageProxy::needsHiddenContentEditableQuirk):
923         (WebKit::WebPageProxy::hasHadSelectionChangesFromUserInteraction): Deleted.
924         * UIProcess/WebPageProxy.messages.in:
925
926         If m_needsHiddenContentEditableQuirk is true, set it back to false on page 
927         transition.
928         * WebProcess/WebPage/WebPage.cpp:
929         (WebKit::WebPage::didStartPageTransition):
930
931         Google Docs and iCloud Pages are the sites that need this quirk.
932         (WebKit::needsHiddenContentEditableQuirk):
933         (WebKit::WebPage::didChangeSelection):
934         * WebProcess/WebPage/WebPage.h:
935
936 2016-09-14  Megan Gardner  <megan_gardner@apple.com>
937
938         Long tap menu on an image link no longer includes "Save Image" button
939         https://bugs.webkit.org/show_bug.cgi?id=161761
940         <rdar://27202717>
941
942         Reviewed by Beth Dakin.
943
944         * UIProcess/ios/WKActionSheetAssistant.mm:
945         (-[WKActionSheetAssistant defaultActionsForImageSheet:]):
946         Added share to image sheet as to not regress current functionality
947         * WebProcess/WebPage/ios/WebPageIOS.mm:
948         (WebKit::WebPage::getPositionInformation):
949         Gather information for images as well as links, and they can be both
950
951 2016-09-14  Carlos Garnacho  <carlosg@gnome.org>
952
953         [GTK][Wayland] Implement clipboard support
954         https://bugs.webkit.org/show_bug.cgi?id=146574
955
956         Reviewed by Carlos Garcia Campos.
957
958         Add the necessary plumbing for the GTK+ backend to use the
959         PlatformPasteboard in WebCore. All selection data is transmitted
960         at once through the serialization of PasteboardContentGtk/DataObjectGtk.
961
962         * PlatformGTK.cmake: Add PasteboardContentGtk.cpp and
963         WebPasteboardProxyGtk.cpp
964         * Shared/gtk/ArgumentCodersGtk.cpp:
965         (IPC::encode):
966         (IPC::decode): Renamed from encodeDataObject/decodeDataObject
967         and made public.
968         (IPC::ArgumentCoder<DragData>::encode):
969         (IPC::ArgumentCoder<DragData>::decode): Update DataObjectGtk
970         encode/decode callers. Encode the extra canSmartReplace field.
971         * Shared/gtk/ArgumentCodersGtk.h: Expose encode/decode methods for
972         DataObjectGtk.
973         * Shared/gtk/PasteboardContent.cpp: Added. Wraps a DataObjectGtk
974         so it can be serialized on WebProcess/UIProcess messaging.
975         (WebKit::PasteboardContent::PasteboardContent):
976         (WebKit::PasteboardContent::encode):
977         (WebKit::PasteboardContent::decode): Methods to encode/decode a
978         PasteboardContent.
979         * Shared/gtk/PasteboardContent.h: Added.
980         * UIProcess/WebFrameProxy.cpp:
981         (WebKit::WebFrameProxy::collapseSelection): Added plumbing to allow
982         collapsing the global selection from the UI process side.
983         * UIProcess/WebFrameProxy.h:
984         * UIProcess/WebPasteboardProxy.h:
985         * UIProcess/WebPasteboardProxy.messages.in: Added plumbing for the
986         GTK+ pasteboard proxy functions.
987         * UIProcess/gtk/WebPageProxyGtk.cpp:
988         (WebKit::WebPageProxy::editorStateChanged):
989         * UIProcess/gtk/WebPasteboardProxyGtk.cpp: Added.
990         (WebKit::WebPasteboardProxy::writeToClipboard):
991         (WebKit::WebPasteboardProxy::readFromClipboard): Implemented functions
992         hooking into the PlatformPasteboard. Per-selection (ie.
993         primary/clipboard) PlatformPasteboards are kept at this level, so those
994         are independently set and dealt with.
995         (WebKit::WebPasteboardProxy::setPrimarySelectionOwner):
996         (WebKit::WebPasteboardProxy::didDestroyFrame): Implemented functions
997         to manage the frame currently being currently interacted, so we can
998         signal back when the global selection has been replaced.
999         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1000         (WebKit::WebPlatformStrategies::writeToClipboard):
1001         (WebKit::WebPlatformStrategies::readFromClipboard): Added methods to
1002         send the WebProcess->UIProcess messages.
1003         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
1004         * WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp:
1005         (WebKit::WebEditorClient::updateGlobalSelection): Remove GClosure to
1006         get notifications about changes in global selection ownership. This
1007         is done through a WebPage message now, as the UI process manages the
1008         clipboard.
1009         * WebProcess/WebPage/WebPage.h:
1010         * WebProcess/WebPage/WebPage.messages.in:
1011         * WebProcess/WebPage/gtk/WebPageGtk.cpp:
1012         (WebKit::WebPage::collapseSelectionInFrame): Added methods to send
1013         the UIProcess->WebProcess notification that the global selection has
1014         been replaced.
1015
1016 2016-09-13  Tim Horton  <timothy_horton@apple.com>
1017
1018         Provide a mechanism to specify the maximum size of WKThumbnailView snapshots
1019         https://bugs.webkit.org/show_bug.cgi?id=161896
1020         <rdar://problem/28229827>
1021
1022         Reviewed by Simon Fraser.
1023
1024         Some clients know that their thumbnail views will only be displayed up to
1025         a specific size that is significantly smaller than the WKView size. Allow
1026         them to avoid wasting lots of memory on unnecessarily large snapshots.
1027
1028         * UIProcess/API/Cocoa/_WKThumbnailView.h:
1029         * UIProcess/API/Cocoa/_WKThumbnailView.mm:
1030         (-[_WKThumbnailView requestSnapshot]):
1031         (-[_WKThumbnailView _requestSnapshotIfNeeded]):
1032         (-[_WKThumbnailView setMaximumSnapshotSize:]):
1033         Add a maximumSnapshotSize property which can be changed dynamically.
1034
1035 2016-09-13  Anders Carlsson  <andersca@apple.com>
1036
1037         REGRESSION (r196321): Amazon Videos are all black in Fullscreen
1038         https://bugs.webkit.org/show_bug.cgi?id=161924
1039         rdar://problem/28208208
1040
1041         Reviewed by Dan Bernstein.
1042
1043         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.mm:
1044         (main):
1045         Set AppleMagnifiedMode to true.
1046
1047 2016-09-13  Carlos Garcia Campos  <cgarcia@igalia.com>
1048
1049         [GTK] Get rid of DataObjectGtk::forClipboard and cleanup pasteboard code
1050         https://bugs.webkit.org/show_bug.cgi?id=161907
1051
1052         Reviewed by Michael Catanzaro.
1053
1054         Update to DataObjectGtk and PasteboardHelper API changes.
1055
1056         * UIProcess/gtk/DragAndDropHandler.cpp:
1057         (WebKit::DragAndDropHandler::startDrag):
1058         (WebKit::DragAndDropHandler::fillDragData):
1059         (WebKit::DragAndDropHandler::dataObjectForDropData):
1060         * WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp:
1061         (WebKit::WebDragClient::startDrag):
1062         * WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp:
1063         (WebKit::collapseSelection):
1064         (WebKit::WebEditorClient::updateGlobalSelection): Remove wrong X11 guards, since that code is not X11 specific.
1065
1066 2016-09-12  DAN SAUNDERS  <dasau@microsoft.com>
1067
1068         AX: WKWebView for macOS does not allow configuration of tabsToLinks
1069         https://bugs.webkit.org/show_bug.cgi?id=161394
1070
1071         Reviewed by Anders Carlsson.
1072
1073         * UIProcess/API/Cocoa/WKPreferences.h:
1074         * UIProcess/API/Cocoa/WKPreferences.mm:
1075         (-[WKPreferences encodeWithCoder:]):
1076         (-[WKPreferences initWithCoder:]):
1077         (-[WKPreferences tabFocusesLinks]):
1078         (-[WKPreferences setTabFocusesLinks:]):
1079
1080 2016-09-12  Saam Barati  <sbarati@apple.com>
1081
1082         Add WebKit support for an option in Safari's debug menu similar to "Get Bytecode Profile" but for the Sampling Profiler's data
1083         https://bugs.webkit.org/show_bug.cgi?id=161785
1084
1085         Reviewed by Tim Horton.
1086
1087         This patch follows in the steps of how we dump output for the
1088         internal JSC bytecode profiler tool, but now also for the internal
1089         JSC sampling profiler tool. This can be used when doing performance
1090         analysis work analyzing the JS execution of a page.
1091
1092         * UIProcess/API/C/WKPage.cpp:
1093         (WKPageGetSamplingProfilerOutput):
1094         * UIProcess/API/C/WKPagePrivate.h:
1095         * UIProcess/WebPageProxy.cpp:
1096         (WebKit::WebPageProxy::getSamplingProfilerOutput):
1097         (WebKit::WebPageProxy::invalidateStringCallback):
1098         * UIProcess/WebPageProxy.h:
1099         * UIProcess/WebPageProxy.messages.in:
1100         * WebProcess/WebPage/WebPage.cpp:
1101         (WebKit::WebPage::getSamplingProfilerOutput):
1102         * WebProcess/WebPage/WebPage.h:
1103         * WebProcess/WebPage/WebPage.messages.in:
1104
1105 2016-09-12  Keith Rollin  <krollin@apple.com>
1106
1107         Enhance Network logging
1108         https://bugs.webkit.org/show_bug.cgi?id=161771
1109
1110         Reviewed by Antti Koivisto.
1111
1112         Modify current logging statements to follow a consistent pattern in
1113         order to enhance readability and parsing.
1114
1115         * NetworkProcess/Downloads/Download.cpp:
1116         (WebKit::Download::didReceiveResponse):
1117         (WebKit::Download::didReceiveData):
1118         (WebKit::Download::didFinish):
1119         (WebKit::Download::didFail):
1120         (WebKit::Download::didCancel):
1121         * NetworkProcess/NetworkResourceLoader.cpp:
1122         (WebKit::NetworkResourceLoader::startNetworkLoad):
1123         (WebKit::NetworkResourceLoader::didFinishLoading):
1124         (WebKit::NetworkResourceLoader::didFailLoading):
1125         (WebKit::NetworkResourceLoader::continueWillSendRequest):
1126         * WebProcess/Network/WebLoaderStrategy.cpp:
1127         (WebKit::WebLoaderStrategy::scheduleLoad):
1128         * WebProcess/Network/WebResourceLoader.cpp:
1129         (WebKit::WebResourceLoader::willSendRequest):
1130         (WebKit::WebResourceLoader::didReceiveResponse):
1131         (WebKit::WebResourceLoader::didReceiveData):
1132         (WebKit::WebResourceLoader::didFinishResourceLoad):
1133         (WebKit::WebResourceLoader::didFailResourceLoad):
1134         (WebKit::WebResourceLoader::didReceiveResource):
1135
1136 2016-09-09  Tim Horton  <timothy_horton@apple.com>
1137
1138         WKThumbnailView should expose a mode where it can be reparented without resnapshotting
1139         https://bugs.webkit.org/show_bug.cgi?id=161828
1140         <rdar://problem/28229756>
1141
1142         Reviewed by Alex Christensen.
1143
1144         * UIProcess/API/Cocoa/_WKThumbnailView.h:
1145         * UIProcess/API/Cocoa/_WKThumbnailView.mm:
1146         (-[_WKThumbnailView initWithFrame:fromWKView:]):
1147         (-[_WKThumbnailView _viewWasUnparented]):
1148         Add such a mode. Bail from snapshot teardown when unparented if it is on.
1149
1150 2016-09-08  Dean Jackson  <dino@apple.com>
1151
1152         Expose Apple Pencil data to Touch events
1153         https://bugs.webkit.org/show_bug.cgi?id=161783
1154         <rdar://problem/28218898>
1155
1156         Reviewed by Beth Dakin.
1157
1158         * Platform/spi/ios/UIKitSPI.h: Expose the new SPI. Since this is only used
1159         on public builds, guard it against everything that is <= iOS 10.0.
1160         * Shared/WebEvent.h: New properties.
1161         (WebKit::WebPlatformTouchPoint::setAltitudeAngle):
1162         (WebKit::WebPlatformTouchPoint::altitudeAngle):
1163         (WebKit::WebPlatformTouchPoint::setAzimuthAngle):
1164         (WebKit::WebPlatformTouchPoint::azimuthAngle):
1165         (WebKit::WebPlatformTouchPoint::setTouchType):
1166         (WebKit::WebPlatformTouchPoint::touchType):
1167         (WebKit::WebPlatformTouchPoint::force): Deleted.
1168         * Shared/WebEventConversion.cpp:
1169         (WebKit::webPlatformTouchTypeToPlatform):
1170         (WebKit::WebKit2PlatformTouchPoint::WebKit2PlatformTouchPoint): More
1171         parameters sent to parent constructor.
1172         * Shared/ios/NativeWebTouchEventIOS.mm:
1173         (WebKit::convertTouchType):
1174         (WebKit::NativeWebTouchEvent::extractWebTouchPoint):
1175         * Shared/ios/WebPlatformTouchPointIOS.cpp:
1176         (WebKit::WebPlatformTouchPoint::encode):
1177         (WebKit::WebPlatformTouchPoint::decode):
1178
1179 2016-09-09  Tim Horton  <timothy_horton@apple.com>
1180
1181         Text replacement candidates don't always overwrite the entire original string
1182         https://bugs.webkit.org/show_bug.cgi?id=161779
1183         <rdar://problem/28033492>
1184
1185         Reviewed by Simon Fraser.
1186
1187         * WebProcess/WebPage/mac/WebPageMac.mm:
1188         (WebKit::WebPage::platformEditorState):
1189         Make use of the shared implementation of contextRangeForCandidateRequest.
1190
1191 2016-09-08  Carlos Garcia Campos  <cgarcia@igalia.com>
1192
1193         Unreviewed. Fix GTK+ build after r205689.
1194
1195         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElement.cpp:
1196         (webkit_dom_html_o_list_element_set_start):
1197
1198 2016-09-08  Dan Bernstein  <mitz@apple.com>
1199
1200         Re-landing the fix for
1201
1202         [Mac] .tbd files for the shims end up installed when building with GENERATE_TEXT_BASED_STUBS=YES
1203         https://bugs.webkit.org/show_bug.cgi?id=161722
1204
1205         without reintroducing https://webkit.org/b/161782
1206
1207         * Configurations/Shim.xcconfig: Don’t install the shims. The Copy Shims build phase in the
1208           WebKit target will copy them into place without bringing their .tbd files along. Keep the
1209           install path set, though, because it determines the dylibs’ install names.
1210
1211 2016-09-08  Commit Queue  <commit-queue@webkit.org>
1212
1213         Unreviewed, rolling out r205576.
1214         https://bugs.webkit.org/show_bug.cgi?id=161782
1215
1216         Introduced a crash at launch and broke all our Mac perf
1217         testing (Requested by rniwa on #webkit).
1218
1219         Reverted changeset:
1220
1221         "[Mac] .tbd files for the shims end up installed when building
1222         with GENERATE_TEXT_BASED_STUBS=YES"
1223         https://bugs.webkit.org/show_bug.cgi?id=161722
1224         http://trac.webkit.org/changeset/205576
1225
1226 2016-09-08  Said Abou-Hallawa  <sabouhallawa@apple.com>
1227
1228         Move the BitmapImage platform dependent code to a new file named NativeImage[CG|Cairo].cpp
1229         https://bugs.webkit.org/show_bug.cgi?id=158684
1230
1231         Reviewed by Simon Fraser.
1232
1233         * UIProcess/API/C/cg/WKIconDatabaseCG.cpp:
1234         (WKIconDatabaseTryGetCGImageForURL):
1235         (WKIconDatabaseTryCopyCGImageArrayForURL):
1236         It was the only place in the code which uses BitmapImage::getCGImageArray().
1237         Call BitmapImage::framesNativeImages() instead and form the returned
1238         Vector<NativeImagePtr> build the CFArrayRef.
1239
1240         * UIProcess/WebIconDatabase.h:
1241         Include "NativeImage.h" instead of "NativeImagePtr.h".
1242         
1243         * UIProcess/ios/WKContentViewInteraction.mm:
1244         (-[WKContentView _presentationSnapshotForPreviewItemController:]):
1245         * WebProcess/Plugins/PluginView.cpp:
1246         (WebKit::isAlmostSolidColor):
1247         Call BitmapImage::getCGImageRef() instead of calling BitmapImage::nativeImage().
1248
1249 2016-09-08  Zan Dobersek  <zdobersek@igalia.com>
1250
1251         Move webkit2gtk.pc.in, webkit2gtk-web-extension.pc.in files under Source/WebKit2/gtk/
1252         https://bugs.webkit.org/show_bug.cgi?id=161703
1253
1254         Reviewed by Carlos Garcia Campos.
1255
1256         Move the pkg-config input files that are specific to the GTK+ port
1257         under the Source/WebKit2/gtk/ directory. Build rules are updated
1258         accordingly.
1259
1260         * PlatformGTK.cmake:
1261         * gtk/webkit2gtk-web-extension.pc.in: Renamed from Source/WebKit2/webkit2gtk-web-extension.pc.in.
1262         * gtk/webkit2gtk.pc.in: Renamed from Source/WebKit2/webkit2gtk.pc.in.
1263
1264 2016-09-07  Joseph Pecoraro  <pecoraro@apple.com>
1265
1266         [Mac] Address some clang static analyzer warnings in WebKit
1267         https://bugs.webkit.org/show_bug.cgi?id=161597
1268
1269         Reviewed by Darin Adler.
1270
1271         * UIProcess/Cocoa/WebVideoFullscreenManagerProxy.mm:
1272         (-[WKLayerHostView makeBackingLayer]):
1273         * UIProcess/mac/WKSharingServicePickerDelegate.mm:
1274         (-[WKSharingServicePickerDelegate sharingServicePicker:sharingServicesForItems:mask:proposedSharingServices:]):
1275         * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm:
1276         (-[WKDOMRange rangeByExpandingToWordBoundaryByCharacters:inDirection:]):
1277         Address leaks caught by the static analyzer.
1278
1279 2016-09-07  Zan Dobersek  <zdobersek@igalia.com>
1280
1281         [GTK] Remove stale WebSoupRequestManager headers
1282         https://bugs.webkit.org/show_bug.cgi?id=161691
1283
1284         Reviewed by Sergio Villar Senin.
1285
1286         WebSoupRequestManager, WebSoupRequestManagerProxy and WebSoupRequestManagerClient
1287         classes were used to implement custom URI scheme support for Soup. This API and
1288         the implementations of these classes were removed in r174584, but curiously the
1289         headers went unnoticed. This patch removes them, as well as the
1290         WebSoupRequestManagerProxy forwarding declaration in WKAPICastSoup.h.
1291
1292         * UIProcess/API/C/soup/WKAPICastSoup.h:
1293         * UIProcess/soup/WebSoupRequestManagerClient.h: Removed.
1294         * UIProcess/soup/WebSoupRequestManagerProxy.h: Removed.
1295         (WebKit::WebSoupRequestManagerProxy::registeredURISchemes): Deleted.
1296         * WebProcess/soup/WebSoupRequestManager.h: Removed.
1297
1298 2016-09-07  Simon Fraser  <simon.fraser@apple.com>
1299
1300         Enable the <meter> element on iOS
1301         https://bugs.webkit.org/show_bug.cgi?id=161714
1302         rdar://problem/8978410
1303
1304         Reviewed by Tim Horton.
1305
1306         Define ENABLE_METER_ELEMENT unconditionally now.
1307
1308         * Configurations/FeatureDefines.xcconfig:
1309
1310 2016-09-07  Dan Bernstein  <mitz@apple.com>
1311
1312         [Mac] .tbd files for the shims end up installed when building with GENERATE_TEXT_BASED_STUBS=YES
1313         https://bugs.webkit.org/show_bug.cgi?id=161722
1314
1315         Reviewed by Anders Carlsson.
1316
1317         * Configurations/Shim.xcconfig: Don’t install the shims. The Copy Shims build phase in the
1318           WebKit target will copy them into place without bringing their .tbd files along.
1319
1320 2016-09-07  Mark Lam  <mark.lam@apple.com>
1321
1322         Add CatchScope and force all exception checks to be via ThrowScope or CatchScope.
1323         https://bugs.webkit.org/show_bug.cgi?id=161498
1324
1325         Reviewed by Geoffrey Garen.
1326
1327         * WebProcess/Plugins/Netscape/NPJSObject.cpp:
1328         (WebKit::NPJSObject::hasMethod):
1329         (WebKit::NPJSObject::hasProperty):
1330         (WebKit::NPJSObject::getProperty):
1331         (WebKit::NPJSObject::setProperty):
1332         (WebKit::NPJSObject::removeProperty):
1333         (WebKit::NPJSObject::construct):
1334         (WebKit::NPJSObject::invoke):
1335
1336 2016-09-07  Konstantin Tokarev  <annulen@yandex.ru>
1337
1338         [GTK] Make inspection of Inspector conditional on DEVELOPER_MODE
1339         https://bugs.webkit.org/show_bug.cgi?id=161702
1340
1341         Reviewed by Michael Catanzaro.
1342
1343         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
1344         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1345
1346 2016-09-07  Dan Bernstein  <mitz@apple.com>
1347
1348         [Cocoa] Update availability attributes per the macOS Sierra and iOS 10 GM seeds
1349         https://bugs.webkit.org/show_bug.cgi?id=161704
1350
1351         Reviewed by Anders Carlsson.
1352
1353         * Shared/API/Cocoa/_WKHitTestResult.h:
1354         * UIProcess/API/Cocoa/WKErrorPrivate.h:
1355         * UIProcess/API/Cocoa/WKFrameInfoPrivate.h:
1356         * UIProcess/API/Cocoa/WKMenuItemIdentifiersPrivate.h:
1357         * UIProcess/API/Cocoa/WKNavigationDelegatePrivate.h:
1358         * UIProcess/API/Cocoa/WKOpenPanelParameters.h:
1359         * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
1360         * UIProcess/API/Cocoa/WKPreviewActionItem.h:
1361         * UIProcess/API/Cocoa/WKPreviewActionItemIdentifiers.h:
1362         * UIProcess/API/Cocoa/WKPreviewElementInfo.h:
1363         * UIProcess/API/Cocoa/WKProcessPoolPrivate.h:
1364         * UIProcess/API/Cocoa/WKUIDelegate.h:
1365         * UIProcess/API/Cocoa/WKUIDelegatePrivate.h:
1366         * UIProcess/API/Cocoa/WKUserContentControllerPrivate.h:
1367         * UIProcess/API/Cocoa/WKUserScriptPrivate.h:
1368         * UIProcess/API/Cocoa/WKWebView.h:
1369         * UIProcess/API/Cocoa/WKWebViewConfiguration.h:
1370         * UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:
1371         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
1372         * UIProcess/API/Cocoa/WKWebsiteDataRecordPrivate.h:
1373         * UIProcess/API/Cocoa/WKWebsiteDataStorePrivate.h:
1374         * UIProcess/API/Cocoa/_WKActivatedElementInfo.h:
1375         * UIProcess/API/Cocoa/_WKAutomationSession.h:
1376         * UIProcess/API/Cocoa/_WKContextMenuElementInfo.h:
1377         * UIProcess/API/Cocoa/_WKElementAction.h:
1378         * UIProcess/API/Cocoa/_WKExperimentalFeature.h:
1379         * UIProcess/API/Cocoa/_WKFormInputSession.h:
1380         * UIProcess/API/Cocoa/_WKInputDelegate.h:
1381         * UIProcess/API/Cocoa/_WKProcessPoolConfiguration.h:
1382         * UIProcess/API/Cocoa/_WKUserContentExtensionStore.h:
1383         * UIProcess/API/Cocoa/_WKUserContentWorld.h:
1384         * UIProcess/API/Cocoa/_WKUserInitiatedAction.h:
1385         * UIProcess/API/Cocoa/_WKUserStyleSheet.h:
1386         * UIProcess/API/Cocoa/_WKWebsiteDataSize.h:
1387         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFormDelegatePrivate.h:
1388         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.h:
1389         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorld.h:
1390
1391 2016-09-07  Michael Catanzaro  <mcatanzaro@igalia.com>
1392
1393         [EFL] Switch to ENABLE_NETWORK_CACHE
1394         https://bugs.webkit.org/show_bug.cgi?id=152676
1395
1396         Reviewed by Alex Christensen.
1397
1398         Nowadays GTK+ always uses the network cache, and never the soup cache. Remove support for
1399         using the soup cache, and switch the EFL port to use network cache.
1400
1401         * NetworkProcess/cache/NetworkCacheBlobStorage.cpp:
1402         (WebKit::NetworkCache::BlobStorage::add): Check return value of link to placate
1403         -Werror=unused-result on EFL builder
1404         * NetworkProcess/efl/NetworkProcessMainEfl.cpp:
1405         * NetworkProcess/soup/NetworkProcessSoup.cpp:
1406         (WebKit::getCacheDiskFreeSize):
1407         (WebKit::NetworkProcess::platformInitializeNetworkProcess):
1408         (WebKit::NetworkProcess::platformSetCacheModel):
1409         (WebKit::NetworkProcess::clearDiskCache):
1410         * PlatformEfl.cmake: Add files to build.
1411         * UIProcess/API/efl/APIWebsiteDataStoreEfl.cpp:
1412         (API::WebsiteDataStore::defaultNetworkCacheDirectory): Use a saner location.
1413         * UIProcess/API/gtk/APIWebsiteDataStoreGtk.cpp:
1414         (API::WebsiteDataStore::defaultNetworkCacheDirectory):
1415         * UIProcess/API/gtk/WebKitPrivate.h:
1416         * UIProcess/soup/WebProcessPoolSoup.cpp:
1417         (WebKit::WebProcessPool::platformInitializeNetworkProcess):
1418         * WebProcess/efl/WebProcessMainEfl.cpp:
1419         * config.h:
1420
1421 2016-09-07  Youenn Fablet  <youenn@apple.com>
1422
1423         [Streams API] Separate compile flag for ReadableStream and WritableStream
1424         https://bugs.webkit.org/show_bug.cgi?id=161044
1425
1426         Reviewed by Alex Christensen.
1427
1428         Moving from STREAMS_API to READABLE_STREAM_API and WRITABLE_STREAM_API compilation flags.
1429
1430         * Configurations/FeatureDefines.xcconfig:
1431
1432 2016-09-07  Emanuele Aina  <emanuele.aina@collabora.com>
1433
1434         [GTK] Clarify frame callbacks behaviour in Wayland compositor
1435         https://bugs.webkit.org/show_bug.cgi?id=161683
1436
1437         Reviewed by Carlos Garcia Campos.
1438
1439         The way we fire frame callbacks in the nested Wayland compositor can
1440         be puzzling to developers expecting Wayland semantics, but since we
1441         have our own mechanism to handle synchronization we don't care much
1442         about them. Add a comment to avoid surprised Wayland developers.
1443
1444         * UIProcess/gtk/WaylandCompositor.cpp:
1445         (WebKit::WaylandCompositor::Surface::commit):
1446
1447 2016-09-07  Csaba Osztrogonác  <ossy@webkit.org>
1448
1449         URTBF after r205369, just for fun.
1450
1451         * PlatformMac.cmake: Added new files.
1452
1453 2016-09-07  Carlos Garcia Campos  <cgarcia@igalia.com>
1454
1455         [GTK] Remove unused GObject DOM unstable API
1456         https://bugs.webkit.org/show_bug.cgi?id=161440
1457
1458         Reviewed by Philippe Normand.
1459
1460         Remove unstable GObject DOM API now that we no longer auto-generate the bindings.
1461
1462         * PlatformGTK.cmake:
1463         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAnimatable.cpp: Removed.
1464         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAnimatable.h: Removed.
1465         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAnimationEffect.cpp: Removed.
1466         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAnimationEffect.h: Removed.
1467         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAnimationEffectPrivate.h: Removed.
1468         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAnimationTimeline.cpp: Removed.
1469         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAnimationTimeline.h: Removed.
1470         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAnimationTimelinePrivate.h: Removed.
1471         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttr.cpp:
1472         (webkit_dom_attr_get_property):
1473         (webkit_dom_attr_class_init):
1474         (webkit_dom_attr_get_prefix): Deleted.
1475         (webkit_dom_attr_get_local_name): Deleted.
1476         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttrUnstable.h: Removed.
1477         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAudioTrack.cpp: Removed.
1478         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAudioTrack.h: Removed.
1479         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAudioTrackList.cpp: Removed.
1480         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAudioTrackList.h: Removed.
1481         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAudioTrackListPrivate.h: Removed.
1482         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAudioTrackPrivate.h: Removed.
1483         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBarProp.cpp: Removed.
1484         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBarProp.h: Removed.
1485         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBarPropPrivate.h: Removed.
1486         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBatteryManager.cpp: Removed.
1487         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBatteryManager.h: Removed.
1488         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBatteryManagerPrivate.h: Removed.
1489         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlob.cpp:
1490         (webkit_dom_blob_get_property):
1491         (webkit_dom_blob_class_init):
1492         (webkit_dom_blob_get_size):
1493         (webkit_dom_blob_init): Deleted.
1494         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlobUnstable.h: Removed.
1495         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRule.cpp:
1496         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRuleUnstable.h: Removed.
1497         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterData.cpp:
1498         (webkit_dom_character_data_get_property):
1499         (webkit_dom_character_data_class_init):
1500         (webkit_dom_character_data_get_length):
1501         (webkit_dom_character_data_set_property): Deleted.
1502         (webkit_dom_character_data_substring_data): Deleted.
1503         (webkit_dom_character_data_append_data): Deleted.
1504         (webkit_dom_character_data_insert_data): Deleted.
1505         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterDataUnstable.h: Removed.
1506         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMApplicationCache.cpp: Removed.
1507         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMApplicationCache.h: Removed.
1508         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMApplicationCachePrivate.h: Removed.
1509         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMCSSNamespace.cpp: Removed.
1510         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMCSSNamespace.h: Removed.
1511         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMCSSNamespacePrivate.h: Removed.
1512         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMMimeType.cpp: Removed.
1513         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMMimeType.h: Removed.
1514         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMMimeTypeArray.cpp: Removed.
1515         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMMimeTypeArray.h: Removed.
1516         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMMimeTypeArrayPrivate.h: Removed.
1517         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMMimeTypePrivate.h: Removed.
1518         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMNamedFlowCollection.cpp: Removed.
1519         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMNamedFlowCollection.h: Removed.
1520         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMNamedFlowCollectionPrivate.h: Removed.
1521         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMPlugin.cpp: Removed.
1522         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMPlugin.h: Removed.
1523         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMPluginArray.cpp: Removed.
1524         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMPluginArray.h: Removed.
1525         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMPluginArrayPrivate.h: Removed.
1526         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMPluginPrivate.h: Removed.
1527         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMStringList.cpp: Removed.
1528         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMStringList.h: Removed.
1529         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMStringListPrivate.h: Removed.
1530         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMStringMap.cpp: Removed.
1531         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMStringMap.h: Removed.
1532         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMStringMapPrivate.h: Removed.
1533         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.h:
1534         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindowSpeechSynthesis.cpp: Removed.
1535         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindowSpeechSynthesis.h: Removed.
1536         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDataCue.cpp: Removed.
1537         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDataCue.h: Removed.
1538         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDataCuePrivate.h: Removed.
1539         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDatabase.cpp: Removed.
1540         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDatabase.h: Removed.
1541         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDatabasePrivate.h: Removed.
1542         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentAnimation.cpp: Removed.
1543         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentAnimation.h: Removed.
1544         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentTimeline.cpp: Removed.
1545         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentTimeline.h: Removed.
1546         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentTimelinePrivate.h: Removed.
1547         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.cpp:
1548         (webkit_dom_document_type_get_name): Deleted.
1549         (webkit_dom_document_type_get_entities): Deleted.
1550         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentTypeUnstable.h: Removed.
1551         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEvent.cpp:
1552         (webkit_dom_event_get_property):
1553         (webkit_dom_event_class_init):
1554         (webkit_dom_event_init): Deleted.
1555         (webkit_dom_event_stop_propagation): Deleted.
1556         (webkit_dom_event_get_bubbles): Deleted.
1557         (webkit_dom_event_get_cancelable): Deleted.
1558         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventUnstable.h: Removed.
1559         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFile.cpp:
1560         (webkit_dom_file_get_property):
1561         (webkit_dom_file_class_init):
1562         (webkit_dom_file_get_name):
1563         (webkit_dom_file_init): Deleted.
1564         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFileUnstable.h: Removed.
1565         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMGamepad.cpp: Removed.
1566         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMGamepad.h: Removed.
1567         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMGamepadList.cpp: Removed.
1568         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMGamepadList.h: Removed.
1569         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMGeolocation.cpp: Removed.
1570         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMGeolocation.h: Removed.
1571         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMGeolocationPrivate.h: Removed.
1572         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElement.cpp:
1573         (webkit_dom_html_anchor_element_set_property):
1574         (webkit_dom_html_anchor_element_get_property):
1575         (webkit_dom_html_anchor_element_class_init):
1576         (webkit_dom_html_anchor_element_init): Deleted.
1577         (webkit_dom_html_anchor_element_get_charset): Deleted.
1578         (webkit_dom_html_anchor_element_set_charset): Deleted.
1579         (webkit_dom_html_anchor_element_get_coords): Deleted.
1580         (webkit_dom_html_anchor_element_set_coords): Deleted.
1581         (webkit_dom_html_anchor_element_get_target): Deleted.
1582         (webkit_dom_html_anchor_element_set_target): Deleted.
1583         (webkit_dom_html_anchor_element_get_type_attr): Deleted.
1584         (webkit_dom_html_anchor_element_set_type_attr): Deleted.
1585         (webkit_dom_html_anchor_element_set_href): Deleted.
1586         (webkit_dom_html_anchor_element_get_protocol): Deleted.
1587         (webkit_dom_html_anchor_element_set_protocol): Deleted.
1588         (webkit_dom_html_anchor_element_set_hash): Deleted.
1589         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElement.h:
1590         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElementUnstable.h: Removed.
1591         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElement.cpp:
1592         (webkit_dom_html_area_element_set_property):
1593         (webkit_dom_html_area_element_get_property):
1594         (webkit_dom_html_area_element_class_init):
1595         (webkit_dom_html_area_element_init): Deleted.
1596         (webkit_dom_html_area_element_get_alt): Deleted.
1597         (webkit_dom_html_area_element_set_alt): Deleted.
1598         (webkit_dom_html_area_element_get_coords): Deleted.
1599         (webkit_dom_html_area_element_set_coords): Deleted.
1600         (webkit_dom_html_area_element_get_hostname): Deleted.
1601         (webkit_dom_html_area_element_set_hostname): Deleted.
1602         (webkit_dom_html_area_element_get_port): Deleted.
1603         (webkit_dom_html_area_element_set_port): Deleted.
1604         (webkit_dom_html_area_element_get_pathname): Deleted.
1605         (webkit_dom_html_area_element_get_hash): Deleted.
1606         (webkit_dom_html_area_element_set_hash): Deleted.
1607         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElement.h:
1608         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElementUnstable.h: Removed.
1609         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAudioElement.cpp: Removed.
1610         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAudioElement.h: Removed.
1611         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAudioElementPrivate.h: Removed.
1612         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElement.cpp:
1613         (webkit_dom_html_button_element_set_property):
1614         (webkit_dom_html_button_element_get_property):
1615         (webkit_dom_html_button_element_class_init):
1616         (webkit_dom_html_button_element_get_will_validate):
1617         (webkit_dom_html_button_element_get_autofocus): Deleted.
1618         (webkit_dom_html_button_element_set_autofocus): Deleted.
1619         (webkit_dom_html_button_element_get_disabled): Deleted.
1620         (webkit_dom_html_button_element_set_disabled): Deleted.
1621         (webkit_dom_html_button_element_get_form): Deleted.
1622         (webkit_dom_html_button_element_get_button_type): Deleted.
1623         (webkit_dom_html_button_element_set_button_type): Deleted.
1624         (webkit_dom_html_button_element_get_name): Deleted.
1625         (webkit_dom_html_button_element_set_value): Deleted.
1626         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElementUnstable.h: Removed.
1627         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDetailsElement.cpp: Removed.
1628         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDetailsElement.h: Removed.
1629         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDetailsElementPrivate.h: Removed.
1630         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElement.cpp:
1631         (webkit_dom_html_field_set_element_get_property):
1632         (webkit_dom_html_field_set_element_class_init):
1633         (webkit_dom_html_field_set_element_get_form):
1634         (webkit_dom_html_field_set_element_init): Deleted.
1635         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElementUnstable.h: Removed.
1636         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.cpp:
1637         (webkit_dom_html_form_element_set_property):
1638         (webkit_dom_html_form_element_get_property):
1639         (webkit_dom_html_form_element_class_init):
1640         (webkit_dom_html_form_element_get_length):
1641         (webkit_dom_html_form_element_submit): Deleted.
1642         (webkit_dom_html_form_element_reset): Deleted.
1643         (webkit_dom_html_form_element_get_action): Deleted.
1644         (webkit_dom_html_form_element_set_action): Deleted.
1645         (webkit_dom_html_form_element_get_enctype): Deleted.
1646         (webkit_dom_html_form_element_set_encoding): Deleted.
1647         (webkit_dom_html_form_element_get_method): Deleted.
1648         (webkit_dom_html_form_element_set_method): Deleted.
1649         (webkit_dom_html_form_element_set_target): Deleted.
1650         (webkit_dom_html_form_element_get_elements): Deleted.
1651         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElementUnstable.h: Removed.
1652         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElement.cpp:
1653         (webkit_dom_html_html_element_set_property):
1654         (webkit_dom_html_html_element_get_property):
1655         (webkit_dom_html_html_element_class_init):
1656         (webkit_dom_html_html_element_set_version):
1657         (webkit_dom_html_html_element_get_version): Deleted.
1658         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElementUnstable.h: Removed.
1659         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElement.cpp:
1660         (webkit_dom_html_iframe_element_set_property):
1661         (webkit_dom_html_iframe_element_get_property):
1662         (webkit_dom_html_iframe_element_class_init):
1663         (webkit_dom_html_iframe_element_init): Deleted.
1664         (webkit_dom_html_iframe_element_set_src): Deleted.
1665         (webkit_dom_html_iframe_element_get_width): Deleted.
1666         (webkit_dom_html_iframe_element_set_width): Deleted.
1667         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElementUnstable.h: Removed.
1668         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElement.cpp:
1669         (webkit_dom_html_image_element_set_property):
1670         (webkit_dom_html_image_element_get_property):
1671         (webkit_dom_html_image_element_class_init):
1672         (webkit_dom_html_image_element_set_long_desc): Deleted.
1673         (webkit_dom_html_image_element_get_src): Deleted.
1674         (webkit_dom_html_image_element_set_src): Deleted.
1675         (webkit_dom_html_image_element_get_natural_height): Deleted.
1676         (webkit_dom_html_image_element_get_natural_width): Deleted.
1677         (webkit_dom_html_image_element_get_x): Deleted.
1678         (webkit_dom_html_image_element_get_y): Deleted.
1679         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElementUnstable.h: Removed.
1680         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp:
1681         (webkit_dom_html_input_element_set_property):
1682         (webkit_dom_html_input_element_get_property):
1683         (webkit_dom_html_input_element_class_init):
1684         (webkit_dom_html_input_element_set_capture_type):
1685         (webkit_dom_html_input_element_init): Deleted.
1686         (webkit_dom_html_input_element_select): Deleted.
1687         (webkit_dom_html_input_element_get_accept): Deleted.
1688         (webkit_dom_html_input_element_set_accept): Deleted.
1689         (webkit_dom_html_input_element_get_alt): Deleted.
1690         (webkit_dom_html_input_element_set_alt): Deleted.
1691         (webkit_dom_html_input_element_get_default_checked): Deleted.
1692         (webkit_dom_html_input_element_set_default_checked): Deleted.
1693         (webkit_dom_html_input_element_get_checked): Deleted.
1694         (webkit_dom_html_input_element_set_checked): Deleted.
1695         (webkit_dom_html_input_element_get_disabled): Deleted.
1696         (webkit_dom_html_input_element_get_files): Deleted.
1697         (webkit_dom_html_input_element_set_files): Deleted.
1698         (webkit_dom_html_input_element_set_height): Deleted.
1699         (webkit_dom_html_input_element_get_indeterminate): Deleted.
1700         (webkit_dom_html_input_element_get_max_length): Deleted.
1701         (webkit_dom_html_input_element_set_max_length): Deleted.
1702         (webkit_dom_html_input_element_get_name): Deleted.
1703         (webkit_dom_html_input_element_set_name): Deleted.
1704         (webkit_dom_html_input_element_get_size): Deleted.
1705         (webkit_dom_html_input_element_set_size): Deleted.
1706         (webkit_dom_html_input_element_get_src): Deleted.
1707         (webkit_dom_html_input_element_set_input_type): Deleted.
1708         (webkit_dom_html_input_element_get_default_value): Deleted.
1709         (webkit_dom_html_input_element_set_default_value): Deleted.
1710         (webkit_dom_html_input_element_set_value): Deleted.
1711         (webkit_dom_html_input_element_get_width): Deleted.
1712         (webkit_dom_html_input_element_set_width): Deleted.
1713         (webkit_dom_html_input_element_get_will_validate): Deleted.
1714         (webkit_dom_html_input_element_get_align): Deleted.
1715         (webkit_dom_html_input_element_set_align): Deleted.
1716         (webkit_dom_html_input_element_get_use_map): Deleted.
1717         (webkit_dom_html_input_element_set_use_map): Deleted.
1718         (webkit_dom_html_input_element_get_capture_type): Deleted.
1719         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.h:
1720         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElementUnstable.h: Removed.
1721         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLKeygenElement.cpp: Removed.
1722         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLKeygenElement.h: Removed.
1723         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLKeygenElementPrivate.h: Removed.
1724         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElement.cpp:
1725         (webkit_dom_html_label_element_get_property):
1726         (webkit_dom_html_label_element_class_init):
1727         (webkit_dom_html_label_element_init): Deleted.
1728         (webkit_dom_html_label_element_get_form): Deleted.
1729         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElementUnstable.h: Removed.
1730         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.cpp:
1731         (webkit_dom_html_link_element_set_property):
1732         (webkit_dom_html_link_element_get_property):
1733         (webkit_dom_html_link_element_class_init):
1734         (webkit_dom_html_link_element_get_disabled): Deleted.
1735         (webkit_dom_html_link_element_set_disabled): Deleted.
1736         (webkit_dom_html_link_element_get_charset): Deleted.
1737         (webkit_dom_html_link_element_set_charset): Deleted.
1738         (webkit_dom_html_link_element_get_href): Deleted.
1739         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.h:
1740         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElementUnstable.h: Removed.
1741         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElement.cpp:
1742         (webkit_dom_html_marquee_element_class_init):
1743         (webkit_dom_html_marquee_element_stop):
1744         (webkit_dom_html_marquee_element_init): Deleted.
1745         (webkit_dom_html_marquee_element_start): Deleted.
1746         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElementUnstable.h: Removed.
1747         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMediaElement.cpp: Removed.
1748         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMediaElement.h: Removed.
1749         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMediaElementPrivate.h: Removed.
1750         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElement.cpp:
1751         (webkit_dom_html_o_list_element_set_property):
1752         (webkit_dom_html_o_list_element_get_property):
1753         (webkit_dom_html_o_list_element_class_init):
1754         (webkit_dom_html_o_list_element_init): Deleted.
1755         (webkit_dom_html_o_list_element_get_compact): Deleted.
1756         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElementUnstable.h: Removed.
1757         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElement.cpp:
1758         (webkit_dom_html_object_element_get_property):
1759         (webkit_dom_html_object_element_class_init):
1760         (webkit_dom_html_object_element_set_property): Deleted.
1761         (webkit_dom_html_object_element_get_form): Deleted.
1762         (webkit_dom_html_object_element_get_code): Deleted.
1763         (webkit_dom_html_object_element_set_code): Deleted.
1764         (webkit_dom_html_object_element_get_align): Deleted.
1765         (webkit_dom_html_object_element_set_align): Deleted.
1766         (webkit_dom_html_object_element_get_archive): Deleted.
1767         (webkit_dom_html_object_element_set_archive): Deleted.
1768         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElementUnstable.h: Removed.
1769         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollection.cpp:
1770         (webkit_dom_html_options_collection_get_selected_index): Deleted.
1771         (webkit_dom_html_options_collection_set_selected_index): Deleted.
1772         (webkit_dom_html_options_collection_get_length): Deleted.
1773         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollectionUnstable.h: Removed.
1774         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPrivate.cpp:
1775         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElement.cpp:
1776         (webkit_dom_html_script_element_set_property):
1777         (webkit_dom_html_script_element_get_property):
1778         (webkit_dom_html_script_element_class_init):
1779         (webkit_dom_html_script_element_set_type_attr):
1780         (webkit_dom_html_script_element_init): Deleted.
1781         (webkit_dom_html_script_element_get_html_for): Deleted.
1782         (webkit_dom_html_script_element_set_html_for): Deleted.
1783         (webkit_dom_html_script_element_get_event): Deleted.
1784         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElement.h:
1785         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElementUnstable.h: Removed.
1786         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.cpp:
1787         (webkit_dom_html_select_element_set_property):
1788         (webkit_dom_html_select_element_get_property):
1789         (webkit_dom_html_select_element_class_init):
1790         (webkit_dom_html_select_element_get_will_validate):
1791         (webkit_dom_html_select_element_named_item): Deleted.
1792         (webkit_dom_html_select_element_get_autofocus): Deleted.
1793         (webkit_dom_html_select_element_set_autofocus): Deleted.
1794         (webkit_dom_html_select_element_get_disabled): Deleted.
1795         (webkit_dom_html_select_element_set_disabled): Deleted.
1796         (webkit_dom_html_select_element_get_form): Deleted.
1797         (webkit_dom_html_select_element_set_size): Deleted.
1798         (webkit_dom_html_select_element_get_select_type): Deleted.
1799         (webkit_dom_html_select_element_get_options): Deleted.
1800         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElementUnstable.h: Removed.
1801         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElement.cpp:
1802         (webkit_dom_html_style_element_set_property):
1803         (webkit_dom_html_style_element_get_property):
1804         (webkit_dom_html_style_element_class_init):
1805         (webkit_dom_html_style_element_get_sheet):
1806         (webkit_dom_html_style_element_get_disabled): Deleted.
1807         (webkit_dom_html_style_element_set_disabled): Deleted.
1808         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElementUnstable.h: Removed.
1809         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElement.cpp:
1810         (webkit_dom_html_table_element_set_property):
1811         (webkit_dom_html_table_element_get_property):
1812         (webkit_dom_html_table_element_class_init):
1813         (webkit_dom_html_table_element_insert_row): Deleted.
1814         (webkit_dom_html_table_element_set_summary): Deleted.
1815         (webkit_dom_html_table_element_get_width): Deleted.
1816         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElementUnstable.h: Removed.
1817         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.cpp:
1818         (webkit_dom_html_text_area_element_set_property):
1819         (webkit_dom_html_text_area_element_get_property):
1820         (webkit_dom_html_text_area_element_class_init):
1821         (webkit_dom_html_text_area_element_init): Deleted.
1822         (webkit_dom_html_text_area_element_set_selection_range): Deleted.
1823         (webkit_dom_html_text_area_element_set_autofocus): Deleted.
1824         (webkit_dom_html_text_area_element_get_disabled): Deleted.
1825         (webkit_dom_html_text_area_element_get_form): Deleted.
1826         (webkit_dom_html_text_area_element_get_name): Deleted.
1827         (webkit_dom_html_text_area_element_get_rows): Deleted.
1828         (webkit_dom_html_text_area_element_set_rows): Deleted.
1829         (webkit_dom_html_text_area_element_get_cols): Deleted.
1830         (webkit_dom_html_text_area_element_set_cols): Deleted.
1831         (webkit_dom_html_text_area_element_get_area_type): Deleted.
1832         (webkit_dom_html_text_area_element_get_default_value): Deleted.
1833         (webkit_dom_html_text_area_element_get_value): Deleted.
1834         (webkit_dom_html_text_area_element_set_value): Deleted.
1835         (webkit_dom_html_text_area_element_get_will_validate): Deleted.
1836         (webkit_dom_html_text_area_element_get_selection_start): Deleted.
1837         (webkit_dom_html_text_area_element_set_selection_start): Deleted.
1838         (webkit_dom_html_text_area_element_get_selection_end): Deleted.
1839         (webkit_dom_html_text_area_element_set_selection_end): Deleted.
1840         (webkit_dom_html_text_area_element_is_edited): Deleted.
1841         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElementUnstable.h: Removed.
1842         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLVideoElement.cpp: Removed.
1843         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLVideoElement.h: Removed.
1844         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLVideoElementPrivate.h: Removed.
1845         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHistory.cpp: Removed.
1846         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHistory.h: Removed.
1847         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHistoryPrivate.h: Removed.
1848         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyframeEffect.cpp: Removed.
1849         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyframeEffect.h: Removed.
1850         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyframeEffectPrivate.h: Removed.
1851         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMLocation.cpp: Removed.
1852         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMLocation.h: Removed.
1853         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMLocationPrivate.h: Removed.
1854         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaController.cpp: Removed.
1855         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaController.h: Removed.
1856         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaControllerPrivate.h: Removed.
1857         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaDevices.cpp: Removed.
1858         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaDevices.h: Removed.
1859         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaDevicesPrivate.h: Removed.
1860         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaError.cpp: Removed.
1861         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaError.h: Removed.
1862         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaErrorPrivate.h: Removed.
1863         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaQueryList.cpp: Removed.
1864         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaQueryList.h: Removed.
1865         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaQueryListPrivate.h: Removed.
1866         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaTrackSupportedConstraints.cpp: Removed.
1867         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaTrackSupportedConstraints.h: Removed.
1868         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaTrackSupportedConstraintsPrivate.h: Removed.
1869         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMessagePort.cpp: Removed.
1870         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMessagePort.h: Removed.
1871         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMessagePortPrivate.h: Removed.
1872         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEvent.cpp:
1873         (webkit_dom_mouse_event_get_property):
1874         (webkit_dom_mouse_event_class_init):
1875         (webkit_dom_mouse_event_get_y): Deleted.
1876         (webkit_dom_mouse_event_get_from_element): Deleted.
1877         (webkit_dom_mouse_event_get_to_element): Deleted.
1878         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEventUnstable.h: Removed.
1879         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNavigator.cpp: Removed.
1880         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNavigator.h: Removed.
1881         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNavigatorMediaDevices.cpp: Removed.
1882         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNavigatorMediaDevices.h: Removed.
1883         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNavigatorPrivate.h: Removed.
1884         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNode.cpp:
1885         (webkit_dom_node_get_property):
1886         (webkit_dom_node_class_init):
1887         (webkit_dom_node_init): Deleted.
1888         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeUnstable.h: Removed.
1889         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformance.cpp: Removed.
1890         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformance.h: Removed.
1891         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformanceEntry.cpp: Removed.
1892         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformanceEntry.h: Removed.
1893         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformanceEntryPrivate.h: Removed.
1894         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformanceNavigation.cpp: Removed.
1895         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformanceNavigation.h: Removed.
1896         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformanceNavigationPrivate.h: Removed.
1897         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformancePrivate.h: Removed.
1898         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformanceTiming.cpp: Removed.
1899         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformanceTiming.h: Removed.
1900         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformanceTimingPrivate.h: Removed.
1901         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivate.cpp:
1902         (WebKit::wrap): Deleted.
1903         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivate.h:
1904         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMScreen.cpp: Removed.
1905         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMScreen.h: Removed.
1906         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMScreenPrivate.h: Removed.
1907         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesis.cpp: Removed.
1908         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesis.h: Removed.
1909         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisEvent.cpp: Removed.
1910         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisEvent.h: Removed.
1911         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisEventPrivate.h: Removed.
1912         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisPrivate.h: Removed.
1913         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisUtterance.cpp: Removed.
1914         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisUtterance.h: Removed.
1915         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisUtterancePrivate.h: Removed.
1916         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisVoice.cpp: Removed.
1917         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisVoice.h: Removed.
1918         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisVoicePrivate.h: Removed.
1919         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStorage.cpp: Removed.
1920         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStorage.h: Removed.
1921         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStorageInfo.cpp: Removed.
1922         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStorageInfo.h: Removed.
1923         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStoragePrivate.h: Removed.
1924         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStorageQuota.cpp: Removed.
1925         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStorageQuota.h: Removed.
1926         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleMedia.cpp: Removed.
1927         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleMedia.h: Removed.
1928         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleMediaPrivate.h: Removed.
1929         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrack.cpp: Removed.
1930         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrack.h: Removed.
1931         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackCue.cpp: Removed.
1932         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackCue.h: Removed.
1933         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackCueList.cpp: Removed.
1934         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackCueList.h: Removed.
1935         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackCueListPrivate.h: Removed.
1936         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackCuePrivate.h: Removed.
1937         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackList.cpp: Removed.
1938         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackList.h: Removed.
1939         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackListPrivate.h: Removed.
1940         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackPrivate.h: Removed.
1941         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTimeRanges.cpp: Removed.
1942         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTimeRanges.h: Removed.
1943         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTimeRangesPrivate.h: Removed.
1944         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTouch.cpp: Removed.
1945         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTouch.h: Removed.
1946         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTouchPrivate.h: Removed.
1947         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTrackEvent.cpp: Removed.
1948         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTrackEvent.h: Removed.
1949         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTrackEventPrivate.h: Removed.
1950         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.cpp:
1951         (webkit_dom_ui_event_get_property):
1952         (webkit_dom_ui_event_class_init):
1953         (webkit_dom_ui_event_get_page_y):
1954         (webkit_dom_ui_event_init): Deleted.
1955         (webkit_dom_ui_event_init_ui_event): Deleted.
1956         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEventUnstable.h: Removed.
1957         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUserMessageHandler.cpp: Removed.
1958         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUserMessageHandler.h: Removed.
1959         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUserMessageHandlerPrivate.h: Removed.
1960         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUserMessageHandlersNamespace.cpp: Removed.
1961         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUserMessageHandlersNamespace.h: Removed.
1962         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUserMessageHandlersNamespacePrivate.h: Removed.
1963         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVTTCue.cpp: Removed.
1964         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVTTCue.h: Removed.
1965         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVTTCuePrivate.h: Removed.
1966         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMValidityState.cpp: Removed.
1967         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMValidityState.h: Removed.
1968         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMValidityStatePrivate.h: Removed.
1969         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVideoPlaybackQuality.cpp: Removed.
1970         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVideoPlaybackQuality.h: Removed.
1971         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVideoPlaybackQualityPrivate.h: Removed.
1972         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVideoTrack.cpp: Removed.
1973         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVideoTrack.h: Removed.
1974         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVideoTrackList.cpp: Removed.
1975         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVideoTrackList.h: Removed.
1976         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVideoTrackListPrivate.h: Removed.
1977         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVideoTrackPrivate.h: Removed.
1978         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebAnimation.cpp: Removed.
1979         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebAnimation.h: Removed.
1980         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebAnimationPrivate.h: Removed.
1981         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebKitNamedFlow.cpp: Removed.
1982         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebKitNamedFlow.h: Removed.
1983         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebKitNamedFlowPrivate.h: Removed.
1984         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebKitNamespace.cpp: Removed.
1985         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebKitNamespace.h: Removed.
1986         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebKitNamespacePrivate.h: Removed.
1987         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebKitPoint.cpp: Removed.
1988         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebKitPoint.h: Removed.
1989         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebKitPointPrivate.h: Removed.
1990         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEvent.cpp:
1991         (webkit_dom_wheel_event_get_property):
1992         (webkit_dom_wheel_event_class_init):
1993         (webkit_dom_wheel_event_get_wheel_delta):
1994         (webkit_dom_wheel_event_init): Deleted.
1995         (webkit_dom_wheel_event_init_wheel_event): Deleted.
1996         (webkit_dom_wheel_event_get_wheel_delta_x): Deleted.
1997         (webkit_dom_wheel_event_get_wheel_delta_y): Deleted.
1998         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEventUnstable.h: Removed.
1999         * WebProcess/InjectedBundle/API/gtk/DOM/docs/webkitdomgtk-4.0-sections.txt:
2000         * WebProcess/InjectedBundle/API/gtk/DOM/webkitdomautocleanups-unstable.h: Removed.
2001         * WebProcess/InjectedBundle/API/gtk/DOM/webkitdomdefines-unstable.h: Removed.
2002
2003 2016-09-07  Carlos Garcia Campos  <cgarcia@igalia.com>
2004
2005         [GTK] Move some GObject DOM unstable API to stable
2006         https://bugs.webkit.org/show_bug.cgi?id=161681
2007
2008         Reviewed by Žan Doberšek.
2009
2010         Move unstable API currently used by applications to the stable API in preparation for removing all unused
2011         unstable API.
2012
2013         * PlatformGTK.cmake:
2014         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCustom.cpp: Removed.
2015         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCustom.h:
2016         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCustomUnstable.h:
2017         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.h:
2018         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.h:
2019         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.cpp:
2020         (webkit_dom_dom_window_get_property):
2021         (webkit_dom_dom_window_class_init):
2022         (webkit_dom_dom_window_webkit_message_handlers_post_message):
2023         (webkit_dom_dom_window_set_property): Deleted.
2024         (webkit_dom_dom_window_get_computed_style): Deleted.
2025         (webkit_dom_dom_window_capture_events): Deleted.
2026         (webkit_dom_dom_window_get_frame_element): Deleted.
2027         (webkit_dom_dom_window_get_offscreen_buffering): Deleted.
2028         (webkit_dom_dom_window_get_outer_height): Deleted.
2029         (webkit_dom_dom_window_get_outer_width): Deleted.
2030         (webkit_dom_dom_window_get_inner_height): Deleted.
2031         (webkit_dom_dom_window_get_inner_width): Deleted.
2032         (webkit_dom_dom_window_get_screen_x): Deleted.
2033         (webkit_dom_dom_window_set_status): Deleted.
2034         (webkit_dom_dom_window_get_default_status): Deleted.
2035         (webkit_dom_dom_window_get_window): Deleted.
2036         (webkit_dom_dom_window_get_frames): Deleted.
2037         (webkit_dom_dom_window_get_parent): Deleted.
2038         (webkit_dom_dom_window_get_top): Deleted.
2039         (webkit_dom_dom_window_get_document): Deleted.
2040         (webkit_dom_dom_window_get_device_pixel_ratio): Deleted.
2041         (webkit_dom_dom_window_get_orientation): Deleted.
2042         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.h:
2043         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindowUnstable.h:
2044         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.cpp:
2045         (webkit_dom_document_get_property):
2046         (webkit_dom_document_webkit_cancel_fullscreen):
2047         (webkit_dom_document_get_webkit_is_fullscreen):
2048         (webkit_dom_document_get_webkit_fullscreen_keyboard_input_allowed):
2049         (webkit_dom_document_get_webkit_current_fullscreen_element):
2050         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.h:
2051         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragment.h:
2052         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragmentUnstable.h:
2053         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentUnstable.h:
2054         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.cpp:
2055         (webkit_dom_element_webkit_request_fullscreen): Deleted.
2056         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.h:
2057         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElementUnstable.h:
2058         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.h:
2059         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElementUnstable.h:
2060         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp:
2061         (webkit_dom_html_input_element_is_edited):
2062         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.h:
2063         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.cpp:
2064         (webkit_dom_html_link_element_set_sizes):
2065         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.h:
2066         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.cpp:
2067         (webkit_dom_html_text_area_element_is_edited):
2068         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.h:
2069         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRange.h:
2070         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRangeUnstable.h:
2071         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUserMessageHandlersNamespace.cpp:
2072         (webkit_dom_user_message_handlers_namespace_get_handler):
2073         (webkit_dom_user_message_handlers_namespace_init): Deleted.
2074         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUserMessageHandlersNamespace.h:
2075         * WebProcess/InjectedBundle/API/gtk/DOM/docs/webkitdomgtk-4.0-sections.txt:
2076         * WebProcess/InjectedBundle/API/gtk/DOM/docs/webkitdomgtk-docs.sgml:
2077         * WebProcess/InjectedBundle/API/gtk/DOM/webkitdomdefines-unstable.h:
2078         * WebProcess/InjectedBundle/API/gtk/DOM/webkitdomdefines.h:
2079
2080 2016-09-06  Carlos Garcia Campos  <cgarcia@igalia.com>
2081
2082         [GTK][Threaded Compositor] Several flaky tests
2083         https://bugs.webkit.org/show_bug.cgi?id=161242
2084
2085         Reviewed by Michael Catanzaro.
2086
2087         Reset the viewport attributes on SimpleViewportController when viewport attributes change and fixed layout is
2088         not used. We were only updating the viewport attributes when fixed layout was used, but not resetting them again
2089         when it's no longer used. That caused that reference tests run after fast/fixed-layout/fixed-layout.html or
2090         compositing/fixed-with-fixed-layout.html in the same worker thread were incorrectly rendered.
2091
2092         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2093         (WebKit::WebChromeClient::dispatchViewportPropertiesDidChange): Remove ifdefs and call
2094         WebPage::viewportPropertiesDidChange() unconditionally.
2095         * WebProcess/WebPage/WebPage.cpp:
2096         (WebKit::WebPage::setSize): Pass current page viewport arguments to sendViewportAttributesChanged().
2097         (WebKit::WebPage::sendViewportAttributesChanged): It now receives the viewport arguments.
2098         (WebKit::WebPage::viewportPropertiesDidChange): Move the iOS implementation from WebPageIOS.mm and for
2099         coordinated graphics call sendViewportAttributesChanged() when fixed layout is used or reset the viewport
2100         attributes when not used in case of threaded compositor.
2101         * WebProcess/WebPage/WebPage.h:
2102         (WebKit::WebPage::viewportPropertiesDidChange): Moved out of iOS ifdef.
2103         * WebProcess/WebPage/ios/WebPageIOS.mm:
2104         (WebKit::WebPage::viewportPropertiesDidChange): Deleted.
2105
2106 2016-09-06  Carlos Garcia Campos  <cgarcia@igalia.com>
2107
2108         Unreviewed. Fix the GTK+ build after r205524.
2109
2110         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp:
2111         (webkit_dom_html_input_element_get_max_length):
2112         (webkit_dom_html_input_element_set_max_length):
2113         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.cpp:
2114         (webkit_dom_html_text_area_element_get_max_length):
2115         (webkit_dom_html_text_area_element_set_max_length):
2116
2117 2016-09-06  Daniel Bates  <dabates@apple.com>
2118
2119         [iOS] WebKit2 fails to build with iOS 10 beta SDK - "'UIWKTextInteractionAssistant' may not respond to 'selectAll:'"
2120         https://bugs.webkit.org/show_bug.cgi?id=161663
2121
2122         Reviewed by Darin Adler.
2123
2124         The UIResponderStandardEditActions extensions, including the selectAll: message, are now
2125         part of a formal protocol by the same name as of the iOS 10 beta SDK.
2126
2127         * Platform/spi/ios/UIKitSPI.h:
2128
2129 2016-09-06  Ryosuke Niwa  <rniwa@webkit.org>
2130
2131         Enable custom elements API in Safari Technology Preview
2132         https://bugs.webkit.org/show_bug.cgi?id=161518
2133
2134         Reviewed by Chris Dumez.
2135
2136         Re-enable custom elements API in Safari Technology Preview after r203296
2137         now that our implementation has caught up to the latest specification changes.
2138
2139         * Shared/WebPreferencesDefinitions.h:
2140
2141 2016-09-01  Simon Fraser  <simon.fraser@apple.com>
2142
2143         Use TemporaryChange<> to maintain m_userIsInteracting
2144         https://bugs.webkit.org/show_bug.cgi?id=161497
2145
2146         Reviewed by Tim Horton.
2147
2148         Replace some error-prone manual set/clear of m_userIsInteracting with
2149         TemporaryChange<>.
2150
2151         No behavior change.
2152
2153         * WebProcess/WebPage/WebPage.cpp:
2154         (WebKit::WebPage::mouseEvent):
2155         (WebKit::WebPage::keyEvent):
2156         (WebKit::WebPage::dispatchTouchEvent):
2157
2158 2016-09-06  Tim Horton  <timothy_horton@apple.com>
2159
2160         Remove SwipeTransitionStyle; only Overlap has ever been used
2161         https://bugs.webkit.org/show_bug.cgi?id=161617
2162
2163         Reviewed by Alex Christensen.
2164
2165         * UIProcess/mac/ViewGestureController.h:
2166         * UIProcess/mac/ViewGestureControllerMac.mm:
2167         (WebKit::ViewGestureController::beginSwipeGesture):
2168         (WebKit::ViewGestureController::handleSwipeGesture):
2169         Remove SwipeTransitionStyle::Push, and SwipeTransitionStyle itself entirely,
2170         because we've never used it and it is only supported by the Mac
2171         implementation of ViewGestureController.
2172
2173 2016-09-06  Daniel Bates  <dabates@apple.com>
2174
2175         Remove EXTERN_C from WTF
2176         https://bugs.webkit.org/show_bug.cgi?id=161090
2177
2178         Reviewed by Brent Fulgham.
2179
2180         Guard external C declarations in WTF_EXTERN_C_BEGIN, WTF_EXTERN_C_END.
2181
2182         * Platform/spi/ios/ManagedConfigurationSPI.h:
2183
2184 2016-09-06  Ryan Haddad  <ryanhaddad@apple.com>
2185
2186         Unreviewed, rolling out r205407.
2187
2188         Not the correct way to implement this functionality
2189
2190         Reverted changeset:
2191
2192         "Consult with the FrameLoaderClient about whether or not
2193         content extensions should be enabled when loading this URL."
2194         https://bugs.webkit.org/show_bug.cgi?id=161441
2195         http://trac.webkit.org/changeset/205407
2196
2197 2016-09-06  Carlos Garcia Campos  <cgarcia@igalia.com>
2198
2199         [GTK][Wayland] evince-browser-plugin prevents viewing PDFs
2200         https://bugs.webkit.org/show_bug.cgi?id=158697
2201
2202         Reviewed by Michael Catanzaro.
2203
2204         Use a different cache file for plugins depending on the current platform display. Plugins can claim to work on
2205         X11 but not on Wayland, for example, if they need XEmebed to work. That's the case of the evince browser plugin.
2206
2207         * UIProcess/Plugins/gtk/PluginInfoCache.cpp:
2208         (WebKit::cacheFilenameForCurrentDisplay):
2209         (WebKit::PluginInfoCache::PluginInfoCache):
2210
2211 2016-09-06  Carlos Garcia Campos  <cgarcia@igalia.com>
2212
2213         [Threaded Compositor] Update timer should have lower priority than tasks scheduled in compositing thread
2214         https://bugs.webkit.org/show_bug.cgi?id=161625
2215
2216         Reviewed by Sergio Villar Senin.
2217
2218         This way, if a resize is scheduled, for example, and there are pending updates, the resize will happen first,
2219         and then the updates will happen at the right size.
2220
2221         * Shared/CoordinatedGraphics/threadedcompositor/CompositingRunLoop.cpp:
2222         (WebKit::CompositingRunLoop::CompositingRunLoop): Use G_PRIORITY_HIGH_IDLE as update timer priority. The actual
2223         priority doesn't really matter as long as it's lower than G_PRIORITY_DEFAULT, because there are only two
2224         possible sources in the compositing run loop, one for the tasks scheduled, and another one for the update timer.
2225
2226 2016-09-06  Emanuele Aina  <emanuele.aina@collabora.com>
2227
2228         [GTK] glImageTargetTexture2D() is a GL function, rename accordingly
2229         https://bugs.webkit.org/show_bug.cgi?id=161622
2230
2231         Reviewed by Carlos Garcia Campos.
2232
2233         glImageTargetTexture2D() is a GL function, not EGL, using the 'egl'
2234         prefix is misleading.
2235
2236         * UIProcess/gtk/WaylandCompositor.cpp:
2237         (WebKit::WaylandCompositor::Surface::prepareTextureForPainting):
2238         (WebKit::WaylandCompositor::initializeEGL):
2239
2240 2016-09-06  Emanuele Aina  <emanuele.aina@collabora.com>
2241
2242         [GTK][EFL] Make *_PROCESS_CMD_PREFIX conditional on DEVELOPER_MODE
2243         https://bugs.webkit.org/show_bug.cgi?id=161621
2244
2245         Reviewed by Carlos Garcia Campos.
2246
2247         Instead of enabling support for the *_PROCESS_CMD_PREFIX set of
2248         environment valiables (eg. WEB_PROCESS_CMD_PREFIX) on debug builds
2249         only, enable it when DEVELOPER_MODE is enabled as it already guards
2250         similar features (eg. WEBKIT_EXEC_PATH).
2251
2252         * UIProcess/ChildProcessProxy.cpp:
2253         (WebKit::ChildProcessProxy::getLaunchOptions):
2254         * UIProcess/Launcher/ProcessLauncher.h:
2255         * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
2256         (WebKit::ProcessLauncher::launchProcess):
2257         * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
2258         (WebKit::ProcessLauncher::launchProcess):
2259
2260 2016-09-05  Zan Dobersek  <zdobersek@igalia.com>
2261
2262         Fix ENABLE(GAMEPAD) build errors on non-Cocoa platforms
2263         https://bugs.webkit.org/show_bug.cgi?id=161596
2264
2265         Reviewed by Darin Adler.
2266
2267         This patch fixes build errors popping up when enabling Gamepad
2268         feature on non-Cocoa platforms.
2269
2270         * CMakeLists.txt: Add the Source/WebCore/platform/gamepad/ directory to
2271         WebKit2_INCLUDE_DIRECTORIES. Add GamepadData.cpp, UIGamepad.cpp files to the build.
2272         * UIProcess/Gamepad/UIGamepadProvider.cpp: Don't include Cocoa-specific
2273         HIDGamepadProvider.h file. Update methods for the UIGamepadProvider class.
2274         (WebKit::UIGamepadProvider::platformWebPageProxyForGamepadInput):
2275         (WebKit::UIGamepadProvider::platformStartMonitoringGamepads): Deleted.
2276         (WebKit::UIGamepadProvider::platformStopMonitoringGamepads): Deleted.
2277         (WebKit::UIGamepadProvider::platformGamepads): Deleted.
2278         (WebKit::UIGamepadProvider::platformWebProcessProxyForGamepadInput): Deleted.
2279
2280 2016-09-05  Tim Horton  <timothy_horton@apple.com>
2281
2282         Remove some dead code in ViewGestureControllerMac
2283         https://bugs.webkit.org/show_bug.cgi?id=161616
2284
2285         Reviewed by Darin Adler.
2286
2287         * UIProcess/mac/ViewGestureControllerMac.mm:
2288         (WebKit::ViewGestureController::endSwipeGesture):
2289         All other LEGACY_SWIPE_SHADOW_STYLE code has been removed, except for this.
2290
2291 2016-09-05  Darin Adler  <darin@apple.com>
2292
2293         More bindings improvements, particularly things not needed for JavaScript bindings
2294         https://bugs.webkit.org/show_bug.cgi?id=161572
2295
2296         Reviewed by Sam Weinig.
2297
2298         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.cpp:
2299         (webkit_dom_dom_implementation_has_feature): Call SVGTests::hasFeatureForLegacyBindings
2300         instead of DOMImplementation::hasFeature. Also removed JSMainThreadNullState
2301         since this does not do anything that can invoke JavaScript.
2302
2303         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDeprecated.cpp:
2304         (webkit_dom_document_get_default_charset): Call defaultCharsetForLegacyBindings.
2305         Also removed JSMainThreadNullState.
2306
2307         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.cpp:
2308         (webkit_dom_document_type_get_entities): Changed to simply return nullptr; same behavior
2309         as before, but with no dependency on WebCore. Also removed JSMainThreadNullState.
2310         (webkit_dom_document_type_get_notations): Ditto.
2311         (webkit_dom_document_type_get_internal_subset): Ditto.
2312
2313         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNode.cpp:
2314         (webkit_dom_node_is_supported): Call SVGTests::hasFeatureForLegacyBindings
2315         instead of Node::isSupportedForBindings. Also removed JSMainThreadNullState.
2316
2317 2016-09-05  Michael Catanzaro  <mcatanzaro@igalia.com>
2318
2319         Unreviewed, update stale variable name
2320
2321         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
2322         (webkitWebViewBaseCreateWebPage):
2323
2324 2016-08-31  Filip Pizlo  <fpizlo@apple.com>
2325
2326         Butterflies should be allocated in Auxiliary MarkedSpace instead of CopiedSpace and we should rewrite as much of the GC as needed to make this not a regression
2327         https://bugs.webkit.org/show_bug.cgi?id=160125
2328
2329         Reviewed by Geoffrey Garen and Keith Miller.
2330         
2331         Just rewiring some #includes.
2332
2333         * UIProcess/ViewGestureController.cpp:
2334         * UIProcess/WebPageProxy.cpp:
2335         * UIProcess/WebProcessPool.cpp:
2336         * UIProcess/WebProcessProxy.cpp:
2337         * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
2338         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
2339
2340 2016-09-05  Michael Catanzaro  <mcatanzaro@igalia.com>
2341
2342         Unreviewed error message typo fix
2343
2344         * WebProcess/UserContent/WebUserContentController.cpp:
2345         (WebKit::WebUserContentController::removeUserContentWorlds):
2346
2347 2016-09-05  Dan Bernstein  <mitz@apple.com>
2348
2349         [Cocoa] Drop ".Development" suffix from XPC service bundle IDs, leave it only on the executable
2350         https://bugs.webkit.org/show_bug.cgi?id=161575
2351
2352         Reviewed by Sam Weinig.
2353
2354         Append the ".Development" suffix to the executable names, but not to the bundle names and
2355         bundle IDs.
2356
2357         * Configurations/BaseTarget.xcconfig: No need for a preprocessor definition anymore.
2358         * Configurations/BaseXPCService.xcconfig: Set EXECUTABLE_SUFFIX.
2359         * Configurations/DatabaseService.xcconfig: No need to suffix the service name and bundle ID.
2360         * Configurations/NetworkService.xcconfig: Ditto.
2361         * Configurations/PluginService.32.xcconfig: Ditto.
2362         * Configurations/PluginService.64.xcconfig: Ditto.
2363         * Configurations/WebContentService.xcconfig: Ditto.
2364         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
2365         (WebKit::serviceName): Service names are no longer suffixed.
2366         * WebKit2.xcodeproj/project.pbxproj: Ditto.
2367
2368 2016-09-05  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
2369
2370         [GTK] GL_PACK_ROW_LENGTH is not available in GLES2
2371         https://bugs.webkit.org/show_bug.cgi?id=161484
2372
2373         Reviewed by Carlos Garcia Campos.
2374
2375         * UIProcess/gtk/AcceleratedBackingStoreWayland.cpp:
2376         (WebKit::AcceleratedBackingStoreWayland::paint): when under GLES2 we cannot rely on
2377         GL_PACK_ROW_LENGTH; use glReadPixel directly when stride matches width, read line
2378         by line manually otherwise. Colour conversion is also required to get the data out
2379         correctly.
2380
2381 2016-09-05  Carlos Garcia Campos  <cgarcia@igalia.com>
2382
2383         [GTK] SetNativeSurfaceHandleForCompositing should not be compiled in for wayland build
2384         https://bugs.webkit.org/show_bug.cgi?id=161483
2385
2386         Reviewed by Žan Doberšek.
2387
2388         SetNativeSurfaceHandleForCompositing and DestroyNativeSurfaceHandleForCompositing messages should only be used
2389         for GTK+ port when compiled with OpenGL and X11 enabled and redirected XComposite window disabled. So, we should
2390         use USE(TEXTURE_MAPPER) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW) consistently.
2391         This fixes the build when building the GTK+ port with Wayland enabled and X11 disabled.
2392
2393         * UIProcess/AcceleratedDrawingAreaProxy.cpp:
2394         (WebKit::AcceleratedDrawingAreaProxy::didUpdateBackingStoreState):
2395         * UIProcess/AcceleratedDrawingAreaProxy.h:
2396         * WebProcess/WebPage/AcceleratedDrawingArea.cpp:
2397         (WebKit::AcceleratedDrawingArea::enterAcceleratedCompositingMode):
2398         * WebProcess/WebPage/AcceleratedDrawingArea.h:
2399         * WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp:
2400         * WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.h:
2401         * WebProcess/WebPage/DrawingArea.h:
2402         * WebProcess/WebPage/DrawingArea.messages.in:
2403         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
2404         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
2405
2406 2016-09-05  Zan Dobersek  <zdobersek@igalia.com>
2407
2408         [GObject bindings] override handleEvent() method in GObjectEventListener
2409         https://bugs.webkit.org/show_bug.cgi?id=161593
2410
2411         Reviewed by Carlos Garcia Campos.
2412
2413         * WebProcess/InjectedBundle/API/gtk/DOM/GObjectEventListener.h: Override
2414         the handleMethod() which is inherited from the WebCore EventListener class.
2415         Suppresses the -Winconsistent-missing-override warning that Clang propagates.
2416
2417 2016-09-04  Joseph Pecoraro  <pecoraro@apple.com>
2418
2419         Remove unnecessary RetainPtr.
2420
2421         Review comments on earlier change.
2422
2423         * UIProcess/mac/WKImmediateActionController.mm:
2424         (-[WKImmediateActionController _defaultAnimationController]):
2425
2426 2016-09-04  Dan Bernstein  <mitz@apple.com>
2427
2428         [Cocoa] Wrapping XPC service execution in os_activity is no longer needed
2429         https://bugs.webkit.org/show_bug.cgi?id=161577
2430
2431         Reviewed by Sam Weinig.
2432
2433         Removed code that created an os_activity around the execution of the XPC service
2434         code, because this workaround is no longer needed.
2435
2436         * DatabaseProcess/EntryPoint/mac/XPCService/DatabaseServiceEntryPoint.mm:
2437         (DatabaseServiceInitializer):
2438         * NetworkProcess/EntryPoint/mac/XPCService/NetworkServiceEntryPoint.mm:
2439         (NetworkServiceInitializer):
2440         * PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm:
2441         (PluginServiceInitializer):
2442         * WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm:
2443         (WebContentServiceInitializer):
2444
2445 2016-09-04  Commit Queue  <commit-queue@webkit.org>
2446
2447         Unreviewed, rolling out r205415.
2448         https://bugs.webkit.org/show_bug.cgi?id=161573
2449
2450         Many bots see inspector test failures, rolling out now and
2451         investigating later. (Requested by brrian on #webkit).
2452
2453         Reverted changeset:
2454
2455         "Web Inspector: unify Main.html and Test.html sources and
2456         generate different copies with the preprocessor"
2457         https://bugs.webkit.org/show_bug.cgi?id=161212
2458         http://trac.webkit.org/changeset/205415
2459
2460 2016-09-01  Brian Burg  <bburg@apple.com>
2461
2462         Web Inspector: unify Main.html and Test.html sources and generate different copies with the preprocessor
2463         https://bugs.webkit.org/show_bug.cgi?id=161212
2464         <rdar://problem/28017961>
2465
2466         Reviewed by Joseph Pecoraro.
2467
2468         Rearrange CMake rules so that most Inspector UI work is done in WebInspectorUI.
2469
2470         * PlatformGTK.cmake:
2471         - Move the list of Inspector resources into WebInspectorUI/CMakeLists.txt.
2472         - Move generation of InspectorGResourceBundle into WebInspectorUI.
2473         - Copy over InspectorGResourceBundle.c into WebKit2's Derived Sources before compiling.
2474
2475 2016-09-03  Wenson Hsieh  <wenson_hsieh@apple.com>
2476
2477         Refactor the heuristic for showing media controls to take all media sessions into account
2478         https://bugs.webkit.org/show_bug.cgi?id=161503
2479         <rdar://problem/28033783>
2480
2481         Reviewed by Darin Adler.
2482
2483         Adds an SPI testing hook for sending the element ID of the currently controlled video element from the web
2484         process to the UI process. See VideoControlsManager.mm in Tools/TestWebKitAPI/ for usage.
2485
2486         * UIProcess/API/Cocoa/WKWebView.mm:
2487         (-[WKWebView _requestControlledElementID]):
2488         (-[WKWebView _handleControlledElementIDResponse:]):
2489         (-[WKWebView _hasActiveVideoForControlsManager]): Deleted.
2490         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
2491         * UIProcess/Cocoa/WebPlaybackSessionManagerProxy.h:
2492         * UIProcess/Cocoa/WebPlaybackSessionManagerProxy.messages.in:
2493         * UIProcess/Cocoa/WebPlaybackSessionManagerProxy.mm:
2494         (WebKit::WebPlaybackSessionManagerProxy::handleControlledElementIDResponse):
2495         (WebKit::WebPlaybackSessionManagerProxy::requestControlledElementID):
2496         * UIProcess/PageClient.h:
2497         * UIProcess/WebPageProxy.cpp:
2498         (WebKit::WebPageProxy::requestControlledElementID):
2499         (WebKit::WebPageProxy::handleControlledElementIDResponse):
2500         * UIProcess/WebPageProxy.h:
2501         * UIProcess/mac/PageClientImpl.h:
2502         * UIProcess/mac/PageClientImpl.mm:
2503         (WebKit::PageClientImpl::handleControlledElementIDResponse):
2504         * WebProcess/cocoa/WebPlaybackSessionManager.h:
2505         * WebProcess/cocoa/WebPlaybackSessionManager.messages.in:
2506         * WebProcess/cocoa/WebPlaybackSessionManager.mm:
2507         (WebKit::WebPlaybackSessionManager::handleControlledElementIDRequest):
2508
2509 2016-09-03  Darin Adler  <darin@apple.com>
2510
2511         Streamline DOMImplementation, and move it to our new DOM exception system
2512         https://bugs.webkit.org/show_bug.cgi?id=161295
2513
2514         Reviewed by Ryosuke Niwa.
2515
2516         * UIProcess/WebFrameProxy.cpp:
2517         (WebKit::WebFrameProxy::isDisplayingMarkupDocument): Use isXMLMIMEType in its
2518         new location in MIMETypeRegistry rather than in DOMImplementation.
2519         (WebKit::WebFrameProxy::isDisplayingPDFDocument): Removed unneeded redundant
2520         check for empty string, already done by MIMETypeRegistry.
2521
2522 2016-09-03  Brian Weinstein  <bweinstein@apple.com>
2523
2524         Implement WebFrameLoaderClient::shouldUseContentExtensionsForURL and consult the InjectedBundlePageLoaderClient.
2525         https://bugs.webkit.org/show_bug.cgi?id=161441
2526
2527         Reviewed by Darin Adler.
2528
2529         WebFrameLoaderClient::shouldUseContentExtensionsForURL only consults the injected bundle, because we don't want to
2530         defer the loading of every main resource to consult with the UI Process about whether or not we should use content
2531         extensions for the load.
2532
2533         * WebProcess/InjectedBundle/API/c/WKBundlePageLoaderClient.h: Bump the latest version to WKBundlePageLoaderClientV9 and
2534         add WKBundlePageShouldUseContentExtensionsForURLCallback.
2535         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
2536         (WebKit::InjectedBundlePageLoaderClient::shouldUseContentExtensionsForURL): Ask the client if we should use content
2537         extensions for this URL.
2538         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
2539         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2540         (WebKit::WebFrameLoaderClient::shouldUseContentExtensionsForURL): Only consult with the injected bundle about whether
2541         or not we should use content extensions for this URL.
2542         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
2543
2544         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.cpp:
2545         (webkit_dom_dom_implementation_create_document_type): Updated to work with ExceptionOr.
2546         (webkit_dom_dom_implementation_create_document): Updated to work with ExceptionOr.
2547         (webkit_dom_dom_implementation_create_css_style_sheet): Updated since this function
2548         can no longer raise an exception.
2549
2550         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.cpp:
2551         (webkit_dom_document_set_xml_standalone): Updated since this function can no longer
2552         raise an exception.
2553
2554 2016-09-03  Joseph Pecoraro  <pecoraro@apple.com>
2555
2556         Web Inspector: Move WebKit2 WebInspector files to #pragma once
2557         https://bugs.webkit.org/show_bug.cgi?id=161550
2558
2559         Reviewed by Darin Adler.
2560
2561         * UIProcess/InspectorServer/WebInspectorServer.h:
2562         * UIProcess/WebInspectorProxy.h:
2563         * UIProcess/gtk/WebInspectorClientGtk.h:
2564         * WebProcess/WebCoreSupport/WebInspectorClient.h:
2565         * WebProcess/WebPage/WebInspector.h:
2566         * WebProcess/WebPage/WebInspectorFrontendAPIDispatcher.h:
2567         * WebProcess/WebPage/WebInspectorUI.h:
2568
2569 2016-09-02  Michael Catanzaro  <mcatanzaro@igalia.com>
2570
2571         [GTK] -Wmissing-field-initializers on WaylandCompositor.cpp:295
2572         https://bugs.webkit.org/show_bug.cgi?id=161524
2573
2574         Reviewed by Carlos Garcia Campos.
2575
2576         * UIProcess/gtk/WaylandCompositor.cpp:
2577
2578 2016-09-02  Carlos Garcia Campos  <cgarcia@igalia.com>
2579
2580         [Threaded Compositor] Move the viewport controller off the compositing thread
2581         https://bugs.webkit.org/show_bug.cgi?id=161532
2582
2583         Reviewed by Michael Catanzaro.
2584
2585         While working on bug #161242 I've realized that having the view port controller in the compositing thread makes
2586         everything more complex. The viewport controller receives changes about things like contents size, viewport
2587         size, etc. and uses that information to compute the visible contents rect and page scale factor. Then it
2588         notifies back to main thread about the computed visible contents rect and page scale. Those computations are not
2589         heave at all, so they could be done in the main thread and we would avoid communications between the main and
2590         compositing thread in both directions. The main thread needs the visible contents rect to notify the compositing
2591         coordinator and the page cale to scale the page in case of pixed layout. But the compositing thread only needs
2592         to know the effective scale and scroll position. So, instead of going to the compositing thread after every
2593         change that might update the visible contents rect and page scale factor, we could do those calculations in the
2594         main thread and only notify the compositing thread about the actual changes in the scroll position and effective scale.
2595
2596         * Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
2597         (WebKit::CoordinatedGraphicsScene::createTilesIfNeeded): Return early if backingStore is nullptr, which can
2598         happen if the layer shouldn't have a backing store and was removed by the previous call to prepareContentBackingStore().
2599         (WebKit::CoordinatedGraphicsScene::updateTilesIfNeeded): Ditto.
2600         * Shared/CoordinatedGraphics/SimpleViewportController.cpp:
2601         (WebKit::SimpleViewportController::SimpleViewportController): Remove the client since we no longer need to
2602         notify about changes.
2603         (WebKit::SimpleViewportController::didChangeViewportSize): Remove call to syncVisibleContents().
2604         (WebKit::SimpleViewportController::didChangeContentsSize): Ditto.
2605         (WebKit::SimpleViewportController::didChangeViewportAttributes): Ditto.
2606         (WebKit::SimpleViewportController::didScroll): Removed unused scrollBy methods and renamed scrollTo as
2607         didiScroll for consistency. Save the position without calling boundContentsPosition, because that's already
2608         donde when the position is used to compute the contents visible rectangle.
2609         (WebKit::SimpleViewportController::visibleContentsRect): No need to notify about the changes.
2610         (WebKit::SimpleViewportController::visibleContentsSize): Deleted.
2611         * Shared/CoordinatedGraphics/SimpleViewportController.h:
2612         * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:
2613         (WebKit::ThreadedCompositor::create): Pass a reference to the client instead of a pointer. It's no longer
2614         possible to have a valid pointer when the object has been destroyed, so we can better use a reference now.
2615         (WebKit::ThreadedCompositor::ThreadedCompositor): Ditto.
2616         (WebKit::ThreadedCompositor::~ThreadedCompositor): Remove assert.
2617         (WebKit::ThreadedCompositor::invalidate): No need to invalidate the client.
2618         (WebKit::ThreadedCompositor::setScaleFactor): Set the effective scale factor that should be used for rendering.
2619         (WebKit::ThreadedCompositor::setScrollPosition): Set the current scroll position and effective scale factor.
2620         (WebKit::ThreadedCompositor::setViewportSize): Set the viewport size and effective scale factor.
2621         (WebKit::ThreadedCompositor::renderNextFrame): Update m_client use that is no longer a pointer.
2622         (WebKit::ThreadedCompositor::commitScrollOffset): Ditto.
2623         (WebKit::ThreadedCompositor::renderLayerTree): Call glViewport after a resize and use m_viewportSize,
2624         m_scrollPosition and m_scaleFactor members.
2625         (WebKit::ThreadedCompositor::didChangeVisibleRect): Deleted.
2626         * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.h:
2627         * WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp:
2628         (WebKit::ThreadedCoordinatedLayerTreeHost::ThreadedCoordinatedLayerTreeHost): Pass the compositor client as a
2629         reference to ThreadedCompositor constructor.
2630         (WebKit::ThreadedCoordinatedLayerTreeHost::scrollNonCompositedContents): Update the viewport and call didChangeViewport().
2631         (WebKit::ThreadedCoordinatedLayerTreeHost::contentsSizeChanged): Ditto.
2632         (WebKit::ThreadedCoordinatedLayerTreeHost::deviceOrPageScaleFactorChanged): Pass the effective scale factor to
2633         the compositor.
2634         (WebKit::ThreadedCoordinatedLayerTreeHost::sizeDidChange): Update the viewport, the compositor and call didChangeViewport().
2635         (WebKit::ThreadedCoordinatedLayerTreeHost::didChangeViewportProperties): Update the viewport and call didChangeViewport().
2636         (WebKit::ThreadedCoordinatedLayerTreeHost::didChangeViewport): Notify the compositing coordinator about the new
2637         visible contents rectangle, and update the threaded compositor if needed.
2638         * WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.h:
2639
2640 2016-09-02  Beth Dakin  <bdakin@apple.com>
2641
2642         Need to updateEditorState if an element change edit-ability without changing 
2643         selection
2644         https://bugs.webkit.org/show_bug.cgi?id=161546
2645         -and corresponding-
2646         rdar://problem/27806012
2647
2648         Reviewed by Ryosuke Niwa.
2649
2650         Every time WebPage::editorState() is called, we now save whether the last state 
2651         was contentEditable. That way in updateEditorStateAfterLayoutIfNeeded() we can 
2652         assess whether or not edit-ability has changed. 
2653
2654         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
2655         (WebKit::WebEditorClient:: updateEditorStateAfterLayoutIfEditabilityChanged):
2656         * WebProcess/WebCoreSupport/WebEditorClient.h:
2657         * WebProcess/WebPage/WebPage.cpp:
2658         (WebKit::WebPage::editorState):
2659         (WebKit::WebPage:: updateEditorStateAfterLayoutIfEditabilityChanged):
2660         (WebKit::WebPage::didStartPageTransition):
2661         * WebProcess/WebPage/WebPage.h:
2662
2663 2016-09-02  Jonathan Bedard  <jbedard@apple.com>
2664
2665         WebKitTestRunner needs layoutTestController.setDashboardCompatibilityMode
2666         https://bugs.webkit.org/show_bug.cgi?id=42547
2667
2668         Reviewed by Darin Adler.
2669
2670         Added access to setUseDashBoardCompatibilityMode for WebKit2.
2671         Note: this bug mistakenly called this function setDashboardCompatibilityMode, it is actually setUseDashboardCompatibilityMode.
2672
2673         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
2674         (WKBundleSetUseDashboardCompatibilityMode): Added dashboard compatiblity mode setter.
2675         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: Ditto.
2676         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2677         (WebKit::InjectedBundle::setUseDashboardCompatibilityMode): Ditto.
2678         * WebProcess/InjectedBundle/InjectedBundle.h: Ditto.
2679
2680 2016-09-02  Joseph Pecoraro  <pecoraro@apple.com>
2681
2682         [Mac] RetainPtr misuse, AnimationController leaks
2683         https://bugs.webkit.org/show_bug.cgi?id=161552
2684
2685         Reviewed by Tim Horton.
2686
2687         * UIProcess/mac/WKImmediateActionController.mm:
2688         (-[WKImmediateActionController _defaultAnimationController]):
2689
2690 2016-09-02  Joseph Pecoraro  <pecoraro@apple.com>
2691
2692         [Mac] RetainPtr misuse, DDActionContext leaks
2693         https://bugs.webkit.org/show_bug.cgi?id=161551
2694
2695         Reviewed by Tim Horton.
2696
2697         * Platform/mac/MenuUtilities.mm:
2698         (WebKit::menuItemForTelephoneNumber):
2699         (WebKit::menuForTelephoneNumber):
2700
2701 2016-09-02  Joseph Pecoraro  <pecoraro@apple.com>
2702
2703         Fix Mac CMake build, missing _WKRemoteWebInspectorViewController.mm
2704
2705         Unreviewed build fix.
2706
2707         * PlatformMac.cmake:
2708
2709 2016-09-02  Jer Noble  <jer.noble@apple.com>
2710
2711         Unreviewed build fix; partial roll out of r205365 to remove unintentional change in WKWebView.mm.
2712
2713         * UIProcess/API/Cocoa/WKWebView.mm:
2714         (-[WKWebView _initializeWithConfiguration:]):
2715
2716 2016-09-02  Joseph Pecoraro  <pecoraro@apple.com>
2717
2718         Web Inspector: If inspector process crashes, re-inspecting the page does not work
2719         https://bugs.webkit.org/show_bug.cgi?id=161502
2720         <rdar://problem/28120368>
2721
2722         Reviewed by Brian Burg.
2723
2724         This is an issue on Mac because WebInspectorProxyMac's platformDidClose
2725         doesn't immediately get rid of the WKWebView for the inspector. This is
2726         intended so that a quick close and reopen of Web Inspector is faster,
2727         however in the case where the WebPage under the WKWebView crashed, we
2728         actually should clear things instead of using the timer path. Provide
2729         a stronger platform close handler when the inspector page crashed.
2730
2731         * UIProcess/WebInspectorProxy.cpp:
2732         (WebKit::WebInspectorProxy::closeForCrash):
2733         (WebKit::webProcessDidCrash):
2734         (WebKit::WebInspectorProxy::platformDidCloseForCrash):
2735         Go through a stronger path when the web process crashes.
2736         Some platforms may want to handle this differently then the user
2737         closing a web inspector window.
2738         
2739         * UIProcess/WebInspectorProxy.h:
2740         * UIProcess/efl/WebInspectorProxyEfl.cpp:
2741         (WebKit::WebInspectorProxy::platformDidCloseForCrash):
2742         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
2743         (WebKit::WebInspectorProxy::platformDidCloseForCrash):
2744         These platforms do not need to do anything special.
2745
2746         * UIProcess/mac/WebInspectorProxyMac.mm:
2747         (WebKit::WebInspectorProxy::closeTimerFired):
2748         Loosen this code. There is no need for it to be so strict.
2749
2750         (WebKit::WebInspectorProxy::platformDidCloseForCrash):
2751         If the inspector page crashed, close our handles immediately.
2752
2753 2016-09-02  Joseph Pecoraro  <pecoraro@apple.com>
2754
2755         Web Inspector: Provide a way to open an inspector frontend for a remote target
2756         https://bugs.webkit.org/show_bug.cgi?id=161515
2757         <rdar://problem/13182127>
2758
2759         Reviewed by Brian Burg.
2760
2761         Provide an interface to open a Web Inspector window/webView for a
2762         remote debuggable. Unlike the local Web Inspector, the remote
2763         debuggable may be either a JSContext or WebPage, and may only
2764         support an older version of the protocol. The Inspector frontend
2765         already supports these configurations.
2766
2767         This adds new RemoteWebInspector/Proxy classes that mirror the
2768         WebInspector/Proxy classes for local inspection, but have
2769         slightly different behavior as the inspected target is not
2770         directly available (and may not be a web page).
2771
2772         The remote and local classes share a lot of inspector
2773         frontend implementation:
2774
2775           - share most of the inspector frontend host implementation
2776           - share much of the frontend webview/window handling
2777           - use an inspector process for the frontend page
2778
2779         But remains separate in some ways:
2780
2781           - inspected target is unavailable
2782           - docking is never available
2783           - a few inspector frontend host methods are duplicated
2784           - some of the webview/window handling is duplicated
2785
2786         * UIProcess/API/Cocoa/_WKRemoteWebInspectorViewController.h: Added.
2787         * UIProcess/API/Cocoa/_WKRemoteWebInspectorViewController.mm: Added.
2788         (-[_WKRemoteWebInspectorViewController init]):
2789         (-[_WKRemoteWebInspectorViewController window]):
2790         (-[_WKRemoteWebInspectorViewController webView]):
2791         (-[_WKRemoteWebInspectorViewController loadForDebuggableType:backendCommandsURL:]):
2792         (-[_WKRemoteWebInspectorViewController close]):
2793         (-[_WKRemoteWebInspectorViewController show]):
2794         (-[_WKRemoteWebInspectorViewController sendMessageToFrontend:]):
2795         (-[_WKRemoteWebInspectorViewController sendMessageToBackend:]):
2796         (-[_WKRemoteWebInspectorViewController closeFromFrontend]):
2797         The interface that may be used to open an inspector window for
2798         a remote debuggable. There are only a few delegates to handle
2799         sending messages to the backend and knowing if the frontend
2800         closed itself (InspectorFrontendHost.closeWindow() or crashed).
2801
2802         * UIProcess/WebInspectorUtilities.h:
2803         * UIProcess/WebInspectorUtilities.cpp: Added.
2804         (WebKit::pageLevelMap):
2805         (WebKit::inspectorLevelForPage):
2806         (WebKit::inspectorPageGroupIdentifierForPage):
2807         (WebKit::trackInspectorPage):
2808         (WebKit::untrackInspectorPage):
2809         (WebKit::inspectorProcessPool):
2810         (WebKit::isInspectorProcessPool):
2811         (WebKit::isInspectorPage):
2812         Extract utilities for determining if a page contains an inspector frontend.
2813         Previously this was part of WebInspectorProxy and subclasses but can
2814         now be used by multiple classes.
2815
2816         * UIProcess/WebInspectorProxy.h:
2817         * UIProcess/WebInspectorProxy.cpp:
2818         (WebKit::WebInspectorProxy::inspectionLevel):
2819         (WebKit::WebInspectorProxy::invalidate):
2820         (WebKit::WebInspectorProxy::isMainOrTestInspectorPage):
2821         (WebKit::decidePolicyForNavigationAction):
2822         (WebKit::WebInspectorProxy::eagerlyCreateInspectorPage):
2823         (WebKit::WebInspectorProxy::didClose):
2824         (WebKit::pageLevelMap): Deleted.
2825         (WebKit::WebInspectorProxy::inspectorPageGroupIdentifier): Deleted.
2826         (WebKit::WebInspectorProxy::inspectorProcessPool): Deleted.
2827         (WebKit::WebInspectorProxy::isInspectorProcessPool): Deleted.
2828         (WebKit::WebInspectorProxy::isInspectorPage): Deleted.
2829         (WebKit::isMainOrTestInspectorPage): Deleted.
2830         * UIProcess/WebPageProxy.cpp:
2831         (WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle):
2832         * UIProcess/WebProcessProxy.cpp:
2833         (WebKit::WebProcessProxy::getLaunchOptions):
2834         * UIProcess/efl/WebInspectorProxyEfl.cpp:
2835         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
2836         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
2837         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
2838         Extract methods to utilities and use them.
2839
2840         Also address an issue where WebInspectorProxy was untracking
2841         the wrong page. It should have been untracking the inspector
2842         page but was untracking the inspected page.
2843
2844         * UIProcess/RemoteWebInspectorProxy.cpp: Added.
2845         (WebKit::RemoteWebInspectorProxy::RemoteWebInspectorProxy):
2846         (WebKit::RemoteWebInspectorProxy::~RemoteWebInspectorProxy):
2847         (WebKit::RemoteWebInspectorProxy::invalidate):
2848         (WebKit::RemoteWebInspectorProxy::load):
2849         (WebKit::RemoteWebInspectorProxy::closeFromBackend):
2850         (WebKit::RemoteWebInspectorProxy::closeFromCrash):
2851         (WebKit::RemoteWebInspectorProxy::show):
2852         (WebKit::RemoteWebInspectorProxy::sendMessageToFrontend):
2853         (WebKit::RemoteWebInspectorProxy::frontendDidClose):
2854         (WebKit::RemoteWebInspectorProxy::bringToFront):
2855         (WebKit::RemoteWebInspectorProxy::save):
2856         (WebKit::RemoteWebInspectorProxy::append):
2857         (WebKit::RemoteWebInspectorProxy::startWindowDrag):
2858         (WebKit::RemoteWebInspectorProxy::openInNewTab):
2859         (WebKit::RemoteWebInspectorProxy::sendMessageToBackend):
2860         (WebKit::RemoteWebInspectorProxy::createFrontendPageAndWindow):
2861         (WebKit::RemoteWebInspectorProxy::closeFrontendPageAndWindow):
2862         This class behaves like WebInspectorProxy but without having a
2863         reference to the inspected target. It communicates with
2864         RemoteInspectorUI in an Inspector process to send and receive
2865         frontend messages. What can't be easily shared is duplicated.
2866
2867         * UIProcess/mac/RemoteWebInspectorProxyMac.mm: Added.
2868         (-[WKRemoteWebInspectorProxyObjCAdapter initWithRemoteWebInspectorProxy:]):
2869         (-[WKRemoteWebInspectorProxyObjCAdapter webViewWebContentProcessDidTerminate:]):
2870         (-[WKRemoteWebInspectorProxyObjCAdapter webView:decidePolicyForNavigationAction:decisionHandler:]):
2871         (WebKit::RemoteWebInspectorProxy::platformCreateFrontendPageAndWindow):
2872         (WebKit::RemoteWebInspectorProxy::platformCloseFrontendPageAndWindow):
2873         (WebKit::RemoteWebInspectorProxy::platformBringToFront):
2874         (WebKit::RemoteWebInspectorProxy::platformSave):
2875         (WebKit::RemoteWebInspectorProxy::platformAppend):
2876         (WebKit::RemoteWebInspectorProxy::platformStartWindowDrag):
2877         (WebKit::RemoteWebInspectorProxy::platformOpenInNewTab):
2878         Platform implementation for the bits that are platform specific.
2879         What can't be easily shared is duplicated. Ideally we will
2880         eventually share this with WebInspectorProxyMac.
2881
2882         * UIProcess/mac/WKWebInspectorWKWebView.h:
2883         * UIProcess/mac/WKWebInspectorWKWebView.mm: Added.
2884         (WebKit::getWindowFrame):
2885         (WebKit::setWindowFrame):
2886         (WebKit::exceededDatabaseQuota):
2887         (WebKit::runOpenPanel):
2888         (-[WKWebInspectorWKWebView initWithFrame:configuration:]):
2889         (-[WKWebInspectorWKWebView tag]):
2890         Extract Mac platform code for the inspector webview from WebInspectorProxyMac.
2891
2892         * UIProcess/mac/WebInspectorProxyMac.mm:
2893         (WebKit::WebInspectorProxy::closeTimerFired):
2894         (WebKit::WebInspectorProxy::createInspectorWindow):
2895         (WebKit::WebInspectorProxy::createFrontendConfiguration):
2896         (WebKit::WebInspectorProxy::createFrontendWindow):
2897         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
2898         (-[WKWebInspectorWKWebView tag]): Deleted.
2899         (WebKit::getWindowFrame): Deleted.
2900         (WebKit::setWindowFrame): Deleted.
2901         (WebKit::exceededDatabaseQuota): Deleted.
2902         (WebKit::runOpenPanel): Deleted.
2903         Extact Mac platform code to be shared for construction of a
2904         WKWebViewConfiguration, WKWebView, and NSWindow for an inspector webview.
2905         
2906         * WebProcess/WebPage/RemoteWebInspectorUI.cpp: Added.
2907         (WebKit::RemoteWebInspectorUI::create):
2908         (WebKit::RemoteWebInspectorUI::RemoteWebInspectorUI):
2909         (WebKit::RemoteWebInspectorUI::initialize):
2910         (WebKit::RemoteWebInspectorUI::didSave):
2911         (WebKit::RemoteWebInspectorUI::didAppend):
2912         (WebKit::RemoteWebInspectorUI::sendMessageToFrontend):
2913         (WebKit::RemoteWebInspectorUI::sendMessageToBackend):
2914         (WebKit::RemoteWebInspectorUI::windowObjectCleared):
2915         (WebKit::RemoteWebInspectorUI::frontendLoaded):
2916         (WebKit::RemoteWebInspectorUI::startWindowDrag):
2917         (WebKit::RemoteWebInspectorUI::moveWindowBy):
2918         (WebKit::RemoteWebInspectorUI::bringToFront):
2919         (WebKit::RemoteWebInspectorUI::closeWindow):
2920         (WebKit::RemoteWebInspectorUI::openInNewTab):
2921         (WebKit::RemoteWebInspectorUI::save):
2922         (WebKit::RemoteWebInspectorUI::append):
2923         (WebKit::RemoteWebInspectorUI::inspectedURLChanged):
2924         * WebProcess/WebPage/RemoteWebInspectorUI.h: Added.
2925         * WebProcess/WebPage/RemoteWebInspectorUI.messages.in: Added.
2926         * UIProcess/RemoteWebInspectorProxy.messages.in: Added.
2927         * UIProcess/RemoteWebInspectorProxy.mm: Added.
2928         Inspector frontend client that knows to talk
2929         with a RemoteWebInspectorProxy instead of a WebInspectorProxy.
2930
2931         * WebProcess/WebPage/WebInspectorUI.cpp:
2932         * WebProcess/WebPage/WebInspectorUI.h:
2933         * WebProcess/WebPage/mac/WebInspectorUIMac.mm:
2934         (WebKit::webInspectorUILocalizedStringsURL):
2935         (WebKit::WebInspectorUI::localizedStringsURL):
2936         (WebKit::RemoteWebInspectorUI::localizedStringsURL):
2937         Simplify localized string URL lookup.
2938
2939         * DerivedSources.make:
2940         * WebKit2.xcodeproj/project.pbxproj:
2941         New files.
2942
2943         * WebProcess/WebPage/WebPage.cpp:
2944         (WebKit::WebPage::WebPage):
2945         (WebKit::WebPage::~WebPage):
2946         (WebKit::WebPage::remoteInspectorUI):
2947         (WebKit::WebPage::didReceiveMessage):
2948         * WebProcess/WebPage/WebPage.h:
2949         (WebKit::WebPage::isInspectorPage):
2950         An InspectorProcess WebPage may have either a WebInspectorUI or a RemoteWebInspectorUI.
2951
2952 2016-07-08  Jer Noble  <jer.noble@apple.com>
2953
2954         Refactor WebPlaybackSessionModelMediaElement to be client based.
2955         https://bugs.webkit.org/show_bug.cgi?id=159580
2956
2957         Reviewed by Eric Carlson.
2958
2959         Adopt the changes made in the WebPlaybackSessionModel,Interface and WebVideoFullscreenModel,Interface
2960         in the WebPlaybackSessionManager,Proxy classes.
2961
2962         * UIProcess/API/Cocoa/WKWebView.mm:
2963         (-[WKWebView _initializeWithConfiguration:]): Deleted.
2964         * UIProcess/Cocoa/WebPlaybackSessionManagerProxy.h:
2965         * UIProcess/Cocoa/WebPlaybackSessionManagerProxy.mm:
2966         (WebKit::WebPlaybackSessionModelContext::addClient):
2967         (WebKit::WebPlaybackSessionModelContext::removeClient):
2968         (WebKit::WebPlaybackSessionModelContext::setDuration):
2969         (WebKit::WebPlaybackSessionModelContext::setCurrentTime):
2970         (WebKit::WebPlaybackSessionModelContext::setBufferedTime):
2971         (WebKit::WebPlaybackSessionModelContext::setRate):
2972         (WebKit::WebPlaybackSessionModelContext::setSeekableRanges):
2973         (WebKit::WebPlaybackSessionModelContext::setCanPlayFastReverse):
2974         (WebKit::WebPlaybackSessionModelContext::setAudioMediaSelectionOptions):
2975         (WebKit::WebPlaybackSessionModelContext::setLegibleMediaSelectionOptions):
2976         (WebKit::WebPlaybackSessionModelContext::setExternalPlayback):
2977         (WebKit::WebPlaybackSessionModelContext::setWirelessVideoPlaybackDisabled):
2978         (WebKit::WebPlaybackSessionManagerProxy::createModelAndInterface):
2979         (WebKit::WebPlaybackSessionManagerProxy::removeClientForContext):
2980         (WebKit::WebPlaybackSessionManagerProxy::setCurrentTime):
2981         (WebKit::WebPlaybackSessionManagerProxy::setBufferedTime):
2982         (WebKit::WebPlaybackSessionManagerProxy::setSeekableRangesVector):
2983         (WebKit::WebPlaybackSessionManagerProxy::setCanPlayFastReverse):
2984         (WebKit::WebPlaybackSessionManagerProxy::setAudioMediaSelectionOptions):
2985         (WebKit::WebPlaybackSessionManagerProxy::setLegibleMediaSelectionOptions):
2986         (WebKit::WebPlaybackSessionManagerProxy::setExternalPlaybackProperties):
2987         (WebKit::WebPlaybackSessionManagerProxy::setWirelessVideoPlaybackDisabled):
2988         (WebKit::WebPlaybackSessionManagerProxy::setDuration):
2989         (WebKit::WebPlaybackSessionManagerProxy::setRate):
2990         * UIProcess/Cocoa/WebVideoFullscreenManagerProxy.h:
2991         * UIProcess/Cocoa/WebVideoFullscreenManagerProxy.messages.in:
2992         * UIProcess/Cocoa/WebVideoFullscreenManagerProxy.mm:
2993         (WebKit::WebVideoFullscreenModelContext::addClient):
2994         (WebKit::WebVideoFullscreenModelContext::removeClient):
2995         (WebKit::WebVideoFullscreenManagerProxy::setHasVideo):
2996         (WebKit::WebVideoFullscreenManagerProxy::setVideoDimensions):
2997         * WebProcess/cocoa/WebPlaybackSessionManager.h:
2998         * WebProcess/cocoa/WebPlaybackSessionManager.mm:
2999         (WebKit::WebPlaybackSessionInterfaceContext::durationChanged):
3000         (WebKit::WebPlaybackSessionInterfaceContext::currentTimeChanged):
3001         (WebKit::WebPlaybackSessionInterfaceContext::bufferedTimeChanged):
3002         (WebKit::WebPlaybackSessionInterfaceContext::rateChanged):
3003         (WebKit::WebPlaybackSessionInterfaceContext::seekableRangesChanged):
3004         (WebKit::WebPlaybackSessionInterfaceContext::canPlayFastReverseChanged):
3005         (WebKit::WebPlaybackSessionInterfaceContext::audioMediaSelectionOptionsChanged):
3006         (WebKit::WebPlaybackSessionInterfaceContext::legibleMediaSelectionOptionsChanged):
3007         (WebKit::WebPlaybackSessionInterfaceContext::externalPlaybackChanged):
3008         (WebKit::WebPlaybackSessionInterfaceContext::wirelessVideoPlaybackDisabledChanged):
3009         (WebKit::WebPlaybackSessionManager::~WebPlaybackSessionManager):
3010         (WebKit::WebPlaybackSessionManager::createModelAndInterface):
3011         (WebKit::WebPlaybackSessionManager::removeContext):
3012         (WebKit::WebPlaybackSessionManager::durationChanged):
3013         (WebKit::WebPlaybackSessionManager::currentTimeChanged):
3014         (WebKit::WebPlaybackSessionManager::bufferedTimeChanged):
3015         (WebKit::WebPlaybackSessionManager::rateChanged):
3016         (WebKit::WebPlaybackSessionManager::seekableRangesChanged):
3017         (WebKit::WebPlaybackSessionManager::canPlayFastReverseChanged):
3018         (WebKit::WebPlaybackSessionManager::audioMediaSelectionOptionsChanged):
3019         (WebKit::WebPlaybackSessionManager::legibleMediaSelectionOptionsChanged):
3020         (WebKit::WebPlaybackSessionManager::externalPlaybackChanged):
3021         (WebKit::WebPlaybackSessionManager::wirelessVideoPlaybackDisabledChanged):
3022         (WebKit::WebPlaybackSessionInterfaceContext::setDuration): Deleted.
3023         (WebKit::WebPlaybackSessionInterfaceContext::setCurrentTime): Deleted.
3024         (WebKit::WebPlaybackSessionInterfaceContext::setBufferedTime): Deleted.
3025         (WebKit::WebPlaybackSessionInterfaceContext::setRate): Deleted.
3026         (WebKit::WebPlaybackSessionInterfaceContext::setSeekableRanges): Deleted.
3027         (WebKit::WebPlaybackSessionInterfaceContext::setCanPlayFastReverse): Deleted.
3028         (WebKit::WebPlaybackSessionInterfaceContext::setAudioMediaSelectionOptions): Deleted.
3029         (WebKit::WebPlaybackSessionInterfaceContext::setLegibleMediaSelectionOptions): Deleted.
3030         (WebKit::WebPlaybackSessionInterfaceContext::setExternalPlayback): Deleted.
3031         (WebKit::WebPlaybackSessionInterfaceContext::setWirelessVideoPlaybackDisabled): Deleted.
3032         (WebKit::WebPlaybackSessionManager::setDuration): Deleted.
3033         (WebKit::WebPlaybackSessionManager::setCurrentTime): Deleted.
3034         (WebKit::WebPlaybackSessionManager::setBufferedTime): Deleted.
3035         (WebKit::WebPlaybackSessionManager::setRate): Deleted.
3036         (WebKit::WebPlaybackSessionManager::setSeekableRanges): Deleted.
3037         (WebKit::WebPlaybackSessionManager::setCanPlayFastReverse): Deleted.
3038         (WebKit::WebPlaybackSessionManager::setAudioMediaSelectionOptions): Deleted.
3039         (WebKit::WebPlaybackSessionManager::setLegibleMediaSelectionOptions): Deleted.
3040         (WebKit::WebPlaybackSessionManager::setExternalPlayback): Deleted.
3041         (WebKit::WebPlaybackSessionManager::setWirelessVideoPlaybackDisabled): Deleted.
3042         * WebProcess/cocoa/WebVideoFullscreenManager.h:
3043         (WebKit::WebVideoFullscreenInterfaceContext::create):
3044         * WebProcess/cocoa/WebVideoFullscreenManager.mm:
3045         (WebKit::WebVideoFullscreenInterfaceContext::WebVideoFullscreenInterfaceContext):
3046         (WebKit::WebVideoFullscreenInterfaceContext::hasVideoChanged):
3047         (WebKit::WebVideoFullscreenInterfaceContext::videoDimensionsChanged):
3048         (WebKit::WebVideoFullscreenManager::~WebVideoFullscreenManager):
3049         (WebKit::WebVideoFullscreenManager::createModelAndInterface):
3050         (WebKit::WebVideoFullscreenManager::removeContext):
3051         (WebKit::WebVideoFullscreenManager::hasVideoChanged):
3052         (WebKit::WebVideoFullscreenManager::videoDimensionsChanged):
3053         (WebKit::WebVideoFullscreenInterfaceContext::resetMediaState): Deleted.
3054         (WebKit::WebVideoFullscreenInterfaceContext::setDuration): Deleted.
3055         (WebKit::WebVideoFullscreenInterfaceContext::setCurrentTime): Deleted.
3056         (WebKit::WebVideoFullscreenInterfaceContext::setBufferedTime): Deleted.
3057         (WebKit::WebVideoFullscreenInterfaceContext::setRate): Deleted.
3058         (WebKit::WebVideoFullscreenInterfaceContext::setVideoDimensions): Deleted.
3059         (WebKit::WebVideoFullscreenInterfaceContext::setSeekableRanges): Deleted.
3060         (WebKit::WebVideoFullscreenInterfaceContext::setCanPlayFastReverse): Deleted.
3061         (WebKit::WebVideoFullscreenInterfaceContext::setAudioMediaSelectionOptions): Deleted.
3062         (WebKit::WebVideoFullscreenInterfaceContext::setLegibleMediaSelectionOptions): Deleted.
3063         (WebKit::WebVideoFullscreenInterfaceContext::setExternalPlayback): Deleted.
3064         (WebKit::WebVideoFullscreenInterfaceContext::setWirelessVideoPlaybackDisabled): Deleted.
3065         (WebKit::WebVideoFullscreenManager::setVideoDimensions): Deleted.
3066
3067 2016-09-02  Zan Dobersek  <zdobersek@igalia.com>
3068
3069         Fix GObject bindings build breakage when compiling with ENABLE_USER_TIMING disabled.
3070
3071         Rubber-stamped by Carlos Garcia Campos.
3072
3073         Add additional ENABLE(USER_TIMING) build guards to WebKitDOMPerformance bindings,
3074         avoiding build errors when building with that feature disabled. Previously this
3075         wasn't a problem because the four amended binding functions weren't generated
3076         when the feature was disabled due to the similar use of guards in the Performance.idl
3077         file.
3078
3079         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformance.cpp:
3080         (webkit_dom_performance_webkit_mark):
3081         (webkit_dom_performance_webkit_clear_marks):
3082         (webkit_dom_performance_webkit_measure):
3083         (webkit_dom_performance_webkit_clear_measures):
3084
3085 2016-09-02  Zan Dobersek  <zdobersek@igalia.com>
3086
3087         Unreviewed GTK+ build fix when compiling with Clang.
3088
3089         * WebProcess/WebPage/gtk/AcceleratedSurface.cpp: Include WebPage.h.
3090
3091 2016-09-01  Yusuke Suzuki  <utatane.tea@gmail.com>
3092
3093         Unreviewed, build fix after r205327
3094
3095         * UIProcess/API/gtk/WebKitUIClient.cpp:
3096
3097 2016-09-01  Dan Bernstein  <mitz@apple.com>
3098
3099         Build fix.
3100
3101         * Configurations/FeatureDefines.xcconfig:
3102
3103 2016-09-01  Anders Carlsson  <andersca@apple.com>
3104
3105         Use WTF::Function for completion handlers in API::UIClient
3106         https://bugs.webkit.org/show_bug.cgi?id=161516
3107
3108         Reviewed by Tim Horton.
3109
3110         * UIProcess/API/APIUIClient.h:
3111         (API::UIClient::runJavaScriptAlert):
3112         (API::UIClient::runJavaScriptConfirm):
3113         (API::UIClient::runJavaScriptPrompt):
3114         (API::UIClient::runBeforeUnloadConfirmPanel):
3115         (API::UIClient::exceededDatabaseQuota):
3116         (API::UIClient::reachedApplicationCacheOriginQuota):
3117         * UIProcess/API/C/WKPage.cpp:
3118         (WebKit::RunBeforeUnloadConfirmPanelResultListener::create):
3119         (WebKit::RunBeforeUnloadConfirmPanelResultListener::RunBeforeUnloadConfirmPanelResultListener):
3120         (WebKit::RunJavaScriptAlertResultListener::create):
3121         (WebKit::RunJavaScriptAlertResultListener::RunJavaScriptAlertResultListener):
3122         (WebKit::RunJavaScriptConfirmResultListener::create):
3123         (WebKit::RunJavaScriptConfirmResultListener::RunJavaScriptConfirmResultListener):
3124         (WebKit::RunJavaScriptPromptResultListener::create):
3125         (WebKit::RunJavaScriptPromptResultListener::RunJavaScriptPromptResultListener):
3126         (WKPageSetPageUIClient):
3127         * UIProcess/Cocoa/UIDelegate.h:
3128         * UIProcess/Cocoa/UIDelegate.mm:
3129         (WebKit::UIDelegate::UIClient::runJavaScriptAlert):
3130         (WebKit::UIDelegate::UIClient::runJavaScriptConfirm):
3131         (WebKit::UIDelegate::UIClient::runJavaScriptPrompt):
3132         (WebKit::UIDelegate::UIClient::exceededDatabaseQuota):
3133         (WebKit::UIDelegate::UIClient::reachedApplicationCacheOriginQuota):
3134
3135 2016-09-01  JF Bastien  <jfbastien@apple.com>
3136
3137         Fix cmake build, missing SecItemShim.messages.in
3138         https://bugs.webkit.org/show_bug.cgi?id=161496
3139
3140         Reviewed by Alex Christensen.
3141
3142         * PlatformMac.cmake:
3143
3144 2016-09-01  Joseph Pecoraro  <pecoraro@apple.com>
3145
3146         [Mac] Web Inspector: Remove stale inspector process termination code
3147         https://bugs.webkit.org/show_bug.cgi?id=161465
3148         <rdar://problem/28106584>
3149
3150         Reviewed by Brian Burg.
3151
3152         * UIProcess/WebInspectorProxy.cpp:
3153         (WebKit::WebInspectorProxy::didRelaunchInspectorPageProcess): Deleted.
3154         * UIProcess/WebInspectorProxy.h:
3155         * UIProcess/mac/WebInspectorProxyMac.mm:
3156         (-[WKWebInspectorProxyObjCAdapter didRelaunchProcess]): Deleted.
3157         (-[WKWebInspectorWKWebView _didRelaunchProcess]): Deleted.
3158         This code doesn't appear to be run when the WebContent process inside
3159         of an Inspector process crashes. The general WebInspectorProxy has its
3160         own handling of when the page inside an inspector process crashes, so
3161         this Mac specific path appears to be unused and stale.
3162
3163 2016-09-01  Jeremy Huddleston Sequoia  <jeremyhu@apple.com>
3164
3165         [GTK] Fix configuration without wayland support
3166         https://bugs.webkit.org/show_bug.cgi?id=161475
3167
3168         WebKit2WaylandClientProtocol.c is a derived source that is created
3169         conditionally on ENABLE_WAYLAND_TARGET.  It was being included
3170         in the sources list unconditionally, so configure failed whenever
3171         wayland support was unavailable.
3172
3173         Reviewed by Žan Doberšek.
3174
3175         * PlatformGTK.cmake: Include WebKit2WaylandClientProtocol.c in source list conditional on ENABLE_WAYLAND_TARGET
3176
3177 2016-08-31  Carlos Garcia Campos  <cgarcia@igalia.com>
3178
3179         [GTK] Move GObject DOM bindings to WebKit2 layer and stop auto generating them
3180         https://bugs.webkit.org/show_bug.cgi?id=161438
3181
3182         Reviewed by Michael Catanzaro.
3183
3184         Move all GObject bindings code to WebProcess/InjectedBundle/API/gtk/DOM.
3185
3186         * PlatformGTK.cmake:
3187         * WebProcess/InjectedBundle/API/gtk/DOM:
3188
3189 2016-08-31  Keith Rollin  <krollin@apple.com>
3190
3191         WebKit should set a subsystem for os_log so it's easier to filter for WebKit log messages
3192         https://bugs.webkit.org/show_bug.cgi?id=160969
3193         <rdar://problem/26068734>
3194
3195         Reviewed by Simon Fraser.
3196
3197         - Specify a channel when using RELEASE_LOG macros.
3198         - Add some new channels so that we have something to pass to the
3199           RELEASE_LOG macros (ProcessSuspension, IPC, Layers).
3200         - Enable subsystem- and channel-related data and functions when using
3201           RELEASE_LOG macros.
3202         - Use the DECLARE_LOG_CHANNEL, DEFINE_LOG_CHANNEL, and
3203           LOG_CHANNEL_ADDRESS macros that are now defined in WTF.
3204
3205         * NetworkProcess/Downloads/Download.cpp:
3206         * NetworkProcess/NetworkProcess.cpp:
3207         (WebKit::NetworkProcess::prepareToSuspend):
3208         (WebKit::NetworkProcess::cancelPrepareToSuspend):
3209         (WebKit::NetworkProcess::processDidResume):
3210         * NetworkProcess/NetworkResourceLoader.cpp:
3211         * Platform/IPC/Connection.cpp:
3212         (IPC::Connection::waitForSyncReply):
3213         * Platform/LogInitialization.h:
3214         * Platform/Logging.cpp:
3215         (WebKit::initializeLogChannelsIfNecessary):
3216         * Platform/Logging.h:
3217         * Platform/foundation/LoggingFoundation.mm:
3218         * Platform/unix/LoggingUnix.cpp:
3219         * Shared/ChildProcess.cpp:
3220         (WebKit::didCloseOnConnectionWorkQueue):
3221         * Shared/WebKit2Initialize.cpp:
3222         (WebKit::InitializeWebKit2):
3223         * UIProcess/Cocoa/NavigationState.mm:
3224         (WebKit::NavigationState::releaseNetworkActivityToken):
3225         (WebKit::NavigationState::didChangeIsLoading):
3226         * UIProcess/Network/NetworkProcessProxy.cpp:
3227         (WebKit::NetworkProcessProxy::fetchWebsiteData):
3228         (WebKit::NetworkProcessProxy::deleteWebsiteData):
3229         (WebKit::NetworkProcessProxy::deleteWebsiteDataForOrigins):
3230         (WebKit::NetworkProcessProxy::setIsHoldingLockedFiles):
3231         * UIProcess/ProcessThrottler.cpp:
3232         (WebKit::ProcessThrottler::updateAssertionNow):
3233         (WebKit::ProcessThrottler::updateAssertion):
3234         * UIProcess/WebPageProxy.cpp:
3235         * UIProcess/WebProcessPool.cpp:
3236         (WebKit::m_hiddenPageThrottlingTimer):
3237         * UIProcess/WebProcessProxy.cpp:
3238         (WebKit::WebProcessProxy::fetchWebsiteData):
3239         (WebKit::WebProcessProxy::deleteWebsiteData):
3240         (WebKit::WebProcessProxy::deleteWebsiteDataForOrigins):
3241         (WebKit::WebProcessProxy::didSetAssertionState):
3242         (WebKit::WebProcessProxy::setIsHoldingLockedFiles):
3243         * UIProcess/ios/ProcessAssertionIOS.mm:
3244         (-[WKProcessAssertionBackgroundTaskManager _updateBackgroundTask]):
3245         (WebKit::ProcessAssertion::ProcessAssertion):
3246         * WebProcess/Network/WebLoaderStrategy.cpp:
3247         * WebProcess/Network/WebResourceLoader.cpp:
3248         * WebProcess/WebPage/WebPage.cpp:
3249         (WebKit::WebPage::layerVolatilityTimerFired):
3250         * WebProcess/WebProcess.cpp:
3251         (WebKit::WebProcess::actualPrepareToSuspend):
3252         (WebKit::WebProcess::processWillSuspendImminently):
3253         (WebKit::WebProcess::prepareToSuspend):
3254         (WebKit::WebProcess::cancelPrepareToSuspend):
3255         (WebKit::WebProcess::markAllLayersVolatile):
3256         (WebKit::WebProcess::processDidResume):
3257
3258 2016-08-31  Yoav Weiss  <yoav@yoav.ws>
3259
3260         Add event support for link preload.
3261         https://bugs.webkit.org/show_bug.cgi?id=158466
3262
3263         Reviewed by Alex Christensen.
3264
3265         * WebProcess/Network/WebLoaderStrategy.cpp:
3266         (WebKit::maximumBufferingTime): Removed LinkPreload.
3267
3268 2016-08-31  Alex Christensen  <achristensen@webkit.org>
3269
3270         Add runtime flag for using URLParser
3271         https://bugs.webkit.org/show_bug.cgi?id=161363
3272
3273         Reviewed by Sam Weinig.
3274
3275         * NetworkProcess/NetworkProcess.cpp:
3276         (WebKit::NetworkProcess::initializeNetworkProcess):
3277         * NetworkProcess/NetworkProcessCreationParameters.cpp:
3278         (WebKit::NetworkProcessCreationParameters::encode):
3279         (WebKit::NetworkProcessCreationParameters::decode):
3280         * NetworkProcess/NetworkProcessCreationParameters.h:
3281         * PlatformEfl.cmake:
3282         * PlatformGTK.cmake:
3283         * PlatformMac.cmake:
3284         * Shared/Cocoa/WebKit2InitializeCocoa.mm: Added.
3285         (WebKit::platformInitializeWebKit2):
3286         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.h:
3287         (WebKit::XPCServiceInitializer):
3288         * Shared/WebKit2Initialize.cpp:
3289         (WebKit::InitializeWebKit2):
3290         * Shared/WebKit2Initialize.h:
3291         * Shared/WebProcessCreationParameters.cpp:
3292         (WebKit::WebProcessCreationParameters::encode):
3293         (WebKit::WebProcessCreationParameters::decode):
3294         * Shared/WebProcessCreationParameters.h:
3295         * Shared/efl/WebKit2InitializeEFL.cpp: Added.
3296         (WebKit::platformInitializeWebKit2):
3297         * Shared/gtk/WebKit2InitializeGTK.cpp: Added.
3298         (WebKit::platformInitializeWebKit2):
3299         * UIProcess/WebProcessPool.cpp:
3300         (WebKit::WebProcessPool::ensureNetworkProcess):
3301         (WebKit::WebProcessPool::createNewWebProcess):
3302         * WebKit2.xcodeproj/project.pbxproj:
3303         * WebProcess/WebProcess.cpp:
3304         (WebKit::WebProcess::initializeWebProcess):
3305
3306 2016-08-30  Anders Carlsson  <andersca@apple.com>
3307
3308         Use Connection::sendWithReply for the SecItem shim messages
3309         https://bugs.webkit.org/show_bug.cgi?id=161419
3310
3311         Reviewed by Tim Horton.
3312
3313         * DerivedSources.make:
3314         * NetworkProcess/NetworkProcess.cpp:
3315         (WebKit::NetworkProcess::initializeConnection):
3316         * NetworkProcess/mac/NetworkProcessMac.mm:
3317         (WebKit::NetworkProcess::platformInitializeNetworkProcess):
3318         * Shared/mac/SecItemShim.cpp:
3319         (WebKit::workQueue):
3320         (WebKit::sendSecItemRequest):
3321         (WebKit::webSecItemCopyMatching):
3322         (WebKit::webSecItemAdd):
3323         (WebKit::webSecItemUpdate):
3324         (WebKit::webSecItemDelete):
3325         (WebKit::initializeSecItemShim):
3326         (WebKit::responseMap): Deleted.
3327         (WebKit::SecItemShim::singleton): Deleted.
3328         (WebKit::SecItemShim::SecItemShim): Deleted.
3329         (WebKit::generateSecItemRequestID): Deleted.
3330         (WebKit::SecItemShim::secItemResponse): Deleted.
3331         (WebKit::SecItemShim::initialize): Deleted.
3332         (WebKit::SecItemShim::initializeConnection): Deleted.
3333         * Shared/mac/SecItemShim.h:
3334         * Shared/mac/SecItemShim.messages.in: Removed.
3335         * UIProcess/mac/SecItemShimProxy.cpp:
3336         (WebKit::SecItemShimProxy::didReceiveMessage):
3337         (WebKit::SecItemShimProxy::secItemRequest):
3338         * UIProcess/mac/SecItemShimProxy.h:
3339         * UIProcess/mac/SecItemShimProxy.messages.in:
3340         * WebKit2.xcodeproj/project.pbxproj:
3341         * WebProcess/WebProcess.cpp:
3342         (WebKit::WebProcess::initializeConnection):
3343         * WebProcess/cocoa/WebProcessCocoa.mm:
3344         (WebKit::WebProcess::platformInitializeProcess):
3345
3346 2016-08-31  Andreas Kling  <akling@apple.com>
3347
3348         DOM event handling should pass Event around by reference.
3349         <https://webkit.org/b/161398>
3350
3351         Reviewed by Chris Dumez.
3352
3353         * WebProcess/WebPage/mac/WebPageMac.mm:
3354         (WebKit::WebPage::performNonEditingBehaviorForSelector):
3355
3356 2016-08-31  Brady Eidson  <beidson@apple.com>
3357
3358         WK2 Gamepad provider on iOS.
3359         https://bugs.webkit.org/show_bug.cgi?id=161412
3360
3361         Reviewed by Tim Horton.
3362
3363         * Configurations/FeatureDefines.xcconfig:
3364
3365         * Platform/spi/ios/UIKitSPI.h:
3366
3367         * UIProcess/Gamepad/UIGamepadProvider.cpp:
3368
3369         * UIProcess/Gamepad/ios/UIGamepadProviderIOS.mm: Copied from Source/WebKit2/UIProcess/Gamepad/mac/UIGamepadProviderMac.mm.
3370         (WebKit::UIGamepadProvider::platformWebPageProxyForGamepadInput):
3371
3372         * UIProcess/Gamepad/mac/UIGamepadProviderMac.mm:
3373
3374         * WebKit2.xcodeproj/project.pbxproj:
3375
3376 2016-08-30  Anders Carlsson  <andersca@apple.com>
3377
3378         Try to fix the 32-bit build.
3379
3380         * UIProcess/WebProcessProxy.cpp:
3381         (WebKit::WebProcessProxy::deleteWebsiteData):
3382         (WebKit::WebProcessProxy::deleteWebsiteDataForOrigins):
3383         * UIProcess/WebProcessProxy.h:
3384
3385 2016-08-30  Anders Carlsson  <andersca@apple.com>
3386
3387         Switch more messages over to Connection::sendWithReply
3388         https://bugs.webkit.org/show_bug.cgi?id=161415
3389
3390         Reviewed by Tim Horton.
3391
3392         * UIProcess/WebProcessProxy.cpp:
3393         (WebKit::WebProcessProxy::~WebProcessProxy):
3394         (WebKit::WebProcessProxy::processWillShutDown):
3395         (WebKit::WebProcessProxy::canTerminateChildProcess):
3396         (WebKit::WebProcessProxy::deleteWebsiteData):
3397         (WebKit::WebProcessProxy::deleteWebsiteDataForOrigins):
3398         (WebKit::generateCallbackID): Deleted.
3399         (WebKit::WebProcessProxy::didDeleteWebsiteData): Deleted.
3400         (WebKit::WebProcessProxy::didDeleteWebsiteDataForOrigins): Deleted.
3401         * UIProcess/WebProcessProxy.h:
3402         * UIProcess/WebProcessProxy.messages.in:
3403         * WebProcess/WebProcess.cpp:
3404         (WebKit::WebProcess::deleteWebsiteData):
3405         (WebKit::WebProcess::deleteWebsiteDataForOrigins):
3406         * WebProcess/WebProcess.h:
3407         * WebProcess/WebProcess.messages.in:
3408
3409 2016-08-30  Anders Carlsson  <andersca@apple.com>
3410
3411         Add Connection::sendWithReply
3412         https://bugs.webkit.org/show_bug.cgi?id=161399
3413
3414         Reviewed by Tim Horton.
3415
3416         Connection::sendWithReply makes it easy to send a message and process its reply asynchronously on a given WorkQueue or RunLoop.
3417         The reply handler is guaranteed to be called. If the reply is successfully received, it will consist of an std::tuple with the arguments,
3418         otherwise it will be called with Nullopt.
3419
3420         * Platform/IPC/Connection.cpp:
3421         (IPC::Connection::invalidate):
3422         Go through all reply handlers and dispatch them with a null Decoder.
3423
3424         (IPC::Connection::sendMessageWithReply):
3425         Add the reply handler to the m_replyHandlers hash map, and send the message.
3426
3427         (IPC::Connection::processIncomingSyncReply):
3428         Check if the incoming reply has an entry in m_replyHandlers. If it does, dispatch its handler using the given dispatcher.
3429
3430         (IPC::Connection::connectionDidClose):
3431         Go through all reply handlers and dispatch them with a null Decoder.
3432
3433         * Platform/IPC/Connection.h:
3434         (IPC::Connection::sendWithReply):
3435         Encode the message (we use the sync message ID infrastructure for this), then call sendMessageWithReply with a reply handler that
3436         decodes the reply and calls the real reply handler.
3437
3438         * Platform/IPC/HandleMessage.h:
3439         Forward declare Connection.
3440
3441         * UIProcess/Databases/DatabaseProcessProxy.h:
3442         * UIProcess/Network/NetworkProcessProxy.h:
3443         Forward declare WebsiteData.
3444
3445         * UIProcess/WebProcessProxy.cpp:
3446         (WebKit::WebProcessProxy::~WebProcessProxy):
3447         (WebKit::WebProcessProxy::processWillShutDown):