5516d5daabc097752c166bedee29309083750bea
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2016-09-13  Tim Horton  <timothy_horton@apple.com>
2
3         Provide a mechanism to specify the maximum size of WKThumbnailView snapshots
4         https://bugs.webkit.org/show_bug.cgi?id=161896
5         <rdar://problem/28229827>
6
7         Reviewed by Simon Fraser.
8
9         Some clients know that their thumbnail views will only be displayed up to
10         a specific size that is significantly smaller than the WKView size. Allow
11         them to avoid wasting lots of memory on unnecessarily large snapshots.
12
13         * UIProcess/API/Cocoa/_WKThumbnailView.h:
14         * UIProcess/API/Cocoa/_WKThumbnailView.mm:
15         (-[_WKThumbnailView requestSnapshot]):
16         (-[_WKThumbnailView _requestSnapshotIfNeeded]):
17         (-[_WKThumbnailView setMaximumSnapshotSize:]):
18         Add a maximumSnapshotSize property which can be changed dynamically.
19
20 2016-09-13  Anders Carlsson  <andersca@apple.com>
21
22         REGRESSION (r196321): Amazon Videos are all black in Fullscreen
23         https://bugs.webkit.org/show_bug.cgi?id=161924
24         rdar://problem/28208208
25
26         Reviewed by Dan Bernstein.
27
28         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.mm:
29         (main):
30         Set AppleMagnifiedMode to true.
31
32 2016-09-13  Carlos Garcia Campos  <cgarcia@igalia.com>
33
34         [GTK] Get rid of DataObjectGtk::forClipboard and cleanup pasteboard code
35         https://bugs.webkit.org/show_bug.cgi?id=161907
36
37         Reviewed by Michael Catanzaro.
38
39         Update to DataObjectGtk and PasteboardHelper API changes.
40
41         * UIProcess/gtk/DragAndDropHandler.cpp:
42         (WebKit::DragAndDropHandler::startDrag):
43         (WebKit::DragAndDropHandler::fillDragData):
44         (WebKit::DragAndDropHandler::dataObjectForDropData):
45         * WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp:
46         (WebKit::WebDragClient::startDrag):
47         * WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp:
48         (WebKit::collapseSelection):
49         (WebKit::WebEditorClient::updateGlobalSelection): Remove wrong X11 guards, since that code is not X11 specific.
50
51 2016-09-12  DAN SAUNDERS  <dasau@microsoft.com>
52
53         AX: WKWebView for macOS does not allow configuration of tabsToLinks
54         https://bugs.webkit.org/show_bug.cgi?id=161394
55
56         Reviewed by Anders Carlsson.
57
58         * UIProcess/API/Cocoa/WKPreferences.h:
59         * UIProcess/API/Cocoa/WKPreferences.mm:
60         (-[WKPreferences encodeWithCoder:]):
61         (-[WKPreferences initWithCoder:]):
62         (-[WKPreferences tabFocusesLinks]):
63         (-[WKPreferences setTabFocusesLinks:]):
64
65 2016-09-12  Saam Barati  <sbarati@apple.com>
66
67         Add WebKit support for an option in Safari's debug menu similar to "Get Bytecode Profile" but for the Sampling Profiler's data
68         https://bugs.webkit.org/show_bug.cgi?id=161785
69
70         Reviewed by Tim Horton.
71
72         This patch follows in the steps of how we dump output for the
73         internal JSC bytecode profiler tool, but now also for the internal
74         JSC sampling profiler tool. This can be used when doing performance
75         analysis work analyzing the JS execution of a page.
76
77         * UIProcess/API/C/WKPage.cpp:
78         (WKPageGetSamplingProfilerOutput):
79         * UIProcess/API/C/WKPagePrivate.h:
80         * UIProcess/WebPageProxy.cpp:
81         (WebKit::WebPageProxy::getSamplingProfilerOutput):
82         (WebKit::WebPageProxy::invalidateStringCallback):
83         * UIProcess/WebPageProxy.h:
84         * UIProcess/WebPageProxy.messages.in:
85         * WebProcess/WebPage/WebPage.cpp:
86         (WebKit::WebPage::getSamplingProfilerOutput):
87         * WebProcess/WebPage/WebPage.h:
88         * WebProcess/WebPage/WebPage.messages.in:
89
90 2016-09-12  Keith Rollin  <krollin@apple.com>
91
92         Enhance Network logging
93         https://bugs.webkit.org/show_bug.cgi?id=161771
94
95         Reviewed by Antti Koivisto.
96
97         Modify current logging statements to follow a consistent pattern in
98         order to enhance readability and parsing.
99
100         * NetworkProcess/Downloads/Download.cpp:
101         (WebKit::Download::didReceiveResponse):
102         (WebKit::Download::didReceiveData):
103         (WebKit::Download::didFinish):
104         (WebKit::Download::didFail):
105         (WebKit::Download::didCancel):
106         * NetworkProcess/NetworkResourceLoader.cpp:
107         (WebKit::NetworkResourceLoader::startNetworkLoad):
108         (WebKit::NetworkResourceLoader::didFinishLoading):
109         (WebKit::NetworkResourceLoader::didFailLoading):
110         (WebKit::NetworkResourceLoader::continueWillSendRequest):
111         * WebProcess/Network/WebLoaderStrategy.cpp:
112         (WebKit::WebLoaderStrategy::scheduleLoad):
113         * WebProcess/Network/WebResourceLoader.cpp:
114         (WebKit::WebResourceLoader::willSendRequest):
115         (WebKit::WebResourceLoader::didReceiveResponse):
116         (WebKit::WebResourceLoader::didReceiveData):
117         (WebKit::WebResourceLoader::didFinishResourceLoad):
118         (WebKit::WebResourceLoader::didFailResourceLoad):
119         (WebKit::WebResourceLoader::didReceiveResource):
120
121 2016-09-09  Tim Horton  <timothy_horton@apple.com>
122
123         WKThumbnailView should expose a mode where it can be reparented without resnapshotting
124         https://bugs.webkit.org/show_bug.cgi?id=161828
125         <rdar://problem/28229756>
126
127         Reviewed by Alex Christensen.
128
129         * UIProcess/API/Cocoa/_WKThumbnailView.h:
130         * UIProcess/API/Cocoa/_WKThumbnailView.mm:
131         (-[_WKThumbnailView initWithFrame:fromWKView:]):
132         (-[_WKThumbnailView _viewWasUnparented]):
133         Add such a mode. Bail from snapshot teardown when unparented if it is on.
134
135 2016-09-08  Dean Jackson  <dino@apple.com>
136
137         Expose Apple Pencil data to Touch events
138         https://bugs.webkit.org/show_bug.cgi?id=161783
139         <rdar://problem/28218898>
140
141         Reviewed by Beth Dakin.
142
143         * Platform/spi/ios/UIKitSPI.h: Expose the new SPI. Since this is only used
144         on public builds, guard it against everything that is <= iOS 10.0.
145         * Shared/WebEvent.h: New properties.
146         (WebKit::WebPlatformTouchPoint::setAltitudeAngle):
147         (WebKit::WebPlatformTouchPoint::altitudeAngle):
148         (WebKit::WebPlatformTouchPoint::setAzimuthAngle):
149         (WebKit::WebPlatformTouchPoint::azimuthAngle):
150         (WebKit::WebPlatformTouchPoint::setTouchType):
151         (WebKit::WebPlatformTouchPoint::touchType):
152         (WebKit::WebPlatformTouchPoint::force): Deleted.
153         * Shared/WebEventConversion.cpp:
154         (WebKit::webPlatformTouchTypeToPlatform):
155         (WebKit::WebKit2PlatformTouchPoint::WebKit2PlatformTouchPoint): More
156         parameters sent to parent constructor.
157         * Shared/ios/NativeWebTouchEventIOS.mm:
158         (WebKit::convertTouchType):
159         (WebKit::NativeWebTouchEvent::extractWebTouchPoint):
160         * Shared/ios/WebPlatformTouchPointIOS.cpp:
161         (WebKit::WebPlatformTouchPoint::encode):
162         (WebKit::WebPlatformTouchPoint::decode):
163
164 2016-09-09  Tim Horton  <timothy_horton@apple.com>
165
166         Text replacement candidates don't always overwrite the entire original string
167         https://bugs.webkit.org/show_bug.cgi?id=161779
168         <rdar://problem/28033492>
169
170         Reviewed by Simon Fraser.
171
172         * WebProcess/WebPage/mac/WebPageMac.mm:
173         (WebKit::WebPage::platformEditorState):
174         Make use of the shared implementation of contextRangeForCandidateRequest.
175
176 2016-09-08  Carlos Garcia Campos  <cgarcia@igalia.com>
177
178         Unreviewed. Fix GTK+ build after r205689.
179
180         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElement.cpp:
181         (webkit_dom_html_o_list_element_set_start):
182
183 2016-09-08  Dan Bernstein  <mitz@apple.com>
184
185         Re-landing the fix for
186
187         [Mac] .tbd files for the shims end up installed when building with GENERATE_TEXT_BASED_STUBS=YES
188         https://bugs.webkit.org/show_bug.cgi?id=161722
189
190         without reintroducing https://webkit.org/b/161782
191
192         * Configurations/Shim.xcconfig: Don’t install the shims. The Copy Shims build phase in the
193           WebKit target will copy them into place without bringing their .tbd files along. Keep the
194           install path set, though, because it determines the dylibs’ install names.
195
196 2016-09-08  Commit Queue  <commit-queue@webkit.org>
197
198         Unreviewed, rolling out r205576.
199         https://bugs.webkit.org/show_bug.cgi?id=161782
200
201         Introduced a crash at launch and broke all our Mac perf
202         testing (Requested by rniwa on #webkit).
203
204         Reverted changeset:
205
206         "[Mac] .tbd files for the shims end up installed when building
207         with GENERATE_TEXT_BASED_STUBS=YES"
208         https://bugs.webkit.org/show_bug.cgi?id=161722
209         http://trac.webkit.org/changeset/205576
210
211 2016-09-08  Said Abou-Hallawa  <sabouhallawa@apple.com>
212
213         Move the BitmapImage platform dependent code to a new file named NativeImage[CG|Cairo].cpp
214         https://bugs.webkit.org/show_bug.cgi?id=158684
215
216         Reviewed by Simon Fraser.
217
218         * UIProcess/API/C/cg/WKIconDatabaseCG.cpp:
219         (WKIconDatabaseTryGetCGImageForURL):
220         (WKIconDatabaseTryCopyCGImageArrayForURL):
221         It was the only place in the code which uses BitmapImage::getCGImageArray().
222         Call BitmapImage::framesNativeImages() instead and form the returned
223         Vector<NativeImagePtr> build the CFArrayRef.
224
225         * UIProcess/WebIconDatabase.h:
226         Include "NativeImage.h" instead of "NativeImagePtr.h".
227         
228         * UIProcess/ios/WKContentViewInteraction.mm:
229         (-[WKContentView _presentationSnapshotForPreviewItemController:]):
230         * WebProcess/Plugins/PluginView.cpp:
231         (WebKit::isAlmostSolidColor):
232         Call BitmapImage::getCGImageRef() instead of calling BitmapImage::nativeImage().
233
234 2016-09-08  Zan Dobersek  <zdobersek@igalia.com>
235
236         Move webkit2gtk.pc.in, webkit2gtk-web-extension.pc.in files under Source/WebKit2/gtk/
237         https://bugs.webkit.org/show_bug.cgi?id=161703
238
239         Reviewed by Carlos Garcia Campos.
240
241         Move the pkg-config input files that are specific to the GTK+ port
242         under the Source/WebKit2/gtk/ directory. Build rules are updated
243         accordingly.
244
245         * PlatformGTK.cmake:
246         * gtk/webkit2gtk-web-extension.pc.in: Renamed from Source/WebKit2/webkit2gtk-web-extension.pc.in.
247         * gtk/webkit2gtk.pc.in: Renamed from Source/WebKit2/webkit2gtk.pc.in.
248
249 2016-09-07  Joseph Pecoraro  <pecoraro@apple.com>
250
251         [Mac] Address some clang static analyzer warnings in WebKit
252         https://bugs.webkit.org/show_bug.cgi?id=161597
253
254         Reviewed by Darin Adler.
255
256         * UIProcess/Cocoa/WebVideoFullscreenManagerProxy.mm:
257         (-[WKLayerHostView makeBackingLayer]):
258         * UIProcess/mac/WKSharingServicePickerDelegate.mm:
259         (-[WKSharingServicePickerDelegate sharingServicePicker:sharingServicesForItems:mask:proposedSharingServices:]):
260         * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm:
261         (-[WKDOMRange rangeByExpandingToWordBoundaryByCharacters:inDirection:]):
262         Address leaks caught by the static analyzer.
263
264 2016-09-07  Zan Dobersek  <zdobersek@igalia.com>
265
266         [GTK] Remove stale WebSoupRequestManager headers
267         https://bugs.webkit.org/show_bug.cgi?id=161691
268
269         Reviewed by Sergio Villar Senin.
270
271         WebSoupRequestManager, WebSoupRequestManagerProxy and WebSoupRequestManagerClient
272         classes were used to implement custom URI scheme support for Soup. This API and
273         the implementations of these classes were removed in r174584, but curiously the
274         headers went unnoticed. This patch removes them, as well as the
275         WebSoupRequestManagerProxy forwarding declaration in WKAPICastSoup.h.
276
277         * UIProcess/API/C/soup/WKAPICastSoup.h:
278         * UIProcess/soup/WebSoupRequestManagerClient.h: Removed.
279         * UIProcess/soup/WebSoupRequestManagerProxy.h: Removed.
280         (WebKit::WebSoupRequestManagerProxy::registeredURISchemes): Deleted.
281         * WebProcess/soup/WebSoupRequestManager.h: Removed.
282
283 2016-09-07  Simon Fraser  <simon.fraser@apple.com>
284
285         Enable the <meter> element on iOS
286         https://bugs.webkit.org/show_bug.cgi?id=161714
287         rdar://problem/8978410
288
289         Reviewed by Tim Horton.
290
291         Define ENABLE_METER_ELEMENT unconditionally now.
292
293         * Configurations/FeatureDefines.xcconfig:
294
295 2016-09-07  Dan Bernstein  <mitz@apple.com>
296
297         [Mac] .tbd files for the shims end up installed when building with GENERATE_TEXT_BASED_STUBS=YES
298         https://bugs.webkit.org/show_bug.cgi?id=161722
299
300         Reviewed by Anders Carlsson.
301
302         * Configurations/Shim.xcconfig: Don’t install the shims. The Copy Shims build phase in the
303           WebKit target will copy them into place without bringing their .tbd files along.
304
305 2016-09-07  Mark Lam  <mark.lam@apple.com>
306
307         Add CatchScope and force all exception checks to be via ThrowScope or CatchScope.
308         https://bugs.webkit.org/show_bug.cgi?id=161498
309
310         Reviewed by Geoffrey Garen.
311
312         * WebProcess/Plugins/Netscape/NPJSObject.cpp:
313         (WebKit::NPJSObject::hasMethod):
314         (WebKit::NPJSObject::hasProperty):
315         (WebKit::NPJSObject::getProperty):
316         (WebKit::NPJSObject::setProperty):
317         (WebKit::NPJSObject::removeProperty):
318         (WebKit::NPJSObject::construct):
319         (WebKit::NPJSObject::invoke):
320
321 2016-09-07  Konstantin Tokarev  <annulen@yandex.ru>
322
323         [GTK] Make inspection of Inspector conditional on DEVELOPER_MODE
324         https://bugs.webkit.org/show_bug.cgi?id=161702
325
326         Reviewed by Michael Catanzaro.
327
328         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
329         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
330
331 2016-09-07  Dan Bernstein  <mitz@apple.com>
332
333         [Cocoa] Update availability attributes per the macOS Sierra and iOS 10 GM seeds
334         https://bugs.webkit.org/show_bug.cgi?id=161704
335
336         Reviewed by Anders Carlsson.
337
338         * Shared/API/Cocoa/_WKHitTestResult.h:
339         * UIProcess/API/Cocoa/WKErrorPrivate.h:
340         * UIProcess/API/Cocoa/WKFrameInfoPrivate.h:
341         * UIProcess/API/Cocoa/WKMenuItemIdentifiersPrivate.h:
342         * UIProcess/API/Cocoa/WKNavigationDelegatePrivate.h:
343         * UIProcess/API/Cocoa/WKOpenPanelParameters.h:
344         * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
345         * UIProcess/API/Cocoa/WKPreviewActionItem.h:
346         * UIProcess/API/Cocoa/WKPreviewActionItemIdentifiers.h:
347         * UIProcess/API/Cocoa/WKPreviewElementInfo.h:
348         * UIProcess/API/Cocoa/WKProcessPoolPrivate.h:
349         * UIProcess/API/Cocoa/WKUIDelegate.h:
350         * UIProcess/API/Cocoa/WKUIDelegatePrivate.h:
351         * UIProcess/API/Cocoa/WKUserContentControllerPrivate.h:
352         * UIProcess/API/Cocoa/WKUserScriptPrivate.h:
353         * UIProcess/API/Cocoa/WKWebView.h:
354         * UIProcess/API/Cocoa/WKWebViewConfiguration.h:
355         * UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:
356         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
357         * UIProcess/API/Cocoa/WKWebsiteDataRecordPrivate.h:
358         * UIProcess/API/Cocoa/WKWebsiteDataStorePrivate.h:
359         * UIProcess/API/Cocoa/_WKActivatedElementInfo.h:
360         * UIProcess/API/Cocoa/_WKAutomationSession.h:
361         * UIProcess/API/Cocoa/_WKContextMenuElementInfo.h:
362         * UIProcess/API/Cocoa/_WKElementAction.h:
363         * UIProcess/API/Cocoa/_WKExperimentalFeature.h:
364         * UIProcess/API/Cocoa/_WKFormInputSession.h:
365         * UIProcess/API/Cocoa/_WKInputDelegate.h:
366         * UIProcess/API/Cocoa/_WKProcessPoolConfiguration.h:
367         * UIProcess/API/Cocoa/_WKUserContentExtensionStore.h:
368         * UIProcess/API/Cocoa/_WKUserContentWorld.h:
369         * UIProcess/API/Cocoa/_WKUserInitiatedAction.h:
370         * UIProcess/API/Cocoa/_WKUserStyleSheet.h:
371         * UIProcess/API/Cocoa/_WKWebsiteDataSize.h:
372         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFormDelegatePrivate.h:
373         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.h:
374         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorld.h:
375
376 2016-09-07  Michael Catanzaro  <mcatanzaro@igalia.com>
377
378         [EFL] Switch to ENABLE_NETWORK_CACHE
379         https://bugs.webkit.org/show_bug.cgi?id=152676
380
381         Reviewed by Alex Christensen.
382
383         Nowadays GTK+ always uses the network cache, and never the soup cache. Remove support for
384         using the soup cache, and switch the EFL port to use network cache.
385
386         * NetworkProcess/cache/NetworkCacheBlobStorage.cpp:
387         (WebKit::NetworkCache::BlobStorage::add): Check return value of link to placate
388         -Werror=unused-result on EFL builder
389         * NetworkProcess/efl/NetworkProcessMainEfl.cpp:
390         * NetworkProcess/soup/NetworkProcessSoup.cpp:
391         (WebKit::getCacheDiskFreeSize):
392         (WebKit::NetworkProcess::platformInitializeNetworkProcess):
393         (WebKit::NetworkProcess::platformSetCacheModel):
394         (WebKit::NetworkProcess::clearDiskCache):
395         * PlatformEfl.cmake: Add files to build.
396         * UIProcess/API/efl/APIWebsiteDataStoreEfl.cpp:
397         (API::WebsiteDataStore::defaultNetworkCacheDirectory): Use a saner location.
398         * UIProcess/API/gtk/APIWebsiteDataStoreGtk.cpp:
399         (API::WebsiteDataStore::defaultNetworkCacheDirectory):
400         * UIProcess/API/gtk/WebKitPrivate.h:
401         * UIProcess/soup/WebProcessPoolSoup.cpp:
402         (WebKit::WebProcessPool::platformInitializeNetworkProcess):
403         * WebProcess/efl/WebProcessMainEfl.cpp:
404         * config.h:
405
406 2016-09-07  Youenn Fablet  <youenn@apple.com>
407
408         [Streams API] Separate compile flag for ReadableStream and WritableStream
409         https://bugs.webkit.org/show_bug.cgi?id=161044
410
411         Reviewed by Alex Christensen.
412
413         Moving from STREAMS_API to READABLE_STREAM_API and WRITABLE_STREAM_API compilation flags.
414
415         * Configurations/FeatureDefines.xcconfig:
416
417 2016-09-07  Emanuele Aina  <emanuele.aina@collabora.com>
418
419         [GTK] Clarify frame callbacks behaviour in Wayland compositor
420         https://bugs.webkit.org/show_bug.cgi?id=161683
421
422         Reviewed by Carlos Garcia Campos.
423
424         The way we fire frame callbacks in the nested Wayland compositor can
425         be puzzling to developers expecting Wayland semantics, but since we
426         have our own mechanism to handle synchronization we don't care much
427         about them. Add a comment to avoid surprised Wayland developers.
428
429         * UIProcess/gtk/WaylandCompositor.cpp:
430         (WebKit::WaylandCompositor::Surface::commit):
431
432 2016-09-07  Csaba Osztrogonác  <ossy@webkit.org>
433
434         URTBF after r205369, just for fun.
435
436         * PlatformMac.cmake: Added new files.
437
438 2016-09-07  Carlos Garcia Campos  <cgarcia@igalia.com>
439
440         [GTK] Remove unused GObject DOM unstable API
441         https://bugs.webkit.org/show_bug.cgi?id=161440
442
443         Reviewed by Philippe Normand.
444
445         Remove unstable GObject DOM API now that we no longer auto-generate the bindings.
446
447         * PlatformGTK.cmake:
448         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAnimatable.cpp: Removed.
449         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAnimatable.h: Removed.
450         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAnimationEffect.cpp: Removed.
451         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAnimationEffect.h: Removed.
452         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAnimationEffectPrivate.h: Removed.
453         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAnimationTimeline.cpp: Removed.
454         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAnimationTimeline.h: Removed.
455         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAnimationTimelinePrivate.h: Removed.
456         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttr.cpp:
457         (webkit_dom_attr_get_property):
458         (webkit_dom_attr_class_init):
459         (webkit_dom_attr_get_prefix): Deleted.
460         (webkit_dom_attr_get_local_name): Deleted.
461         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttrUnstable.h: Removed.
462         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAudioTrack.cpp: Removed.
463         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAudioTrack.h: Removed.
464         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAudioTrackList.cpp: Removed.
465         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAudioTrackList.h: Removed.
466         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAudioTrackListPrivate.h: Removed.
467         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAudioTrackPrivate.h: Removed.
468         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBarProp.cpp: Removed.
469         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBarProp.h: Removed.
470         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBarPropPrivate.h: Removed.
471         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBatteryManager.cpp: Removed.
472         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBatteryManager.h: Removed.
473         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBatteryManagerPrivate.h: Removed.
474         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlob.cpp:
475         (webkit_dom_blob_get_property):
476         (webkit_dom_blob_class_init):
477         (webkit_dom_blob_get_size):
478         (webkit_dom_blob_init): Deleted.
479         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlobUnstable.h: Removed.
480         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRule.cpp:
481         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRuleUnstable.h: Removed.
482         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterData.cpp:
483         (webkit_dom_character_data_get_property):
484         (webkit_dom_character_data_class_init):
485         (webkit_dom_character_data_get_length):
486         (webkit_dom_character_data_set_property): Deleted.
487         (webkit_dom_character_data_substring_data): Deleted.
488         (webkit_dom_character_data_append_data): Deleted.
489         (webkit_dom_character_data_insert_data): Deleted.
490         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterDataUnstable.h: Removed.
491         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMApplicationCache.cpp: Removed.
492         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMApplicationCache.h: Removed.
493         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMApplicationCachePrivate.h: Removed.
494         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMCSSNamespace.cpp: Removed.
495         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMCSSNamespace.h: Removed.
496         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMCSSNamespacePrivate.h: Removed.
497         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMMimeType.cpp: Removed.
498         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMMimeType.h: Removed.
499         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMMimeTypeArray.cpp: Removed.
500         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMMimeTypeArray.h: Removed.
501         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMMimeTypeArrayPrivate.h: Removed.
502         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMMimeTypePrivate.h: Removed.
503         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMNamedFlowCollection.cpp: Removed.
504         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMNamedFlowCollection.h: Removed.
505         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMNamedFlowCollectionPrivate.h: Removed.
506         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMPlugin.cpp: Removed.
507         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMPlugin.h: Removed.
508         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMPluginArray.cpp: Removed.
509         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMPluginArray.h: Removed.
510         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMPluginArrayPrivate.h: Removed.
511         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMPluginPrivate.h: Removed.
512         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMStringList.cpp: Removed.
513         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMStringList.h: Removed.
514         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMStringListPrivate.h: Removed.
515         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMStringMap.cpp: Removed.
516         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMStringMap.h: Removed.
517         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMStringMapPrivate.h: Removed.
518         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.h:
519         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindowSpeechSynthesis.cpp: Removed.
520         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindowSpeechSynthesis.h: Removed.
521         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDataCue.cpp: Removed.
522         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDataCue.h: Removed.
523         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDataCuePrivate.h: Removed.
524         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDatabase.cpp: Removed.
525         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDatabase.h: Removed.
526         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDatabasePrivate.h: Removed.
527         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentAnimation.cpp: Removed.
528         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentAnimation.h: Removed.
529         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentTimeline.cpp: Removed.
530         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentTimeline.h: Removed.
531         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentTimelinePrivate.h: Removed.
532         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.cpp:
533         (webkit_dom_document_type_get_name): Deleted.
534         (webkit_dom_document_type_get_entities): Deleted.
535         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentTypeUnstable.h: Removed.
536         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEvent.cpp:
537         (webkit_dom_event_get_property):
538         (webkit_dom_event_class_init):
539         (webkit_dom_event_init): Deleted.
540         (webkit_dom_event_stop_propagation): Deleted.
541         (webkit_dom_event_get_bubbles): Deleted.
542         (webkit_dom_event_get_cancelable): Deleted.
543         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventUnstable.h: Removed.
544         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFile.cpp:
545         (webkit_dom_file_get_property):
546         (webkit_dom_file_class_init):
547         (webkit_dom_file_get_name):
548         (webkit_dom_file_init): Deleted.
549         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFileUnstable.h: Removed.
550         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMGamepad.cpp: Removed.
551         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMGamepad.h: Removed.
552         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMGamepadList.cpp: Removed.
553         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMGamepadList.h: Removed.
554         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMGeolocation.cpp: Removed.
555         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMGeolocation.h: Removed.
556         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMGeolocationPrivate.h: Removed.
557         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElement.cpp:
558         (webkit_dom_html_anchor_element_set_property):
559         (webkit_dom_html_anchor_element_get_property):
560         (webkit_dom_html_anchor_element_class_init):
561         (webkit_dom_html_anchor_element_init): Deleted.
562         (webkit_dom_html_anchor_element_get_charset): Deleted.
563         (webkit_dom_html_anchor_element_set_charset): Deleted.
564         (webkit_dom_html_anchor_element_get_coords): Deleted.
565         (webkit_dom_html_anchor_element_set_coords): Deleted.
566         (webkit_dom_html_anchor_element_get_target): Deleted.
567         (webkit_dom_html_anchor_element_set_target): Deleted.
568         (webkit_dom_html_anchor_element_get_type_attr): Deleted.
569         (webkit_dom_html_anchor_element_set_type_attr): Deleted.
570         (webkit_dom_html_anchor_element_set_href): Deleted.
571         (webkit_dom_html_anchor_element_get_protocol): Deleted.
572         (webkit_dom_html_anchor_element_set_protocol): Deleted.
573         (webkit_dom_html_anchor_element_set_hash): Deleted.
574         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElement.h:
575         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElementUnstable.h: Removed.
576         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElement.cpp:
577         (webkit_dom_html_area_element_set_property):
578         (webkit_dom_html_area_element_get_property):
579         (webkit_dom_html_area_element_class_init):
580         (webkit_dom_html_area_element_init): Deleted.
581         (webkit_dom_html_area_element_get_alt): Deleted.
582         (webkit_dom_html_area_element_set_alt): Deleted.
583         (webkit_dom_html_area_element_get_coords): Deleted.
584         (webkit_dom_html_area_element_set_coords): Deleted.
585         (webkit_dom_html_area_element_get_hostname): Deleted.
586         (webkit_dom_html_area_element_set_hostname): Deleted.
587         (webkit_dom_html_area_element_get_port): Deleted.
588         (webkit_dom_html_area_element_set_port): Deleted.
589         (webkit_dom_html_area_element_get_pathname): Deleted.
590         (webkit_dom_html_area_element_get_hash): Deleted.
591         (webkit_dom_html_area_element_set_hash): Deleted.
592         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElement.h:
593         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElementUnstable.h: Removed.
594         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAudioElement.cpp: Removed.
595         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAudioElement.h: Removed.
596         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAudioElementPrivate.h: Removed.
597         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElement.cpp:
598         (webkit_dom_html_button_element_set_property):
599         (webkit_dom_html_button_element_get_property):
600         (webkit_dom_html_button_element_class_init):
601         (webkit_dom_html_button_element_get_will_validate):
602         (webkit_dom_html_button_element_get_autofocus): Deleted.
603         (webkit_dom_html_button_element_set_autofocus): Deleted.
604         (webkit_dom_html_button_element_get_disabled): Deleted.
605         (webkit_dom_html_button_element_set_disabled): Deleted.
606         (webkit_dom_html_button_element_get_form): Deleted.
607         (webkit_dom_html_button_element_get_button_type): Deleted.
608         (webkit_dom_html_button_element_set_button_type): Deleted.
609         (webkit_dom_html_button_element_get_name): Deleted.
610         (webkit_dom_html_button_element_set_value): Deleted.
611         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElementUnstable.h: Removed.
612         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDetailsElement.cpp: Removed.
613         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDetailsElement.h: Removed.
614         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDetailsElementPrivate.h: Removed.
615         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElement.cpp:
616         (webkit_dom_html_field_set_element_get_property):
617         (webkit_dom_html_field_set_element_class_init):
618         (webkit_dom_html_field_set_element_get_form):
619         (webkit_dom_html_field_set_element_init): Deleted.
620         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElementUnstable.h: Removed.
621         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.cpp:
622         (webkit_dom_html_form_element_set_property):
623         (webkit_dom_html_form_element_get_property):
624         (webkit_dom_html_form_element_class_init):
625         (webkit_dom_html_form_element_get_length):
626         (webkit_dom_html_form_element_submit): Deleted.
627         (webkit_dom_html_form_element_reset): Deleted.
628         (webkit_dom_html_form_element_get_action): Deleted.
629         (webkit_dom_html_form_element_set_action): Deleted.
630         (webkit_dom_html_form_element_get_enctype): Deleted.
631         (webkit_dom_html_form_element_set_encoding): Deleted.
632         (webkit_dom_html_form_element_get_method): Deleted.
633         (webkit_dom_html_form_element_set_method): Deleted.
634         (webkit_dom_html_form_element_set_target): Deleted.
635         (webkit_dom_html_form_element_get_elements): Deleted.
636         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElementUnstable.h: Removed.
637         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElement.cpp:
638         (webkit_dom_html_html_element_set_property):
639         (webkit_dom_html_html_element_get_property):
640         (webkit_dom_html_html_element_class_init):
641         (webkit_dom_html_html_element_set_version):
642         (webkit_dom_html_html_element_get_version): Deleted.
643         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElementUnstable.h: Removed.
644         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElement.cpp:
645         (webkit_dom_html_iframe_element_set_property):
646         (webkit_dom_html_iframe_element_get_property):
647         (webkit_dom_html_iframe_element_class_init):
648         (webkit_dom_html_iframe_element_init): Deleted.
649         (webkit_dom_html_iframe_element_set_src): Deleted.
650         (webkit_dom_html_iframe_element_get_width): Deleted.
651         (webkit_dom_html_iframe_element_set_width): Deleted.
652         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElementUnstable.h: Removed.
653         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElement.cpp:
654         (webkit_dom_html_image_element_set_property):
655         (webkit_dom_html_image_element_get_property):
656         (webkit_dom_html_image_element_class_init):
657         (webkit_dom_html_image_element_set_long_desc): Deleted.
658         (webkit_dom_html_image_element_get_src): Deleted.
659         (webkit_dom_html_image_element_set_src): Deleted.
660         (webkit_dom_html_image_element_get_natural_height): Deleted.
661         (webkit_dom_html_image_element_get_natural_width): Deleted.
662         (webkit_dom_html_image_element_get_x): Deleted.
663         (webkit_dom_html_image_element_get_y): Deleted.
664         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElementUnstable.h: Removed.
665         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp:
666         (webkit_dom_html_input_element_set_property):
667         (webkit_dom_html_input_element_get_property):
668         (webkit_dom_html_input_element_class_init):
669         (webkit_dom_html_input_element_set_capture_type):
670         (webkit_dom_html_input_element_init): Deleted.
671         (webkit_dom_html_input_element_select): Deleted.
672         (webkit_dom_html_input_element_get_accept): Deleted.
673         (webkit_dom_html_input_element_set_accept): Deleted.
674         (webkit_dom_html_input_element_get_alt): Deleted.
675         (webkit_dom_html_input_element_set_alt): Deleted.
676         (webkit_dom_html_input_element_get_default_checked): Deleted.
677         (webkit_dom_html_input_element_set_default_checked): Deleted.
678         (webkit_dom_html_input_element_get_checked): Deleted.
679         (webkit_dom_html_input_element_set_checked): Deleted.
680         (webkit_dom_html_input_element_get_disabled): Deleted.
681         (webkit_dom_html_input_element_get_files): Deleted.
682         (webkit_dom_html_input_element_set_files): Deleted.
683         (webkit_dom_html_input_element_set_height): Deleted.
684         (webkit_dom_html_input_element_get_indeterminate): Deleted.
685         (webkit_dom_html_input_element_get_max_length): Deleted.
686         (webkit_dom_html_input_element_set_max_length): Deleted.
687         (webkit_dom_html_input_element_get_name): Deleted.
688         (webkit_dom_html_input_element_set_name): Deleted.
689         (webkit_dom_html_input_element_get_size): Deleted.
690         (webkit_dom_html_input_element_set_size): Deleted.
691         (webkit_dom_html_input_element_get_src): Deleted.
692         (webkit_dom_html_input_element_set_input_type): Deleted.
693         (webkit_dom_html_input_element_get_default_value): Deleted.
694         (webkit_dom_html_input_element_set_default_value): Deleted.
695         (webkit_dom_html_input_element_set_value): Deleted.
696         (webkit_dom_html_input_element_get_width): Deleted.
697         (webkit_dom_html_input_element_set_width): Deleted.
698         (webkit_dom_html_input_element_get_will_validate): Deleted.
699         (webkit_dom_html_input_element_get_align): Deleted.
700         (webkit_dom_html_input_element_set_align): Deleted.
701         (webkit_dom_html_input_element_get_use_map): Deleted.
702         (webkit_dom_html_input_element_set_use_map): Deleted.
703         (webkit_dom_html_input_element_get_capture_type): Deleted.
704         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.h:
705         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElementUnstable.h: Removed.
706         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLKeygenElement.cpp: Removed.
707         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLKeygenElement.h: Removed.
708         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLKeygenElementPrivate.h: Removed.
709         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElement.cpp:
710         (webkit_dom_html_label_element_get_property):
711         (webkit_dom_html_label_element_class_init):
712         (webkit_dom_html_label_element_init): Deleted.
713         (webkit_dom_html_label_element_get_form): Deleted.
714         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElementUnstable.h: Removed.
715         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.cpp:
716         (webkit_dom_html_link_element_set_property):
717         (webkit_dom_html_link_element_get_property):
718         (webkit_dom_html_link_element_class_init):
719         (webkit_dom_html_link_element_get_disabled): Deleted.
720         (webkit_dom_html_link_element_set_disabled): Deleted.
721         (webkit_dom_html_link_element_get_charset): Deleted.
722         (webkit_dom_html_link_element_set_charset): Deleted.
723         (webkit_dom_html_link_element_get_href): Deleted.
724         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.h:
725         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElementUnstable.h: Removed.
726         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElement.cpp:
727         (webkit_dom_html_marquee_element_class_init):
728         (webkit_dom_html_marquee_element_stop):
729         (webkit_dom_html_marquee_element_init): Deleted.
730         (webkit_dom_html_marquee_element_start): Deleted.
731         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElementUnstable.h: Removed.
732         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMediaElement.cpp: Removed.
733         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMediaElement.h: Removed.
734         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMediaElementPrivate.h: Removed.
735         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElement.cpp:
736         (webkit_dom_html_o_list_element_set_property):
737         (webkit_dom_html_o_list_element_get_property):
738         (webkit_dom_html_o_list_element_class_init):
739         (webkit_dom_html_o_list_element_init): Deleted.
740         (webkit_dom_html_o_list_element_get_compact): Deleted.
741         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElementUnstable.h: Removed.
742         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElement.cpp:
743         (webkit_dom_html_object_element_get_property):
744         (webkit_dom_html_object_element_class_init):
745         (webkit_dom_html_object_element_set_property): Deleted.
746         (webkit_dom_html_object_element_get_form): Deleted.
747         (webkit_dom_html_object_element_get_code): Deleted.
748         (webkit_dom_html_object_element_set_code): Deleted.
749         (webkit_dom_html_object_element_get_align): Deleted.
750         (webkit_dom_html_object_element_set_align): Deleted.
751         (webkit_dom_html_object_element_get_archive): Deleted.
752         (webkit_dom_html_object_element_set_archive): Deleted.
753         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElementUnstable.h: Removed.
754         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollection.cpp:
755         (webkit_dom_html_options_collection_get_selected_index): Deleted.
756         (webkit_dom_html_options_collection_set_selected_index): Deleted.
757         (webkit_dom_html_options_collection_get_length): Deleted.
758         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollectionUnstable.h: Removed.
759         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPrivate.cpp:
760         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElement.cpp:
761         (webkit_dom_html_script_element_set_property):
762         (webkit_dom_html_script_element_get_property):
763         (webkit_dom_html_script_element_class_init):
764         (webkit_dom_html_script_element_set_type_attr):
765         (webkit_dom_html_script_element_init): Deleted.
766         (webkit_dom_html_script_element_get_html_for): Deleted.
767         (webkit_dom_html_script_element_set_html_for): Deleted.
768         (webkit_dom_html_script_element_get_event): Deleted.
769         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElement.h:
770         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElementUnstable.h: Removed.
771         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.cpp:
772         (webkit_dom_html_select_element_set_property):
773         (webkit_dom_html_select_element_get_property):
774         (webkit_dom_html_select_element_class_init):
775         (webkit_dom_html_select_element_get_will_validate):
776         (webkit_dom_html_select_element_named_item): Deleted.
777         (webkit_dom_html_select_element_get_autofocus): Deleted.
778         (webkit_dom_html_select_element_set_autofocus): Deleted.
779         (webkit_dom_html_select_element_get_disabled): Deleted.
780         (webkit_dom_html_select_element_set_disabled): Deleted.
781         (webkit_dom_html_select_element_get_form): Deleted.
782         (webkit_dom_html_select_element_set_size): Deleted.
783         (webkit_dom_html_select_element_get_select_type): Deleted.
784         (webkit_dom_html_select_element_get_options): Deleted.
785         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElementUnstable.h: Removed.
786         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElement.cpp:
787         (webkit_dom_html_style_element_set_property):
788         (webkit_dom_html_style_element_get_property):
789         (webkit_dom_html_style_element_class_init):
790         (webkit_dom_html_style_element_get_sheet):
791         (webkit_dom_html_style_element_get_disabled): Deleted.
792         (webkit_dom_html_style_element_set_disabled): Deleted.
793         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElementUnstable.h: Removed.
794         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElement.cpp:
795         (webkit_dom_html_table_element_set_property):
796         (webkit_dom_html_table_element_get_property):
797         (webkit_dom_html_table_element_class_init):
798         (webkit_dom_html_table_element_insert_row): Deleted.
799         (webkit_dom_html_table_element_set_summary): Deleted.
800         (webkit_dom_html_table_element_get_width): Deleted.
801         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElementUnstable.h: Removed.
802         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.cpp:
803         (webkit_dom_html_text_area_element_set_property):
804         (webkit_dom_html_text_area_element_get_property):
805         (webkit_dom_html_text_area_element_class_init):
806         (webkit_dom_html_text_area_element_init): Deleted.
807         (webkit_dom_html_text_area_element_set_selection_range): Deleted.
808         (webkit_dom_html_text_area_element_set_autofocus): Deleted.
809         (webkit_dom_html_text_area_element_get_disabled): Deleted.
810         (webkit_dom_html_text_area_element_get_form): Deleted.
811         (webkit_dom_html_text_area_element_get_name): Deleted.
812         (webkit_dom_html_text_area_element_get_rows): Deleted.
813         (webkit_dom_html_text_area_element_set_rows): Deleted.
814         (webkit_dom_html_text_area_element_get_cols): Deleted.
815         (webkit_dom_html_text_area_element_set_cols): Deleted.
816         (webkit_dom_html_text_area_element_get_area_type): Deleted.
817         (webkit_dom_html_text_area_element_get_default_value): Deleted.
818         (webkit_dom_html_text_area_element_get_value): Deleted.
819         (webkit_dom_html_text_area_element_set_value): Deleted.
820         (webkit_dom_html_text_area_element_get_will_validate): Deleted.
821         (webkit_dom_html_text_area_element_get_selection_start): Deleted.
822         (webkit_dom_html_text_area_element_set_selection_start): Deleted.
823         (webkit_dom_html_text_area_element_get_selection_end): Deleted.
824         (webkit_dom_html_text_area_element_set_selection_end): Deleted.
825         (webkit_dom_html_text_area_element_is_edited): Deleted.
826         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElementUnstable.h: Removed.
827         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLVideoElement.cpp: Removed.
828         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLVideoElement.h: Removed.
829         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLVideoElementPrivate.h: Removed.
830         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHistory.cpp: Removed.
831         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHistory.h: Removed.
832         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHistoryPrivate.h: Removed.
833         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyframeEffect.cpp: Removed.
834         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyframeEffect.h: Removed.
835         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyframeEffectPrivate.h: Removed.
836         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMLocation.cpp: Removed.
837         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMLocation.h: Removed.
838         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMLocationPrivate.h: Removed.
839         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaController.cpp: Removed.
840         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaController.h: Removed.
841         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaControllerPrivate.h: Removed.
842         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaDevices.cpp: Removed.
843         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaDevices.h: Removed.
844         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaDevicesPrivate.h: Removed.
845         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaError.cpp: Removed.
846         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaError.h: Removed.
847         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaErrorPrivate.h: Removed.
848         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaQueryList.cpp: Removed.
849         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaQueryList.h: Removed.
850         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaQueryListPrivate.h: Removed.
851         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaTrackSupportedConstraints.cpp: Removed.
852         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaTrackSupportedConstraints.h: Removed.
853         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaTrackSupportedConstraintsPrivate.h: Removed.
854         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMessagePort.cpp: Removed.
855         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMessagePort.h: Removed.
856         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMessagePortPrivate.h: Removed.
857         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEvent.cpp:
858         (webkit_dom_mouse_event_get_property):
859         (webkit_dom_mouse_event_class_init):
860         (webkit_dom_mouse_event_get_y): Deleted.
861         (webkit_dom_mouse_event_get_from_element): Deleted.
862         (webkit_dom_mouse_event_get_to_element): Deleted.
863         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEventUnstable.h: Removed.
864         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNavigator.cpp: Removed.
865         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNavigator.h: Removed.
866         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNavigatorMediaDevices.cpp: Removed.
867         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNavigatorMediaDevices.h: Removed.
868         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNavigatorPrivate.h: Removed.
869         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNode.cpp:
870         (webkit_dom_node_get_property):
871         (webkit_dom_node_class_init):
872         (webkit_dom_node_init): Deleted.
873         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeUnstable.h: Removed.
874         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformance.cpp: Removed.
875         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformance.h: Removed.
876         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformanceEntry.cpp: Removed.
877         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformanceEntry.h: Removed.
878         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformanceEntryPrivate.h: Removed.
879         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformanceNavigation.cpp: Removed.
880         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformanceNavigation.h: Removed.
881         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformanceNavigationPrivate.h: Removed.
882         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformancePrivate.h: Removed.
883         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformanceTiming.cpp: Removed.
884         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformanceTiming.h: Removed.
885         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformanceTimingPrivate.h: Removed.
886         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivate.cpp:
887         (WebKit::wrap): Deleted.
888         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivate.h:
889         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMScreen.cpp: Removed.
890         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMScreen.h: Removed.
891         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMScreenPrivate.h: Removed.
892         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesis.cpp: Removed.
893         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesis.h: Removed.
894         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisEvent.cpp: Removed.
895         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisEvent.h: Removed.
896         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisEventPrivate.h: Removed.
897         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisPrivate.h: Removed.
898         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisUtterance.cpp: Removed.
899         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisUtterance.h: Removed.
900         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisUtterancePrivate.h: Removed.
901         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisVoice.cpp: Removed.
902         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisVoice.h: Removed.
903         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMSpeechSynthesisVoicePrivate.h: Removed.
904         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStorage.cpp: Removed.
905         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStorage.h: Removed.
906         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStorageInfo.cpp: Removed.
907         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStorageInfo.h: Removed.
908         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStoragePrivate.h: Removed.
909         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStorageQuota.cpp: Removed.
910         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStorageQuota.h: Removed.
911         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleMedia.cpp: Removed.
912         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleMedia.h: Removed.
913         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleMediaPrivate.h: Removed.
914         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrack.cpp: Removed.
915         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrack.h: Removed.
916         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackCue.cpp: Removed.
917         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackCue.h: Removed.
918         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackCueList.cpp: Removed.
919         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackCueList.h: Removed.
920         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackCueListPrivate.h: Removed.
921         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackCuePrivate.h: Removed.
922         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackList.cpp: Removed.
923         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackList.h: Removed.
924         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackListPrivate.h: Removed.
925         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextTrackPrivate.h: Removed.
926         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTimeRanges.cpp: Removed.
927         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTimeRanges.h: Removed.
928         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTimeRangesPrivate.h: Removed.
929         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTouch.cpp: Removed.
930         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTouch.h: Removed.
931         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTouchPrivate.h: Removed.
932         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTrackEvent.cpp: Removed.
933         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTrackEvent.h: Removed.
934         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTrackEventPrivate.h: Removed.
935         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.cpp:
936         (webkit_dom_ui_event_get_property):
937         (webkit_dom_ui_event_class_init):
938         (webkit_dom_ui_event_get_page_y):
939         (webkit_dom_ui_event_init): Deleted.
940         (webkit_dom_ui_event_init_ui_event): Deleted.
941         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEventUnstable.h: Removed.
942         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUserMessageHandler.cpp: Removed.
943         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUserMessageHandler.h: Removed.
944         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUserMessageHandlerPrivate.h: Removed.
945         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUserMessageHandlersNamespace.cpp: Removed.
946         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUserMessageHandlersNamespace.h: Removed.
947         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUserMessageHandlersNamespacePrivate.h: Removed.
948         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVTTCue.cpp: Removed.
949         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVTTCue.h: Removed.
950         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVTTCuePrivate.h: Removed.
951         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMValidityState.cpp: Removed.
952         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMValidityState.h: Removed.
953         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMValidityStatePrivate.h: Removed.
954         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVideoPlaybackQuality.cpp: Removed.
955         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVideoPlaybackQuality.h: Removed.
956         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVideoPlaybackQualityPrivate.h: Removed.
957         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVideoTrack.cpp: Removed.
958         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVideoTrack.h: Removed.
959         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVideoTrackList.cpp: Removed.
960         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVideoTrackList.h: Removed.
961         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVideoTrackListPrivate.h: Removed.
962         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMVideoTrackPrivate.h: Removed.
963         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebAnimation.cpp: Removed.
964         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebAnimation.h: Removed.
965         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebAnimationPrivate.h: Removed.
966         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebKitNamedFlow.cpp: Removed.
967         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebKitNamedFlow.h: Removed.
968         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebKitNamedFlowPrivate.h: Removed.
969         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebKitNamespace.cpp: Removed.
970         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebKitNamespace.h: Removed.
971         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebKitNamespacePrivate.h: Removed.
972         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebKitPoint.cpp: Removed.
973         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebKitPoint.h: Removed.
974         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWebKitPointPrivate.h: Removed.
975         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEvent.cpp:
976         (webkit_dom_wheel_event_get_property):
977         (webkit_dom_wheel_event_class_init):
978         (webkit_dom_wheel_event_get_wheel_delta):
979         (webkit_dom_wheel_event_init): Deleted.
980         (webkit_dom_wheel_event_init_wheel_event): Deleted.
981         (webkit_dom_wheel_event_get_wheel_delta_x): Deleted.
982         (webkit_dom_wheel_event_get_wheel_delta_y): Deleted.
983         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEventUnstable.h: Removed.
984         * WebProcess/InjectedBundle/API/gtk/DOM/docs/webkitdomgtk-4.0-sections.txt:
985         * WebProcess/InjectedBundle/API/gtk/DOM/webkitdomautocleanups-unstable.h: Removed.
986         * WebProcess/InjectedBundle/API/gtk/DOM/webkitdomdefines-unstable.h: Removed.
987
988 2016-09-07  Carlos Garcia Campos  <cgarcia@igalia.com>
989
990         [GTK] Move some GObject DOM unstable API to stable
991         https://bugs.webkit.org/show_bug.cgi?id=161681
992
993         Reviewed by Žan Doberšek.
994
995         Move unstable API currently used by applications to the stable API in preparation for removing all unused
996         unstable API.
997
998         * PlatformGTK.cmake:
999         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCustom.cpp: Removed.
1000         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCustom.h:
1001         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCustomUnstable.h:
1002         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.h:
1003         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.h:
1004         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.cpp:
1005         (webkit_dom_dom_window_get_property):
1006         (webkit_dom_dom_window_class_init):
1007         (webkit_dom_dom_window_webkit_message_handlers_post_message):
1008         (webkit_dom_dom_window_set_property): Deleted.
1009         (webkit_dom_dom_window_get_computed_style): Deleted.
1010         (webkit_dom_dom_window_capture_events): Deleted.
1011         (webkit_dom_dom_window_get_frame_element): Deleted.
1012         (webkit_dom_dom_window_get_offscreen_buffering): Deleted.
1013         (webkit_dom_dom_window_get_outer_height): Deleted.
1014         (webkit_dom_dom_window_get_outer_width): Deleted.
1015         (webkit_dom_dom_window_get_inner_height): Deleted.
1016         (webkit_dom_dom_window_get_inner_width): Deleted.
1017         (webkit_dom_dom_window_get_screen_x): Deleted.
1018         (webkit_dom_dom_window_set_status): Deleted.
1019         (webkit_dom_dom_window_get_default_status): Deleted.
1020         (webkit_dom_dom_window_get_window): Deleted.
1021         (webkit_dom_dom_window_get_frames): Deleted.
1022         (webkit_dom_dom_window_get_parent): Deleted.
1023         (webkit_dom_dom_window_get_top): Deleted.
1024         (webkit_dom_dom_window_get_document): Deleted.
1025         (webkit_dom_dom_window_get_device_pixel_ratio): Deleted.
1026         (webkit_dom_dom_window_get_orientation): Deleted.
1027         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.h:
1028         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindowUnstable.h:
1029         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.cpp:
1030         (webkit_dom_document_get_property):
1031         (webkit_dom_document_webkit_cancel_fullscreen):
1032         (webkit_dom_document_get_webkit_is_fullscreen):
1033         (webkit_dom_document_get_webkit_fullscreen_keyboard_input_allowed):
1034         (webkit_dom_document_get_webkit_current_fullscreen_element):
1035         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.h:
1036         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragment.h:
1037         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragmentUnstable.h:
1038         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentUnstable.h:
1039         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.cpp:
1040         (webkit_dom_element_webkit_request_fullscreen): Deleted.
1041         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.h:
1042         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElementUnstable.h:
1043         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.h:
1044         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElementUnstable.h:
1045         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp:
1046         (webkit_dom_html_input_element_is_edited):
1047         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.h:
1048         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.cpp:
1049         (webkit_dom_html_link_element_set_sizes):
1050         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.h:
1051         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.cpp:
1052         (webkit_dom_html_text_area_element_is_edited):
1053         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.h:
1054         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRange.h:
1055         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRangeUnstable.h:
1056         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUserMessageHandlersNamespace.cpp:
1057         (webkit_dom_user_message_handlers_namespace_get_handler):
1058         (webkit_dom_user_message_handlers_namespace_init): Deleted.
1059         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUserMessageHandlersNamespace.h:
1060         * WebProcess/InjectedBundle/API/gtk/DOM/docs/webkitdomgtk-4.0-sections.txt:
1061         * WebProcess/InjectedBundle/API/gtk/DOM/docs/webkitdomgtk-docs.sgml:
1062         * WebProcess/InjectedBundle/API/gtk/DOM/webkitdomdefines-unstable.h:
1063         * WebProcess/InjectedBundle/API/gtk/DOM/webkitdomdefines.h:
1064
1065 2016-09-06  Carlos Garcia Campos  <cgarcia@igalia.com>
1066
1067         [GTK][Threaded Compositor] Several flaky tests
1068         https://bugs.webkit.org/show_bug.cgi?id=161242
1069
1070         Reviewed by Michael Catanzaro.
1071
1072         Reset the viewport attributes on SimpleViewportController when viewport attributes change and fixed layout is
1073         not used. We were only updating the viewport attributes when fixed layout was used, but not resetting them again
1074         when it's no longer used. That caused that reference tests run after fast/fixed-layout/fixed-layout.html or
1075         compositing/fixed-with-fixed-layout.html in the same worker thread were incorrectly rendered.
1076
1077         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1078         (WebKit::WebChromeClient::dispatchViewportPropertiesDidChange): Remove ifdefs and call
1079         WebPage::viewportPropertiesDidChange() unconditionally.
1080         * WebProcess/WebPage/WebPage.cpp:
1081         (WebKit::WebPage::setSize): Pass current page viewport arguments to sendViewportAttributesChanged().
1082         (WebKit::WebPage::sendViewportAttributesChanged): It now receives the viewport arguments.
1083         (WebKit::WebPage::viewportPropertiesDidChange): Move the iOS implementation from WebPageIOS.mm and for
1084         coordinated graphics call sendViewportAttributesChanged() when fixed layout is used or reset the viewport
1085         attributes when not used in case of threaded compositor.
1086         * WebProcess/WebPage/WebPage.h:
1087         (WebKit::WebPage::viewportPropertiesDidChange): Moved out of iOS ifdef.
1088         * WebProcess/WebPage/ios/WebPageIOS.mm:
1089         (WebKit::WebPage::viewportPropertiesDidChange): Deleted.
1090
1091 2016-09-06  Carlos Garcia Campos  <cgarcia@igalia.com>
1092
1093         Unreviewed. Fix the GTK+ build after r205524.
1094
1095         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp:
1096         (webkit_dom_html_input_element_get_max_length):
1097         (webkit_dom_html_input_element_set_max_length):
1098         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.cpp:
1099         (webkit_dom_html_text_area_element_get_max_length):
1100         (webkit_dom_html_text_area_element_set_max_length):
1101
1102 2016-09-06  Daniel Bates  <dabates@apple.com>
1103
1104         [iOS] WebKit2 fails to build with iOS 10 beta SDK - "'UIWKTextInteractionAssistant' may not respond to 'selectAll:'"
1105         https://bugs.webkit.org/show_bug.cgi?id=161663
1106
1107         Reviewed by Darin Adler.
1108
1109         The UIResponderStandardEditActions extensions, including the selectAll: message, are now
1110         part of a formal protocol by the same name as of the iOS 10 beta SDK.
1111
1112         * Platform/spi/ios/UIKitSPI.h:
1113
1114 2016-09-06  Ryosuke Niwa  <rniwa@webkit.org>
1115
1116         Enable custom elements API in Safari Technology Preview
1117         https://bugs.webkit.org/show_bug.cgi?id=161518
1118
1119         Reviewed by Chris Dumez.
1120
1121         Re-enable custom elements API in Safari Technology Preview after r203296
1122         now that our implementation has caught up to the latest specification changes.
1123
1124         * Shared/WebPreferencesDefinitions.h:
1125
1126 2016-09-01  Simon Fraser  <simon.fraser@apple.com>
1127
1128         Use TemporaryChange<> to maintain m_userIsInteracting
1129         https://bugs.webkit.org/show_bug.cgi?id=161497
1130
1131         Reviewed by Tim Horton.
1132
1133         Replace some error-prone manual set/clear of m_userIsInteracting with
1134         TemporaryChange<>.
1135
1136         No behavior change.
1137
1138         * WebProcess/WebPage/WebPage.cpp:
1139         (WebKit::WebPage::mouseEvent):
1140         (WebKit::WebPage::keyEvent):
1141         (WebKit::WebPage::dispatchTouchEvent):
1142
1143 2016-09-06  Tim Horton  <timothy_horton@apple.com>
1144
1145         Remove SwipeTransitionStyle; only Overlap has ever been used
1146         https://bugs.webkit.org/show_bug.cgi?id=161617
1147
1148         Reviewed by Alex Christensen.
1149
1150         * UIProcess/mac/ViewGestureController.h:
1151         * UIProcess/mac/ViewGestureControllerMac.mm:
1152         (WebKit::ViewGestureController::beginSwipeGesture):
1153         (WebKit::ViewGestureController::handleSwipeGesture):
1154         Remove SwipeTransitionStyle::Push, and SwipeTransitionStyle itself entirely,
1155         because we've never used it and it is only supported by the Mac
1156         implementation of ViewGestureController.
1157
1158 2016-09-06  Daniel Bates  <dabates@apple.com>
1159
1160         Remove EXTERN_C from WTF
1161         https://bugs.webkit.org/show_bug.cgi?id=161090
1162
1163         Reviewed by Brent Fulgham.
1164
1165         Guard external C declarations in WTF_EXTERN_C_BEGIN, WTF_EXTERN_C_END.
1166
1167         * Platform/spi/ios/ManagedConfigurationSPI.h:
1168
1169 2016-09-06  Ryan Haddad  <ryanhaddad@apple.com>
1170
1171         Unreviewed, rolling out r205407.
1172
1173         Not the correct way to implement this functionality
1174
1175         Reverted changeset:
1176
1177         "Consult with the FrameLoaderClient about whether or not
1178         content extensions should be enabled when loading this URL."
1179         https://bugs.webkit.org/show_bug.cgi?id=161441
1180         http://trac.webkit.org/changeset/205407
1181
1182 2016-09-06  Carlos Garcia Campos  <cgarcia@igalia.com>
1183
1184         [GTK][Wayland] evince-browser-plugin prevents viewing PDFs
1185         https://bugs.webkit.org/show_bug.cgi?id=158697
1186
1187         Reviewed by Michael Catanzaro.
1188
1189         Use a different cache file for plugins depending on the current platform display. Plugins can claim to work on
1190         X11 but not on Wayland, for example, if they need XEmebed to work. That's the case of the evince browser plugin.
1191
1192         * UIProcess/Plugins/gtk/PluginInfoCache.cpp:
1193         (WebKit::cacheFilenameForCurrentDisplay):
1194         (WebKit::PluginInfoCache::PluginInfoCache):
1195
1196 2016-09-06  Carlos Garcia Campos  <cgarcia@igalia.com>
1197
1198         [Threaded Compositor] Update timer should have lower priority than tasks scheduled in compositing thread
1199         https://bugs.webkit.org/show_bug.cgi?id=161625
1200
1201         Reviewed by Sergio Villar Senin.
1202
1203         This way, if a resize is scheduled, for example, and there are pending updates, the resize will happen first,
1204         and then the updates will happen at the right size.
1205
1206         * Shared/CoordinatedGraphics/threadedcompositor/CompositingRunLoop.cpp:
1207         (WebKit::CompositingRunLoop::CompositingRunLoop): Use G_PRIORITY_HIGH_IDLE as update timer priority. The actual
1208         priority doesn't really matter as long as it's lower than G_PRIORITY_DEFAULT, because there are only two
1209         possible sources in the compositing run loop, one for the tasks scheduled, and another one for the update timer.
1210
1211 2016-09-06  Emanuele Aina  <emanuele.aina@collabora.com>
1212
1213         [GTK] glImageTargetTexture2D() is a GL function, rename accordingly
1214         https://bugs.webkit.org/show_bug.cgi?id=161622
1215
1216         Reviewed by Carlos Garcia Campos.
1217
1218         glImageTargetTexture2D() is a GL function, not EGL, using the 'egl'
1219         prefix is misleading.
1220
1221         * UIProcess/gtk/WaylandCompositor.cpp:
1222         (WebKit::WaylandCompositor::Surface::prepareTextureForPainting):
1223         (WebKit::WaylandCompositor::initializeEGL):
1224
1225 2016-09-06  Emanuele Aina  <emanuele.aina@collabora.com>
1226
1227         [GTK][EFL] Make *_PROCESS_CMD_PREFIX conditional on DEVELOPER_MODE
1228         https://bugs.webkit.org/show_bug.cgi?id=161621
1229
1230         Reviewed by Carlos Garcia Campos.
1231
1232         Instead of enabling support for the *_PROCESS_CMD_PREFIX set of
1233         environment valiables (eg. WEB_PROCESS_CMD_PREFIX) on debug builds
1234         only, enable it when DEVELOPER_MODE is enabled as it already guards
1235         similar features (eg. WEBKIT_EXEC_PATH).
1236
1237         * UIProcess/ChildProcessProxy.cpp:
1238         (WebKit::ChildProcessProxy::getLaunchOptions):
1239         * UIProcess/Launcher/ProcessLauncher.h:
1240         * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
1241         (WebKit::ProcessLauncher::launchProcess):
1242         * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
1243         (WebKit::ProcessLauncher::launchProcess):
1244
1245 2016-09-05  Zan Dobersek  <zdobersek@igalia.com>
1246
1247         Fix ENABLE(GAMEPAD) build errors on non-Cocoa platforms
1248         https://bugs.webkit.org/show_bug.cgi?id=161596
1249
1250         Reviewed by Darin Adler.
1251
1252         This patch fixes build errors popping up when enabling Gamepad
1253         feature on non-Cocoa platforms.
1254
1255         * CMakeLists.txt: Add the Source/WebCore/platform/gamepad/ directory to
1256         WebKit2_INCLUDE_DIRECTORIES. Add GamepadData.cpp, UIGamepad.cpp files to the build.
1257         * UIProcess/Gamepad/UIGamepadProvider.cpp: Don't include Cocoa-specific
1258         HIDGamepadProvider.h file. Update methods for the UIGamepadProvider class.
1259         (WebKit::UIGamepadProvider::platformWebPageProxyForGamepadInput):
1260         (WebKit::UIGamepadProvider::platformStartMonitoringGamepads): Deleted.
1261         (WebKit::UIGamepadProvider::platformStopMonitoringGamepads): Deleted.
1262         (WebKit::UIGamepadProvider::platformGamepads): Deleted.
1263         (WebKit::UIGamepadProvider::platformWebProcessProxyForGamepadInput): Deleted.
1264
1265 2016-09-05  Tim Horton  <timothy_horton@apple.com>
1266
1267         Remove some dead code in ViewGestureControllerMac
1268         https://bugs.webkit.org/show_bug.cgi?id=161616
1269
1270         Reviewed by Darin Adler.
1271
1272         * UIProcess/mac/ViewGestureControllerMac.mm:
1273         (WebKit::ViewGestureController::endSwipeGesture):
1274         All other LEGACY_SWIPE_SHADOW_STYLE code has been removed, except for this.
1275
1276 2016-09-05  Darin Adler  <darin@apple.com>
1277
1278         More bindings improvements, particularly things not needed for JavaScript bindings
1279         https://bugs.webkit.org/show_bug.cgi?id=161572
1280
1281         Reviewed by Sam Weinig.
1282
1283         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.cpp:
1284         (webkit_dom_dom_implementation_has_feature): Call SVGTests::hasFeatureForLegacyBindings
1285         instead of DOMImplementation::hasFeature. Also removed JSMainThreadNullState
1286         since this does not do anything that can invoke JavaScript.
1287
1288         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDeprecated.cpp:
1289         (webkit_dom_document_get_default_charset): Call defaultCharsetForLegacyBindings.
1290         Also removed JSMainThreadNullState.
1291
1292         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.cpp:
1293         (webkit_dom_document_type_get_entities): Changed to simply return nullptr; same behavior
1294         as before, but with no dependency on WebCore. Also removed JSMainThreadNullState.
1295         (webkit_dom_document_type_get_notations): Ditto.
1296         (webkit_dom_document_type_get_internal_subset): Ditto.
1297
1298         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNode.cpp:
1299         (webkit_dom_node_is_supported): Call SVGTests::hasFeatureForLegacyBindings
1300         instead of Node::isSupportedForBindings. Also removed JSMainThreadNullState.
1301
1302 2016-09-05  Michael Catanzaro  <mcatanzaro@igalia.com>
1303
1304         Unreviewed, update stale variable name
1305
1306         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
1307         (webkitWebViewBaseCreateWebPage):
1308
1309 2016-08-31  Filip Pizlo  <fpizlo@apple.com>
1310
1311         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
1312         https://bugs.webkit.org/show_bug.cgi?id=160125
1313
1314         Reviewed by Geoffrey Garen and Keith Miller.
1315         
1316         Just rewiring some #includes.
1317
1318         * UIProcess/ViewGestureController.cpp:
1319         * UIProcess/WebPageProxy.cpp:
1320         * UIProcess/WebProcessPool.cpp:
1321         * UIProcess/WebProcessProxy.cpp:
1322         * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
1323         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
1324
1325 2016-09-05  Michael Catanzaro  <mcatanzaro@igalia.com>
1326
1327         Unreviewed error message typo fix
1328
1329         * WebProcess/UserContent/WebUserContentController.cpp:
1330         (WebKit::WebUserContentController::removeUserContentWorlds):
1331
1332 2016-09-05  Dan Bernstein  <mitz@apple.com>
1333
1334         [Cocoa] Drop ".Development" suffix from XPC service bundle IDs, leave it only on the executable
1335         https://bugs.webkit.org/show_bug.cgi?id=161575
1336
1337         Reviewed by Sam Weinig.
1338
1339         Append the ".Development" suffix to the executable names, but not to the bundle names and
1340         bundle IDs.
1341
1342         * Configurations/BaseTarget.xcconfig: No need for a preprocessor definition anymore.
1343         * Configurations/BaseXPCService.xcconfig: Set EXECUTABLE_SUFFIX.
1344         * Configurations/DatabaseService.xcconfig: No need to suffix the service name and bundle ID.
1345         * Configurations/NetworkService.xcconfig: Ditto.
1346         * Configurations/PluginService.32.xcconfig: Ditto.
1347         * Configurations/PluginService.64.xcconfig: Ditto.
1348         * Configurations/WebContentService.xcconfig: Ditto.
1349         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
1350         (WebKit::serviceName): Service names are no longer suffixed.
1351         * WebKit2.xcodeproj/project.pbxproj: Ditto.
1352
1353 2016-09-05  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
1354
1355         [GTK] GL_PACK_ROW_LENGTH is not available in GLES2
1356         https://bugs.webkit.org/show_bug.cgi?id=161484
1357
1358         Reviewed by Carlos Garcia Campos.
1359
1360         * UIProcess/gtk/AcceleratedBackingStoreWayland.cpp:
1361         (WebKit::AcceleratedBackingStoreWayland::paint): when under GLES2 we cannot rely on
1362         GL_PACK_ROW_LENGTH; use glReadPixel directly when stride matches width, read line
1363         by line manually otherwise. Colour conversion is also required to get the data out
1364         correctly.
1365
1366 2016-09-05  Carlos Garcia Campos  <cgarcia@igalia.com>
1367
1368         [GTK] SetNativeSurfaceHandleForCompositing should not be compiled in for wayland build
1369         https://bugs.webkit.org/show_bug.cgi?id=161483
1370
1371         Reviewed by Žan Doberšek.
1372
1373         SetNativeSurfaceHandleForCompositing and DestroyNativeSurfaceHandleForCompositing messages should only be used
1374         for GTK+ port when compiled with OpenGL and X11 enabled and redirected XComposite window disabled. So, we should
1375         use USE(TEXTURE_MAPPER) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW) consistently.
1376         This fixes the build when building the GTK+ port with Wayland enabled and X11 disabled.
1377
1378         * UIProcess/AcceleratedDrawingAreaProxy.cpp:
1379         (WebKit::AcceleratedDrawingAreaProxy::didUpdateBackingStoreState):
1380         * UIProcess/AcceleratedDrawingAreaProxy.h:
1381         * WebProcess/WebPage/AcceleratedDrawingArea.cpp:
1382         (WebKit::AcceleratedDrawingArea::enterAcceleratedCompositingMode):
1383         * WebProcess/WebPage/AcceleratedDrawingArea.h:
1384         * WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp:
1385         * WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.h:
1386         * WebProcess/WebPage/DrawingArea.h:
1387         * WebProcess/WebPage/DrawingArea.messages.in:
1388         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
1389         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
1390
1391 2016-09-05  Zan Dobersek  <zdobersek@igalia.com>
1392
1393         [GObject bindings] override handleEvent() method in GObjectEventListener
1394         https://bugs.webkit.org/show_bug.cgi?id=161593
1395
1396         Reviewed by Carlos Garcia Campos.
1397
1398         * WebProcess/InjectedBundle/API/gtk/DOM/GObjectEventListener.h: Override
1399         the handleMethod() which is inherited from the WebCore EventListener class.
1400         Suppresses the -Winconsistent-missing-override warning that Clang propagates.
1401
1402 2016-09-04  Joseph Pecoraro  <pecoraro@apple.com>
1403
1404         Remove unnecessary RetainPtr.
1405
1406         Review comments on earlier change.
1407
1408         * UIProcess/mac/WKImmediateActionController.mm:
1409         (-[WKImmediateActionController _defaultAnimationController]):
1410
1411 2016-09-04  Dan Bernstein  <mitz@apple.com>
1412
1413         [Cocoa] Wrapping XPC service execution in os_activity is no longer needed
1414         https://bugs.webkit.org/show_bug.cgi?id=161577
1415
1416         Reviewed by Sam Weinig.
1417
1418         Removed code that created an os_activity around the execution of the XPC service
1419         code, because this workaround is no longer needed.
1420
1421         * DatabaseProcess/EntryPoint/mac/XPCService/DatabaseServiceEntryPoint.mm:
1422         (DatabaseServiceInitializer):
1423         * NetworkProcess/EntryPoint/mac/XPCService/NetworkServiceEntryPoint.mm:
1424         (NetworkServiceInitializer):
1425         * PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm:
1426         (PluginServiceInitializer):
1427         * WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm:
1428         (WebContentServiceInitializer):
1429
1430 2016-09-04  Commit Queue  <commit-queue@webkit.org>
1431
1432         Unreviewed, rolling out r205415.
1433         https://bugs.webkit.org/show_bug.cgi?id=161573
1434
1435         Many bots see inspector test failures, rolling out now and
1436         investigating later. (Requested by brrian on #webkit).
1437
1438         Reverted changeset:
1439
1440         "Web Inspector: unify Main.html and Test.html sources and
1441         generate different copies with the preprocessor"
1442         https://bugs.webkit.org/show_bug.cgi?id=161212
1443         http://trac.webkit.org/changeset/205415
1444
1445 2016-09-01  Brian Burg  <bburg@apple.com>
1446
1447         Web Inspector: unify Main.html and Test.html sources and generate different copies with the preprocessor
1448         https://bugs.webkit.org/show_bug.cgi?id=161212
1449         <rdar://problem/28017961>
1450
1451         Reviewed by Joseph Pecoraro.
1452
1453         Rearrange CMake rules so that most Inspector UI work is done in WebInspectorUI.
1454
1455         * PlatformGTK.cmake:
1456         - Move the list of Inspector resources into WebInspectorUI/CMakeLists.txt.
1457         - Move generation of InspectorGResourceBundle into WebInspectorUI.
1458         - Copy over InspectorGResourceBundle.c into WebKit2's Derived Sources before compiling.
1459
1460 2016-09-03  Wenson Hsieh  <wenson_hsieh@apple.com>
1461
1462         Refactor the heuristic for showing media controls to take all media sessions into account
1463         https://bugs.webkit.org/show_bug.cgi?id=161503
1464         <rdar://problem/28033783>
1465
1466         Reviewed by Darin Adler.
1467
1468         Adds an SPI testing hook for sending the element ID of the currently controlled video element from the web
1469         process to the UI process. See VideoControlsManager.mm in Tools/TestWebKitAPI/ for usage.
1470
1471         * UIProcess/API/Cocoa/WKWebView.mm:
1472         (-[WKWebView _requestControlledElementID]):
1473         (-[WKWebView _handleControlledElementIDResponse:]):
1474         (-[WKWebView _hasActiveVideoForControlsManager]): Deleted.
1475         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
1476         * UIProcess/Cocoa/WebPlaybackSessionManagerProxy.h:
1477         * UIProcess/Cocoa/WebPlaybackSessionManagerProxy.messages.in:
1478         * UIProcess/Cocoa/WebPlaybackSessionManagerProxy.mm:
1479         (WebKit::WebPlaybackSessionManagerProxy::handleControlledElementIDResponse):
1480         (WebKit::WebPlaybackSessionManagerProxy::requestControlledElementID):
1481         * UIProcess/PageClient.h:
1482         * UIProcess/WebPageProxy.cpp:
1483         (WebKit::WebPageProxy::requestControlledElementID):
1484         (WebKit::WebPageProxy::handleControlledElementIDResponse):
1485         * UIProcess/WebPageProxy.h:
1486         * UIProcess/mac/PageClientImpl.h:
1487         * UIProcess/mac/PageClientImpl.mm:
1488         (WebKit::PageClientImpl::handleControlledElementIDResponse):
1489         * WebProcess/cocoa/WebPlaybackSessionManager.h:
1490         * WebProcess/cocoa/WebPlaybackSessionManager.messages.in:
1491         * WebProcess/cocoa/WebPlaybackSessionManager.mm:
1492         (WebKit::WebPlaybackSessionManager::handleControlledElementIDRequest):
1493
1494 2016-09-03  Darin Adler  <darin@apple.com>
1495
1496         Streamline DOMImplementation, and move it to our new DOM exception system
1497         https://bugs.webkit.org/show_bug.cgi?id=161295
1498
1499         Reviewed by Ryosuke Niwa.
1500
1501         * UIProcess/WebFrameProxy.cpp:
1502         (WebKit::WebFrameProxy::isDisplayingMarkupDocument): Use isXMLMIMEType in its
1503         new location in MIMETypeRegistry rather than in DOMImplementation.
1504         (WebKit::WebFrameProxy::isDisplayingPDFDocument): Removed unneeded redundant
1505         check for empty string, already done by MIMETypeRegistry.
1506
1507 2016-09-03  Brian Weinstein  <bweinstein@apple.com>
1508
1509         Implement WebFrameLoaderClient::shouldUseContentExtensionsForURL and consult the InjectedBundlePageLoaderClient.
1510         https://bugs.webkit.org/show_bug.cgi?id=161441
1511
1512         Reviewed by Darin Adler.
1513
1514         WebFrameLoaderClient::shouldUseContentExtensionsForURL only consults the injected bundle, because we don't want to
1515         defer the loading of every main resource to consult with the UI Process about whether or not we should use content
1516         extensions for the load.
1517
1518         * WebProcess/InjectedBundle/API/c/WKBundlePageLoaderClient.h: Bump the latest version to WKBundlePageLoaderClientV9 and
1519         add WKBundlePageShouldUseContentExtensionsForURLCallback.
1520         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
1521         (WebKit::InjectedBundlePageLoaderClient::shouldUseContentExtensionsForURL): Ask the client if we should use content
1522         extensions for this URL.
1523         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
1524         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1525         (WebKit::WebFrameLoaderClient::shouldUseContentExtensionsForURL): Only consult with the injected bundle about whether
1526         or not we should use content extensions for this URL.
1527         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
1528
1529         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.cpp:
1530         (webkit_dom_dom_implementation_create_document_type): Updated to work with ExceptionOr.
1531         (webkit_dom_dom_implementation_create_document): Updated to work with ExceptionOr.
1532         (webkit_dom_dom_implementation_create_css_style_sheet): Updated since this function
1533         can no longer raise an exception.
1534
1535         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.cpp:
1536         (webkit_dom_document_set_xml_standalone): Updated since this function can no longer
1537         raise an exception.
1538
1539 2016-09-03  Joseph Pecoraro  <pecoraro@apple.com>
1540
1541         Web Inspector: Move WebKit2 WebInspector files to #pragma once
1542         https://bugs.webkit.org/show_bug.cgi?id=161550
1543
1544         Reviewed by Darin Adler.
1545
1546         * UIProcess/InspectorServer/WebInspectorServer.h:
1547         * UIProcess/WebInspectorProxy.h:
1548         * UIProcess/gtk/WebInspectorClientGtk.h:
1549         * WebProcess/WebCoreSupport/WebInspectorClient.h:
1550         * WebProcess/WebPage/WebInspector.h:
1551         * WebProcess/WebPage/WebInspectorFrontendAPIDispatcher.h:
1552         * WebProcess/WebPage/WebInspectorUI.h:
1553
1554 2016-09-02  Michael Catanzaro  <mcatanzaro@igalia.com>
1555
1556         [GTK] -Wmissing-field-initializers on WaylandCompositor.cpp:295
1557         https://bugs.webkit.org/show_bug.cgi?id=161524
1558
1559         Reviewed by Carlos Garcia Campos.
1560
1561         * UIProcess/gtk/WaylandCompositor.cpp:
1562
1563 2016-09-02  Carlos Garcia Campos  <cgarcia@igalia.com>
1564
1565         [Threaded Compositor] Move the viewport controller off the compositing thread
1566         https://bugs.webkit.org/show_bug.cgi?id=161532
1567
1568         Reviewed by Michael Catanzaro.
1569
1570         While working on bug #161242 I've realized that having the view port controller in the compositing thread makes
1571         everything more complex. The viewport controller receives changes about things like contents size, viewport
1572         size, etc. and uses that information to compute the visible contents rect and page scale factor. Then it
1573         notifies back to main thread about the computed visible contents rect and page scale. Those computations are not
1574         heave at all, so they could be done in the main thread and we would avoid communications between the main and
1575         compositing thread in both directions. The main thread needs the visible contents rect to notify the compositing
1576         coordinator and the page cale to scale the page in case of pixed layout. But the compositing thread only needs
1577         to know the effective scale and scroll position. So, instead of going to the compositing thread after every
1578         change that might update the visible contents rect and page scale factor, we could do those calculations in the
1579         main thread and only notify the compositing thread about the actual changes in the scroll position and effective scale.
1580
1581         * Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
1582         (WebKit::CoordinatedGraphicsScene::createTilesIfNeeded): Return early if backingStore is nullptr, which can
1583         happen if the layer shouldn't have a backing store and was removed by the previous call to prepareContentBackingStore().
1584         (WebKit::CoordinatedGraphicsScene::updateTilesIfNeeded): Ditto.
1585         * Shared/CoordinatedGraphics/SimpleViewportController.cpp:
1586         (WebKit::SimpleViewportController::SimpleViewportController): Remove the client since we no longer need to
1587         notify about changes.
1588         (WebKit::SimpleViewportController::didChangeViewportSize): Remove call to syncVisibleContents().
1589         (WebKit::SimpleViewportController::didChangeContentsSize): Ditto.
1590         (WebKit::SimpleViewportController::didChangeViewportAttributes): Ditto.
1591         (WebKit::SimpleViewportController::didScroll): Removed unused scrollBy methods and renamed scrollTo as
1592         didiScroll for consistency. Save the position without calling boundContentsPosition, because that's already
1593         donde when the position is used to compute the contents visible rectangle.
1594         (WebKit::SimpleViewportController::visibleContentsRect): No need to notify about the changes.
1595         (WebKit::SimpleViewportController::visibleContentsSize): Deleted.
1596         * Shared/CoordinatedGraphics/SimpleViewportController.h:
1597         * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:
1598         (WebKit::ThreadedCompositor::create): Pass a reference to the client instead of a pointer. It's no longer
1599         possible to have a valid pointer when the object has been destroyed, so we can better use a reference now.
1600         (WebKit::ThreadedCompositor::ThreadedCompositor): Ditto.
1601         (WebKit::ThreadedCompositor::~ThreadedCompositor): Remove assert.
1602         (WebKit::ThreadedCompositor::invalidate): No need to invalidate the client.
1603         (WebKit::ThreadedCompositor::setScaleFactor): Set the effective scale factor that should be used for rendering.
1604         (WebKit::ThreadedCompositor::setScrollPosition): Set the current scroll position and effective scale factor.
1605         (WebKit::ThreadedCompositor::setViewportSize): Set the viewport size and effective scale factor.
1606         (WebKit::ThreadedCompositor::renderNextFrame): Update m_client use that is no longer a pointer.
1607         (WebKit::ThreadedCompositor::commitScrollOffset): Ditto.
1608         (WebKit::ThreadedCompositor::renderLayerTree): Call glViewport after a resize and use m_viewportSize,
1609         m_scrollPosition and m_scaleFactor members.
1610         (WebKit::ThreadedCompositor::didChangeVisibleRect): Deleted.
1611         * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.h:
1612         * WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp:
1613         (WebKit::ThreadedCoordinatedLayerTreeHost::ThreadedCoordinatedLayerTreeHost): Pass the compositor client as a
1614         reference to ThreadedCompositor constructor.
1615         (WebKit::ThreadedCoordinatedLayerTreeHost::scrollNonCompositedContents): Update the viewport and call didChangeViewport().
1616         (WebKit::ThreadedCoordinatedLayerTreeHost::contentsSizeChanged): Ditto.
1617         (WebKit::ThreadedCoordinatedLayerTreeHost::deviceOrPageScaleFactorChanged): Pass the effective scale factor to
1618         the compositor.
1619         (WebKit::ThreadedCoordinatedLayerTreeHost::sizeDidChange): Update the viewport, the compositor and call didChangeViewport().
1620         (WebKit::ThreadedCoordinatedLayerTreeHost::didChangeViewportProperties): Update the viewport and call didChangeViewport().
1621         (WebKit::ThreadedCoordinatedLayerTreeHost::didChangeViewport): Notify the compositing coordinator about the new
1622         visible contents rectangle, and update the threaded compositor if needed.
1623         * WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.h:
1624
1625 2016-09-02  Beth Dakin  <bdakin@apple.com>
1626
1627         Need to updateEditorState if an element change edit-ability without changing 
1628         selection
1629         https://bugs.webkit.org/show_bug.cgi?id=161546
1630         -and corresponding-
1631         rdar://problem/27806012
1632
1633         Reviewed by Ryosuke Niwa.
1634
1635         Every time WebPage::editorState() is called, we now save whether the last state 
1636         was contentEditable. That way in updateEditorStateAfterLayoutIfNeeded() we can 
1637         assess whether or not edit-ability has changed. 
1638
1639         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1640         (WebKit::WebEditorClient:: updateEditorStateAfterLayoutIfEditabilityChanged):
1641         * WebProcess/WebCoreSupport/WebEditorClient.h:
1642         * WebProcess/WebPage/WebPage.cpp:
1643         (WebKit::WebPage::editorState):
1644         (WebKit::WebPage:: updateEditorStateAfterLayoutIfEditabilityChanged):
1645         (WebKit::WebPage::didStartPageTransition):
1646         * WebProcess/WebPage/WebPage.h:
1647
1648 2016-09-02  Jonathan Bedard  <jbedard@apple.com>
1649
1650         WebKitTestRunner needs layoutTestController.setDashboardCompatibilityMode
1651         https://bugs.webkit.org/show_bug.cgi?id=42547
1652
1653         Reviewed by Darin Adler.
1654
1655         Added access to setUseDashBoardCompatibilityMode for WebKit2.
1656         Note: this bug mistakenly called this function setDashboardCompatibilityMode, it is actually setUseDashboardCompatibilityMode.
1657
1658         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
1659         (WKBundleSetUseDashboardCompatibilityMode): Added dashboard compatiblity mode setter.
1660         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: Ditto.
1661         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1662         (WebKit::InjectedBundle::setUseDashboardCompatibilityMode): Ditto.
1663         * WebProcess/InjectedBundle/InjectedBundle.h: Ditto.
1664
1665 2016-09-02  Joseph Pecoraro  <pecoraro@apple.com>
1666
1667         [Mac] RetainPtr misuse, AnimationController leaks
1668         https://bugs.webkit.org/show_bug.cgi?id=161552
1669
1670         Reviewed by Tim Horton.
1671
1672         * UIProcess/mac/WKImmediateActionController.mm:
1673         (-[WKImmediateActionController _defaultAnimationController]):
1674
1675 2016-09-02  Joseph Pecoraro  <pecoraro@apple.com>
1676
1677         [Mac] RetainPtr misuse, DDActionContext leaks
1678         https://bugs.webkit.org/show_bug.cgi?id=161551
1679
1680         Reviewed by Tim Horton.
1681
1682         * Platform/mac/MenuUtilities.mm:
1683         (WebKit::menuItemForTelephoneNumber):
1684         (WebKit::menuForTelephoneNumber):
1685
1686 2016-09-02  Joseph Pecoraro  <pecoraro@apple.com>
1687
1688         Fix Mac CMake build, missing _WKRemoteWebInspectorViewController.mm
1689
1690         Unreviewed build fix.
1691
1692         * PlatformMac.cmake:
1693
1694 2016-09-02  Jer Noble  <jer.noble@apple.com>
1695
1696         Unreviewed build fix; partial roll out of r205365 to remove unintentional change in WKWebView.mm.
1697
1698         * UIProcess/API/Cocoa/WKWebView.mm:
1699         (-[WKWebView _initializeWithConfiguration:]):
1700
1701 2016-09-02  Joseph Pecoraro  <pecoraro@apple.com>
1702
1703         Web Inspector: If inspector process crashes, re-inspecting the page does not work
1704         https://bugs.webkit.org/show_bug.cgi?id=161502
1705         <rdar://problem/28120368>
1706
1707         Reviewed by Brian Burg.
1708
1709         This is an issue on Mac because WebInspectorProxyMac's platformDidClose
1710         doesn't immediately get rid of the WKWebView for the inspector. This is
1711         intended so that a quick close and reopen of Web Inspector is faster,
1712         however in the case where the WebPage under the WKWebView crashed, we
1713         actually should clear things instead of using the timer path. Provide
1714         a stronger platform close handler when the inspector page crashed.
1715
1716         * UIProcess/WebInspectorProxy.cpp:
1717         (WebKit::WebInspectorProxy::closeForCrash):
1718         (WebKit::webProcessDidCrash):
1719         (WebKit::WebInspectorProxy::platformDidCloseForCrash):
1720         Go through a stronger path when the web process crashes.
1721         Some platforms may want to handle this differently then the user
1722         closing a web inspector window.
1723         
1724         * UIProcess/WebInspectorProxy.h:
1725         * UIProcess/efl/WebInspectorProxyEfl.cpp:
1726         (WebKit::WebInspectorProxy::platformDidCloseForCrash):
1727         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
1728         (WebKit::WebInspectorProxy::platformDidCloseForCrash):
1729         These platforms do not need to do anything special.
1730
1731         * UIProcess/mac/WebInspectorProxyMac.mm:
1732         (WebKit::WebInspectorProxy::closeTimerFired):
1733         Loosen this code. There is no need for it to be so strict.
1734
1735         (WebKit::WebInspectorProxy::platformDidCloseForCrash):
1736         If the inspector page crashed, close our handles immediately.
1737
1738 2016-09-02  Joseph Pecoraro  <pecoraro@apple.com>
1739
1740         Web Inspector: Provide a way to open an inspector frontend for a remote target
1741         https://bugs.webkit.org/show_bug.cgi?id=161515
1742         <rdar://problem/13182127>
1743
1744         Reviewed by Brian Burg.
1745
1746         Provide an interface to open a Web Inspector window/webView for a
1747         remote debuggable. Unlike the local Web Inspector, the remote
1748         debuggable may be either a JSContext or WebPage, and may only
1749         support an older version of the protocol. The Inspector frontend
1750         already supports these configurations.
1751
1752         This adds new RemoteWebInspector/Proxy classes that mirror the
1753         WebInspector/Proxy classes for local inspection, but have
1754         slightly different behavior as the inspected target is not
1755         directly available (and may not be a web page).
1756
1757         The remote and local classes share a lot of inspector
1758         frontend implementation:
1759
1760           - share most of the inspector frontend host implementation
1761           - share much of the frontend webview/window handling
1762           - use an inspector process for the frontend page
1763
1764         But remains separate in some ways:
1765
1766           - inspected target is unavailable
1767           - docking is never available
1768           - a few inspector frontend host methods are duplicated
1769           - some of the webview/window handling is duplicated
1770
1771         * UIProcess/API/Cocoa/_WKRemoteWebInspectorViewController.h: Added.
1772         * UIProcess/API/Cocoa/_WKRemoteWebInspectorViewController.mm: Added.
1773         (-[_WKRemoteWebInspectorViewController init]):
1774         (-[_WKRemoteWebInspectorViewController window]):
1775         (-[_WKRemoteWebInspectorViewController webView]):
1776         (-[_WKRemoteWebInspectorViewController loadForDebuggableType:backendCommandsURL:]):
1777         (-[_WKRemoteWebInspectorViewController close]):
1778         (-[_WKRemoteWebInspectorViewController show]):
1779         (-[_WKRemoteWebInspectorViewController sendMessageToFrontend:]):
1780         (-[_WKRemoteWebInspectorViewController sendMessageToBackend:]):
1781         (-[_WKRemoteWebInspectorViewController closeFromFrontend]):
1782         The interface that may be used to open an inspector window for
1783         a remote debuggable. There are only a few delegates to handle
1784         sending messages to the backend and knowing if the frontend
1785         closed itself (InspectorFrontendHost.closeWindow() or crashed).
1786
1787         * UIProcess/WebInspectorUtilities.h:
1788         * UIProcess/WebInspectorUtilities.cpp: Added.
1789         (WebKit::pageLevelMap):
1790         (WebKit::inspectorLevelForPage):
1791         (WebKit::inspectorPageGroupIdentifierForPage):
1792         (WebKit::trackInspectorPage):
1793         (WebKit::untrackInspectorPage):
1794         (WebKit::inspectorProcessPool):
1795         (WebKit::isInspectorProcessPool):
1796         (WebKit::isInspectorPage):
1797         Extract utilities for determining if a page contains an inspector frontend.
1798         Previously this was part of WebInspectorProxy and subclasses but can
1799         now be used by multiple classes.
1800
1801         * UIProcess/WebInspectorProxy.h:
1802         * UIProcess/WebInspectorProxy.cpp:
1803         (WebKit::WebInspectorProxy::inspectionLevel):
1804         (WebKit::WebInspectorProxy::invalidate):
1805         (WebKit::WebInspectorProxy::isMainOrTestInspectorPage):
1806         (WebKit::decidePolicyForNavigationAction):
1807         (WebKit::WebInspectorProxy::eagerlyCreateInspectorPage):
1808         (WebKit::WebInspectorProxy::didClose):
1809         (WebKit::pageLevelMap): Deleted.
1810         (WebKit::WebInspectorProxy::inspectorPageGroupIdentifier): Deleted.
1811         (WebKit::WebInspectorProxy::inspectorProcessPool): Deleted.
1812         (WebKit::WebInspectorProxy::isInspectorProcessPool): Deleted.
1813         (WebKit::WebInspectorProxy::isInspectorPage): Deleted.
1814         (WebKit::isMainOrTestInspectorPage): Deleted.
1815         * UIProcess/WebPageProxy.cpp:
1816         (WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle):
1817         * UIProcess/WebProcessProxy.cpp:
1818         (WebKit::WebProcessProxy::getLaunchOptions):
1819         * UIProcess/efl/WebInspectorProxyEfl.cpp:
1820         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1821         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
1822         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1823         Extract methods to utilities and use them.
1824
1825         Also address an issue where WebInspectorProxy was untracking
1826         the wrong page. It should have been untracking the inspector
1827         page but was untracking the inspected page.
1828
1829         * UIProcess/RemoteWebInspectorProxy.cpp: Added.
1830         (WebKit::RemoteWebInspectorProxy::RemoteWebInspectorProxy):
1831         (WebKit::RemoteWebInspectorProxy::~RemoteWebInspectorProxy):
1832         (WebKit::RemoteWebInspectorProxy::invalidate):
1833         (WebKit::RemoteWebInspectorProxy::load):
1834         (WebKit::RemoteWebInspectorProxy::closeFromBackend):
1835         (WebKit::RemoteWebInspectorProxy::closeFromCrash):
1836         (WebKit::RemoteWebInspectorProxy::show):
1837         (WebKit::RemoteWebInspectorProxy::sendMessageToFrontend):
1838         (WebKit::RemoteWebInspectorProxy::frontendDidClose):
1839         (WebKit::RemoteWebInspectorProxy::bringToFront):
1840         (WebKit::RemoteWebInspectorProxy::save):
1841         (WebKit::RemoteWebInspectorProxy::append):
1842         (WebKit::RemoteWebInspectorProxy::startWindowDrag):
1843         (WebKit::RemoteWebInspectorProxy::openInNewTab):
1844         (WebKit::RemoteWebInspectorProxy::sendMessageToBackend):
1845         (WebKit::RemoteWebInspectorProxy::createFrontendPageAndWindow):
1846         (WebKit::RemoteWebInspectorProxy::closeFrontendPageAndWindow):
1847         This class behaves like WebInspectorProxy but without having a
1848         reference to the inspected target. It communicates with
1849         RemoteInspectorUI in an Inspector process to send and receive
1850         frontend messages. What can't be easily shared is duplicated.
1851
1852         * UIProcess/mac/RemoteWebInspectorProxyMac.mm: Added.
1853         (-[WKRemoteWebInspectorProxyObjCAdapter initWithRemoteWebInspectorProxy:]):
1854         (-[WKRemoteWebInspectorProxyObjCAdapter webViewWebContentProcessDidTerminate:]):
1855         (-[WKRemoteWebInspectorProxyObjCAdapter webView:decidePolicyForNavigationAction:decisionHandler:]):
1856         (WebKit::RemoteWebInspectorProxy::platformCreateFrontendPageAndWindow):
1857         (WebKit::RemoteWebInspectorProxy::platformCloseFrontendPageAndWindow):
1858         (WebKit::RemoteWebInspectorProxy::platformBringToFront):
1859         (WebKit::RemoteWebInspectorProxy::platformSave):
1860         (WebKit::RemoteWebInspectorProxy::platformAppend):
1861         (WebKit::RemoteWebInspectorProxy::platformStartWindowDrag):
1862         (WebKit::RemoteWebInspectorProxy::platformOpenInNewTab):
1863         Platform implementation for the bits that are platform specific.
1864         What can't be easily shared is duplicated. Ideally we will
1865         eventually share this with WebInspectorProxyMac.
1866
1867         * UIProcess/mac/WKWebInspectorWKWebView.h:
1868         * UIProcess/mac/WKWebInspectorWKWebView.mm: Added.
1869         (WebKit::getWindowFrame):
1870         (WebKit::setWindowFrame):
1871         (WebKit::exceededDatabaseQuota):
1872         (WebKit::runOpenPanel):
1873         (-[WKWebInspectorWKWebView initWithFrame:configuration:]):
1874         (-[WKWebInspectorWKWebView tag]):
1875         Extract Mac platform code for the inspector webview from WebInspectorProxyMac.
1876
1877         * UIProcess/mac/WebInspectorProxyMac.mm:
1878         (WebKit::WebInspectorProxy::closeTimerFired):
1879         (WebKit::WebInspectorProxy::createInspectorWindow):
1880         (WebKit::WebInspectorProxy::createFrontendConfiguration):
1881         (WebKit::WebInspectorProxy::createFrontendWindow):
1882         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1883         (-[WKWebInspectorWKWebView tag]): Deleted.
1884         (WebKit::getWindowFrame): Deleted.
1885         (WebKit::setWindowFrame): Deleted.
1886         (WebKit::exceededDatabaseQuota): Deleted.
1887         (WebKit::runOpenPanel): Deleted.
1888         Extact Mac platform code to be shared for construction of a
1889         WKWebViewConfiguration, WKWebView, and NSWindow for an inspector webview.
1890         
1891         * WebProcess/WebPage/RemoteWebInspectorUI.cpp: Added.
1892         (WebKit::RemoteWebInspectorUI::create):
1893         (WebKit::RemoteWebInspectorUI::RemoteWebInspectorUI):
1894         (WebKit::RemoteWebInspectorUI::initialize):
1895         (WebKit::RemoteWebInspectorUI::didSave):
1896         (WebKit::RemoteWebInspectorUI::didAppend):
1897         (WebKit::RemoteWebInspectorUI::sendMessageToFrontend):
1898         (WebKit::RemoteWebInspectorUI::sendMessageToBackend):
1899         (WebKit::RemoteWebInspectorUI::windowObjectCleared):
1900         (WebKit::RemoteWebInspectorUI::frontendLoaded):
1901         (WebKit::RemoteWebInspectorUI::startWindowDrag):
1902         (WebKit::RemoteWebInspectorUI::moveWindowBy):
1903         (WebKit::RemoteWebInspectorUI::bringToFront):
1904         (WebKit::RemoteWebInspectorUI::closeWindow):
1905         (WebKit::RemoteWebInspectorUI::openInNewTab):
1906         (WebKit::RemoteWebInspectorUI::save):
1907         (WebKit::RemoteWebInspectorUI::append):
1908         (WebKit::RemoteWebInspectorUI::inspectedURLChanged):
1909         * WebProcess/WebPage/RemoteWebInspectorUI.h: Added.
1910         * WebProcess/WebPage/RemoteWebInspectorUI.messages.in: Added.
1911         * UIProcess/RemoteWebInspectorProxy.messages.in: Added.
1912         * UIProcess/RemoteWebInspectorProxy.mm: Added.
1913         Inspector frontend client that knows to talk
1914         with a RemoteWebInspectorProxy instead of a WebInspectorProxy.
1915
1916         * WebProcess/WebPage/WebInspectorUI.cpp:
1917         * WebProcess/WebPage/WebInspectorUI.h:
1918         * WebProcess/WebPage/mac/WebInspectorUIMac.mm:
1919         (WebKit::webInspectorUILocalizedStringsURL):
1920         (WebKit::WebInspectorUI::localizedStringsURL):
1921         (WebKit::RemoteWebInspectorUI::localizedStringsURL):
1922         Simplify localized string URL lookup.
1923
1924         * DerivedSources.make:
1925         * WebKit2.xcodeproj/project.pbxproj:
1926         New files.
1927
1928         * WebProcess/WebPage/WebPage.cpp:
1929         (WebKit::WebPage::WebPage):
1930         (WebKit::WebPage::~WebPage):
1931         (WebKit::WebPage::remoteInspectorUI):
1932         (WebKit::WebPage::didReceiveMessage):
1933         * WebProcess/WebPage/WebPage.h:
1934         (WebKit::WebPage::isInspectorPage):
1935         An InspectorProcess WebPage may have either a WebInspectorUI or a RemoteWebInspectorUI.
1936
1937 2016-07-08  Jer Noble  <jer.noble@apple.com>
1938
1939         Refactor WebPlaybackSessionModelMediaElement to be client based.
1940         https://bugs.webkit.org/show_bug.cgi?id=159580
1941
1942         Reviewed by Eric Carlson.
1943
1944         Adopt the changes made in the WebPlaybackSessionModel,Interface and WebVideoFullscreenModel,Interface
1945         in the WebPlaybackSessionManager,Proxy classes.
1946
1947         * UIProcess/API/Cocoa/WKWebView.mm:
1948         (-[WKWebView _initializeWithConfiguration:]): Deleted.
1949         * UIProcess/Cocoa/WebPlaybackSessionManagerProxy.h:
1950         * UIProcess/Cocoa/WebPlaybackSessionManagerProxy.mm:
1951         (WebKit::WebPlaybackSessionModelContext::addClient):
1952         (WebKit::WebPlaybackSessionModelContext::removeClient):
1953         (WebKit::WebPlaybackSessionModelContext::setDuration):
1954         (WebKit::WebPlaybackSessionModelContext::setCurrentTime):
1955         (WebKit::WebPlaybackSessionModelContext::setBufferedTime):
1956         (WebKit::WebPlaybackSessionModelContext::setRate):
1957         (WebKit::WebPlaybackSessionModelContext::setSeekableRanges):
1958         (WebKit::WebPlaybackSessionModelContext::setCanPlayFastReverse):
1959         (WebKit::WebPlaybackSessionModelContext::setAudioMediaSelectionOptions):
1960         (WebKit::WebPlaybackSessionModelContext::setLegibleMediaSelectionOptions):
1961         (WebKit::WebPlaybackSessionModelContext::setExternalPlayback):
1962         (WebKit::WebPlaybackSessionModelContext::setWirelessVideoPlaybackDisabled):
1963         (WebKit::WebPlaybackSessionManagerProxy::createModelAndInterface):
1964         (WebKit::WebPlaybackSessionManagerProxy::removeClientForContext):
1965         (WebKit::WebPlaybackSessionManagerProxy::setCurrentTime):
1966         (WebKit::WebPlaybackSessionManagerProxy::setBufferedTime):
1967         (WebKit::WebPlaybackSessionManagerProxy::setSeekableRangesVector):
1968         (WebKit::WebPlaybackSessionManagerProxy::setCanPlayFastReverse):
1969         (WebKit::WebPlaybackSessionManagerProxy::setAudioMediaSelectionOptions):
1970         (WebKit::WebPlaybackSessionManagerProxy::setLegibleMediaSelectionOptions):
1971         (WebKit::WebPlaybackSessionManagerProxy::setExternalPlaybackProperties):
1972         (WebKit::WebPlaybackSessionManagerProxy::setWirelessVideoPlaybackDisabled):
1973         (WebKit::WebPlaybackSessionManagerProxy::setDuration):
1974         (WebKit::WebPlaybackSessionManagerProxy::setRate):
1975         * UIProcess/Cocoa/WebVideoFullscreenManagerProxy.h:
1976         * UIProcess/Cocoa/WebVideoFullscreenManagerProxy.messages.in:
1977         * UIProcess/Cocoa/WebVideoFullscreenManagerProxy.mm:
1978         (WebKit::WebVideoFullscreenModelContext::addClient):
1979         (WebKit::WebVideoFullscreenModelContext::removeClient):
1980         (WebKit::WebVideoFullscreenManagerProxy::setHasVideo):
1981         (WebKit::WebVideoFullscreenManagerProxy::setVideoDimensions):
1982         * WebProcess/cocoa/WebPlaybackSessionManager.h:
1983         * WebProcess/cocoa/WebPlaybackSessionManager.mm:
1984         (WebKit::WebPlaybackSessionInterfaceContext::durationChanged):
1985         (WebKit::WebPlaybackSessionInterfaceContext::currentTimeChanged):
1986         (WebKit::WebPlaybackSessionInterfaceContext::bufferedTimeChanged):
1987         (WebKit::WebPlaybackSessionInterfaceContext::rateChanged):
1988         (WebKit::WebPlaybackSessionInterfaceContext::seekableRangesChanged):
1989         (WebKit::WebPlaybackSessionInterfaceContext::canPlayFastReverseChanged):
1990         (WebKit::WebPlaybackSessionInterfaceContext::audioMediaSelectionOptionsChanged):
1991         (WebKit::WebPlaybackSessionInterfaceContext::legibleMediaSelectionOptionsChanged):
1992         (WebKit::WebPlaybackSessionInterfaceContext::externalPlaybackChanged):
1993         (WebKit::WebPlaybackSessionInterfaceContext::wirelessVideoPlaybackDisabledChanged):
1994         (WebKit::WebPlaybackSessionManager::~WebPlaybackSessionManager):
1995         (WebKit::WebPlaybackSessionManager::createModelAndInterface):
1996         (WebKit::WebPlaybackSessionManager::removeContext):
1997         (WebKit::WebPlaybackSessionManager::durationChanged):
1998         (WebKit::WebPlaybackSessionManager::currentTimeChanged):
1999         (WebKit::WebPlaybackSessionManager::bufferedTimeChanged):
2000         (WebKit::WebPlaybackSessionManager::rateChanged):
2001         (WebKit::WebPlaybackSessionManager::seekableRangesChanged):
2002         (WebKit::WebPlaybackSessionManager::canPlayFastReverseChanged):
2003         (WebKit::WebPlaybackSessionManager::audioMediaSelectionOptionsChanged):
2004         (WebKit::WebPlaybackSessionManager::legibleMediaSelectionOptionsChanged):
2005         (WebKit::WebPlaybackSessionManager::externalPlaybackChanged):
2006         (WebKit::WebPlaybackSessionManager::wirelessVideoPlaybackDisabledChanged):
2007         (WebKit::WebPlaybackSessionInterfaceContext::setDuration): Deleted.
2008         (WebKit::WebPlaybackSessionInterfaceContext::setCurrentTime): Deleted.
2009         (WebKit::WebPlaybackSessionInterfaceContext::setBufferedTime): Deleted.
2010         (WebKit::WebPlaybackSessionInterfaceContext::setRate): Deleted.
2011         (WebKit::WebPlaybackSessionInterfaceContext::setSeekableRanges): Deleted.
2012         (WebKit::WebPlaybackSessionInterfaceContext::setCanPlayFastReverse): Deleted.
2013         (WebKit::WebPlaybackSessionInterfaceContext::setAudioMediaSelectionOptions): Deleted.
2014         (WebKit::WebPlaybackSessionInterfaceContext::setLegibleMediaSelectionOptions): Deleted.
2015         (WebKit::WebPlaybackSessionInterfaceContext::setExternalPlayback): Deleted.
2016         (WebKit::WebPlaybackSessionInterfaceContext::setWirelessVideoPlaybackDisabled): Deleted.
2017         (WebKit::WebPlaybackSessionManager::setDuration): Deleted.
2018         (WebKit::WebPlaybackSessionManager::setCurrentTime): Deleted.
2019         (WebKit::WebPlaybackSessionManager::setBufferedTime): Deleted.
2020         (WebKit::WebPlaybackSessionManager::setRate): Deleted.
2021         (WebKit::WebPlaybackSessionManager::setSeekableRanges): Deleted.
2022         (WebKit::WebPlaybackSessionManager::setCanPlayFastReverse): Deleted.
2023         (WebKit::WebPlaybackSessionManager::setAudioMediaSelectionOptions): Deleted.
2024         (WebKit::WebPlaybackSessionManager::setLegibleMediaSelectionOptions): Deleted.
2025         (WebKit::WebPlaybackSessionManager::setExternalPlayback): Deleted.
2026         (WebKit::WebPlaybackSessionManager::setWirelessVideoPlaybackDisabled): Deleted.
2027         * WebProcess/cocoa/WebVideoFullscreenManager.h:
2028         (WebKit::WebVideoFullscreenInterfaceContext::create):
2029         * WebProcess/cocoa/WebVideoFullscreenManager.mm:
2030         (WebKit::WebVideoFullscreenInterfaceContext::WebVideoFullscreenInterfaceContext):
2031         (WebKit::WebVideoFullscreenInterfaceContext::hasVideoChanged):
2032         (WebKit::WebVideoFullscreenInterfaceContext::videoDimensionsChanged):
2033         (WebKit::WebVideoFullscreenManager::~WebVideoFullscreenManager):
2034         (WebKit::WebVideoFullscreenManager::createModelAndInterface):
2035         (WebKit::WebVideoFullscreenManager::removeContext):
2036         (WebKit::WebVideoFullscreenManager::hasVideoChanged):
2037         (WebKit::WebVideoFullscreenManager::videoDimensionsChanged):
2038         (WebKit::WebVideoFullscreenInterfaceContext::resetMediaState): Deleted.
2039         (WebKit::WebVideoFullscreenInterfaceContext::setDuration): Deleted.
2040         (WebKit::WebVideoFullscreenInterfaceContext::setCurrentTime): Deleted.
2041         (WebKit::WebVideoFullscreenInterfaceContext::setBufferedTime): Deleted.
2042         (WebKit::WebVideoFullscreenInterfaceContext::setRate): Deleted.
2043         (WebKit::WebVideoFullscreenInterfaceContext::setVideoDimensions): Deleted.
2044         (WebKit::WebVideoFullscreenInterfaceContext::setSeekableRanges): Deleted.
2045         (WebKit::WebVideoFullscreenInterfaceContext::setCanPlayFastReverse): Deleted.
2046         (WebKit::WebVideoFullscreenInterfaceContext::setAudioMediaSelectionOptions): Deleted.
2047         (WebKit::WebVideoFullscreenInterfaceContext::setLegibleMediaSelectionOptions): Deleted.
2048         (WebKit::WebVideoFullscreenInterfaceContext::setExternalPlayback): Deleted.
2049         (WebKit::WebVideoFullscreenInterfaceContext::setWirelessVideoPlaybackDisabled): Deleted.
2050         (WebKit::WebVideoFullscreenManager::setVideoDimensions): Deleted.
2051
2052 2016-09-02  Zan Dobersek  <zdobersek@igalia.com>
2053
2054         Fix GObject bindings build breakage when compiling with ENABLE_USER_TIMING disabled.
2055
2056         Rubber-stamped by Carlos Garcia Campos.
2057
2058         Add additional ENABLE(USER_TIMING) build guards to WebKitDOMPerformance bindings,
2059         avoiding build errors when building with that feature disabled. Previously this
2060         wasn't a problem because the four amended binding functions weren't generated
2061         when the feature was disabled due to the similar use of guards in the Performance.idl
2062         file.
2063
2064         * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPerformance.cpp:
2065         (webkit_dom_performance_webkit_mark):
2066         (webkit_dom_performance_webkit_clear_marks):
2067         (webkit_dom_performance_webkit_measure):
2068         (webkit_dom_performance_webkit_clear_measures):
2069
2070 2016-09-02  Zan Dobersek  <zdobersek@igalia.com>
2071
2072         Unreviewed GTK+ build fix when compiling with Clang.
2073
2074         * WebProcess/WebPage/gtk/AcceleratedSurface.cpp: Include WebPage.h.
2075
2076 2016-09-01  Yusuke Suzuki  <utatane.tea@gmail.com>
2077
2078         Unreviewed, build fix after r205327
2079
2080         * UIProcess/API/gtk/WebKitUIClient.cpp:
2081
2082 2016-09-01  Dan Bernstein  <mitz@apple.com>
2083
2084         Build fix.
2085
2086         * Configurations/FeatureDefines.xcconfig:
2087
2088 2016-09-01  Anders Carlsson  <andersca@apple.com>
2089
2090         Use WTF::Function for completion handlers in API::UIClient
2091         https://bugs.webkit.org/show_bug.cgi?id=161516
2092
2093         Reviewed by Tim Horton.
2094
2095         * UIProcess/API/APIUIClient.h:
2096         (API::UIClient::runJavaScriptAlert):
2097         (API::UIClient::runJavaScriptConfirm):
2098         (API::UIClient::runJavaScriptPrompt):
2099         (API::UIClient::runBeforeUnloadConfirmPanel):
2100         (API::UIClient::exceededDatabaseQuota):
2101         (API::UIClient::reachedApplicationCacheOriginQuota):
2102         * UIProcess/API/C/WKPage.cpp:
2103         (WebKit::RunBeforeUnloadConfirmPanelResultListener::create):
2104         (WebKit::RunBeforeUnloadConfirmPanelResultListener::RunBeforeUnloadConfirmPanelResultListener):
2105         (WebKit::RunJavaScriptAlertResultListener::create):
2106         (WebKit::RunJavaScriptAlertResultListener::RunJavaScriptAlertResultListener):
2107         (WebKit::RunJavaScriptConfirmResultListener::create):
2108         (WebKit::RunJavaScriptConfirmResultListener::RunJavaScriptConfirmResultListener):
2109         (WebKit::RunJavaScriptPromptResultListener::create):
2110         (WebKit::RunJavaScriptPromptResultListener::RunJavaScriptPromptResultListener):
2111         (WKPageSetPageUIClient):
2112         * UIProcess/Cocoa/UIDelegate.h:
2113         * UIProcess/Cocoa/UIDelegate.mm:
2114         (WebKit::UIDelegate::UIClient::runJavaScriptAlert):
2115         (WebKit::UIDelegate::UIClient::runJavaScriptConfirm):
2116         (WebKit::UIDelegate::UIClient::runJavaScriptPrompt):
2117         (WebKit::UIDelegate::UIClient::exceededDatabaseQuota):
2118         (WebKit::UIDelegate::UIClient::reachedApplicationCacheOriginQuota):
2119
2120 2016-09-01  JF Bastien  <jfbastien@apple.com>
2121
2122         Fix cmake build, missing SecItemShim.messages.in
2123         https://bugs.webkit.org/show_bug.cgi?id=161496
2124
2125         Reviewed by Alex Christensen.
2126
2127         * PlatformMac.cmake:
2128
2129 2016-09-01  Joseph Pecoraro  <pecoraro@apple.com>
2130
2131         [Mac] Web Inspector: Remove stale inspector process termination code
2132         https://bugs.webkit.org/show_bug.cgi?id=161465
2133         <rdar://problem/28106584>
2134
2135         Reviewed by Brian Burg.
2136
2137         * UIProcess/WebInspectorProxy.cpp:
2138         (WebKit::WebInspectorProxy::didRelaunchInspectorPageProcess): Deleted.
2139         * UIProcess/WebInspectorProxy.h:
2140         * UIProcess/mac/WebInspectorProxyMac.mm:
2141         (-[WKWebInspectorProxyObjCAdapter didRelaunchProcess]): Deleted.
2142         (-[WKWebInspectorWKWebView _didRelaunchProcess]): Deleted.
2143         This code doesn't appear to be run when the WebContent process inside
2144         of an Inspector process crashes. The general WebInspectorProxy has its
2145         own handling of when the page inside an inspector process crashes, so
2146         this Mac specific path appears to be unused and stale.
2147
2148 2016-09-01  Jeremy Huddleston Sequoia  <jeremyhu@apple.com>
2149
2150         [GTK] Fix configuration without wayland support
2151         https://bugs.webkit.org/show_bug.cgi?id=161475
2152
2153         WebKit2WaylandClientProtocol.c is a derived source that is created
2154         conditionally on ENABLE_WAYLAND_TARGET.  It was being included
2155         in the sources list unconditionally, so configure failed whenever
2156         wayland support was unavailable.
2157
2158         Reviewed by Žan Doberšek.
2159
2160         * PlatformGTK.cmake: Include WebKit2WaylandClientProtocol.c in source list conditional on ENABLE_WAYLAND_TARGET
2161
2162 2016-08-31  Carlos Garcia Campos  <cgarcia@igalia.com>
2163
2164         [GTK] Move GObject DOM bindings to WebKit2 layer and stop auto generating them
2165         https://bugs.webkit.org/show_bug.cgi?id=161438
2166
2167         Reviewed by Michael Catanzaro.
2168
2169         Move all GObject bindings code to WebProcess/InjectedBundle/API/gtk/DOM.
2170
2171         * PlatformGTK.cmake:
2172         * WebProcess/InjectedBundle/API/gtk/DOM:
2173
2174 2016-08-31  Keith Rollin  <krollin@apple.com>
2175
2176         WebKit should set a subsystem for os_log so it's easier to filter for WebKit log messages
2177         https://bugs.webkit.org/show_bug.cgi?id=160969
2178         <rdar://problem/26068734>
2179
2180         Reviewed by Simon Fraser.
2181
2182         - Specify a channel when using RELEASE_LOG macros.
2183         - Add some new channels so that we have something to pass to the
2184           RELEASE_LOG macros (ProcessSuspension, IPC, Layers).
2185         - Enable subsystem- and channel-related data and functions when using
2186           RELEASE_LOG macros.
2187         - Use the DECLARE_LOG_CHANNEL, DEFINE_LOG_CHANNEL, and
2188           LOG_CHANNEL_ADDRESS macros that are now defined in WTF.
2189
2190         * NetworkProcess/Downloads/Download.cpp:
2191         * NetworkProcess/NetworkProcess.cpp:
2192         (WebKit::NetworkProcess::prepareToSuspend):
2193         (WebKit::NetworkProcess::cancelPrepareToSuspend):
2194         (WebKit::NetworkProcess::processDidResume):
2195         * NetworkProcess/NetworkResourceLoader.cpp:
2196         * Platform/IPC/Connection.cpp:
2197         (IPC::Connection::waitForSyncReply):
2198         * Platform/LogInitialization.h:
2199         * Platform/Logging.cpp:
2200         (WebKit::initializeLogChannelsIfNecessary):
2201         * Platform/Logging.h:
2202         * Platform/foundation/LoggingFoundation.mm:
2203         * Platform/unix/LoggingUnix.cpp:
2204         * Shared/ChildProcess.cpp:
2205         (WebKit::didCloseOnConnectionWorkQueue):
2206         * Shared/WebKit2Initialize.cpp:
2207         (WebKit::InitializeWebKit2):
2208         * UIProcess/Cocoa/NavigationState.mm:
2209         (WebKit::NavigationState::releaseNetworkActivityToken):
2210         (WebKit::NavigationState::didChangeIsLoading):
2211         * UIProcess/Network/NetworkProcessProxy.cpp:
2212         (WebKit::NetworkProcessProxy::fetchWebsiteData):
2213         (WebKit::NetworkProcessProxy::deleteWebsiteData):
2214         (WebKit::NetworkProcessProxy::deleteWebsiteDataForOrigins):
2215         (WebKit::NetworkProcessProxy::setIsHoldingLockedFiles):
2216         * UIProcess/ProcessThrottler.cpp:
2217         (WebKit::ProcessThrottler::updateAssertionNow):
2218         (WebKit::ProcessThrottler::updateAssertion):
2219         * UIProcess/WebPageProxy.cpp:
2220         * UIProcess/WebProcessPool.cpp:
2221         (WebKit::m_hiddenPageThrottlingTimer):
2222         * UIProcess/WebProcessProxy.cpp:
2223         (WebKit::WebProcessProxy::fetchWebsiteData):
2224         (WebKit::WebProcessProxy::deleteWebsiteData):
2225         (WebKit::WebProcessProxy::deleteWebsiteDataForOrigins):
2226         (WebKit::WebProcessProxy::didSetAssertionState):
2227         (WebKit::WebProcessProxy::setIsHoldingLockedFiles):
2228         * UIProcess/ios/ProcessAssertionIOS.mm:
2229         (-[WKProcessAssertionBackgroundTaskManager _updateBackgroundTask]):
2230         (WebKit::ProcessAssertion::ProcessAssertion):
2231         * WebProcess/Network/WebLoaderStrategy.cpp:
2232         * WebProcess/Network/WebResourceLoader.cpp:
2233         * WebProcess/WebPage/WebPage.cpp:
2234         (WebKit::WebPage::layerVolatilityTimerFired):
2235         * WebProcess/WebProcess.cpp:
2236         (WebKit::WebProcess::actualPrepareToSuspend):
2237         (WebKit::WebProcess::processWillSuspendImminently):
2238         (WebKit::WebProcess::prepareToSuspend):
2239         (WebKit::WebProcess::cancelPrepareToSuspend):
2240         (WebKit::WebProcess::markAllLayersVolatile):
2241         (WebKit::WebProcess::processDidResume):
2242
2243 2016-08-31  Yoav Weiss  <yoav@yoav.ws>
2244
2245         Add event support for link preload.
2246         https://bugs.webkit.org/show_bug.cgi?id=158466
2247
2248         Reviewed by Alex Christensen.
2249
2250         * WebProcess/Network/WebLoaderStrategy.cpp:
2251         (WebKit::maximumBufferingTime): Removed LinkPreload.
2252
2253 2016-08-31  Alex Christensen  <achristensen@webkit.org>
2254
2255         Add runtime flag for using URLParser
2256         https://bugs.webkit.org/show_bug.cgi?id=161363
2257
2258         Reviewed by Sam Weinig.
2259
2260         * NetworkProcess/NetworkProcess.cpp:
2261         (WebKit::NetworkProcess::initializeNetworkProcess):
2262         * NetworkProcess/NetworkProcessCreationParameters.cpp:
2263         (WebKit::NetworkProcessCreationParameters::encode):
2264         (WebKit::NetworkProcessCreationParameters::decode):
2265         * NetworkProcess/NetworkProcessCreationParameters.h:
2266         * PlatformEfl.cmake:
2267         * PlatformGTK.cmake:
2268         * PlatformMac.cmake:
2269         * Shared/Cocoa/WebKit2InitializeCocoa.mm: Added.
2270         (WebKit::platformInitializeWebKit2):
2271         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.h:
2272         (WebKit::XPCServiceInitializer):
2273         * Shared/WebKit2Initialize.cpp:
2274         (WebKit::InitializeWebKit2):
2275         * Shared/WebKit2Initialize.h:
2276         * Shared/WebProcessCreationParameters.cpp:
2277         (WebKit::WebProcessCreationParameters::encode):
2278         (WebKit::WebProcessCreationParameters::decode):
2279         * Shared/WebProcessCreationParameters.h:
2280         * Shared/efl/WebKit2InitializeEFL.cpp: Added.
2281         (WebKit::platformInitializeWebKit2):
2282         * Shared/gtk/WebKit2InitializeGTK.cpp: Added.
2283         (WebKit::platformInitializeWebKit2):
2284         * UIProcess/WebProcessPool.cpp:
2285         (WebKit::WebProcessPool::ensureNetworkProcess):
2286         (WebKit::WebProcessPool::createNewWebProcess):
2287         * WebKit2.xcodeproj/project.pbxproj:
2288         * WebProcess/WebProcess.cpp:
2289         (WebKit::WebProcess::initializeWebProcess):
2290
2291 2016-08-30  Anders Carlsson  <andersca@apple.com>
2292
2293         Use Connection::sendWithReply for the SecItem shim messages
2294         https://bugs.webkit.org/show_bug.cgi?id=161419
2295
2296         Reviewed by Tim Horton.
2297
2298         * DerivedSources.make:
2299         * NetworkProcess/NetworkProcess.cpp:
2300         (WebKit::NetworkProcess::initializeConnection):
2301         * NetworkProcess/mac/NetworkProcessMac.mm:
2302         (WebKit::NetworkProcess::platformInitializeNetworkProcess):
2303         * Shared/mac/SecItemShim.cpp:
2304         (WebKit::workQueue):
2305         (WebKit::sendSecItemRequest):
2306         (WebKit::webSecItemCopyMatching):
2307         (WebKit::webSecItemAdd):
2308         (WebKit::webSecItemUpdate):
2309         (WebKit::webSecItemDelete):
2310         (WebKit::initializeSecItemShim):
2311         (WebKit::responseMap): Deleted.
2312         (WebKit::SecItemShim::singleton): Deleted.
2313         (WebKit::SecItemShim::SecItemShim): Deleted.
2314         (WebKit::generateSecItemRequestID): Deleted.
2315         (WebKit::SecItemShim::secItemResponse): Deleted.
2316         (WebKit::SecItemShim::initialize): Deleted.
2317         (WebKit::SecItemShim::initializeConnection): Deleted.
2318         * Shared/mac/SecItemShim.h:
2319         * Shared/mac/SecItemShim.messages.in: Removed.
2320         * UIProcess/mac/SecItemShimProxy.cpp:
2321         (WebKit::SecItemShimProxy::didReceiveMessage):
2322         (WebKit::SecItemShimProxy::secItemRequest):
2323         * UIProcess/mac/SecItemShimProxy.h:
2324         * UIProcess/mac/SecItemShimProxy.messages.in:
2325         * WebKit2.xcodeproj/project.pbxproj:
2326         * WebProcess/WebProcess.cpp:
2327         (WebKit::WebProcess::initializeConnection):
2328         * WebProcess/cocoa/WebProcessCocoa.mm:
2329         (WebKit::WebProcess::platformInitializeProcess):
2330
2331 2016-08-31  Andreas Kling  <akling@apple.com>
2332
2333         DOM event handling should pass Event around by reference.
2334         <https://webkit.org/b/161398>
2335
2336         Reviewed by Chris Dumez.
2337
2338         * WebProcess/WebPage/mac/WebPageMac.mm:
2339         (WebKit::WebPage::performNonEditingBehaviorForSelector):
2340
2341 2016-08-31  Brady Eidson  <beidson@apple.com>
2342
2343         WK2 Gamepad provider on iOS.
2344         https://bugs.webkit.org/show_bug.cgi?id=161412
2345
2346         Reviewed by Tim Horton.
2347
2348         * Configurations/FeatureDefines.xcconfig:
2349
2350         * Platform/spi/ios/UIKitSPI.h:
2351
2352         * UIProcess/Gamepad/UIGamepadProvider.cpp:
2353
2354         * UIProcess/Gamepad/ios/UIGamepadProviderIOS.mm: Copied from Source/WebKit2/UIProcess/Gamepad/mac/UIGamepadProviderMac.mm.
2355         (WebKit::UIGamepadProvider::platformWebPageProxyForGamepadInput):
2356
2357         * UIProcess/Gamepad/mac/UIGamepadProviderMac.mm:
2358
2359         * WebKit2.xcodeproj/project.pbxproj:
2360
2361 2016-08-30  Anders Carlsson  <andersca@apple.com>
2362
2363         Try to fix the 32-bit build.
2364
2365         * UIProcess/WebProcessProxy.cpp:
2366         (WebKit::WebProcessProxy::deleteWebsiteData):
2367         (WebKit::WebProcessProxy::deleteWebsiteDataForOrigins):
2368         * UIProcess/WebProcessProxy.h:
2369
2370 2016-08-30  Anders Carlsson  <andersca@apple.com>
2371
2372         Switch more messages over to Connection::sendWithReply
2373         https://bugs.webkit.org/show_bug.cgi?id=161415
2374
2375         Reviewed by Tim Horton.
2376
2377         * UIProcess/WebProcessProxy.cpp:
2378         (WebKit::WebProcessProxy::~WebProcessProxy):
2379         (WebKit::WebProcessProxy::processWillShutDown):
2380         (WebKit::WebProcessProxy::canTerminateChildProcess):
2381         (WebKit::WebProcessProxy::deleteWebsiteData):
2382         (WebKit::WebProcessProxy::deleteWebsiteDataForOrigins):
2383         (WebKit::generateCallbackID): Deleted.
2384         (WebKit::WebProcessProxy::didDeleteWebsiteData): Deleted.
2385         (WebKit::WebProcessProxy::didDeleteWebsiteDataForOrigins): Deleted.
2386         * UIProcess/WebProcessProxy.h:
2387         * UIProcess/WebProcessProxy.messages.in:
2388         * WebProcess/WebProcess.cpp:
2389         (WebKit::WebProcess::deleteWebsiteData):
2390         (WebKit::WebProcess::deleteWebsiteDataForOrigins):
2391         * WebProcess/WebProcess.h:
2392         * WebProcess/WebProcess.messages.in:
2393
2394 2016-08-30  Anders Carlsson  <andersca@apple.com>
2395
2396         Add Connection::sendWithReply
2397         https://bugs.webkit.org/show_bug.cgi?id=161399
2398
2399         Reviewed by Tim Horton.
2400
2401         Connection::sendWithReply makes it easy to send a message and process its reply asynchronously on a given WorkQueue or RunLoop.
2402         The reply handler is guaranteed to be called. If the reply is successfully received, it will consist of an std::tuple with the arguments,
2403         otherwise it will be called with Nullopt.
2404
2405         * Platform/IPC/Connection.cpp:
2406         (IPC::Connection::invalidate):
2407         Go through all reply handlers and dispatch them with a null Decoder.
2408
2409         (IPC::Connection::sendMessageWithReply):
2410         Add the reply handler to the m_replyHandlers hash map, and send the message.
2411
2412         (IPC::Connection::processIncomingSyncReply):
2413         Check if the incoming reply has an entry in m_replyHandlers. If it does, dispatch its handler using the given dispatcher.
2414
2415         (IPC::Connection::connectionDidClose):
2416         Go through all reply handlers and dispatch them with a null Decoder.
2417
2418         * Platform/IPC/Connection.h:
2419         (IPC::Connection::sendWithReply):
2420         Encode the message (we use the sync message ID infrastructure for this), then call sendMessageWithReply with a reply handler that
2421         decodes the reply and calls the real reply handler.
2422
2423         * Platform/IPC/HandleMessage.h:
2424         Forward declare Connection.
2425
2426         * UIProcess/Databases/DatabaseProcessProxy.h:
2427         * UIProcess/Network/NetworkProcessProxy.h:
2428         Forward declare WebsiteData.
2429
2430         * UIProcess/WebProcessProxy.cpp:
2431         (WebKit::WebProcessProxy::~WebProcessProxy):
2432         (WebKit::WebProcessProxy::processWillShutDown):
2433         Remove m_pendingFetchWebsiteDataCallbacks.
2434
2435         (WebKit::WebProcessProxy::fetchWebsiteData):
2436         Use Connection::sendWithReply.
2437
2438         (WebKit::WebProcessProxy::didFetchWebsiteData): Deleted.
2439
2440         * UIProcess/WebProcessProxy.h:
2441         Remove members.
2442
2443         * UIProcess/WebProcessProxy.messages.in:
2444         Remove DidFetchWebsiteData.
2445
2446         * WebProcess/WebProcess.cpp:
2447         (WebKit::WebProcess::fetchWebsiteData):
2448         * WebProcess/WebProcess.h:
2449         * WebProcess/WebProcess.messages.in:
2450         Update the FetchWebsiteData message to have a reply parameter.
2451
2452 2016-08-30  Brady Eidson  <beidson@apple.com>
2453
2454         Fix runtime error caused by missing export after https://bugs.webkit.org/show_bug.cgi?id=160846
2455
2456         Rubberstamped by Dan Bernstein.
2457
2458         * UIProcess/API/Cocoa/_WKVisitedLinkProvider.mm:
2459
2460 2016-08-30  Brady Eidson  <beidson@apple.com>
2461
2462         GameController.framework backend for gamepad API.
2463         https://bugs.webkit.org/show_bug.cgi?id=161086
2464
2465         Reviewed by Alex Christensen.
2466
2467         * UIProcess/API/Cocoa/WKProcessPool.mm:
2468         (+[WKProcessPool _forceGameControllerFramework]):
2469         * UIProcess/API/Cocoa/WKProcessPoolPrivate.h:
2470
2471         * UIProcess/Gamepad/UIGamepadProvider.h:
2472
2473         * UIProcess/Gamepad/cocoa/UIGamepadProviderCocoa.mm: Renamed from Source/WebKit2/UIProcess/Gamepad/mac/UIGamepadProviderHID.cpp.
2474         (WebKit::UIGamepadProvider::setUsesGameControllerFramework):
2475         (WebKit::UIGamepadProvider::platformSetDefaultGamepadProvider):
2476         (WebKit::UIGamepadProvider::platformStopMonitoringInput):
2477         (WebKit::UIGamepadProvider::platformStartMonitoringInput):
2478
2479         * WebKit2.xcodeproj/project.pbxproj:
2480
2481 2016-08-30  Mark Lam  <mark.lam@apple.com>
2482
2483         Introduce the ThrowScope and force every throw site to instantiate a ThrowScope.
2484         https://bugs.webkit.org/show_bug.cgi?id=161171
2485
2486         Reviewed by Filip Pizlo and Geoffrey Garen.
2487
2488         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
2489         (WebKit::callMethod):
2490         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
2491         (WebKit::JSNPObject::callMethod):
2492         (WebKit::JSNPObject::callObject):
2493         (WebKit::JSNPObject::callConstructor):
2494         (WebKit::JSNPObject::getOwnPropertySlot):
2495         (WebKit::JSNPObject::put):
2496         (WebKit::JSNPObject::deleteProperty):
2497         (WebKit::JSNPObject::getOwnPropertyNames):
2498         (WebKit::JSNPObject::propertyGetter):
2499         (WebKit::JSNPObject::methodGetter):
2500         (WebKit::JSNPObject::throwInvalidAccessError):
2501         * WebProcess/Plugins/Netscape/JSNPObject.h:
2502         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
2503         (WebKit::NPRuntimeObjectMap::moveGlobalExceptionToExecState):
2504
2505 2016-08-29  Anders Carlsson  <andersca@apple.com>
2506
2507         Stop using m_client to indicate whether an IPC::Connection is valid
2508         https://bugs.webkit.org/show_bug.cgi?id=161362
2509
2510         Reviewed by Andreas Kling.
2511
2512         Instead, add an std::atomic<bool> so we can reliably check the state from other threads.
2513
2514         * Platform/IPC/Connection.cpp:
2515         (IPC::Connection::Connection):
2516         (IPC::Connection::invalidate):
2517         (IPC::Connection::connectionDidClose):
2518         (IPC::Connection::dispatchSyncMessage):
2519         (IPC::Connection::dispatchDidReceiveInvalidMessage):
2520         (IPC::Connection::dispatchMessage):
2521         * Platform/IPC/Connection.h:
2522         (IPC::Connection::client):
2523         (IPC::Connection::isValid):
2524         (IPC::Connection::waitForAndDispatchImmediately):
2525         * UIProcess/WebGeolocationManagerProxy.cpp:
2526         (WebKit::WebGeolocationManagerProxy::startUpdating):
2527         (WebKit::WebGeolocationManagerProxy::stopUpdating):
2528         (WebKit::WebGeolocationManagerProxy::setEnableHighAccuracy):
2529
2530 2016-08-30  Carlos Garcia Campos  <cgarcia@igalia.com>
2531
2532         REGRESSION(r194846): [GTK] UI process crash visiting sites protected with HTTP auth when using GTK+ < 3.14
2533         https://bugs.webkit.org/show_bug.cgi?id=161385
2534
2535         Reviewed by Antonio Gomes.
2536
2537         Since r194846, we are chaining up webkitWebViewBaseMotionNotifyEvent, but before GTK+ 3.14
2538         GtkWidget::motion_notify_event was nullptr, so it can't be used unconditionally.
2539
2540         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
2541         (webkitWebViewBaseMotionNotifyEvent):
2542
2543 2016-08-30  Carlos Garcia Campos  <cgarcia@igalia.com>
2544
2545         Unreviewed. Fix GTK+ build after r205150.
2546
2547         * UIProcess/API/gtk/WebKitUserContentManager.cpp:
2548
2549 2016-08-29  Gyuyoung Kim  <gyuyoung.kim@navercorp.com>
2550
2551         Unreviewed EFL/GTK build fix since r205150
2552
2553         * CMakeLists.txt: Add Shared/FrameInfoData.cpp.
2554
2555 2016-08-29  Anders Carlsson  <andersca@apple.com>
2556
2557         Get rid of ChildProcessProxy::fromConnection
2558         https://bugs.webkit.org/show_bug.cgi?id=161357
2559
2560         Reviewed by Tim Horton.
2561
2562         * UIProcess/ChildProcessProxy.cpp:
2563         (WebKit::ChildProcessProxy::fromConnection): Deleted.
2564         * UIProcess/ChildProcessProxy.h:
2565         * UIProcess/WebProcessProxy.h:
2566         (WebKit::WebProcessProxy::fromConnection): Deleted.
2567
2568 2016-08-29  Anders Carlsson  <andersca@apple.com>
2569
2570         Remove the last uses of WebProcessProxy::fromConnection
2571         https://bugs.webkit.org/show_bug.cgi?id=161355
2572
2573         Reviewed by Tim Horton.
2574
2575         * UIProcess/WebProcessPool.cpp:
2576         (WebKit::webProcessProxyFromConnection):
2577         (WebKit::WebProcessPool::handleMessage):
2578         (WebKit::WebProcessPool::handleSynchronousMessage):
2579         (WebKit::WebProcessPool::startedUsingGamepads):
2580         (WebKit::WebProcessPool::stoppedUsingGamepads):
2581
2582 2016-08-29  Anders Carlsson  <andersca@apple.com>
2583
2584         Get rid of another use of WebProcessProxy::fromConnection
2585         https://bugs.webkit.org/show_bug.cgi?id=161331
2586
2587         Reviewed by Dan Bernstein.
2588
2589         WebUserContentControllerProxy::didPostMessage uses WebProcessProxy::fromConnection to be able to find a WebFrameProxy from
2590         a given frame ID. Since the WebFrameProxy is only used to construct an API::FrameInfo object from, introduce a FrameInfoData object
2591         and fill it in on the web process side and send it over to the UI process where an API::FrameInfo object can be created.
2592
2593         * Shared/FrameInfoData.cpp: Added.
2594         (WebKit::FrameInfoData::encode):
2595         (WebKit::FrameInfoData::decode):
2596         * Shared/FrameInfoData.h: Added.
2597         * UIProcess/API/APIFrameInfo.cpp:
2598         (API::FrameInfo::create):
2599         (API::FrameInfo::FrameInfo):
2600         * UIProcess/API/APIFrameInfo.h:
2601         * UIProcess/API/Cocoa/WKUserContentController.mm:
2602         * UIProcess/UserContent/WebScriptMessageHandler.h:
2603         * UIProcess/UserContent/WebUserContentControllerProxy.cpp:
2604         (WebKit::WebUserContentControllerProxy::didPostMessage):
2605         * UIProcess/UserContent/WebUserContentControllerProxy.h:
2606         * UIProcess/UserContent/WebUserContentControllerProxy.messages.in:
2607         * WebKit2.xcodeproj/project.pbxproj:
2608         * WebProcess/UserContent/WebUserContentController.cpp:
2609         * WebProcess/WebPage/WebFrame.cpp:
2610         (WebKit::WebFrame::info):
2611         * WebProcess/WebPage/WebFrame.h:
2612
2613 2016-08-29  Anders Carlsson  <andersca@apple.com>
2614
2615         Stop using WebProcessProxy::fromConnection in WebPageProxy
2616         https://bugs.webkit.org/show_bug.cgi?id=161322
2617
2618         Reviewed by Dan Bernstein.
2619
2620         The WebPageProxy already knows its WebProcessProxy - no need to look it up from the connection.
2621
2622         * UIProcess/WebPageProxy.cpp:
2623         (WebKit::WebPageProxy::handleMessage):
2624         (WebKit::WebPageProxy::handleSynchronousMessage):
2625
2626 2016-08-29  Anders Carlsson  <andersca@apple.com>
2627
2628         Move some structs into Connection.cpp
2629         https://bugs.webkit.org/show_bug.cgi?id=161320
2630
2631         Reviewed by Darin Adler.
2632
2633         * Platform/IPC/Connection.cpp:
2634         (IPC::Connection::PendingSyncReply::PendingSyncReply):
2635         * Platform/IPC/Connection.h:
2636         (IPC::Connection::PendingSyncReply::PendingSyncReply): Deleted.
2637
2638 2016-08-26  Anders Carlsson  <andersca@apple.com>
2639
2640         Remove sync message sending from secondary threads
2641         https://bugs.webkit.org/show_bug.cgi?id=161277
2642
2643         Reviewed by Sam Weinig.
2644
2645         This codepath hasn't been used for some time, and removing it will make it easier to make IPC::Connection backed by libxpc.
2646
2647         * Platform/IPC/Connection.cpp:
2648         (IPC::Connection::sendSyncMessage):
2649         (IPC::Connection::processIncomingSyncReply):
2650         (IPC::Connection::connectionDidClose):
2651         (IPC::Connection::sendSyncMessageFromSecondaryThread): Deleted.
2652         * Platform/IPC/Connection.h:
2653
2654 2016-08-16  Carlos Garcia Campos  <cgarcia@igalia.com>
2655
2656         [GTK] Accelerated compositing does not work in Wayland
2657         https://bugs.webkit.org/show_bug.cgi?id=115803
2658
2659         Reviewed by Michael Catanzaro.
2660
2661         This is the initial implementation of accelerated compositing support in Wayland for the GTK+ port. It's based
2662         on previous patches written by Iago Toral, Žan Doberšek, Emanuele Aina and Emilio Pozuelo Monfort.
2663
2664         The existing WebKitGTK+ Wayland interface previously added for this to WebCore has been moved to the WebKit2
2665         layer, since it's actually specific to WebKit2, and it's now actually used. The UI process runs a nested Wayland
2666         compositor that web processes connect to. Web processes create a Wayland surface in the nested compositor for
2667         the web page, and using the WebKitGTK+ Wayland protocol interface they tell the nested compositor the web page
2668         associated to the surface. A Wayland window is created for that surface that is then used as the native window
2669         handle for compositing. To communicate with the nested compositor and to ensure all GL operations happen in the
2670         nested compositor display, the web process creates a Wayland display that connects to the nested compositor,
2671         uses the WebKitGTK+ Wayland interface and it's set as the global shared display for compositing.
2672
2673         The nested Wayland compositor creates a new display with a unique name that is sent to the web processes at
2674         start up. It implements the Wayland surface interface to handle the Wayland buffers created for every surface
2675         and scheduling redraws on the web pages when updates are available. It uses the WebKitGTK+ Wayland interface to
2676         associate the surfaces to a particular web page. A texture is created for every surface and updated with the
2677         Wayland buffer contents using an EGLImageKHR and eglImageTargetTexture2d API.
2678
2679         To abstract the platform differences and avoid ifdefs as much as possible, new abstract classes have been added
2680         to represent the surfaces used in accelerated compositing. AcceleratedSurface is used by the web process and
2681         represents the surface where contents are rendered into. The X11 implementation is the redirected XComposite
2682         window, and the Wayland implementation is equivalent to the previous Wayland surface added to WebCore but never
2683         used. In the UI process the web view creates an abstract AcceleratedBackingStore that is used to render the
2684         AcceleratedSurface into the web view using cairo. The X11 implementation creates the cairo surface for the
2685         redirected XComposite window pixmap and uses XDamage extension to schedule redraws. The Wayland implementation
2686         asks the nested Wayland compositor for the texture associated to the web view page.
2687
2688         Accelerated compositing is now always enabled by default in both X11 and Wayland, unless it's explicitly
2689         disabled by the user using the WEBKIT_DISABLE_COMPOSITING_MODE environment variable, or if any extension or
2690         feature required by X11 or Wayland implementations are not available.
2691
2692         * PlatformGTK.cmake:
2693         * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:
2694         (WebKit::ThreadedCompositor::glContext): Pass the shared display for compositing to GLContext::createContextForWindow()
2695         * Shared/WebProcessCreationParameters.cpp:
2696         (WebKit::WebProcessCreationParameters::encode): Encode wayland compositor display name.
2697         (WebKit::WebProcessCreationParameters::decode): Decode wayland compositor display name.
2698         * Shared/WebProcessCreationParameters.h: Add wayland compositor display name initial parameter.
2699         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
2700         (webkitWebViewBaseDispose):
2701         (webkitWebViewBaseDraw):
2702         (webkitWebViewBaseCreateWebPage):
2703         (webkitWebViewBaseEnterAcceleratedCompositingMode):
2704         (webkitWebViewBaseUpdateAcceleratedCompositingMode):
2705         (webkitWebViewBaseExitAcceleratedCompositingMode):
2706         (webkitWebViewBasePageClosed):
2707         * UIProcess/WebProcessPool.cpp:
2708         (WebKit::WebProcessPool::createNewWebProcess): Initialize the wayland compositor display name initial parameter.
2709         * UIProcess/gtk/AcceleratedBackingStore.cpp: Added.
2710         (WebKit::AcceleratedBackingStore::create):
2711         (WebKit::AcceleratedBackingStore::AcceleratedBackingStore):
2712         (WebKit::AcceleratedBackingStore::~AcceleratedBackingStore):
2713         (WebKit::AcceleratedBackingStore::paint):
2714         * UIProcess/gtk/AcceleratedBackingStore.h: Added.
2715         (WebKit::AcceleratedBackingStore::update):
2716         * UIProcess/gtk/AcceleratedBackingStoreWayland.cpp: Added.
2717         (WebKit::AcceleratedBackingStoreWayland::create):
2718         (WebKit::AcceleratedBackingStoreWayland::AcceleratedBackingStoreWayland):
2719         (WebKit::AcceleratedBackingStoreWayland::~AcceleratedBackingStoreWayland):
2720         (WebKit::AcceleratedBackingStoreWayland::paint):
2721         * UIProcess/gtk/AcceleratedBackingStoreWayland.h: Added.
2722         * UIProcess/gtk/AcceleratedBackingStoreX11.cpp: Added.
2723         (WebKit::XDamageNotifier::singleton):
2724         (WebKit::XDamageNotifier::add):
2725         (WebKit::XDamageNotifier::remove):
2726         (WebKit::XDamageNotifier::filterXDamageEvent):
2727         (WebKit::XDamageNotifier::notify):
2728         (WebKit::AcceleratedBackingStoreX11::create):
2729         (WebKit::AcceleratedBackingStoreX11::AcceleratedBackingStoreX11):
2730         (WebKit::AcceleratedBackingStoreX11::~AcceleratedBackingStoreX11):
2731         (WebKit::AcceleratedBackingStoreX11::update):
2732         (WebKit::AcceleratedBackingStoreX11::paint):
2733         * UIProcess/gtk/AcceleratedBackingStoreX11.h: Added.
2734         * UIProcess/gtk/WaylandCompositor.cpp: Added.
2735         (WebKit::WaylandCompositor::singleton):
2736         (WebKit::WaylandCompositor::Buffer::getOrCreate):
2737         (WebKit::WaylandCompositor::Buffer::Buffer):
2738         (WebKit::WaylandCompositor::Buffer::~Buffer):
2739         (WebKit::WaylandCompositor::Buffer::destroyListenerCallback):
2740         (WebKit::WaylandCompositor::Buffer::use):
2741         (WebKit::WaylandCompositor::Buffer::unuse):
2742         (WebKit::WaylandCompositor::Buffer::createImage):
2743         (WebKit::WaylandCompositor::Buffer::size):
2744         (WebKit::WaylandCompositor::Surface::Surface):
2745         (WebKit::WaylandCompositor::Surface::~Surface):
2746         (WebKit::WaylandCompositor::Surface::makePendingBufferCurrent):
2747         (WebKit::WaylandCompositor::Surface::attachBuffer):
2748         (WebKit::WaylandCompositor::Surface::requestFrame):
2749         (WebKit::WaylandCompositor::Surface::prepareTextureForPainting):
2750         (WebKit::WaylandCompositor::Surface::commit):
2751         (WebKit::WaylandCompositor::initializeEGL):
2752         (WebKit::createWaylandLoopSource):
2753         (WebKit::WaylandCompositor::WaylandCompositor):
2754         (WebKit::WaylandCompositor::getTexture):
2755         (WebKit::WaylandCompositor::bindSurfaceToWebPage):
2756         (WebKit::WaylandCompositor::registerWebPage):
2757         (WebKit::WaylandCompositor::unregisterWebPage):
2758         * UIProcess/gtk/WaylandCompositor.h: Added.
2759         (WebKit::WaylandCompositor::Buffer::createWeakPtr):
2760         (WebKit::WaylandCompositor::Surface::setWebPage):
2761         (WebKit::WaylandCompositor::isRunning):
2762         (WebKit::WaylandCompositor::displayName):
2763         * UIProcess/gtk/WebPreferencesGtk.cpp:
2764         (WebKit::WebPreferences::platformInitializeStore):
2765         * UIProcess/gtk/XDamageNotifier.cpp: Removed.
2766         * WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp:
2767         (WebKit::ThreadedCoordinatedLayerTreeHost::ThreadedCoordinatedLayerTreeHost):
2768         (WebKit::ThreadedCoordinatedLayerTreeHost::invalidate):
2769         (WebKit::ThreadedCoordinatedLayerTreeHost::deviceOrPageScaleFactorChanged):
2770         (WebKit::ThreadedCoordinatedLayerTreeHost::sizeDidChange):
2771         * WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.h:
2772         * WebProcess/WebPage/gtk/AcceleratedSurface.cpp: Added.
2773         (WebKit::AcceleratedSurface::create):
2774         (WebKit::AcceleratedSurface::AcceleratedSurface):
2775         (WebKit::AcceleratedSurface::~AcceleratedSurface):
2776         (WebKit::AcceleratedSurface::resize):
2777         * WebProcess/WebPage/gtk/AcceleratedSurface.h: Added.
2778         (WebKit::AcceleratedSurface::window):
2779         (WebKit::AcceleratedSurface::surfaceID):
2780         * WebProcess/WebPage/gtk/AcceleratedSurfaceWayland.cpp: Added.
2781         (WebKit::waylandCompositorDisplay):
2782         (WebKit::AcceleratedSurfaceWayland::create):
2783         (WebKit::AcceleratedSurfaceWayland::AcceleratedSurfaceWayland):
2784         (WebKit::AcceleratedSurfaceWayland::~AcceleratedSurfaceWayland):
2785         (WebKit::AcceleratedSurfaceWayland::resize):
2786         * WebProcess/WebPage/gtk/AcceleratedSurfaceWayland.h: Added.
2787         * WebProcess/WebPage/gtk/AcceleratedSurfaceX11.cpp: Renamed from Source/WebKit2/WebProcess/WebPage/gtk/RedirectedXCompositeWindow.cpp.
2788         (WebKit::AcceleratedSurfaceX11::create):
2789         (WebKit::AcceleratedSurfaceX11::AcceleratedSurfaceX11):
2790         (WebKit::AcceleratedSurfaceX11::~AcceleratedSurfaceX11):
2791         (WebKit::AcceleratedSurfaceX11::resize):
2792         * WebProcess/WebPage/gtk/AcceleratedSurfaceX11.h: Renamed from Source/WebKit2/WebProcess/WebPage/gtk/RedirectedXCompositeWindow.h.
2793         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
2794         (WebKit::LayerTreeHostGtk::LayerTreeHostGtk):
2795         (WebKit::LayerTreeHostGtk::makeContextCurrent):
2796         (WebKit::LayerTreeHostGtk::invalidate):
2797         (WebKit::LayerTreeHostGtk::sizeDidChange):
2798         (WebKit::LayerTreeHostGtk::deviceOrPageScaleFactorChanged):
2799         (WebKit::LayerTreeHostGtk::RenderFrameScheduler::RenderFrameScheduler): Deleted.
2800         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
2801         * WebProcess/WebProcess.cpp:
2802         (WebKit::WebProcess::initializeWebProcess): Initialize the wayland compositor display name.
2803         * WebProcess/WebProcess.h:
2804         (WebKit::WebProcess::waylandCompositorDisplayName): Return the wayland compositor display name.
2805
2806 2016-08-27  Jonathan Bedard  <jbedard@apple.com>
2807
2808         WTR needs an implementation of setAutomaticLinkDetectionEnabled
2809         https://bugs.webkit.org/show_bug.cgi?id=87162
2810
2811         Reviewed by Darin Adler
2812
2813         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
2814         (WKBundleSetAutomaticLinkDetectionEnabled): Added WKBundleSetAutomaticLinkDetectionEnabled definition.
2815         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: Added WKBundleSetAutomaticLinkDetectionEnabled declaration.
2816         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2817         (WebKit::InjectedBundle::setAutomaticLinkDetectionEnabled): Added setAutomaticLinkDetectionEnabled definition.
2818         * WebProcess/InjectedBundle/InjectedBundle.h: Added setAutomaticLinkDetectionEnabled declaration.
2819         * WebProcess/WebProcess.h: Declared setTextCheckerState public.
2820
2821 2016-08-27  Carlos Garcia Campos  <cgarcia@igalia.com>
2822
2823         [GTK][Threaded Compositor] Several flaky tests
2824         https://bugs.webkit.org/show_bug.cgi?id=161242
2825
2826         Reviewed by Michael Catanzaro.
2827
2828         We still have a lot of flaky tests since we switched to the threaded compositor. The UI process might
2829         take the screenshot too early, before everything is actually painted. I can't reproduce the problem, so this is
2830         actually a speculative fix or workaround. Our implementation of DrawingArea::dispatchAfterEnsuringDrawing() is
2831         quite simple, we just dispatch the callback in the next run loop iteration, which doesn't really ensures any
2832         drawing at all. So, we can wait for draw events before dispatching the given callback. Since we don't really
2833         know if draw events were already processed before dispatchAfterEnsuringDrawing() is called, or if there will be
2834         more than one damage event in a short time, this patch waits up to 1 second for draw events, and if a draw
2835         happens it stops if there isn't another draw event in the next 100ms. This should ensure a drawing if it was
2836         really needed.
2837
2838         * UIProcess/DrawingAreaProxyImpl.cpp:
2839         (WebKit::DrawingAreaProxyImpl::DrawingMonitor::DrawingMonitor):
2840         (WebKit::DrawingAreaProxyImpl::DrawingMonitor::~DrawingMonitor):
2841         (WebKit::DrawingAreaProxyImpl::DrawingMonitor::webViewDrawCallback):
2842         (WebKit::DrawingAreaProxyImpl::DrawingMonitor::start):
2843         (WebKit::DrawingAreaProxyImpl::DrawingMonitor::stop):
2844         (WebKit::DrawingAreaProxyImpl::DrawingMonitor::didDraw):
2845         (WebKit::DrawingAreaProxyImpl::dispatchAfterEnsuringDrawing):
2846         * UIProcess/DrawingAreaProxyImpl.h:
2847
2848 2016-08-26  Sam Weinig  <sam@webkit.org>
2849
2850         Remove support for ENABLE_LEGACY_WEB_AUDIO
2851         https://bugs.webkit.org/show_bug.cgi?id=161262
2852
2853         Reviewed by Anders Carlsson.
2854
2855         * Configurations/FeatureDefines.xcconfig:
2856         Remove ENABLE_LEGACY_WEB_AUDIO.
2857
2858 2016-08-26  Anders Carlsson  <andersca@apple.com>
2859
2860         Get rid of NetworkResourceLoader::sendAbortingOnFailure
2861         https://bugs.webkit.org/show_bug.cgi?id=161267
2862
2863         Reviewed by Dan Bernstein.
2864
2865         NetworkResourceLoader::sendAbortingOnFailure sends an IPC message, and if IPC::Connection::send returns false,
2866         it will abort the network resource load.
2867
2868         IPC::Connection::send will only return false if the connection is invalid, and when it becomes invalidated the
2869         connection client member function "didClose" is invoked. For the network process, this will call abort on all outstanding
2870         network loads.
2871
2872         Auditing all the sendAbortingOnFailure call sites, shows that none of them can be called with an invalid connection,
2873         so replace sendAbortingOnFailure with send.
2874
2875         * NetworkProcess/NetworkResourceLoader.cpp:
2876         (WebKit::NetworkResourceLoader::didReceiveResponse):
2877         This is a NetworkLoadClient function which won't be called if the load has been aborted.
2878
2879         (WebKit::NetworkResourceLoader::didReceiveBuffer):
2880         Ditto.
2881
2882         (WebKit::NetworkResourceLoader::didFinishLoading):
2883         Ditto. Also, update a call to sendBufferMaybeAborting to sendBuffer.
2884
2885         (WebKit::NetworkResourceLoader::willSendRedirectedRequest):
2886         This is another NetworkLoadClient function.
2887
2888         (WebKit::NetworkResourceLoader::bufferingTimerFired):
2889         The buffering timer is stopped when abort() is called.
2890
2891         (WebKit::NetworkResourceLoader::sendBuffer):
2892         Rename this from sendBufferMaybeAborting. It has three call sites:
2893         - didReceiveBuffer and didFinishLoading are both NetworkLoadClient functions.
2894         - didRetrieveCacheEntry is called from didFinishLoading (a NetworkLoadClient function) and from
2895           the completion function of retrieveCacheEntry, which has an early return for when the loader has been aborted.
2896
2897         (WebKit::NetworkResourceLoader::didRetrieveCacheEntry):
2898         This is called from the retrieveCacheEntry completion function, which has an early return for when the loader has been aborted.
2899
2900         (WebKit::NetworkResourceLoader::dispatchWillSendRequestForCacheEntry):
2901         Ditto.
2902
2903         (WebKit::NetworkResourceLoader::sendAbortingOnFailure): Deleted.
2904         * NetworkProcess/NetworkResourceLoader.h:
2905
2906 2016-08-26  Dan Bernstein  <mitz@apple.com>
2907
2908         [Cocoa] Infinite recursion calling -charValue on a WKNSNumber
2909         https://bugs.webkit.org/show_bug.cgi?id=161258
2910
2911         Reviewed by Anders Carlsson.
2912
2913         * Shared/Cocoa/WKNSNumber.mm:
2914         (-[WKNSNumber charValue]): Override this…
2915         (-[WKNSNumber boolValue]): …not this.
2916
2917 2016-08-26  Csaba Osztrogonác  <ossy@webkit.org>
2918
2919         [EFL][GTK] REGRESSION(204877): Fix the clean build
2920         https://bugs.webkit.org/show_bug.cgi?id=161240
2921
2922         Reviewed by Carlos Garcia Campos.
2923
2924         * Scripts/generate-forwarding-headers.pl: Added back multiple include-path support. (removed by r183389)
2925
2926 2016-08-26  Gyuyoung Kim  <gyuyoung.kim@navercorp.com>
2927
2928         Unreviewed EFL build fix since r204996.
2929
2930         * UIProcess/efl/WebPageProxyEfl.cpp:
2931         (WebKit::WebPageProxy::editorStateChanged):
2932         (WebKit::WebPageProxy::setThemePath):
2933         (WebKit::WebPageProxy::confirmComposition):
2934         (WebKit::WebPageProxy::setComposition):
2935         (WebKit::WebPageProxy::cancelComposition):
2936
2937 2016-08-25  Carlos Garcia Campos  <cgarcia@igalia.com>
2938
2939         Unreviewed. Fix GTK+ build after r204986 and r204996.
2940
2941         * Platform/IPC/unix/ConnectionUnix.cpp:
2942         (IPC::Connection::willSendSyncMessage):
2943         (IPC::Connection::didReceiveSyncReply):
2944         * UIProcess/WebPageProxy.cpp:
2945         (WebKit::WebPageProxy::drawPagesForPrinting):
2946
2947 2016-08-25  Anders Carlsson  <andersca@apple.com>
2948
2949         Replace all IPC message send flags with OptionSet
2950         https://bugs.webkit.org/show_bug.cgi?id=161211
2951
2952         Reviewed by Tim Horton.
2953
2954         * NetworkProcess/NetworkResourceLoader.cpp:
2955         (WebKit::NetworkResourceLoader::didFailLoading):
2956         (WebKit::NetworkResourceLoader::sendAbortingOnFailure):
2957         * NetworkProcess/NetworkResourceLoader.h:
2958         * Platform/IPC/Connection.cpp:
2959         (IPC::WaitForMessageState::WaitForMessageState):
2960         (IPC::Connection::sendMessage):
2961         (IPC::Connection::sendSyncReply):
2962         (IPC::Connection::waitForMessage):
2963         (IPC::Connection::sendSyncMessage):
2964         (IPC::Connection::sendSyncMessageFromSecondaryThread):
2965         (IPC::Connection::waitForSyncReply):
2966         (IPC::Connection::processIncomingMessage):
2967         * Platform/IPC/Connection.h:
2968         (IPC::Connection::send):
2969         (IPC::Connection::sendSync):
2970         (IPC::Connection::waitForAndDispatchImmediately):
2971         * Platform/IPC/MessageSender.cpp:
2972         (IPC::MessageSender::sendMessage):
2973         * Platform/IPC/MessageSender.h:
2974         (IPC::MessageSender::send):
2975         (IPC::MessageSender::sendSync):
2976         * Platform/IPC/mac/ConnectionMac.mm:
2977         (IPC::Connection::open):
2978         (IPC::Connection::willSendSyncMessage):
2979         (IPC::Connection::didReceiveSyncReply):
2980         * PluginProcess/mac/PluginControllerProxyMac.mm:
2981         (WebKit::PluginControllerProxy::setComplexTextInputState):
2982         * UIProcess/ChildProcessProxy.cpp:
2983         (WebKit::ChildProcessProxy::sendMessage):
2984         (WebKit::ChildProcessProxy::didFinishLaunching):
2985         * UIProcess/ChildProcessProxy.h:
2986         (WebKit::ChildProcessProxy::send):
2987         (WebKit::ChildProcessProxy::sendSync):
2988         * UIProcess/Databases/DatabaseProcessProxy.cpp:
2989         (WebKit::DatabaseProcessProxy::getDatabaseProcessConnection):
2990         * UIProcess/Network/NetworkProcessProxy.cpp:
2991         (WebKit::NetworkProcessProxy::getNetworkProcessConnection):
2992         * UIProcess/Plugins/PluginProcessProxy.cpp:
2993         (WebKit::PluginProcessProxy::getPluginProcessConnection):
2994         * UIProcess/WebEditCommandProxy.cpp:
2995         (WebKit::WebEditCommandProxy::unapply):
2996         (WebKit::WebEditCommandProxy::reapply):
2997         * UIProcess/WebPageProxy.cpp:
2998         (WebKit::printingSendOptions):
2999         (WebKit::WebPageProxy::preferencesDidChange):
3000         (WebKit::WebPageProxy::sendMessage):
3001         (WebKit::WebPageProxy::beginPrinting):
3002         (WebKit::WebPageProxy::endPrinting):
3003         (WebKit::WebPageProxy::computePagesForPrinting):
3004         (WebKit::WebPageProxy::drawRectToImage):
3005         (WebKit::WebPageProxy::drawPagesToPDF):
3006         (WebKit::WebPageProxy::drawPagesForPrinting):
3007         (WebKit::WebPageProxy::setMinimumLayoutSize): Deleted.
3008         (WebKit::WebPageProxy::setAutoSizingShouldExpandToViewHeight): Deleted.
3009         (WebKit::WebPageProxy::handleAlternativeTextUIResult): Deleted.
3010         * UIProcess/WebPageProxy.h:
3011         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
3012         (WebKit::RemoteLayerTreeDrawingAreaProxy::waitForDidUpdateViewState):
3013         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
3014         (WebKit::TiledCoreAnimationDrawingAreaProxy::waitForDidUpdateViewState):
3015         * WebProcess/Plugins/PluginProxy.cpp:
3016         (WebKit::PluginProxy::geometryDidChange):
3017         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3018         (WebKit::WebChromeClient::runBeforeUnloadConfirmPanel):
3019         (WebKit::WebChromeClient::runJavaScriptAlert):
3020         (WebKit::WebChromeClient::runJavaScriptConfirm):
3021         (WebKit::WebChromeClient::runJavaScriptPrompt):
3022         (WebKit::WebChromeClient::print):
3023         (WebKit::WebChromeClient::exceededDatabaseQuota):
3024         (WebKit::WebChromeClient::reachedApplicationCacheOriginQuota):
3025         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
3026         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
3027         * WebProcess/WebPage/WebFrame.cpp:
3028         (WebKit::WebFrame::createWithCoreMainFrame):
3029         (WebKit::WebFrame::createSubframe):
3030         * WebProcess/WebPage/WebPage.cpp:
3031         (WebKit::WebPage::sendPostLayoutEditorStateIfNeeded):
3032         (WebKit::WebPage::postSynchronousMessageForTesting):
3033         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
3034         (WebKit::RemoteLayerTreeDrawingArea::BackingStoreFlusher::flush):
3035
3036 2016-08-25  Anders Carlsson  <andersca@apple.com>
3037
3038         Remove some more MessageRecorder gunk
3039         https://bugs.webkit.org/show_bug.cgi?id=161209
3040
3041         Reviewed by Tim Horton.
3042
3043         * DatabaseProcess/DatabaseProcess.h:
3044         * DatabaseProcess/DatabaseToWebProcessConnection.h:
3045         * NetworkProcess/NetworkConnectionToWebProcess.h:
3046         * NetworkProcess/NetworkProcess.h:
3047         * Platform/IPC/Connection.h:
3048         * Platform/IPC/ProcessType.h: Removed.
3049         * PluginProcess/PluginProcess.h:
3050         * PluginProcess/WebProcessConnection.h:
3051         * UIProcess/Databases/DatabaseProcessProxy.h:
3052         * UIProcess/Network/NetworkProcessProxy.h:
3053         * UIProcess/Plugins/PluginProcessProxy.h:
3054         * UIProcess/WebProcessProxy.h:
3055         * WebKit2.xcodeproj/project.pbxproj:
3056         * WebProcess/Databases/WebToDatabaseProcessConnection.h:
3057         * WebProcess/Network/NetworkProcessConnection.h:
3058         * WebProcess/Plugins/PluginProcessConnection.h:
3059         * WebProcess/WebPage/WebInspector.h:
3060         * WebProcess/WebPage/WebInspectorUI.h:
3061         * WebProcess/WebProcess.h:
3062
3063 2016-08-25  Johan K. Jensen  <johan_jensen@apple.com>
3064
3065         Don't store networkLoadTiming in the disk cache
3066         https://bugs.webkit.org/show_bug.cgi?id=161161
3067
3068         Reviewed by Antti Koivisto.
3069
3070         * NetworkProcess/cache/NetworkCacheStorage.h: Updated version to 10.
3071         * NetworkProcess/cache/NetworkCacheDecoder.h:
3072         * NetworkProcess/cache/NetworkCacheEncoder.h:
3073         * Platform/IPC/Decoder.h:
3074         * Platform/IPC/Encoder.h:
3075         Added isIPCDecoder/isIPCEncoder static members.
3076
3077 2016-08-25  Carlos Garcia Campos  <cgarcia@igalia.com>
3078
3079         [GTK][Threaded Compositor] Several flaky tests due to differences in scrollbars
3080         https://bugs.webkit.org/show_bug.cgi?id=160450
3081
3082         Reviewed by Michael Catanzaro.
3083
3084         The issue is that ThreadedCompositor::didChangeVisibleRect() dispatches the setVisibleContentsRect() call that
3085         ends up in CompositingCoordinator. Since we're compositing the scrollbars as well, this visible contents rect
3086         needs to encompass the complete width of the view, but that's not happening.
3087         In case of non-overlay scrollbars, the scrollbars are clipped from this rect, but that doesn't prevent the
3088         scrollbar overlay layers to be flushed and rendered. What does happen is that during tile creation in the
3089         backing store the tiles that would normally intersect the visible rect of the view (if it were spanning over the
3090         whole actual visible area) are sorted by distance to the visible rect.
3091         The top of the two tiles used for the scrollbar is closer to the visible rect, so that gets created and filled
3092         in first. The second tile is stored as pending for creation, and does get rendered at the point of the next
3093         layer flush.
3094
3095         * WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp:
3096         (WebKit::ThreadedCoordinatedLayerTreeHost::setVisibleContentsRect): Update the visible rect taking into account
3097         the non-overlay scrollbars before passing it to the compositor.
3098
3099 2016-08-24  JF Bastien  <jfbastien@apple.com>
3100
3101         cmake build broken by MessageRecorder removal
3102         https://bugs.webkit.org/show_bug.cgi?id=161175
3103
3104         Reviewed by Dean Jackson.
3105
3106         * PlatformMac.cmake:
3107
3108 2016-08-24  Jonathan Bedard  <jbedard@apple.com>
3109
3110         FocusController multiple dereferenced NULL pointers
3111         https://bugs.webkit.org/show_bug.cgi?id=160808
3112
3113         Reviewed by Darin Adler.
3114
3115         * WebProcess/WebPage/WebPage.cpp:
3116         (WebKit::WebPage::setInitialFocus): Should use nullptr, not 0 to initialize NULL pointer.
3117
3118 2016-08-23  Anders Carlsson  <andersca@apple.com>
3119
3120         Add enum traits and use them in the IPC::Decoder
3121         https://bugs.webkit.org/show_bug.cgi?id=161103
3122
3123         Reviewed by Sam Weinig.
3124
3125         * Platform/IPC/Decoder.h:
3126         * Platform/IPC/Encoder.h:
3127         Add new encode/decode functions.
3128
3129         * Shared/mac/ArgumentCodersMac.mm:
3130         Change NSType to be a strongly typed enum. Use encode/decode
3131         instead of encodeEnum/decodeEnum since the latter don't have the
3132         enum check.
3133
3134 2016-08-24  Filip Pizlo  <fpizlo@apple.com>
3135
3136         Unreviewed, roll out r204901, r204897, r204866, r204856, r204854.
3137
3138         * UIProcess/ViewGestureController.cpp:
3139         * UIProcess/WebPageProxy.cpp:
3140         * UIProcess/WebProcessPool.cpp:
3141         * UIProcess/WebProcessProxy.cpp:
3142         * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
3143         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
3144
3145 2016-08-24  Anders Carlsson  <andersca@apple.com>
3146
3147         In some cases, an IPC::Connection won't know when the other end has gone away
3148         https://bugs.webkit.org/show_bug.cgi?id=161153
3149         rdar://problem/27896368
3150
3151         Reviewed by Dan Bernstein.
3152
3153         When being asked to invalidate a connection that isn't yet connected, make sure to release
3154         our send and receive rights so that the other end will get a failure when trying to connect.
3155
3156         * Platform/IPC/mac/ConnectionMac.mm:
3157         (IPC::Connection::platformInvalidate):
3158
3159 2016-08-24  Dan Bernstein  <mitz@apple.com>
3160
3161         Add a convenience function for creating a WKFrameHandleRef from a WKFrameRef without going through WKFrameInfoRef
3162         https://bugs.webkit.org/show_bug.cgi?id=161152
3163
3164         Reviewed by Anders Carlsson.
3165
3166         * UIProcess/API/C/WKFrame.cpp:
3167         (WKFrameCreateFrameHandle): Added. Creates a handle with the frame’s frameID.
3168         * UIProcess/API/C/WKFrame.h:
3169
3170 2016-08-24  Dan Bernstein  <mitz@apple.com>
3171
3172         [Cocoa] Can’t "po" WKObject instances
3173         https://bugs.webkit.org/show_bug.cgi?id=161151
3174
3175         Reviewed by Anders Carlsson.
3176
3177         * Shared/Cocoa/WKObject.mm:
3178         (-[WKObject debugDescription]): Implement and forward to the target or print a generic
3179           description.
3180
3181 2016-08-24  Brady Eidson  <beidson@apple.com>
3182
3183         Get timestamps and ids working in WK2 gamepads (and test them!)
3184         https://bugs.webkit.org/show_bug.cgi?id=161112
3185
3186         Reviewed by Alex Christensen.
3187
3188         * Shared/Gamepad/GamepadData.cpp:
3189         (WebKit::GamepadData::GamepadData):
3190         (WebKit::GamepadData::encode):
3191         (WebKit::GamepadData::decode):
3192         * Shared/Gamepad/GamepadData.h:
3193         (WebKit::GamepadData::id):
3194         (WebKit::GamepadData::index): Deleted.
3195         
3196         * UIProcess/Gamepad/UIGamepad.cpp:
3197         (WebKit::UIGamepad::UIGamepad):
3198         (WebKit::UIGamepad::condensedGamepadData):
3199         (WebKit::UIGamepad::fullGamepadData): Include the ID for initial WebGamepad creation.
3200         (WebKit::UIGamepad::gamepadData): Deleted.
3201         * UIProcess/Gamepad/UIGamepad.h:
3202         
3203         * UIProcess/Gamepad/UIGamepadProvider.cpp:
3204         (WebKit::UIGamepadProvider::snapshotGamepads):
3205         
3206         * UIProcess/WebProcessPool.cpp:
3207         (WebKit::WebProcessPool::gamepadConnected):
3208         (WebKit::WebProcessPool::setInitialConnectedGamepads):
3209         
3210         * WebProcess/Gamepad/WebGamepad.cpp:
3211         (WebKit::WebGamepad::WebGamepad):
3212         (WebKit::WebGamepad::updateValues):
3213
3214 2016-08-24  Hunseop Jeong  <hs85.jeong@samsung.com>
3215
3216         [EFL] Fix test_ewk2_view
3217         https://bugs.webkit.org/show_bug.cgi?id=161131
3218
3219         Reviewed by Gyuyoung Kim.
3220
3221         ewk_view_title_changed: null is treated as the string "null" after r203487.
3222
3223         ewk_view_page_contents_get: aligned encoding labels after r204605.
3224
3225         * UIProcess/API/efl/tests/resources/resultMHTML.mht:
3226         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
3227         (TEST_F):
3228
3229 2016-08-23  Simon Fraser  <simon.fraser@apple.com>
3230
3231         Add some logging for WKSelectionDrawingInfo
3232         https://bugs.webkit.org/show_bug.cgi?id=161055
3233
3234         Reviewed by Tim Horton.
3235
3236         Add a Selection logging channel for WK2, and dump WKSelectionDrawingInfo when it changes.
3237
3238         * Platform/Logging.h:
3239         * UIProcess/ios/WKContentViewInteraction.h:
3240         * UIProcess/ios/WKContentViewInteraction.mm:
3241         (WebKit::operator<<):
3242         (-[WKContentView _updateChangedSelection:]):
3243
3244 2016-08-23  Ryosuke Niwa  <rniwa@webkit.org>
3245
3246         Another CMake build fix attempt after r204852.
3247
3248         * CMakeLists.txt:
3249
3250 2016-08-22  Filip Pizlo  <fpizlo@apple.com>
3251
3252         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
3253         https://bugs.webkit.org/show_bug.cgi?id=160125
3254
3255         Reviewed by Geoffrey Garen.
3256         
3257         Just rewiring some #includes.
3258
3259         * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
3260         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
3261
3262 2016-08-23  Brady Eidson  <beidson@apple.com>
3263
3264         WK2 Gamepad layout test support.
3265         https://bugs.webkit.org/show_bug.cgi?id=134671
3266
3267         Reviewed by Alex Christensen.
3268         
3269         - Teach the UIGamepadProvider to use the default shared provider.
3270         - Especially if its the MockGamepadProvider, don't overwrite it.
3271
3272         * Shared/Gamepad/GamepadData.cpp:
3273         (WebKit::GamepadData::GamepadData):
3274         (WebKit::GamepadData::encode):
3275         (WebKit::GamepadData::decode):
3276         (WebKit::GamepadData::loggingString):
3277         (WebKit::GamepadData::isNull): Deleted.
3278         * Shared/Gamepad/GamepadData.h:
3279         (WebKit::GamepadData::GamepadData):
3280         (WebKit::GamepadData::isNull):
3281         (WebKit::GamepadData::index):
3282         (WebKit::GamepadData::axisValues):
3283         (WebKit::GamepadData::buttonValues):
3284
3285         * UIProcess/Gamepad/UIGamepad.h:
3286
3287         * UIProcess/Gamepad/UIGamepadProvider.cpp:
3288         (WebKit::UIGamepadProvider::UIGamepadProvider):
3289         (WebKit::UIGamepadProvider::~UIGamepadProvider):
3290         (WebKit::UIGamepadProvider::platformGamepadInputActivity):
3291         (WebKit::UIGamepadProvider::startMonitoringGamepads):
3292         (WebKit::UIGamepadProvider::stopMonitoringGamepads):
3293         (WebKit::UIGamepadProvider::platformSetDefaultGamepadProvider):
3294         * UIProcess/Gamepad/UIGamepadProvider.h:
3295
3296         * UIProcess/Gamepad/mac/UIGamepadProviderHID.cpp:
3297         (WebKit::UIGamepadProvider::platformSetDefaultGamepadProvider):
3298         (WebKit::UIGamepadProvider::platformStopMonitoringInput):
3299         (WebKit::UIGamepadProvider::platformStartMonitoringInput):
3300         (WebKit::UIGamepadProvider::platformStartMonitoringGamepads): Deleted.
3301         (WebKit::UIGamepadProvider::platformStopMonitoringGamepads): Deleted.
3302         (WebKit::UIGamepadProvider::platformGamepads): Deleted.
3303
3304         * UIProcess/WebPageProxy.h:
3305
3306         * WebProcess/Gamepad/WebGamepad.cpp:
3307         (WebKit::WebGamepad::WebGamepad):
3308         (WebKit::WebGamepad::updateValues):
3309         * WebProcess/Gamepad/WebGamepad.h:
3310
3311         * WebProcess/Gamepad/WebGamepadProvider.cpp:
3312         (WebKit::WebGamepadProvider::gamepadConnected):
3313         * WebProcess/Gamepad/WebGamepadProvider.h:
3314
3315         * WebProcess/WebPage/WebPage.h:
3316         * WebProcess/WebProcess.h:
3317
3318 2016-08-23  Dave Hyatt  <hyatt@apple.com>
3319
3320         Add pref for enabling new CSS parsing and move parser files into subdirectory.
3321         https://bugs.webkit.org/show_bug.cgi?id=161095
3322
3323         Reviewed by Sam Weinig.
3324
3325         * Shared/WebPreferencesDefinitions.h:
3326         * UIProcess/API/C/WKPreferences.cpp:
3327         (WKPreferencesSetNewCSSParserEnabled):
3328         (WKPreferencesGetNewCSSParserEnabled):
3329         * UIProcess/API/C/WKPreferencesRefPrivate.h:
3330         * WebProcess/WebPage/WebPage.cpp:
3331         (WebKit::WebPage::updatePreferences):
3332
3333 2016-08-23  Chris Dumez  <cdumez@apple.com>
3334
3335         Unreviewed, rolling out r204243.
3336
3337         Caused some layout test failures
3338
3339         Reverted changeset:
3340
3341         "Write API test to cover crash fix in r204135"
3342         https://bugs.webkit.org/show_bug.cgi?id=160587
3343         http://trac.webkit.org/changeset/204243
3344
3345 2016-08-23  Hunseop Jeong  <hs85.jeong@samsung.com>
3346
3347         [EFL] URTBF after r204743.
3348
3349         * Shared/WebBatteryStatus.cpp: Remove Arguments.h.
3350
3351 2016-08-22  Yusuke Suzuki  <utatane.tea@gmail.com>
3352
3353         Use Messages::XXX...::Reply explicitly
3354         https://bugs.webkit.org/show_bug.cgi?id=161075
3355
3356         Reviewed by Carlos Garcia Campos.
3357
3358         std::tuple's constructor is annotated as `explicit`.
3359         So we cannot use the implicit conversion here.
3360         This causes the build failure in EFL and GTK.
3361
3362         Looking through code, the other places use ::Reply explicitly.
3363         So in this patch, we follow that.
3364
3365         * WebProcess/Databases/IndexedDB/WebIDBConnectionToServer.cpp:
3366         (WebKit::WebIDBConnectionToServer::WebIDBConnectionToServer):
3367         * WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.cpp:
3368         (WebKit::InjectedBundlePageFullScreenClient::supportsFullScreen):
3369
3370 2016-08-22  Anders Carlsson  <andersca@apple.com>
3371
3372         Remove Arguments.h
3373         https://bugs.webkit.org/show_bug.cgi?id=161060
3374
3375         Reviewed by Tim Horton.
3376
3377         * Platform/IPC/Arguments.h: Removed.
3378         (IPC::Arguments::Arguments): Deleted.
3379         (IPC::Arguments::encode): Deleted.
3380         (IPC::Arguments::decode): Deleted.
3381         * Platform/IPC/Connection.h:
3382         * Platform/IPC/HandleMessage.h:
3383         * Shared/AssistedNodeInformation.cpp:
3384         * Shared/Cocoa/DataDetectionResult.mm:
3385         * Shared/EditorState.cpp:
3386         * Shared/WebContextMenuItemData.cpp:
3387         * Shared/WebMouseEvent.cpp:
3388         * Shared/WebPlatformTouchPoint.cpp:
3389         * Shared/WebPopupItem.cpp:
3390         * Shared/WebTouchEvent.cpp:
3391         * Shared/WebWheelEvent.cpp:
3392         * Shared/ios/InteractionInformationAtPosition.mm:
3393         * Shared/ios/WebPlatformTouchPointIOS.cpp:
3394         * Shared/ios/WebTouchEventIOS.cpp:
3395         * Shared/mac/WebGestureEvent.cpp:
3396         * WebKit2.xcodeproj/project.pbxproj:
3397         * WebProcess/InjectedBundle/InjectedBundle.cpp:
3398         * WebProcess/WebPage/WebPage.cpp:
3399
3400 2016-08-22  Anders Carlsson  <andersca@apple.com>
3401
3402         Move tuple coding to ArgumentCoders.h
3403         https://bugs.webkit.org/show_bug.cgi?id=161059
3404
3405         Reviewed by Tim Horton.
3406
3407         * Platform/IPC/ArgumentCoders.h:
3408         (IPC::TupleCoder::encode):
3409         (IPC::TupleCoder::decode):
3410         * Platform/IPC/Arguments.h:
3411         (IPC::TupleCoder::encode): Deleted.
3412         (IPC::TupleCoder::decode): Deleted.
3413         * Scripts/webkit/messages.py:
3414         (forward_declarations_and_headers):
3415
3416 2016-08-22  Anders Carlsson  <andersca@apple.com>
3417
3418         Simplify the generated message structs
3419         https://bugs.webkit.org/show_bug.cgi?id=161057
3420
3421         Reviewed by Geoffrey Garen.
3422
3423         Use a class template to transform the Reply and Argument tuple types for encoding/decoding
3424         instead of generating them for each message.
3425
3426         * Platform/IPC/HandleMessage.h:
3427         (IPC::handleMessage):
3428         (IPC::handleMessageDelayed):
3429         * Scripts/webkit/messages.py:
3430         (reply_type):
3431         (message_to_struct_declaration):
3432         (decode_type): Deleted.
3433
3434 2016-08-19  Anders Carlsson  <andersca@apple.com>
3435
3436         Remove MessageRecorder
3437         https://bugs.webkit.org/show_bug.cgi?id=161022
3438
3439         Reviewed by Tim Horton.
3440
3441         * Platform/IPC/ArgumentCoders.cpp:
3442         (IPC::ArgumentCoder<uuid_t>::encode): Deleted.
3443         (IPC::ArgumentCoder<uuid_t>::decode): Deleted.
3444         * Platform/IPC/ArgumentCoders.h:
3445         * Platform/IPC/Connection.cpp:
3446         (IPC::Connection::sendMessage):
3447         (IPC::Connection::sendSyncMessage):
3448         (IPC::Connection::sendSyncMessageFromSecondaryThread):
3449         (IPC::Connection::dispatchSyncMessage): Deleted.
3450         (IPC::Connection::dispatchMessage): Deleted.
3451         * Platform/IPC/Connection.h:
3452         * Platform/IPC/Encoder.cpp:
3453         (IPC::Encoder::encodeHeader): Deleted.
3454         * Platform/IPC/MessageRecorder.cpp: Removed.
3455         (IPC::MessageRecorder::isEnabled): Deleted.
3456         (IPC::MessageRecorder::recordOutgoingMessage): Deleted.
3457         (IPC::MessageRecorder::recordIncomingMessage): Deleted.
3458         (IPC::MessageRecorder::MessageProcessingToken::MessageProcessingToken): Deleted.
3459         (IPC::MessageRecorder::MessageProcessingToken::~MessageProcessingToken): Deleted.
3460         * Platform/IPC/MessageRecorder.h: Removed.
3461         (IPC::MessageRecorder::MessageRecorder): Deleted.
3462         * Platform/IPC/MessageRecorderProbes.d: Removed.
3463         * WebKit2.xcodeproj/project.pbxproj:
3464
3465 2016-08-22  Alex Christensen  <achristensen@webkit.org>
3466
3467         Fix Mac CMake build after r204717.
3468
3469         * PlatformMac.cmake:
3470
3471 2016-08-22  Simon Fraser  <simon.fraser@apple.com>
3472
3473         <select> menu on iPad causes shifting of hit-testing areas
3474         https://bugs.webkit.org/show_bug.cgi?id=150079
3475
3476         Reviewed by Tim Horton.
3477
3478         -isAssistingNode (aka the poorly named isEditable) is input into WebPageProxy::computeCustomFixedPositionRect(),
3479         so when it changes we have to update visible rects. We were doing this on focus, but failing
3480         to do it on blur.
3481
3482         Added the ability to test by:
3483         1. Making it possible to initiate an animated scroll in the UI process
3484         2. Adding callbacks for starting and ending interaction with a form control. Sadly
3485         the "ending interaction" for <select> popovers on iPad isn't late enough, since we
3486         have no way currently to know when the dimming view behind the popover animates out,
3487         so for now the test keeps trying to tap a button.
3488
3489         Test: fast/forms/ios/ipad/unfocus-inside-fixed-hittest.html
3490
3491         * UIProcess/API/Cocoa/WKWebView.mm:
3492         (-[WKWebView _zoomToPoint:atScale:animated:]):
3493         (-[WKWebView _scrollToRect:origin:minimumScrollDistance:]):
3494         (-[WKWebView _scrollByContentOffset:]):
3495         (-[WKWebView _zoomToFocusRect:selectionRect:fontSize:minimumScale:maximumScale:allowScaling:forceScroll:]):
3496         (-[WKWebView didStartFormControlInteraction]):
3497         (-[WKWebView didEndFormControlInteraction]):
3498         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
3499         * UIProcess/ios/WKContentView.mm:
3500         (-[WKContentView didUpdateVisibleRect:unobscuredRect:unobscuredRectInScrollViewCoordinates:obscuredInset:scale:minimumScale:inStableState:isChangingObscuredInsetsInteractively:enclosedInScrollableAncestorView:]):
3501         * UIProcess/ios/WKContentViewInteraction.mm:
3502         (-[WKContentView setIsEditable:]):
3503         (-[WKContentView _startAssistingNode:userIsInteracting:blurPreviousNode:userObject:]):
3504         (-[WKContentView _stopAssistingNode]):
3505
3506 2016-08-22  Daniel Bates  <dabates@apple.com>
3507
3508         [iOS] <a ping> and <area ping> tests time out
3509         https://bugs.webkit.org/show_bug.cgi?id=156857
3510
3511         Reviewed by Simon Fraser.
3512
3513         Support single tapping on an HTML area element in WebKit2 just as we do in Legacy WebKit.
3514
3515         WebKit2 commits to clicking a "clickable" DOM node on a single tap only if it has a
3516         renderer. An HTML area element represents a hyperlink in an image map and does not have
3517         a renderer.
3518
3519         * WebProcess/WebPage/ios/WebPageIOS.mm:
3520         (WebKit::WebPage::sendTapHighlightForNodeIfNecessary): Compute the tap highlight with respect
3521         to the renderer for the image map associated with the tapped HTML area element (if it has one).
3522         (WebKit::WebPage::commitPotentialTap): Allow committing a potential tap on an HTML area element.
3523
3524 2016-08-22  Darin Adler  <darin@apple.com>
3525
3526         Move Objective-C DOM bindings from WebCore to legacy WebKit
3527         https://bugs.webkit.org/show_bug.cgi?id=160654
3528
3529         Reviewed by Alex Christensen.
3530
3531         * WebProcess/WebCoreSupport/WebEditorClient.h: Updated to use RefPtr.
3532         * WebProcess/WebCoreSupport/ios/WebEditorClientIOS.mm:
3533         (WebKit::WebEditorClient::documentFragmentFromDelegate): Ditto.
3534
3535         * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm: Removed unneeded includes
3536         of Objective-C DOM headers that are now part of legacy WebKit, not WebCore.
3537         But this file doesn't need to depend on those headers at all.
3538
3539 2016-08-22  Chris Dumez  <cdumez@apple.com>
3540
3541         [iOS] Wait a few seconds before release network activity assertion after a load
3542         https://bugs.webkit.org/show_bug.cgi?id=160975
3543         <rdar://problem/27910964>
3544
3545         Reviewed by Darin Adler.
3546
3547         Some apps do several loads one after the other in a non-visible view.
3548         This causes us to release the background assertion every time a load
3549         completes and then take one again less than a second after. Every
3550         time we release the assertion, we send a PrepareToSuspend IPC to the
3551         WebContent process, which does all the clean up to get ready to
3552         suspend, only to get a CancelPrepareReadyToSuspend later on because
3553         the next load has started. To work around this problem, we now wait
3554         a few seconds before releasing the background activity after a load.
3555
3556         * UIProcess/Cocoa/NavigationState.h:
3557         * UIProcess/Cocoa/NavigationState.mm:
3558         (WebKit::NavigationState::NavigationState):
3559         (WebKit::NavigationState::releaseNetworkActivityToken):
3560         (WebKit::NavigationState::didChangeIsLoading):
3561
3562 2016-08-22  Youenn Fablet  <youenn@apple.com>
3563
3564         [Fetch API] Activate fetch api runtime flag by default
3565         https://bugs.webkit.org/show_bug.cgi?id=160452
3566
3567         Reviewed by Alex Christensen.
3568
3569         * Shared/WebPreferencesDefinitions.h:
3570
3571 2016-08-22  Gyuyoung Kim  <gyuyoung.kim@navercorp.com>
3572
3573         [SOUP] Change MessageDecoder with Decoder
3574         https://bugs.webkit.org/show_bug.cgi?id=161040
3575
3576         Reviewed by Darin Adler.
3577
3578         Clean up MessageDecoder in files of Soup.
3579
3580         * Scripts/webkit/MessageReceiverSuperclass-expected.cpp:
3581         (WebKit::WebPage::didReceiveMessage):
3582         * UIProcess/soup/WebSoupRequestManagerProxy.h:
3583         * WebProcess/soup/WebSoupRequestManager.h:
3584
3585 2016-08-21  Alex Christensen  <achristensen@webkit.org>
3586
3587         Use Document& instead of Document* when getting cookies
3588         https://bugs.webkit.org/show_bug.cgi?id=161011
3589
3590         Reviewed by Darin Adler.
3591
3592         * WebProcess/Automation/WebAutomationSessionProxy.cpp:
3593         (WebKit::WebAutomationSessionProxy::getCookiesForFrame):
3594         (WebKit::WebAutomationSessionProxy::deleteCookie):
3595         * WebProcess/Plugins/PluginView.cpp:
3596         (WebKit::PluginView::cookiesForURL):
3597         (WebKit::PluginView::setCookiesForURL):
3598         (WebKit::PluginView::getAuthenticationInfo):
3599
3600 2016-08-20  Gyuyoung Kim  <gyuyoung.kim@navercorp.com>
3601
3602         Unreviewed EFL build fix since r204668
3603
3604         r204668 changed MessageDecoder with Decoder though, MessageDecoder remained
3605         in EFL specific files.
3606
3607         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
3608         * UIProcess/WebVibrationProxy.h:
3609         * WebProcess/Battery/WebBatteryManager.h:
3610         * WebProcess/WebPage/AcceleratedDrawingArea.cpp:
3611         (WebKit::AcceleratedDrawingArea::didReceiveCoordinatedLayerTreeHostMessage):
3612         * WebProcess/WebPage/AcceleratedDrawingArea.h:
3613         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
3614         * WebProcess/WebPage/LayerTreeHost.h:
3615
3616 2016-08-20  Dan Bernstein  <mitz@apple.com>
3617
3618         [Mac] Web Content service with a restricted entitlement may load arbitrary dylibs
3619         https://bugs.webkit.org/show_bug.cgi?id=156668
3620         <rdar://problem/25429784>
3621
3622         Reviewed by Sam Weinig.
3623
3624         * Configurations/WebContentService.xcconfig: Enable library validation when the Web Content
3625           service is given the XPC domain extension entitlement.
3626
3627 2016-08-20  Javier Fernandez  <jfernandez@igalia.com>
3628
3629         [GTK] Unreviewed GTK build fix since r204665 and 204668
3630         https://bugs.webkit.org/show_bug.cgi?id=161020
3631
3632         * CMakeLists.txt:
3633         * Platform/IPC/MessageRecorder.cpp:
3634         (IPC::MessageRecorder::recordOutgoingMessage):
3635         * Platform/IPC/unix/ConnectionUnix.cpp:
3636         (IPC::Connection::processMessage):
3637         (IPC::Connection::sendOutgoingMessage):
3638         * Platform/unix/SharedMemoryUnix.cpp:
3639         (WebKit::SharedMemory::Handle::encode):
3640         (WebKit::SharedMemory::Handle::decode):
3641         * PlatformGTK.cmake:
3642         * Scripts/webkit/LegacyMessageReceiver-expected.cpp:
3643         (Messages::WebPage::GetPluginProcessConnection::DelayedReply::DelayedReply):
3644         (Messages::WebPage::TestMultipleAttributes::DelayedReply::DelayedReply):
3645         (WebKit::WebPage::didReceiveWebPageMessage):
3646         (WebKit::WebPage::didReceiveSyncWebPageMessage):
3647         * Scripts/webkit/LegacyMessages-expected.h:
3648         * Scripts/webkit/MessageReceiver-expected.cpp:
3649         (Messages::WebPage::GetPluginProcessConnection::DelayedReply::DelayedReply):
3650         (Messages::WebPage::TestMultipleAttributes::DelayedReply::DelayedReply):
3651         (WebKit::WebPage::didReceiveMessage):
3652         (WebKit::WebPage::didReceiveSyncMessage):
3653         * Scripts/webkit/Messages-expected.h:
3654         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
3655         (IPC::ArgumentCoder<WebCore::FilterOperations>::encode):
3656         (IPC::ArgumentCoder<WebCore::FilterOperations>::decode):
3657         (IPC::ArgumentCoder<TransformOperations>::encode):
3658         (IPC::ArgumentCoder<TransformOperations>::decode):
3659         (IPC::encodeTimingFunction):
3660         (IPC::decodeTimingFunction):
3661         (IPC::ArgumentCoder<TextureMapperAnimation>::encode):
3662         (IPC::ArgumentCoder<TextureMapperAnimation>::decode):
3663         (IPC::ArgumentCoder<TextureMapperAnimations>::encode):
3664         (IPC::ArgumentCoder<TextureMapperAnimations>::decode):
3665         (IPC::ArgumentCoder<WebCore::GraphicsSurfaceToken>::encode):
3666         (IPC::ArgumentCoder<WebCore::GraphicsSurfaceToken>::decode):
3667         (IPC::ArgumentCoder<SurfaceUpdateInfo>::encode):
3668         (IPC::ArgumentCoder<SurfaceUpdateInfo>::decode):
3669         (IPC::ArgumentCoder<CoordinatedGraphicsLayerState>::encode):
3670         (IPC::ArgumentCoder<CoordinatedGraphicsLayerState>::decode):
3671         (IPC::ArgumentCoder<TileUpdateInfo>::encode):
3672         (IPC::ArgumentCoder<TileUpdateInfo>::decode):
3673         (IPC::ArgumentCoder<TileCreationInfo>::encode):
3674         (IPC::ArgumentCoder<TileCreationInfo>::decode):
3675         (IPC::encodeCoordinatedSurface):
3676         (IPC::decodeCoordinatedSurface):
3677         (IPC::ArgumentCoder<CoordinatedGraphicsState>::encode):
3678         (IPC::ArgumentCoder<CoordinatedGraphicsState>::decode):
3679         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
3680         * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
3681         (WebKit::WebCoordinatedSurface::Handle::encode):
3682         (WebKit::WebCoordinatedSurface::Handle::decode):
3683         * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
3684         * Shared/WebBatteryStatus.cpp:
3685         (WebKit::WebBatteryStatus::Data::encode):
3686         (WebKit::WebBatteryStatus::Data::decode):
3687         * Shared/WebBatteryStatus.h:
3688         * Shared/gtk/ArgumentCodersGtk.cpp:
3689         (IPC::encodeImage):
3690         (IPC::decodeImage):
3691         (IPC::encodeDataObject):
3692         (IPC::decodeDataObject):
3693         (IPC::ArgumentCoder<DragData>::encode):
3694         (IPC::ArgumentCoder<DragData>::decode):
3695         (IPC::encodeGKeyFile):
3696         (IPC::decodeGKeyFile):
3697         (IPC::encode):
3698         (IPC::decode):
3699         * Shared/gtk/ArgumentCodersGtk.h:
3700         * Shared/soup/WebCoreArgumentCodersSoup.cpp:
3701         (IPC::ArgumentCoder<ResourceRequest>::encodePlatformData):
3702         (IPC::ArgumentCoder<ResourceRequest>::decodePlatformData):
3703         (IPC::ArgumentCoder<CertificateInfo>::encode):
3704         (IPC::ArgumentCoder<CertificateInfo>::decode):
3705         (IPC::ArgumentCoder<ResourceError>::encodePlatformData):
3706         (IPC::ArgumentCoder<ResourceError>::decodePlatformData):
3707         (IPC::ArgumentCoder<ProtectionSpace>::encodePlatformData):
3708         (IPC::ArgumentCoder<ProtectionSpace>::decodePlatformData):
3709         (IPC::ArgumentCoder<Credential>::encodePlatformData):
3710         (IPC::ArgumentCoder<Credential>::decodePlatformData):
3711         * UIProcess/LegacySessionStateCodingNone.cpp:
3712         (WebKit::encodeLegacySessionState):
3713         (WebKit::decodeLegacySessionState):
3714         * UIProcess/WebBatteryManagerProxy.h:
3715
3716 2016-08-20  Yusuke Suzuki  <utatane.tea@gmail.com>
3717
3718         Unreviewed, build fix attempt after r204665 and r204668.
3719
3720         * PlatformGTK.cmake:
3721
3722 2016-08-19  Ryosuke Niwa  <rniwa@webkit.org>
3723
3724         Another build fix attempt after r204665 and r204668.
3725
3726         * CMakeLists.txt:
3727
3728 2016-08-19  Ryosuke Niwa  <rniwa@webkit.org>
3729
3730         GTK+ / EFL build fix attempt after r204665.
3731
3732         * CMakeLists.txt:
3733
3734 2016-08-19  Anders Carlsson  <andersca@apple.com>
3735
3736         Merge MessageDecoder and ArgumentDecoder into Decoder
3737         https://bugs.webkit.org/show_bug.cgi?id=161019
3738
3739         Reviewed by Tim Horton.
3740
3741         * DatabaseProcess/DatabaseProcess.cpp:
3742         * DatabaseProcess/DatabaseProcess.h:
3743         * DatabaseProcess/DatabaseToWebProcessConnection.cpp:
3744         * DatabaseProcess/DatabaseToWebProcessConnection.h:
3745         * DatabaseProcess/IndexedDB/WebIDBConnectionToClient.h:
3746         * NetworkProcess/CustomProtocols/CustomProtocolManager.h:
3747         * NetworkProcess/Downloads/DownloadID.h:
3748         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
3749         * NetworkProcess/NetworkConnectionToWebProcess.h:
3750         * NetworkProcess/NetworkProcess.cpp:
3751         * NetworkProcess/NetworkProcess.h:
3752         * NetworkProcess/NetworkProcessCreationParameters.cpp:
3753         * NetworkProcess/NetworkProcessCreationParameters.h:
3754         * NetworkProcess/NetworkResourceLoadParameters.cpp:
3755         * NetworkProcess/NetworkResourceLoadParameters.h:
3756         * NetworkProcess/NetworkResourceLoader.h:
3757         * Platform/IPC/ArgumentCoder.h:
3758         * Platform/IPC/ArgumentCoders.cpp:
3759         * Platform/IPC/ArgumentCoders.h:
3760         * Platform/IPC/ArgumentDecoder.cpp:
3761         * Platform/IPC/ArgumentDecoder.h:
3762         * Platform/IPC/Arguments.h:
3763         * Platform/IPC/Attachment.cpp:
3764         * Platform/IPC/Attachment.h:
3765         * Platform/IPC/Connection.cpp:
3766         * Platform/IPC/Connection.h:
3767         * Platform/IPC/DataReference.cpp:
3768         * Platform/IPC/DataReference.h:
3769         * Platform/IPC/Decoder.cpp: Renamed from Source/WebKit2/Platform/IPC/ArgumentDecoder.cpp.
3770         * Platform/IPC/Decoder.h: Renamed from Source/WebKit2/Platform/IPC/ArgumentDecoder.h.
3771         * Platform/IPC/HandleMessage.h:
3772         * Platform/IPC/MessageDecoder.cpp: Removed.
3773         * Platform/IPC/MessageDecoder.h: Removed.
3774         * Platform/IPC/MessageReceiver.h:
3775         * Platform/IPC/MessageReceiverMap.cpp:
3776         * Platform/IPC/MessageReceiverMap.h:
3777         * Platform/IPC/MessageRecorder.cpp:
3778         * Platform/IPC/MessageRecorder.h:
3779         * Platform/IPC/StringReference.cpp:
3780         * Platform/IPC/StringReference.h:
3781         * Platform/IPC/mac/ConnectionMac.mm:
3782         * Platform/IPC/mac/MachPort.h:
3783         * Platform/SharedMemory.h:
3784         * Platform/mac/SharedMemoryMac.cpp:
3785         * PluginProcess/PluginControllerProxy.h:
3786         * PluginProcess/PluginCreationParameters.cpp:
3787         * PluginProcess/PluginCreationParameters.h:
3788         * PluginProcess/PluginProcess.cpp:
3789         * PluginProcess/PluginProcess.h:
3790         * PluginProcess/WebProcessConnection.cpp:
3791         * PluginProcess/WebProcessConnection.h:
3792         * Scripts/webkit/messages.py:
3793         * Shared/API/APIData.cpp:
3794         * Shared/API/APIData.h:
3795         * Shared/API/APIError.cpp:
3796         * Shared/API/APIError.h:
3797         * Shared/API/APIFrameHandle.cpp:
3798         * Shared/API/APIFrameHandle.h:
3799         * Shared/API/APIGeometry.cpp:
3800         * Shared/API/APIGeometry.h:
3801         * Shared/API/APINumber.h:
3802         * Shared/API/APIPageGroupHandle.cpp:
3803         * Shared/API/APIPageGroupHandle.h:
3804         * Shared/API/APIPageHandle.cpp:
3805         * Shared/API/APIPageHandle.h:
3806         * Shared/API/APIURL.h:
3807         * Shared/API/APIURLRequest.cpp:
3808         * Shared/API/APIURLRequest.h:
3809         * Shared/API/APIURLResponse.cpp:
3810         * Shared/API/APIURLResponse.h:
3811         * Shared/API/Cocoa/RemoteObjectInvocation.h:
3812         * Shared/API/Cocoa/RemoteObjectInvocation.mm:
3813         * Shared/API/Cocoa/RemoteObjectRegistry.h:
3814         * Shared/AssistedNodeInformation.cpp:
3815         * Shared/AssistedNodeInformation.h:
3816         * Shared/Authentication/AuthenticationManager.h:
3817         * Shared/ChildProcess.h:
3818         * Shared/Cocoa/DataDetectionResult.h:
3819         * Shared/Cocoa/DataDetectionResult.mm:
3820         * Shared/Cocoa/LoadParametersCocoa.mm:
3821         * Shared/Cocoa/WebCoreArgumentCodersCocoa.mm:
3822         * Shared/ContextMenuContextData.cpp:
3823         * Shared/ContextMenuContextData.h:
3824         * Shared/Databases/DatabaseProcessCreationParameters.cpp:
3825         * Shared/Databases/DatabaseProcessCreationParameters.h:
3826         * Shared/Databases/IndexedDB/WebIDBResult.cpp:
3827         * Shared/Databases/IndexedDB/WebIDBResult.h:
3828         * Shared/EditorState.cpp:
3829         * Shared/EditorState.h:
3830         * Shared/FontInfo.cpp:
3831         * Shared/FontInfo.h:
3832         * Shared/Gamepad/GamepadData.cpp:
3833         * Shared/Gamepad/GamepadData.h:
3834         * Shared/LayerTreeContext.cpp:
3835         * Shared/LayerTreeContext.h:
3836         * Shared/LoadParameters.cpp:
3837         * Shared/LoadParameters.h:
3838         * Shared/NavigationActionData.cpp:
3839         * Shared/NavigationActionData.h:
3840         * Shared/PlatformPopupMenuData.cpp:
3841         * Shared/PlatformPopupMenuData.h:
3842         * Shared/Plugins/NPIdentifierData.cpp:
3843         * Shared/Plugins/NPIdentifierData.h:
3844         * Shared/Plugins/NPObjectMessageReceiver.h:
3845         * Shared/Plugins/NPRemoteObjectMap.cpp:
3846         * Shared/Plugins/NPRemoteObjectMap.h:
3847         * Shared/Plugins/NPVariantData.cpp:
3848         * Shared/Plugins/NPVariantData.h:
3849         * Shared/Plugins/PluginProcessCreationParameters.cpp:
3850         * Shared/Plugins/PluginProcessCreationParameters.h:
3851         * Shared/PrintInfo.cpp:
3852         * Shared/PrintInfo.h:
3853         * Shared/SandboxExtension.h:
3854         * Shared/Scrolling/RemoteScrollingCoordinatorTransaction.cpp:
3855         * Shared/Scrolling/RemoteScrollingCoordinatorTransaction.h:
3856         * Shared/SessionState.cpp:
3857         * Shared/SessionState.h:
3858         * Shared/ShareableBitmap.cpp:
3859         * Shared/ShareableBitmap.h:
3860         * Shared/ShareableResource.cpp:
3861         * Shared/ShareableResource.h:
3862         * Shared/StatisticsData.cpp:
3863         * Shared/StatisticsData.h:
3864         * Shared/UpdateInfo.cpp:
3865         * Shared/UpdateInfo.h:
3866         * Shared/UserData.cpp:
3867         * Shared/UserData.h:
3868         * Shared/VisibleContentRectUpdateInfo.cpp:
3869         * Shared/VisibleContentRectUpdateInfo.h:
3870         * Shared/WebBackForwardListItem.h:
3871         * Shared/WebCompiledContentExtensionData.cpp:
3872         * Shared/WebCompiledContentExtensionData.h:
3873         * Shared/WebConnection.h:
3874         * Shared/WebContextMenuItemData.cpp:
3875         * Shared/WebContextMenuItemData.h:
3876         * Shared/WebCoreArgumentCoders.cpp:
3877         * Shared/WebCoreArgumentCoders.h:
3878         * Shared/WebEvent.cpp:
3879         * Shared/WebEvent.h:
3880         * Shared/WebGeolocationPosition.cpp:
3881         * Shared/WebGeolocationPosition.h:
3882         * Shared/WebHitTestResultData.cpp:
3883         * Shared/WebHitTestResultData.h:
3884         * Shared/WebKeyboardEvent.cpp:
3885         * Shared/WebMouseEvent.cpp:
3886         * Shared/WebNavigationDataStore.h:
3887         * Shared/WebPageCreationParameters.cpp:
3888         * Shared/WebPageCreationParameters.h:
3889         * Shared/WebPageGroupData.cpp:
3890         * Shared/WebPageGroupData.h:
3891         * Shared/WebPlatformTouchPoint.cpp:
3892         * Shared/WebPopupItem.cpp:
3893         * Shared/WebPopupItem.h:
3894         * Shared/WebPreferencesStore.cpp:
3895         * Shared/WebPreferencesStore.h:
3896         * Shared/WebProcessCreationParameters.cpp:
3897         * Shared/WebProcessCreationParameters.h:
3898         * Shared/WebTouchEvent.cpp:
3899         * Shared/WebUserContentControllerDataTypes.cpp:
3900         * Shared/WebUserContentControllerDataTypes.h:
3901         * Shared/WebWheelEvent.cpp:
3902         * Shared/WebsiteData/WebsiteData.cpp:
3903         * Shared/WebsiteData/WebsiteData.h:
3904         * Shared/cf/ArgumentCodersCF.cpp:
3905         * Shared/cf/ArgumentCodersCF.h:
3906         * Shared/ios/InteractionInformationAtPosition.h:
3907         * Shared/ios/InteractionInformationAtPosition.mm:
3908         * Shared/ios/QuickLookDocumentData.cpp:
3909         * Shared/ios/QuickLookDocumentData.h:
3910         * Shared/ios/WebPlatformTouchPointIOS.cpp:
3911         * Shared/ios/WebTouchEventIOS.cpp:
3912         * Shared/mac/ArgumentCodersMac.h:
3913         * Shared/mac/ArgumentCodersMac.mm:
3914         * Shared/mac/AttributedString.h:
3915         * Shared/mac/AttributedString.mm:
3916         * Shared/mac/ColorSpaceData.h:
3917         * Shared/mac/ColorSpaceData.mm:
3918         * Shared/mac/ObjCObjectGraph.h:
3919         * Shared/mac/ObjCObjectGraph.mm:
3920         * Shared/mac/RemoteLayerBackingStore.h:
3921         * Shared/mac/RemoteLayerBackingStore.mm:
3922         * Shared/mac/RemoteLayerTreeTransaction.h:
3923         * Shared/mac/RemoteLayerTreeTransaction.mm:
3924         * Shared/mac/SandboxExtensionMac.mm:
3925         * Shared/mac/SecItemRequestData.cpp:
3926         * Shared/mac/SecItemRequestData.h:
3927         * Shared/mac/SecItemResponseData.cpp:
3928         * Shared/mac/SecItemResponseData.h:
3929         * Shared/mac/SecItemShim.h:
3930         * Shared/mac/WebCoreArgumentCodersMac.mm:
3931         * Shared/mac/WebGestureEvent.cpp:
3932         * Shared/mac/WebGestureEvent.h:
3933         * Shared/mac/WebHitTestResultData.mm:
3934         * UIProcess/API/APIHitTestResult.h:
3935         * UIProcess/ApplePay/WebPaymentCoordinatorProxy.h:
3936         * UIProcess/Automation/WebAutomationSession.h:
3937         * UIProcess/ChildProcessProxy.cpp:
3938         * UIProcess/ChildProcessProxy.h:
3939         * UIProcess/Cocoa/WebPlaybackSessionManagerProxy.h:
3940         * UIProcess/Cocoa/WebVideoFullscreenManagerProxy.h:
3941         * UIProcess/Databases/DatabaseProcessProxy.cpp:
3942         * UIProcess/Databases/DatabaseProcessProxy.h:
3943         * UIProcess/Downloads/DownloadProxy.h:
3944         * UIProcess/DrawingAreaProxy.h:
3945         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
3946         * UIProcess/Network/NetworkProcessProxy.cpp:
3947         * UIProcess/Network/NetworkProcessProxy.h:
3948         * UIProcess/Plugins/PluginProcessProxy.h:
3949         * UIProcess/Scrolling/RemoteScrollingCoordinatorProxy.cpp:
3950         * UIProcess/Storage/StorageManager.h:
3951         * UIProcess/UserContent/WebUserContentControllerProxy.h:
3952         * UIProcess/VisitedLinkStore.h:
3953         * UIProcess/WebCookieManagerProxy.h:
3954         * UIProcess/WebFrameProxy.h:
3955         * UIProcess/WebFullScreenManagerProxy.h:
3956         * UIProcess/WebGeolocationManagerProxy.h:
3957         * UIProcess/WebIconDatabase.h:
3958         * UIProcess/WebInspectorProxy.h:
3959         * UIProcess/WebPageProxy.h:
3960         * UIProcess/WebPasteboardProxy.h:
3961         * UIProcess/WebProcessPool.cpp:
3962         * UIProcess/WebProcessPool.h:
3963         * UIProcess/WebProcessProxy.cpp:
3964         * UIProcess/WebProcessProxy.h:
3965         * UIProcess/WebResourceLoadStatisticsStore.h:
3966         * UIProcess/ios/SmartMagnificationController.h:
3967         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h:
3968         * UIProcess/mac/SecItemShimProxy.h: