015aaf7467686d0fbe9ebc86227d19e0facf41bd
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2013-11-26  Nick Diego Yamane  <nick.yamane@openbossa.org>
2
3         [MediaStream API] HTMLMediaElement should be able to use MediaStream as source
4         https://bugs.webkit.org/show_bug.cgi?id=121943
5
6         Reviewed by Eric Carlson.
7
8         Add mediastream module and platform to cmake include directories.
9
10         * CMakeLists.txt:
11
12 2013-11-26  Dan Bernstein  <mitz@apple.com>
13
14         Some WebKit2 headers are not self-contained
15         https://bugs.webkit.org/show_bug.cgi?id=124884
16
17         Reviewed by Anders Carlsson.
18
19         * Shared/API/Cocoa/WKRemoteObjectInterface.h: Added import.
20         * Shared/API/Cocoa/WKRemoteObjectRegistry.h: Ditto.
21         * Shared/API/c/WKContextMenuItemTypes.h: Added include.
22         * Shared/API/c/WKFindOptions.h: Ditto.
23         * Shared/API/c/WKMutableArray.h: Ditto.
24         * Shared/API/c/WKPageLoadTypes.h: Ditto.
25         * Shared/API/c/WKPageVisibilityTypes.h: Ditto.
26
27         * Shared/API/c/WKPluginInformation.cpp:
28         (WKPluginInformationBundleIdentifierKey): Made this API function always be defined. When
29         the Netscape plug-in API is not enabled, it returns 0.
30         (WKPluginInformationBundleVersionKey): Ditto.
31         (WKPluginInformationBundleShortVersionKey): Ditto.
32         (WKPluginInformationPathKey): Ditto.
33         (WKPluginInformationDisplayNameKey): Ditto.
34         (WKPluginInformationDefaultLoadPolicyKey): Ditto.
35         (WKPluginInformationUpdatePastLastBlockedVersionIsKnownAvailableKey): Ditto.
36         (WKPluginInformationHasSandboxProfileKey): Ditto.
37         (WKPluginInformationFrameURLKey): Ditto.
38         (WKPluginInformationMIMETypeKey): Ditto.
39         (WKPluginInformationPageURLKey): Ditto.
40         (WKPluginInformationPluginspageAttributeURLKey): Ditto.
41         (WKPluginInformationPluginURLKey): Ditto.
42         (WKPlugInInformationReplacementObscuredKey): Ditto.
43
44         * Shared/API/c/WKString.h: Added include.
45         * UIProcess/API/C/WKCredentialTypes.h: Ditto.
46         * UIProcess/API/C/WKPageContextMenuClient.h: Ditto.
47         * UIProcess/API/C/WKPageLoaderClient.h: Added includes.
48         * UIProcess/API/C/WKPagePolicyClient.h: Ditto.
49         * UIProcess/API/C/WKPageUIClient.h: Ditto.
50
51         * UIProcess/API/C/WKPluginSiteDataManager.cpp:
52         (WKPluginSiteDataManagerGetTypeID): Fixed the !ENABLE(NETSCAPE_PLUGIN_API) build.
53
54         * UIProcess/API/C/mac/WKContextPrivateMac.h: Removed use of ENABLE() from this private
55         header.
56         * UIProcess/API/C/mac/WKContextPrivateMac.mm:
57         (WKContextCopyPlugInInfoForBundleIdentifier): Made this API function always be defined.
58         When the Netscape plug-in API is not enabled, it returns 0.
59         (WKContextGetInfoForInstalledPlugIns): Made this API function always be defined.
60
61         * UIProcess/API/C/mac/WKInspectorPrivateMac.h: Added imports.
62         * UIProcess/API/C/mac/WKPagePrivateMac.h: Added include.
63         * UIProcess/API/Cocoa/WKBackForwardListItem.h: Added import.
64         * UIProcess/API/Cocoa/WKNavigationData.h: Ditto.
65         * UIProcess/API/cpp/WKRetainPtr.h: Replaced use of WARN_UNUSED_RETURN in this private header
66         with an equivalent macro defined in the header.
67
68         * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h: Added include.
69         * WebProcess/InjectedBundle/API/c/WKBundleInspector.cpp:
70         (WKBundleInspectorGetTypeID): Made this API function always be defined. When the Inspector
71         is not enabled, it returns the Null type.
72         (WKBundleInspectorShow): Made this API function always be defined.
73         (WKBundleInspectorClose): Ditto.
74         (WKBundleInspectorEvaluateScriptForTest): Ditto.
75         (WKBundleInspectorSetPageProfilingEnabled): Ditto.
76         * WebProcess/InjectedBundle/API/c/WKBundleInspector.h: Removed use of ENABLE() from this
77         private header.
78
79         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h: Added includes.
80         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: Added include.
81
82         * WebProcess/Plugins/Netscape/mac/WKNPAPIPlugInContainer.mm:
83         (-[WKNPAPIPlugInContainer openPlugInPreferencePane]): Fixed the !ENABLE(NETSCAPE_PLUGIN_API)
84         build.
85
86         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
87         (WebKit::WebFrameLoaderClient::createJavaAppletWidget): Ditto.
88
89         * WebProcess/WebPage/mac/WebInspectorMac.mm: Fixed the !ENABLE(INSPECTOR) build.
90
91 2013-11-25  Dan Bernstein  <mitz@apple.com>
92
93         [Cocoa] Use class extensions for IPI
94         https://bugs.webkit.org/show_bug.cgi?id=124870
95
96         Reviewed by Sam Weinig.
97
98         * UIProcess/API/mac/WKBrowsingContextController.mm: Reordered methods so that the Private
99         cateogry isn’t stuck between the API methods and the internal methods.
100         (-[WKBrowsingContextController setPaginationMode:]):
101         (-[WKBrowsingContextController paginationMode]):
102         (-[WKBrowsingContextController setPaginationBehavesLikeColumns:]):
103         (-[WKBrowsingContextController paginationBehavesLikeColumns]):
104         (-[WKBrowsingContextController setPageLength:]):
105         (-[WKBrowsingContextController pageLength]):
106         (-[WKBrowsingContextController setGapBetweenPages:]):
107         (-[WKBrowsingContextController gapBetweenPages]):
108         (-[WKBrowsingContextController pageCount]):
109         (-[WKBrowsingContextController handle]):
110         * UIProcess/API/mac/WKBrowsingContextControllerInternal.h: Changed Internal category into
111         a class extension.
112
113         * UIProcess/API/mac/WKConnection.mm:
114         * UIProcess/API/mac/WKConnectionInternal.h: Changed Internal category into a class
115         extension.
116
117         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.mm:
118         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInInternal.h: Ditto.
119
120 2013-11-25  Dan Bernstein  <mitz@apple.com>
121
122         Fixed the iOS build.
123
124         * UIProcess/API/mac/WKBrowsingContextController.mm:
125         (-[WKBrowsingContextController loadDelegateInternal]):
126         (-[WKBrowsingContextController setLoadDelegateInternal:]):
127
128 2013-11-25  Dan Bernstein  <mitz@apple.com>
129
130         [Cocoa] Remove some indirection that was only necessary for supporting the legacy Objective-C runtime
131         https://bugs.webkit.org/show_bug.cgi?id=123065
132
133         Reviewed by Sam Weinig.
134
135         * UIProcess/API/mac/WKBrowsingContextController.h: Removed _data ivar and
136         WKBrowsingContextControllerData class declaration.
137         * UIProcess/API/mac/WKBrowsingContextController.mm:
138         (-[WKBrowsingContextController dealloc]): Removed
139         WKBrowsingContextControllerData class and moved ivars directly into
140         WKBrowsingContextController, declaring them in the @implementation. Removed ivar and
141         accessors for the delegate properties, letting the compiler synthesize them.
142         (-[WKBrowsingContextController _pageRef]): Removed indirection via _data.
143         (-[WKBrowsingContextController loadRequest:userData:]): Removed indirection via -_pageRef.
144         (-[WKBrowsingContextController loadFileURL:restrictToFilesWithin:userData:]): Ditto.
145         (-[WKBrowsingContextController loadHTMLString:baseURL:userData:]): Ditto.
146         (-[WKBrowsingContextController loadData:MIMEType:textEncodingName:baseURL:userData:]): Ditto.
147         (-[WKBrowsingContextController stopLoading]): Ditto.
148         (-[WKBrowsingContextController reload]): Ditto.
149         (-[WKBrowsingContextController reloadFromOrigin]): Ditto.
150         (-[WKBrowsingContextController goForward]): Ditto.
151         (-[WKBrowsingContextController canGoForward]): Ditto.
152         (-[WKBrowsingContextController goBack]): Ditto.
153         (-[WKBrowsingContextController canGoBack]): Ditto.
154         (-[WKBrowsingContextController goToBackForwardListItem:]): Ditto.
155         (-[WKBrowsingContextController backForwardList]): Ditto.
156         (-[WKBrowsingContextController activeURL]): Ditto.
157         (-[WKBrowsingContextController provisionalURL]): Ditto.
158         (-[WKBrowsingContextController committedURL]): Ditto.
159         (-[WKBrowsingContextController unreachableURL]): Removed idirection via _data.
160         (-[WKBrowsingContextController estimatedProgress]): Removed indirection via -_pageRef.
161         (-[WKBrowsingContextController title]): Ditto.
162         (-[WKBrowsingContextController textZoom]): Ditto.
163         (-[WKBrowsingContextController setTextZoom:]): Ditto.
164         (-[WKBrowsingContextController pageZoom]): Ditto.
165         (-[WKBrowsingContextController setPageZoom:]): Ditto.
166         (-[WKBrowsingContextController setPaginationMode:]): Ditto.
167         (-[WKBrowsingContextController paginationMode]): Ditto.
168         (-[WKBrowsingContextController setPaginationBehavesLikeColumns:]): Ditto.
169         (-[WKBrowsingContextController paginationBehavesLikeColumns]): Ditto.
170         (-[WKBrowsingContextController setPageLength:]): Ditto.
171         (-[WKBrowsingContextController pageLength]): Ditto.
172         (-[WKBrowsingContextController setGapBetweenPages:]): Ditto.
173         (-[WKBrowsingContextController gapBetweenPages]): Ditto.
174         (-[WKBrowsingContextController pageCount]): Ditto.
175         (-[WKBrowsingContextController handle]): Ditto.
176         (-[WKBrowsingContextController _initWithPageRef:]): Removed indirection via _data.
177
178         * UIProcess/API/mac/WKBrowsingContextGroup.h: Removed _data ivar and
179         WKBrowsingContextGroupData class declaration.
180         * UIProcess/API/mac/WKBrowsingContextGroup.mm: Removed WKBrowsingContextGroupData class and
181         moved _pageGroupRef ivar directly into WKBrowsingContextGroup, declaring it in the
182         @implementation.
183         (-[WKBrowsingContextGroup initWithIdentifier:]): Removed indirection via _data.
184         (-[WKBrowsingContextGroup allowsJavaScript]): Removed indirection via -_pageGroupRef.
185         (-[WKBrowsingContextGroup setAllowsJavaScript:]): Ditto.
186         (-[WKBrowsingContextGroup allowsJavaScriptMarkup]): Ditto.
187         (-[WKBrowsingContextGroup setAllowsJavaScriptMarkup:]): Ditto.
188         (-[WKBrowsingContextGroup allowsPlugIns]): Ditto.
189         (-[WKBrowsingContextGroup setAllowsPlugIns:]): Ditto.
190         (-[WKBrowsingContextGroup addUserStyleSheet:baseURL:whitelistedURLPatterns:blacklistedURLPatterns:mainFrameOnly:]): Ditto.
191         (-[WKBrowsingContextGroup removeAllUserStyleSheets]): Ditto.
192         (-[WKBrowsingContextGroup addUserScript:baseURL:whitelistedURLPatterns:blacklistedURLPatterns:injectionTime:mainFrameOnly:]): Ditto.
193         (-[WKBrowsingContextGroup removeAllUserScripts]): Ditto.
194         (-[WKBrowsingContextGroup _pageGroupRef]): Removed indirection via _data.
195
196         * UIProcess/API/mac/WKConnection.h: Removed _data ivar and WKConnectionData class declaration.
197         * UIProcess/API/mac/WKConnection.mm: Removed WKConnectionData class and moved _connectionRef
198         ivar directly into WKConnection, declaring it in the @implementation. Removed ivar and
199         accessors for the delegate property, letting the compiler synthesize them.
200         (-[WKConnection dealloc]): Removed indirection via _data.
201         (-[WKConnection sendMessageWithName:body:]): Ditto.
202         (-[WKConnection remoteObjectRegistry]): Ditto.
203         (didReceiveMessage): Ditto.
204         (-[WKConnection _initWithConnectionRef:]): Ditto.
205
206         * UIProcess/API/mac/WKProcessGroup.h: Replaced forward declaration of WKConnection with an
207         import. Removed _data ivar and WKProcessGroupData class declaration.
208         * UIProcess/API/mac/WKProcessGroup.mm: Removed WKProcessGroupData class and moved
209         _contextRef ivar directly into WKProcessGroup, declaring it in the @implementation. Removed
210         ivar and accessors for the delegate property, letting the compiler synthesize them.
211         (-[WKProcessGroup initWithInjectedBundleURL:]): Removed indirection via _data.
212         (-[WKProcessGroup dealloc]): Ditto.
213         (-[WKProcessGroup _contextRef]): Ditto.
214         (-[WKProcessGroup _geolocationProvider]): Ditto.
215
216 2013-11-25  Commit Queue  <commit-queue@webkit.org>
217
218         Unreviewed, rolling out r159740.
219         http://trac.webkit.org/changeset/159740
220         https://bugs.webkit.org/show_bug.cgi?id=124859
221
222         Crashing xmlhttprequest/access-control-repeated-failed-
223         preflight-crash.html on Mavericks and Mountain Lion -
224         ASSERT(m_pageGroup) WebPage.cpp:352 (Requested by dino_ on
225         #webkit).
226
227         * Scripts/webkit2/messages.py:
228         (struct_or_class):
229         * Shared/UserMessageCoders.h:
230         (WebKit::UserMessageEncoder::baseEncode):
231         * Shared/WebPageCreationParameters.cpp:
232         (WebKit::WebPageCreationParameters::encode):
233         (WebKit::WebPageCreationParameters::decode):
234         * Shared/WebPageCreationParameters.h:
235         * Shared/mac/ObjCObjectGraphCoders.h:
236         * Shared/mac/ObjCObjectGraphCoders.mm:
237         (WebKit::ObjCObjectGraphEncoder::baseEncode):
238         (WebKit::WebContextObjCObjectGraphEncoderImpl::WebContextObjCObjectGraphEncoderImpl):
239         (WebKit::WebContextObjCObjectGraphEncoderImpl::encode):
240         (WebKit::InjectedBundleObjCObjectGraphEncoderImpl::encode):
241         (WebKit::WebContextObjCObjectGraphEncoder::WebContextObjCObjectGraphEncoder):
242         (WebKit::WebContextObjCObjectGraphEncoder::encode):
243         * UIProcess/WebConnectionToWebProcess.cpp:
244         (WebKit::WebConnectionToWebProcess::encodeMessageBody):
245         * UIProcess/WebContext.cpp:
246         (WebKit::WebContext::createNewWebProcess):
247         (WebKit::WebContext::createWebPage):
248         (WebKit::WebContext::postMessageToInjectedBundle):
249         (WebKit::WebContext::didReceiveSyncMessage):
250         * UIProcess/WebContextUserMessageCoders.h:
251         (WebKit::WebContextUserMessageEncoder::WebContextUserMessageEncoder):
252         (WebKit::WebContextUserMessageEncoder::encode):
253         (WebKit::WebContextUserMessageDecoder::decode):
254         * UIProcess/WebPageGroup.cpp:
255         * UIProcess/WebPageGroup.h:
256         (WebKit::WebPageGroup::sendToAllProcessesInGroup):
257         * UIProcess/WebPageProxy.cpp:
258         (WebKit::WebPageProxy::create):
259         (WebKit::WebPageProxy::WebPageProxy):
260         (WebKit::WebPageProxy::initializeWebPage):
261         (WebKit::WebPageProxy::loadURL):
262         (WebKit::WebPageProxy::loadURLRequest):
263         (WebKit::WebPageProxy::loadFile):
264         (WebKit::WebPageProxy::loadData):
265         (WebKit::WebPageProxy::loadHTMLString):
266         (WebKit::WebPageProxy::loadAlternateHTMLString):
267         (WebKit::WebPageProxy::loadPlainTextString):
268         (WebKit::WebPageProxy::loadWebArchiveData):
269         (WebKit::WebPageProxy::postMessageToInjectedBundle):
270         (WebKit::WebPageProxy::initializeCreationParameters):
271         * UIProcess/WebPageProxy.h:
272         * UIProcess/WebProcessProxy.cpp:
273         (WebKit::WebProcessProxy::disconnect):
274         (WebKit::WebProcessProxy::createWebPage):
275         * UIProcess/WebProcessProxy.h:
276         * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
277         (WebKit::InjectedBundleUserMessageEncoder::encode):
278         (WebKit::InjectedBundleUserMessageDecoder::decode):
279         * WebProcess/WebPage/WebPage.cpp:
280         (WebKit::WebPage::WebPage):
281         * WebProcess/WebProcess.cpp:
282         (WebKit::WebProcess::webPageGroup):
283         * WebProcess/WebProcess.h:
284         * WebProcess/WebProcess.messages.in:
285
286 2013-11-25  Dan Bernstein  <mitz@apple.com>
287
288         [Cocoa] Put most of the Cocoa API behind WK_API_ENABLED guards
289         https://bugs.webkit.org/show_bug.cgi?id=124850
290
291         Reviewed by Brady Eidson.
292
293         Guarded all Cocoa API headers and implementations with WK_API_ENABLED. Left the WKView class
294         unguarded, but limited its API.
295
296         * Shared/API/Cocoa/WKFoundation.h: Replaced OBJ_VISIBLE with an explicit attribute.
297         * Shared/API/Cocoa/WKRemoteObjectCoder.mm: Moved #if WK_API_ENABLED before the rest of the
298         imports.
299         * Shared/API/Cocoa/WKRemoteObjectInterface.mm: Ditto.
300         * Shared/API/Cocoa/WKRemoteObjectRegistry.mm: Ditto.
301         * Shared/API/Cocoa/WKRemoteObjectRegistryPrivate.h: Ditto.
302         * UIProcess/API/mac/WKBrowsingContextController.h: Guarded all declarations with
303         WK_API_ENABLED, changed to use WK_API_CLASS instead of WK_EXPORT.
304         * UIProcess/API/mac/WKBrowsingContextController.mm: Guarded everything with WK_API_ENABLED.
305         (-[WKBrowsingContextController dealloc]):
306         (-[WKBrowsingContextController setPolicyDelegate:]):
307         (-[WKBrowsingContextController backForwardList]):
308         (didChangeBackForwardList):
309         (setUpPageLoaderClient):
310         (setUpPagePolicyClient):
311         (-[WKBrowsingContextController _initWithPageRef:]):
312         * UIProcess/API/mac/WKBrowsingContextControllerInternal.h: Ditto.
313         * UIProcess/API/mac/WKBrowsingContextControllerPrivate.h: Ditto.
314         * UIProcess/API/mac/WKBrowsingContextGroup.h: Guarded all declarations with WK_API_ENABLED,
315         chanegd to use WK_API_CLASS instead of WK_EXPORT.
316         * UIProcess/API/mac/WKBrowsingContextGroup.mm: Removed redundant import, guarded everything
317         with WK_API_ENABLED.
318         * UIProcess/API/mac/WKBrowsingContextGroupPrivate.h: Guarded with WK_API_ENABLED.
319         * UIProcess/API/mac/WKBrowsingContextPolicyDelegate.h: Added necessary import.
320         * UIProcess/API/mac/WKConnection.h: Guarded all declarations with WK_API_ENABLED, chanegd to
321         use WK_API_CLASS instead of WK_EXPORT.
322         * UIProcess/API/mac/WKConnection.mm: Guarded everything with WK_API_ENABLED.
323         (-[WKConnection remoteObjectRegistry]):
324         (didReceiveMessage):
325         * UIProcess/API/mac/WKConnectionInternal.h: Guarded the delcarations with WK_API_ENABLED.
326         * UIProcess/API/mac/WKProcessGroup.h: Ditto. Also changed to use WK_API_CLASS instead of
327         WK_EXPORT.
328         * UIProcess/API/mac/WKProcessGroup.mm: Guarded everything with WK_API_ENABLED.
329         (-[WKProcessGroup initWithInjectedBundleURL:]):
330         * UIProcess/API/mac/WKProcessGroupPrivate.h: Guarded the declarations with WK_API_ENABLED.
331         * UIProcess/API/mac/WKTypeRefWrapper.h: Moved #if WK_API_ENABLED before the rest of the
332         imports, changed to use WK_API_CLASS instead of WK_EXPORT.
333         * UIProcess/API/mac/WKTypeRefWrapper.mm: Removed empty line after #import "config.h".
334         * UIProcess/API/mac/WKView.h: Added #if WK_API_ENABLED around API that uses other Cocoa API
335         types.
336         * UIProcess/API/mac/WKView.mm: Added #if WK_API_ENABLED around implementations of methods
337         that are only declared when the API is enabled.
338         * UIProcess/API/mac/WKViewInternal.h: Reordered imports.
339         * UIProcess/mac/WKFullScreenWindowController.mm: Added comment to #endif.
340         * UIProcess/mac/WebContextMac.mm:
341         (WebKit::WebContext::platformInitializeWebProcess): Guarded use of
342         WKBrowsingContextController with WK_API_ENABLED.
343         (WebKit::WebContext::platformInitializeNetworkProcess): Ditto.
344         * UIProcess/mac/WebContextMenuProxyMac.mm: Removed newline between imports.
345         * WebProcess/InjectedBundle/API/mac/WKDOMDocument.h: Moved #if WK_API_ENABLED before the
346         rest of the imports, and changed to use WK_API_CLASS instead of WK_EXPORT.
347         * WebProcess/InjectedBundle/API/mac/WKDOMDocument.mm: Removed newline after #import
348         "config.h".
349         * WebProcess/InjectedBundle/API/mac/WKDOMElement.h: Moved #if WK_API_ENABLED before the
350         rest of the imports, and changed to use WK_API_CLASS instead of WK_EXPORT.
351         * WebProcess/InjectedBundle/API/mac/WKDOMElement.mm: Removed newline after #import
352         "config.h".
353         * WebProcess/InjectedBundle/API/mac/WKDOMInternals.mm: Ditto.
354         * WebProcess/InjectedBundle/API/mac/WKDOMNode.h: Moved #if WK_API_ENABLED before the
355         rest of the imports, and changed to use WK_API_CLASS instead of WK_EXPORT.
356         * WebProcess/InjectedBundle/API/mac/WKDOMNode.mm: Removed redundant import.
357         * WebProcess/InjectedBundle/API/mac/WKDOMRange.h:  Moved #if WK_API_ENABLED before the
358         rest of the imports, and changed to use WK_API_CLASS instead of WK_EXPORT.
359         * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm: Removed newline and redundant import.
360         * WebProcess/InjectedBundle/API/mac/WKDOMText.h: Moved #if WK_API_ENABLED before the
361         rest of the imports, and changed to use WK_API_CLASS instead of WK_EXPORT.
362         * WebProcess/InjectedBundle/API/mac/WKDOMTextIterator.h: Ditto.
363         * WebProcess/InjectedBundle/API/mac/WKDOMTextIterator.mm: Removed newline after
364         #import "config.h".
365         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.h: Moved #if WK_API_ENABLED before
366         the rest of the imports, and changed to use WK_API_CLASS instead of WK_EXPORT.
367         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.mm: Removed newline and redundant
368         imports.
369         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.h:  Moved #if
370         WK_API_ENABLED before the rest of the imports, and changed to use WK_API_CLASS instead of
371         WK_EXPORT.
372         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm: Removed
373         newline after #import "config.h".
374
375 2013-11-22  Sam Weinig  <sam@webkit.org>
376
377         WebPageGroup's should keep track of what processes they are being used by
378         https://bugs.webkit.org/show_bug.cgi?id=124556
379
380         Reviewed by Dan Bernstein.
381
382         * Scripts/webkit2/messages.py:
383         (struct_or_class):
384         Mark WebPageGroupData as a struct.
385
386         * Shared/UserMessageCoders.h:
387         * Shared/mac/ObjCObjectGraphCoders.h:
388         * Shared/mac/ObjCObjectGraphCoders.mm:
389         * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
390         * UIProcess/WebConnectionToWebProcess.cpp:
391         * UIProcess/WebContext.cpp:
392         * UIProcess/WebContextUserMessageCoders.h:
393         * UIProcess/WebPageProxy.cpp:
394         * UIProcess/WebPageProxy.h:
395         Pass the WebProcess/WebProcessProxy to both encode and decode.
396
397         * Shared/WebPageCreationParameters.h:
398         Pass the page group by ID when creating a page, as it will have had its own
399         creation message sent already.
400
401         * UIProcess/WebPageGroup.cpp:
402         * UIProcess/WebPageGroup.h:
403         Keep track of processes.
404
405         * UIProcess/WebProcessProxy.cpp:
406         * UIProcess/WebProcessProxy.h:
407         Keep track of the page groups used by the process.
408
409         * WebProcess/WebPage/WebPage.cpp:
410         Get the already create page group on creation.
411
412         * WebProcess/WebProcess.cpp:
413         * WebProcess/WebProcess.h:
414         * WebProcess/WebProcess.messages.in:
415         Explicitly create page groups in the WebProcess.
416
417 2013-11-24  Brady Eidson  <beidson@apple.com>
418
419         DatabaseProcess: Add "UniqueIDBDatabase" that multiple WebProcesses can connect to
420         https://bugs.webkit.org/show_bug.cgi?id=124819
421
422         Reviewed by Dan Bernstein.
423
424         UniqueIDBDatabase instances are per-DatabaseProcess, so it manages the set of them.
425         * DatabaseProcess/DatabaseProcess.cpp:
426         (WebKit::DatabaseProcess::getOrCreateUniqueIDBDatabase):
427         (WebKit::DatabaseProcess::removeUniqueIDBDatabase):
428         * DatabaseProcess/DatabaseProcess.h:
429
430         * DatabaseProcess/DatabaseToWebProcessConnection.h:
431
432         Start forwarding things along to the appropriate UniqueIDBDatabase.
433         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
434         (WebKit::DatabaseProcessIDBConnection::~DatabaseProcessIDBConnection):
435         (WebKit::DatabaseProcessIDBConnection::disconnectedFromWebProcess):
436         (WebKit::DatabaseProcessIDBConnection::establishConnection):
437         (WebKit::DatabaseProcessIDBConnection::getOrEstablishIDBDatabaseMetadata):
438         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
439
440         A class that represents a single concrete IDB database that multiple WebProcesses can connect to.
441         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
442         (WebKit::UniqueIDBDatabase::UniqueIDBDatabase):
443         (WebKit::UniqueIDBDatabase::~UniqueIDBDatabase):
444         (WebKit::UniqueIDBDatabase::registerConnection):
445         (WebKit::UniqueIDBDatabase::unregisterConnection):
446         (WebKit::UniqueIDBDatabase::getIDBDatabaseMetadata):
447         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:
448         (WebKit::UniqueIDBDatabase::create):
449         (WebKit::UniqueIDBDatabase::identifier):
450
451         A class to help uniquely identify an IDBDatabase that can be expanded as needed.
452         Importantly, it knows how to be used as a key in a HashMap.
453         * DatabaseProcess/IndexedDB/UniqueIDBDatabaseIdentifier.cpp: Added.
454         (WebKit::UniqueIDBDatabaseIdentifier::UniqueIDBDatabaseIdentifier):
455         (WebKit::UniqueIDBDatabaseIdentifier::isHashTableDeletedValue):
456         (WebKit::UniqueIDBDatabaseIdentifier::hash):
457         (WebKit::UniqueIDBDatabaseIdentifier::isNull):
458         (WebKit::operator==):
459         * DatabaseProcess/IndexedDB/UniqueIDBDatabaseIdentifier.h: Added.
460         (WebKit::UniqueIDBDatabaseIdentifier::databaseName):
461         (WebKit::UniqueIDBDatabaseIdentifier::openingOrigin):
462         (WebKit::UniqueIDBDatabaseIdentifier::mainFrameOrigin):
463         (WebKit::UniqueIDBDatabaseIdentifierHash::hash):
464         (WebKit::UniqueIDBDatabaseIdentifierHash::equal):
465         (WebKit::UniqueIDBDatabaseIdentifierHashTraits::isEmptyValue):
466
467         * Shared/SecurityOriginData.cpp:
468         (WebKit::operator==):
469         * Shared/SecurityOriginData.h:
470
471         * UIProcess/WebContext.cpp:
472
473         * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp:
474         (WebKit::WebIDBFactoryBackend::open):
475         (WebKit::WebIDBFactoryBackend::removeIDBDatabaseBackend):
476
477         * WebKit2.xcodeproj/project.pbxproj:
478
479 2013-11-24  Danilo Cesar Lemes de Paula  <danilo.cesar@collabora.co.uk>, Arunprasad Rajkumar  <arurajku@cisco.com>
480
481         [WK2][GTK] Adding SpatialNavigation setting to webkit2
482         https://bugs.webkit.org/show_bug.cgi?id=114298
483
484         Reviewed by Anders Carlsson.
485
486         Adding SpatialNavigation support to WebPreferencesStore allows us
487         to toggle that feature on WebKitSettings.
488
489         * Shared/WebPreferencesStore.h:
490         * UIProcess/API/C/WKPreferences.cpp:
491         (WKPreferencesSetSpatialNavigationEnabled):
492         (WKPreferencesGetSpatialNavigationEnabled):
493         * UIProcess/API/C/WKPreferences.h:
494         * UIProcess/API/gtk/WebKitSettings.cpp:
495         (webKitSettingsSetProperty):
496         (webKitSettingsGetProperty):
497         (webkit_settings_class_init):
498         (webkit_settings_set_enable_spatial_navigation):
499         (webkit_settings_get_enable_spatial_navigation):
500         * UIProcess/API/gtk/WebKitSettings.h:
501         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
502         * UIProcess/API/gtk/tests/TestWebKitSettings.cpp:
503         (testWebKitSettings):
504         * WebProcess/WebPage/WebPage.cpp:
505         (WebKit::WebPage::updatePreferences):
506
507 2013-11-22  Brady Eidson  <beidson@apple.com>
508
509         Add DatabaseProcessCreationParameters, starting with the database path.
510         https://bugs.webkit.org/show_bug.cgi?id=124804
511
512         Reviewed by Dean Jackson and Benjamin Poulain.
513
514         * DatabaseProcess/DatabaseProcess.cpp:
515         (WebKit::DatabaseProcess::initializeDatabaseProcess):
516         * DatabaseProcess/DatabaseProcess.h:
517         (WebKit::DatabaseProcess::indexedDatabaseDirectory):
518         * DatabaseProcess/DatabaseProcess.messages.in:
519
520         * Shared/Databases/DatabaseProcessCreationParameters.cpp: Added.
521         (WebKit::DatabaseProcessCreationParameters::DatabaseProcessCreationParameters):
522         (WebKit::DatabaseProcessCreationParameters::encode):
523         (WebKit::DatabaseProcessCreationParameters::decode):
524         * Shared/Databases/DatabaseProcessCreationParameters.h: Added.
525
526         * UIProcess/WebContext.cpp:
527         (WebKit::WebContext::ensureDatabaseProcess):
528
529         * WebKit2.xcodeproj/project.pbxproj:
530         * Scripts/webkit2/messages.py:
531         (struct_or_class):
532
533 2013-11-22  Ryuan Choi  <ryuan.choi@samsung.com>
534
535         [EFL] Build break after r159724
536         https://bugs.webkit.org/show_bug.cgi?id=124806
537
538         Reviewed by Tim Horton.
539
540         * Platform/CoreIPC/Connection.h: Include atomic header.
541         * UIProcess/CoordinatedGraphics/WebView.cpp: Rename didChangeContentsSize to didChangeContentSize.
542         (WebKit::WebView::didChangeContentSize):
543         * UIProcess/CoordinatedGraphics/WebView.h: Ditto.
544         * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Adjust TARGET_OS_IPHONE macro.
545
546 2013-11-22  Tim Horton  <timothy_horton@apple.com>
547
548         Attempt build fixes for 32-bit after 159724.
549
550         There's probably a better fix, but this will work for now.
551
552         * UIProcess/API/mac/WKView.h:
553
554 2013-11-22  Enrica Casucci  <enrica@apple.com>
555
556         Upstream iOS WebKit2 to OpenSource (part 3).
557         https://bugs.webkit.org/show_bug.cgi?id=124803
558
559         Reviewed by Anders Carlsson and Tim Horton.
560
561
562 2013-11-22  Jer Noble  <jer.noble@apple.com>
563
564         [Mac] Can't drag full-screen video to another monitor
565         https://bugs.webkit.org/show_bug.cgi?id=124798
566
567         Reviewed by Geoffrey Garen.
568
569         Make full screen windows resizable by default. This allows the window to be resized when
570         moved between monitors with different resolutions.
571
572         * UIProcess/API/mac/WKView.mm:
573         (-[WKView createFullScreenWindow]):
574
575 2013-11-22  Benjamin Poulain  <bpoulain@apple.com>
576
577         [WK2] Another build fix for NetworkProcess on iOS
578         https://bugs.webkit.org/show_bug.cgi?id=124797
579
580         Reviewed by Alexey Proskuryakov.
581
582         * NetworkProcess/NetworkResourceLoader.h:
583
584 2013-11-22  Benjamin Poulain  <bpoulain@apple.com>
585
586         [WK2] Fix the build of the NetworkProcess on iOS
587         https://bugs.webkit.org/show_bug.cgi?id=124794
588
589         Reviewed by Alexey Proskuryakov.
590
591         * NetworkProcess/AsynchronousNetworkLoaderClient.cpp:
592         (WebKit::AsynchronousNetworkLoaderClient::didReceiveBuffer):
593         * NetworkProcess/NetworkResourceLoader.h:
594         * NetworkProcess/SynchronousNetworkLoaderClient.cpp:
595         (WebKit::SynchronousNetworkLoaderClient::willSendRequest):
596
597 2013-11-22  Anders Carlsson  <andersca@apple.com>
598
599         Move the remaining page loader clients out into separate files
600         https://bugs.webkit.org/show_bug.cgi?id=124792
601
602         Reviewed by Dan Bernstein.
603
604         * UIProcess/API/C/WKPage.h:
605         * UIProcess/API/C/WKPageContextMenuClient.h: Added.
606         * UIProcess/API/C/WKPageFindClient.h: Added.
607         * UIProcess/API/C/WKPageFindMatchesClient.h: Added.
608         * UIProcess/API/C/WKPageFormClient.h: Added.
609         * UIProcess/API/C/WKPageLoaderClient.h:
610         * UIProcess/API/C/WKPagePolicyClient.h: Added.
611         * UIProcess/API/C/WKPageUIClient.h: Added.
612         * WebKit2.xcodeproj/project.pbxproj:
613
614 2013-11-22  Anders Carlsson  <andersca@apple.com>
615
616         Move WKPageLoaderClient out into a separate header
617         https://bugs.webkit.org/show_bug.cgi?id=124790
618
619         Reviewed by Dan Bernstein.
620
621         * UIProcess/API/C/WKPage.h:
622         * UIProcess/API/C/WKPageLoaderClient.h: Added.
623         * WebKit2.xcodeproj/project.pbxproj:
624
625 2013-11-22  Anders Carlsson  <andersca@apple.com>
626
627         Fix 32-bit build.
628
629         * UIProcess/API/mac/WKBrowsingContextController.mm:
630         (-[WKBrowsingContextController dealloc]):
631         (-[WKBrowsingContextController _initWithPageRef:]):
632
633 2013-11-22  Dan Bernstein  <mitz@apple.com>
634
635         Debug builds unconditionally dump remote layer tree transactions to stderr.
636
637         Reviewed by Sam Weinig.
638
639         * Platform/Logging.h: Declared RemoteLayerTree logging channel.
640         * Shared/mac/RemoteLayerTreeTransaction.h: Declared description().
641         * Shared/mac/RemoteLayerTreeTransaction.mm:
642         (WebKit::RemoteLayerTreeTransaction::dump): Changed to use description().
643         (WebKit::RemoteLayerTreeTransaction::description): Returns a CString with the description.
644         * UIProcess/mac/RemoteLayerTreeHost.mm:
645         (WebKit::RemoteLayerTreeHost::commit): Changed to use logging instead of calling dump().
646
647 2013-11-21  Anders Carlsson  <andersca@apple.com>
648
649         Send out the right KVO callbacks when the page title changes
650         https://bugs.webkit.org/show_bug.cgi?id=124753
651
652         Reviewed by Simon Fraser.
653
654         * UIProcess/API/mac/WKBrowsingContextController.mm:
655         (PageLoadStateObserver::PageLoadStateObserver):
656         New class that sends the right KVO notifications when the load state changes.
657
658         (-[WKBrowsingContextController dealloc]):
659         Remove the observer.
660
661         (-[WKBrowsingContextController _initWithPageRef:]):
662         Allocate the observer and add it.
663
664         * UIProcess/PageLoadState.cpp:
665         (WebKit::PageLoadState::~PageLoadState):
666         Assert that we don't have any observers left.
667
668         (WebKit::PageLoadState::addObserver):
669         Add the observer to the list.
670
671         (WebKit::PageLoadState::removeObserver):
672         Remove the observer from the list.
673
674         (WebKit::PageLoadState::reset):
675         Call title change callbacks.
676
677         (WebKit::PageLoadState::setTitle):
678         Ditto.
679
680         (WebKit::PageLoadState::callObserverCallback):
681         Helper function to dispatch callbacks to observers.
682
683         * UIProcess/PageLoadState.h:
684         Add new members.
685
686 2013-11-21  Sergio Correia  <sergio.correia@openbossa.org>
687
688         [EFL][WK2] Fix build after r159656
689         https://bugs.webkit.org/show_bug.cgi?id=124755
690
691         Reviewed by Gyuyoung Kim.
692
693         Page title was moved to page load state.
694
695         * UIProcess/InspectorServer/efl/WebInspectorServerEfl.cpp:
696         (WebKit::WebInspectorServer::buildPageList):
697
698 2013-11-21  Mark Rowe  <mrowe@apple.com>
699
700         <https://webkit.org/b/124702> Stop overriding VALID_ARCHS.
701
702         All modern versions of Xcode set it appropriately for our needs.
703
704         Reviewed by Alexey Proskuryakov.
705
706         * Configurations/Base.xcconfig:
707
708 2013-11-21  Gwang Yoon Hwang  <ryumiel@company100.net>
709
710         [GTK] Unreviewed buildfix after r159614 and r159656.
711
712         * UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp:
713         (WebKit::WebInspectorServer::buildPageList): Use the page load state to get page title.
714
715 2013-11-21  Mark Rowe  <mrowe@apple.com>
716
717         <https://webkit.org/b/124701> Fix an error in a few Xcode configuration setting files.
718
719         Reviewed by Alexey Proskuryakov.
720
721         * Configurations/Base.xcconfig:
722
723 2013-11-21  Mark Rowe  <mrowe@apple.com>
724
725         <https://webkit.org/b/124700> Fix some deprecation warnings.
726
727         Reviewed by Anders Carlsson.
728
729         * UIProcess/API/mac/WKView.mm:
730         (-[WKView namesOfPromisedFilesDroppedAtDestination:]): Move off a deprecated NSFileWrapper method.
731
732 2013-11-21  Anders Carlsson  <andersca@apple.com>
733
734         Didn't mean to commit this.
735
736         * UIProcess/PageLoadState.h:
737
738 2013-11-21  Anders Carlsson  <andersca@apple.com>
739
740         Move page title handling to the page load state
741         https://bugs.webkit.org/show_bug.cgi?id=124748
742
743         Reviewed by Dan Bernstein.
744
745         * UIProcess/API/C/WKPage.cpp:
746         (WKPageCopyTitle):
747         * UIProcess/PageLoadState.cpp:
748         (WebKit::PageLoadState::reset):
749         (WebKit::PageLoadState::didCommitLoad):
750         (WebKit::PageLoadState::title):
751         (WebKit::PageLoadState::setTitle):
752         * UIProcess/PageLoadState.h:
753         * UIProcess/WebPageProxy.cpp:
754         (WebKit::WebPageProxy::didReceiveTitleForFrame):
755         * UIProcess/WebPageProxy.h:
756
757 2013-11-21  Daniel Bates  <dabates@apple.com>
758
759         Remove unused functions from WebCore and WebKit2
760         https://bugs.webkit.org/show_bug.cgi?id=124739
761
762         Reviewed by Alexey Proskuryakov.
763
764         Remove unused functions autoreleased({WKURLRequestRef, WKURLResponseRef}).
765
766         * UIProcess/API/mac/WKBrowsingContextController.mm:
767
768 2013-11-21  Csaba Osztrogonác  <ossy@webkit.org>
769
770         Rename PlatformCertificateInfo to CertificateInfo
771         https://bugs.webkit.org/show_bug.cgi?id=124150
772
773         Reviewed by Darin Adler.
774
775         * GNUmakefile.list.am:
776         * NetworkProcess/AsynchronousNetworkLoaderClient.cpp:
777         (WebKit::AsynchronousNetworkLoaderClient::didReceiveResponse):
778         * NetworkProcess/NetworkProcess.h:
779         * NetworkProcess/NetworkProcess.messages.in:
780         * NetworkProcess/NetworkResourceLoader.cpp:
781         * NetworkProcess/mac/NetworkProcessMac.mm:
782         (WebKit::NetworkProcess::allowSpecificHTTPSCertificateForHost):
783         * NetworkProcess/soup/NetworkProcessSoup.cpp:
784         (WebKit::NetworkProcess::allowSpecificHTTPSCertificateForHost):
785         * PlatformEfl.cmake:
786         * PlatformGTK.cmake:
787         * Shared/API/c/mac/WKCertificateInfoMac.mm:
788         (WKCertificateInfoCreateWithCertficateChain):
789         (WKCertificateInfoGetCertificateChain):
790         * Shared/Authentication/AuthenticationManager.cpp:
791         (WebKit::AuthenticationManager::tryUseCertificateInfoForChallenge):
792         (WebKit::AuthenticationManager::useCredentialForChallenge):
793         * Shared/Authentication/AuthenticationManager.h:
794         * Shared/Authentication/AuthenticationManager.messages.in:
795         * Shared/Authentication/mac/AuthenticationManager.mac.mm:
796         (WebKit::AuthenticationManager::tryUseCertificateInfoForChallenge):
797         * Shared/UserMessageCoders.h:
798         (WebKit::UserMessageEncoder::baseEncode):
799         (WebKit::UserMessageDecoder::baseDecode):
800         * Shared/WebCertificateInfo.h:
801         (WebKit::WebCertificateInfo::create):
802         (WebKit::WebCertificateInfo::certificateInfo):
803         (WebKit::WebCertificateInfo::WebCertificateInfo):
804         * Shared/mac/CertificateInfo.h: Renamed from Source/WebKit2/Shared/mac/PlatformCertificateInfo.h.
805         (WebKit::CertificateInfo::certificateChain):
806         * Shared/mac/CertificateInfo.mm: Renamed from Source/WebKit2/Shared/mac/PlatformCertificateInfo.mm.
807         (WebKit::CertificateInfo::CertificateInfo):
808         (WebKit::CertificateInfo::encode):
809         (WebKit::CertificateInfo::decode):
810         (WebKit::CertificateInfo::dump):
811         * Shared/mac/WebCoreArgumentCodersMac.mm:
812         (CoreIPC::::encodePlatformData):
813         (CoreIPC::::decodePlatformData):
814         * Shared/soup/CertificateInfo.cpp: Renamed from Source/WebKit2/Shared/soup/PlatformCertificateInfo.cpp.
815         (WebKit::CertificateInfo::CertificateInfo):
816         (WebKit::CertificateInfo::~CertificateInfo):
817         (WebKit::CertificateInfo::encode):
818         (WebKit::CertificateInfo::decode):
819         * Shared/soup/CertificateInfo.h: Renamed from Source/WebKit2/Shared/soup/PlatformCertificateInfo.h.
820         (WebKit::CertificateInfo::certificate):
821         (WebKit::CertificateInfo::tlsErrors):
822         * Shared/soup/WebCoreArgumentCodersSoup.cpp:
823         (CoreIPC::::encodePlatformData):
824         (CoreIPC::::decodePlatformData):
825         * UIProcess/API/gtk/WebKitCertificateInfo.cpp:
826         (webkitCertificateInfoGetCertificateInfo):
827         * UIProcess/API/gtk/WebKitCertificateInfoPrivate.h:
828         * UIProcess/API/gtk/WebKitWebView.cpp:
829         (webkit_web_view_get_tls_info):
830         * UIProcess/Authentication/AuthenticationChallengeProxy.cpp:
831         (WebKit::AuthenticationChallengeProxy::useCredential):
832         * UIProcess/WebContext.cpp:
833         (WebKit::WebContext::allowSpecificHTTPSCertificateForHost):
834         * UIProcess/WebFrameProxy.cpp:
835         (WebKit::WebFrameProxy::didCommitLoad):
836         * UIProcess/WebFrameProxy.h:
837         * UIProcess/WebPageProxy.cpp:
838         (WebKit::WebPageProxy::didCommitLoadForFrame):
839         * UIProcess/WebPageProxy.h:
840         * UIProcess/WebPageProxy.messages.in:
841         * WebKit2.xcodeproj/project.pbxproj:
842         * WebProcess/Network/WebResourceLoader.cpp:
843         (WebKit::WebResourceLoader::didReceiveResponseWithCertificateInfo):
844         * WebProcess/Network/WebResourceLoader.h:
845         * WebProcess/Network/WebResourceLoader.messages.in:
846         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
847         (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
848         * WebProcess/WebProcess.h:
849         * WebProcess/WebProcess.messages.in:
850         * WebProcess/soup/WebProcessSoup.cpp:
851         (WebKit::WebProcess::allowSpecificHTTPSCertificateForHost):
852
853 2013-11-21  Sergio Correia  <sergio.correia@openbossa.org>
854
855         [EFL][GTK][WK2] Build fix after r159641
856         https://bugs.webkit.org/show_bug.cgi?id=124742
857
858         Reviewed by Csaba Osztrogonác.
859
860         Should fetch activeURL from page load state.
861
862         * UIProcess/API/gtk/WebKitWebView.cpp:
863         (webkitWebViewUpdateURI):
864         * UIProcess/InspectorServer/efl/WebInspectorServerEfl.cpp:
865         (WebKit::WebInspectorServer::buildPageList):
866         * UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp:
867         (WebKit::WebInspectorServer::buildPageList):
868
869 2013-11-21  Anders Carlsson  <andersca@apple.com>
870
871         Fetch all page loading related URLs from the page load state
872         https://bugs.webkit.org/show_bug.cgi?id=124732
873
874         Reviewed by Dan Bernstein.
875
876         * UIProcess/API/C/WKPage.cpp:
877         (WKPageCopyActiveURL):
878         (WKPageCopyProvisionalURL):
879         (WKPageCopyCommittedURL):
880         * UIProcess/API/mac/WKBrowsingContextController.mm:
881         (-[WKBrowsingContextController unreachableURL]):
882         * UIProcess/PageLoadState.h:
883         (WebKit::PageLoadState::provisionalURL):
884         (WebKit::PageLoadState::url):
885         (WebKit::PageLoadState::unreachableURL):
886         * UIProcess/WebPageProxy.cpp:
887         * UIProcess/WebPageProxy.h:
888
889 2013-11-20  Brady Eidson  <beidson@apple.com>
890
891         Hook up WebProcess-side of getOrEstablishIDBDatabaseMetadata
892         https://bugs.webkit.org/show_bug.cgi?id=124698
893
894         Reviewed by Anders Carlsson.
895
896         With this change the IDB API in WebKit2 using the DatabaseProcess finally does something observable:
897         window.indexedDB.open() sends an error to Javascript.
898
899         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
900         (WebKit::DatabaseProcessIDBConnection::getOrEstablishIDBDatabaseMetadata): Continue calling back to the
901           WebProcess with dummy data, but include the request ID for reference.
902         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
903         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in:
904
905         Add a new class that wraps a completion callback function and gives it a unique integer identifier.
906         It also allows for wrapping an abort callback function (in case a connection is lost, for example).
907         It is templated to flexibly handle any callback function signature.
908         * Shared/AsyncRequest.cpp: Added.
909         (WebKit::generateRequestID):
910         (WebKit::AsyncRequest::AsyncRequest):
911         (WebKit::AsyncRequest::~AsyncRequest):
912         (WebKit::AsyncRequest::setAbortHandler):
913         (WebKit::AsyncRequest::requestAborted):
914         (WebKit::AsyncRequest::clearAbortHandler):
915         * Shared/AsyncRequest.h: Added.
916         (WebKit::AsyncRequest::requestID):
917         (WebKit::AsyncRequest::requestCompleted):
918
919         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
920         (WebKit::WebIDBServerConnection::getOrEstablishIDBDatabaseMetadata): Wrap the completion handler in an
921           AsyncRequest and save off the request for later use.
922         (WebKit::WebIDBServerConnection::didGetOrEstablishIDBDatabaseMetadata): Send the results to the AsyncRequest.
923         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
924         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.messages.in:
925
926         * WebKit2.xcodeproj/project.pbxproj:
927
928 2013-11-20  Anders Carlsson  <andersca@apple.com>
929
930         Move activeURL getter to PageLoadState
931         https://bugs.webkit.org/show_bug.cgi?id=124690
932
933         Reviewed by Tim Horton.
934
935         * UIProcess/PageLoadState.cpp:
936         (WebKit::PageLoadState::activeURL):
937         * UIProcess/PageLoadState.h:
938         * UIProcess/WebPageProxy.cpp:
939         (WebKit::WebPageProxy::activeURL):
940
941 2013-11-20  Simon Fraser  <simon.fraser@apple.com>
942
943         Clean up WebKit2 initialization
944         https://bugs.webkit.org/show_bug.cgi?id=124696
945
946         Reviewed by Sam Weinig.
947         
948         Call InitializeWebKit2() everywhere we need to do one-time
949         initialization in WebKit2, rather than having a hotch-potch
950         of init code.
951
952         * Shared/APIObject.cpp:
953         (API::Object::Object):
954         * UIProcess/API/mac/WKView.mm:
955         (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
956         * UIProcess/Launcher/mac/ProcessLauncherMac.mm: Removed an unused #include.
957         * UIProcess/WebContext.cpp:
958         (WebKit::WebContext::create):
959
960 2013-11-21  Dan Bernstein  <mitz@apple.com>
961
962         Reverted r159603, as it appears to have caused Safari’s Web processes to crash on launch.
963
964         Requested by Sam Weinig.
965
966         * Scripts/webkit2/messages.py:
967         (struct_or_class):
968         * Shared/UserMessageCoders.h:
969         (WebKit::UserMessageEncoder::baseEncode):
970         * Shared/WebPageCreationParameters.cpp:
971         (WebKit::WebPageCreationParameters::encode):
972         (WebKit::WebPageCreationParameters::decode):
973         * Shared/WebPageCreationParameters.h:
974         * Shared/mac/ObjCObjectGraphCoders.h:
975         * Shared/mac/ObjCObjectGraphCoders.mm:
976         (WebKit::ObjCObjectGraphEncoder::baseEncode):
977         (WebKit::WebContextObjCObjectGraphEncoderImpl::WebContextObjCObjectGraphEncoderImpl):
978         (WebKit::WebContextObjCObjectGraphEncoderImpl::encode):
979         (WebKit::InjectedBundleObjCObjectGraphEncoderImpl::encode):
980         (WebKit::WebContextObjCObjectGraphEncoder::WebContextObjCObjectGraphEncoder):
981         (WebKit::WebContextObjCObjectGraphEncoder::encode):
982         * UIProcess/WebConnectionToWebProcess.cpp:
983         (WebKit::WebConnectionToWebProcess::encodeMessageBody):
984         * UIProcess/WebContext.cpp:
985         (WebKit::WebContext::createNewWebProcess):
986         (WebKit::WebContext::createWebPage):
987         (WebKit::WebContext::postMessageToInjectedBundle):
988         (WebKit::WebContext::didReceiveSyncMessage):
989         * UIProcess/WebContextUserMessageCoders.h:
990         (WebKit::WebContextUserMessageEncoder::WebContextUserMessageEncoder):
991         (WebKit::WebContextUserMessageEncoder::encode):
992         (WebKit::WebContextUserMessageDecoder::decode):
993         * UIProcess/WebPageGroup.cpp:
994         * UIProcess/WebPageGroup.h:
995         (WebKit::WebPageGroup::sendToAllProcessesInGroup):
996         * UIProcess/WebPageProxy.cpp:
997         (WebKit::WebPageProxy::create):
998         (WebKit::WebPageProxy::WebPageProxy):
999         (WebKit::WebPageProxy::initializeWebPage):
1000         (WebKit::WebPageProxy::loadURL):
1001         (WebKit::WebPageProxy::loadURLRequest):
1002         (WebKit::WebPageProxy::loadFile):
1003         (WebKit::WebPageProxy::loadData):
1004         (WebKit::WebPageProxy::loadHTMLString):
1005         (WebKit::WebPageProxy::loadAlternateHTMLString):
1006         (WebKit::WebPageProxy::loadPlainTextString):
1007         (WebKit::WebPageProxy::loadWebArchiveData):
1008         (WebKit::WebPageProxy::postMessageToInjectedBundle):
1009         (WebKit::WebPageProxy::initializeCreationParameters):
1010         * UIProcess/WebPageProxy.h:
1011         * UIProcess/WebProcessProxy.cpp:
1012         (WebKit::WebProcessProxy::disconnect):
1013         (WebKit::WebProcessProxy::createWebPage):
1014         * UIProcess/WebProcessProxy.h:
1015         * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
1016         (WebKit::InjectedBundleUserMessageEncoder::encode):
1017         (WebKit::InjectedBundleUserMessageDecoder::decode):
1018         * WebProcess/WebPage/WebPage.cpp:
1019         (WebKit::WebPage::WebPage):
1020         * WebProcess/WebProcess.cpp:
1021         (WebKit::WebProcess::webPageGroup):
1022         * WebProcess/WebProcess.h:
1023         * WebProcess/WebProcess.messages.in:
1024
1025 2013-11-20  Brady Eidson  <beidson@apple.com>
1026
1027         Add more infrastructure for ServerConnection communication between Web and Database processes
1028         https://bugs.webkit.org/show_bug.cgi?id=124693
1029
1030         Reviewed by Anders Carlsson.
1031
1032         * DatabaseProcess/DatabaseToWebProcessConnection.cpp:
1033         (WebKit::DatabaseToWebProcessConnection::establishIDBConnection):
1034         (WebKit::DatabaseToWebProcessConnection::removeDatabaseProcessIDBConnection): Added for WebProcess to be able
1035           to invalidate the DatabaseProcess side of a server connection.
1036         * DatabaseProcess/DatabaseToWebProcessConnection.h:
1037         * DatabaseProcess/DatabaseToWebProcessConnection.messages.in:
1038
1039         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
1040         (WebKit::DatabaseProcessIDBConnection::DatabaseProcessIDBConnection):
1041         (WebKit::DatabaseProcessIDBConnection::disconnectedFromWebProcess): Added for future cleanup.
1042         (WebKit::DatabaseProcessIDBConnection::establishConnection):
1043         (WebKit::DatabaseProcessIDBConnection::getOrEstablishIDBDatabaseMetadata): Callback to the WebProcess, even if
1044           it is just dummy data for now.
1045         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
1046         (WebKit::DatabaseProcessIDBConnection::create):
1047
1048         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
1049         (WebKit::WebIDBServerConnection::create): Register the new object with the WebToDatabaseProcessConnection.
1050         (WebKit::WebIDBServerConnection::~WebIDBServerConnection): Remove from the WebToDatabaseProcessConnection.
1051         (WebKit::WebIDBServerConnection::getOrEstablishIDBDatabaseMetadata):
1052         (WebKit::WebIDBServerConnection::didGetOrEstablishIDBDatabaseMetadata): Callback from the DatabaseProcess,
1053           a no-op for now.
1054         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
1055         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.messages.in: Copied from Source/WebKit2/DatabaseProcess/DatabaseToWebProcessConnection.messages.in.
1056
1057         * WebProcess/Databases/WebToDatabaseProcessConnection.cpp:
1058         (WebKit::WebToDatabaseProcessConnection::didReceiveMessage):
1059         (WebKit::WebToDatabaseProcessConnection::didClose):
1060         (WebKit::WebToDatabaseProcessConnection::registerWebIDBServerConnection): Hold a collection of all
1061           server connections for messaging.
1062         (WebKit::WebToDatabaseProcessConnection::removeWebIDBServerConnection): Remove a connection from the collection,
1063           and also message the DatabaseProcess that it’s gone away.
1064         * WebProcess/Databases/WebToDatabaseProcessConnection.h:
1065
1066         Project files, etc etc:
1067         * DerivedSources.make:
1068         * Scripts/webkit2/messages.py:
1069         (struct_or_class):
1070         * WebKit2.xcodeproj/project.pbxproj:
1071
1072 2013-11-18  Sam Weinig  <sam@webkit.org>
1073
1074         WebPageGroup's should keep track of what processes they are being used by
1075         https://bugs.webkit.org/show_bug.cgi?id=124556
1076
1077         Reviewed by Dan Bernstein.
1078
1079         * Scripts/webkit2/messages.py:
1080         (struct_or_class):
1081         Mark WebPageGroupData as a struct.
1082
1083         * Shared/UserMessageCoders.h:
1084         * Shared/mac/ObjCObjectGraphCoders.h:
1085         * Shared/mac/ObjCObjectGraphCoders.mm:
1086         * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
1087         * UIProcess/WebConnectionToWebProcess.cpp:
1088         * UIProcess/WebContext.cpp:
1089         * UIProcess/WebContextUserMessageCoders.h:
1090         * UIProcess/WebPageProxy.cpp:
1091         * UIProcess/WebPageProxy.h:
1092         Pass the WebProcess/WebProcessProxy to both encode and decode.
1093
1094         * Shared/WebPageCreationParameters.h:
1095         Pass the page group by ID when creating a page, as it will have had its own
1096         creation message sent already.
1097
1098         * UIProcess/WebPageGroup.cpp:
1099         * UIProcess/WebPageGroup.h:
1100         Keep track of processes.
1101
1102         * UIProcess/WebProcessProxy.cpp:
1103         * UIProcess/WebProcessProxy.h:
1104         Keep track of the page groups used by the process.
1105
1106         * WebProcess/WebPage/WebPage.cpp:
1107         Get the already created page group on creation.
1108
1109         * WebProcess/WebProcess.cpp:
1110         * WebProcess/WebProcess.h:
1111         * WebProcess/WebProcess.messages.in:
1112         Explicitly create page groups in the WebProcess.
1113
1114 2013-11-20  Brady Eidson  <beidson@apple.com>
1115
1116         IDB related cleanup in WebKit2
1117         https://bugs.webkit.org/show_bug.cgi?id=124691
1118
1119         Reviewed by Enrica Casucci.
1120
1121         - WebIDBServerConnection.cpp should use the WebCore namespace and get rid of "WebCore::" throughout
1122         - "backendIndentifier" should be renamed to "serverConnectionIdentifier" throughout
1123
1124         * DatabaseProcess/DatabaseToWebProcessConnection.cpp:
1125         (WebKit::DatabaseToWebProcessConnection::establishIDBConnection):
1126         * DatabaseProcess/DatabaseToWebProcessConnection.h:
1127         * DatabaseProcess/DatabaseToWebProcessConnection.messages.in:
1128
1129         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
1130         (WebKit::DatabaseProcessIDBConnection::DatabaseProcessIDBConnection):
1131         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
1132         (WebKit::DatabaseProcessIDBConnection::create):
1133
1134         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
1135         (WebKit::generateServerConnectionIdentifier):
1136         (WebKit::WebIDBServerConnection::WebIDBServerConnection):
1137         (WebKit::WebIDBServerConnection::openTransaction):
1138         (WebKit::WebIDBServerConnection::setIndexKeys):
1139         (WebKit::WebIDBServerConnection::createObjectStore):
1140         (WebKit::WebIDBServerConnection::createIndex):
1141         (WebKit::WebIDBServerConnection::deleteIndex):
1142         (WebKit::WebIDBServerConnection::get):
1143         (WebKit::WebIDBServerConnection::put):
1144         (WebKit::WebIDBServerConnection::openCursor):
1145         (WebKit::WebIDBServerConnection::count):
1146         (WebKit::WebIDBServerConnection::deleteRange):
1147         (WebKit::WebIDBServerConnection::clearObjectStore):
1148         (WebKit::WebIDBServerConnection::deleteObjectStore):
1149         (WebKit::WebIDBServerConnection::changeDatabaseVersion):
1150         (WebKit::WebIDBServerConnection::cursorAdvance):
1151         (WebKit::WebIDBServerConnection::cursorIterate):
1152         (WebKit::WebIDBServerConnection::cursorPrefetchIteration):
1153         (WebKit::WebIDBServerConnection::cursorPrefetchReset):
1154         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
1155
1156 2013-11-20  Brady Eidson  <beidson@apple.com>
1157
1158         Add argument coders for IDBDatabaseMetadata classes
1159         https://bugs.webkit.org/show_bug.cgi?id=124689
1160
1161         Reviewed by Anders Carlsson.
1162
1163         Add coders for:
1164           - IDBDatabaseMetadata
1165           - IDBIndexMetadata
1166           - IDBKeyPath
1167           - IDBObjectStoreMetadata
1168
1169         * Shared/WebCoreArgumentCoders.cpp:
1170         (CoreIPC::::encode):
1171         (CoreIPC::::decode):
1172         * Shared/WebCoreArgumentCoders.h:
1173
1174 2013-11-20  Anders Carlsson  <andersca@apple.com>
1175
1176         Enable PageLoadTest assertions again
1177         https://bugs.webkit.org/show_bug.cgi?id=124681
1178
1179         Reviewed by Tim Horton.
1180
1181         Remove an overzealous assertion and re-enable assertions in PageLoadState again.
1182
1183         * UIProcess/PageLoadState.cpp:
1184         (WebKit::PageLoadState::didCommitLoad):
1185         Remove assertion - it's fine for a page to have a null URL.
1186
1187         (WebKit::PageLoadState::didFinishLoad):
1188         Ditto.
1189
1190         (WebKit::PageLoadState::didFailLoad):
1191         Update the state.
1192
1193 2013-11-20  Anders Carlsson  <andersca@apple.com>
1194
1195         PageLoadState should keep track of unreachable URLs
1196         https://bugs.webkit.org/show_bug.cgi?id=124677
1197
1198         Reviewed by Dan Bernstein.
1199
1200         * UIProcess/PageLoadState.cpp:
1201         (WebKit::PageLoadState::reset):
1202         (WebKit::PageLoadState::didStartProvisionalLoad):
1203         (WebKit::PageLoadState::didFailProvisionalLoad):
1204         (WebKit::PageLoadState::setUnreachableURL):
1205         * UIProcess/PageLoadState.h:
1206         * UIProcess/WebPageProxy.cpp:
1207         (WebKit::WebPageProxy::loadAlternateHTMLString):
1208
1209 2013-11-20  Tim Horton  <timothy_horton@apple.com>
1210
1211         Remote Layer Tree: 100% repro crasher on the IPC thread when creating lots of layers
1212         https://bugs.webkit.org/show_bug.cgi?id=124643
1213
1214         Reviewed by Anders Carlsson.
1215
1216         * Platform/CoreIPC/mac/ConnectionMac.cpp:
1217         (CoreIPC::Connection::sendOutgoingMessage):
1218         Dynamically allocate storage for the message if needed.
1219
1220 2013-11-20  Tim Horton  <timothy_horton@apple.com>
1221
1222         machMessageSize uses sizeof(mach_msg_ool_ports_descriptor_t) for out-of-line *memory*
1223         https://bugs.webkit.org/show_bug.cgi?id=124644
1224
1225         Reviewed by Anders Carlsson.
1226
1227         * Platform/CoreIPC/mac/ConnectionMac.cpp:
1228         (CoreIPC::machMessageSize):
1229         mach_msg_ool_descriptor_t is the correct type, given that
1230         out-of-line memory descriptors use the mach_msg_ool_descriptor_t
1231         member of the mach_msg_descriptor_t union.
1232
1233 2013-11-20  Brady Eidson  <beidson@apple.com>
1234
1235         Cleanup getOrEstablishIDBDatabaseMetadata and stub it out in WK2
1236         https://bugs.webkit.org/show_bug.cgi?id=124635
1237
1238         Reviewed by Tim Horton.
1239
1240         Stub out the message for getOrEstablishIDBDatabaseMetadata in the DatabaseProcess.
1241
1242         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
1243         (WebKit::DatabaseProcessIDBConnection::establishConnection):
1244         (WebKit::DatabaseProcessIDBConnection::getOrEstablishIDBDatabaseMetadata):
1245         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
1246         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in:
1247
1248         * Shared/SecurityOriginData.cpp:
1249         (WebKit::SecurityOriginData::fromSecurityOrigin):
1250         * Shared/SecurityOriginData.h:
1251
1252         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
1253         (WebKit::WebIDBServerConnection::WebIDBServerConnection):
1254         (WebKit::WebIDBServerConnection::deleteDatabase):
1255         (WebKit::WebIDBServerConnection::getOrEstablishIDBDatabaseMetadata):
1256         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
1257
1258 2013-11-20  Carlos Garcia Campos  <cgarcia@igalia.com>
1259
1260         [GTK] Do not use deprecated callbacks in WebKitPolicyClient
1261         https://bugs.webkit.org/show_bug.cgi?id=124648
1262
1263         Reviewed by Philippe Normand.
1264
1265         Fixes compile warnings for uninitialized callbacks.
1266
1267         * UIProcess/API/gtk/WebKitPolicyClient.cpp:
1268         (decidePolicyForNavigationAction): Add originatingFrame parameter.
1269         (decidePolicyForNewWindowAction): Renamed for consistency.
1270         (decidePolicyForResponse): Add canShowMIMEType parameter.
1271         (attachPolicyClientToView): Add new callbacks.
1272
1273 2013-11-19  Ryosuke Niwa  <rniwa@webkit.org>
1274
1275         Enable HTMLTemplateElement on Mac port
1276         https://bugs.webkit.org/show_bug.cgi?id=124637
1277
1278         Reviewed by Tim Horton.
1279
1280         * Configurations/FeatureDefines.xcconfig:
1281
1282 2013-11-19  Brady Eidson  <beidson@apple.com>
1283
1284         Add WebIDBServerConnection and DatabaseProcessIDBConnection stubs
1285         https://bugs.webkit.org/show_bug.cgi?id=124562
1286
1287         Reviewed by Alexey Proskuryakov.
1288
1289         Also remove Web/DatabaseProcessDatabaseBackend stubs, as that is no longer the abstraction layer.
1290
1291         * DatabaseProcess/DatabaseToWebProcessConnection.cpp:
1292         (WebKit::DatabaseToWebProcessConnection::didReceiveMessage):
1293         (WebKit::DatabaseToWebProcessConnection::establishIDBConnection):
1294         * DatabaseProcess/DatabaseToWebProcessConnection.h:
1295         * DatabaseProcess/DatabaseToWebProcessConnection.messages.in:
1296
1297         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp: Renamed from Source/WebKit2/DatabaseProcess/IndexedDB/DatabaseProcessIDBDatabaseBackend.cpp.
1298         (WebKit::DatabaseProcessIDBConnection::DatabaseProcessIDBConnection):
1299         (WebKit::DatabaseProcessIDBConnection::~DatabaseProcessIDBConnection):
1300         (WebKit::DatabaseProcessIDBConnection::establishConnection):
1301         (WebKit::DatabaseProcessIDBConnection::messageSenderConnection):
1302         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h: Renamed from Source/WebKit2/DatabaseProcess/IndexedDB/DatabaseProcessIDBDatabaseBackend.h.
1303         (WebKit::DatabaseProcessIDBConnection::create):
1304         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in: Renamed from Source/WebKit2/DatabaseProcess/IndexedDB/DatabaseProcessIDBDatabaseBackend.messages.in.
1305
1306         * Shared/Databases/IndexedDB/IDBUtilities.cpp:
1307         (WebKit::uniqueDatabaseIdentifier): Modified to take two security origin arguments.
1308         * Shared/Databases/IndexedDB/IDBUtilities.h:
1309
1310         * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp:
1311         (WebKit::WebIDBFactoryBackend::open):
1312
1313         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp: Added. Stubbed out all the pure virtual methods.
1314         (WebKit::generateBackendIdentifier):
1315         (WebKit::WebIDBServerConnection::WebIDBServerConnection):
1316         (WebKit::WebIDBServerConnection::~WebIDBServerConnection):
1317         (WebKit::WebIDBServerConnection::isClosed):
1318         (WebKit::WebIDBServerConnection::getOrEstablishIDBDatabaseMetadata):
1319         (WebKit::WebIDBServerConnection::deleteDatabase):
1320         (WebKit::WebIDBServerConnection::close):
1321         (WebKit::WebIDBServerConnection::openTransaction):
1322         (WebKit::WebIDBServerConnection::beginTransaction):
1323         (WebKit::WebIDBServerConnection::commitTransaction):
1324         (WebKit::WebIDBServerConnection::resetTransaction):
1325         (WebKit::WebIDBServerConnection::rollbackTransaction):
1326         (WebKit::WebIDBServerConnection::setIndexKeys):
1327         (WebKit::WebIDBServerConnection::createObjectStore):
1328         (WebKit::WebIDBServerConnection::createIndex):
1329         (WebKit::WebIDBServerConnection::deleteIndex):
1330         (WebKit::WebIDBServerConnection::get):
1331         (WebKit::WebIDBServerConnection::put):
1332         (WebKit::WebIDBServerConnection::openCursor):
1333         (WebKit::WebIDBServerConnection::count):
1334         (WebKit::WebIDBServerConnection::deleteRange):
1335         (WebKit::WebIDBServerConnection::clearObjectStore):
1336         (WebKit::WebIDBServerConnection::deleteObjectStore):
1337         (WebKit::WebIDBServerConnection::changeDatabaseVersion):
1338         (WebKit::WebIDBServerConnection::cursorAdvance):
1339         (WebKit::WebIDBServerConnection::cursorIterate):
1340         (WebKit::WebIDBServerConnection::cursorPrefetchIteration):
1341         (WebKit::WebIDBServerConnection::cursorPrefetchReset):
1342         (WebKit::WebIDBServerConnection::messageSenderConnection):
1343         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h: Added.
1344
1345         * WebProcess/Databases/IndexedDB/WebProcessIDBDatabaseBackend.cpp: Removed.
1346         * WebProcess/Databases/IndexedDB/WebProcessIDBDatabaseBackend.h: Removed.
1347
1348         * WebProcess/Databases/WebToDatabaseProcessConnection.cpp:
1349
1350         * DerivedSources.make:
1351         * WebKit2.xcodeproj/project.pbxproj:
1352
1353 2013-11-19  Michał Pakuła vel Rutka  <m.pakula@samsung.com>
1354
1355         Unreviewed EFL and GTK build fix attempt after r159507
1356
1357         * CMakeLists.txt: Changed Platform/CoreIPC/DataReference.cpp to Platform/IPC/DataReference.cpp
1358         * GNUmakefile.list.am: Ditto
1359
1360 2013-11-19  Anders Carlsson  <andersca@apple.com>
1361
1362         Move DataReference to Platform/IPC.
1363
1364         * Platform/IPC/DataReference.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/DataReference.cpp.
1365         * Platform/IPC/DataReference.h: Renamed from Source/WebKit2/Platform/CoreIPC/DataReference.h.
1366         * WebKit2.xcodeproj/project.pbxproj:
1367
1368 2013-11-19  Anders Carlsson  <andersca@apple.com>
1369
1370         Add and call PageLoadState::reset
1371         https://bugs.webkit.org/show_bug.cgi?id=124591
1372
1373         Reviewed by Dan Bernstein.
1374
1375         * UIProcess/PageLoadState.cpp:
1376         (WebKit::PageLoadState::reset):
1377         * UIProcess/PageLoadState.h:
1378         * UIProcess/WebPageProxy.cpp:
1379         (WebKit::WebPageProxy::processDidCrash):
1380
1381 2013-11-18  Ryuan Choi  <ryuan.choi@samsung.com>
1382
1383         [EFL] Initialize efreet before getting directories
1384         https://bugs.webkit.org/show_bug.cgi?id=124560
1385
1386         Reviewed by Gyuyoung Kim.
1387
1388         efreet is used to get several directories including home dierectory since
1389         r123731, but it does not call efreet_init/efreet_shutdown explicitly.
1390
1391         * UIProcess/API/efl/ewk_main.cpp: Call efreet_init()/efreet_shutdown() explicitly.
1392         (ewk_init):
1393         (ewk_shutdown):
1394
1395 2013-11-18  Mark Rowe  <mrowe@apple.com>
1396
1397         Use hw.activecpu for determining how many processes to spawn.
1398
1399         It's documented as the preferred way to determine the number of threads
1400         or processes to create in a SMP aware application.
1401
1402         Rubber-stamped by Tim Horton.
1403
1404         * WebKit2.xcodeproj/project.pbxproj:
1405
1406 2013-11-18  Anders Carlsson  <andersca@apple.com>
1407
1408         Let's try this again.
1409
1410         * UIProcess/PageLoadState.cpp:
1411
1412 2013-11-18  Anders Carlsson  <andersca@apple.com>
1413
1414         Disable assertions in PageLoadState.cpp for now.
1415
1416         * UIProcess/PageLoadState.cpp:
1417
1418 2013-11-18  Anders Carlsson  <andersca@apple.com>
1419
1420         TestWebKitAPI crashes when running under GuardMalloc
1421         https://bugs.webkit.org/show_bug.cgi?id=124546
1422
1423         Reviewed by Tim Horton.
1424
1425         * UIProcess/Downloads/DownloadProxyMap.cpp:
1426         (WebKit::DownloadProxyMap::downloadFinished):
1427         Grab the download ID before removing the DownloadProxy from the map.
1428
1429 2013-11-18  Ryuan Choi  <ryuan.choi@samsung.com>
1430
1431         Unreviewed build fix attempt on GTK and EFL port after r159461
1432
1433         * CMakeLists.txt: Added APINavigationData.cpp and removed WebNavigationData.cpp
1434         * GNUmakefile.list.am: Ditto.
1435
1436 2013-11-18  Anders Carlsson  <andersca@apple.com>
1437
1438         Rename WebNavigationData to API::NavigationData
1439         https://bugs.webkit.org/show_bug.cgi?id=124542
1440
1441         Reviewed by Dan Bernstein.
1442
1443         * UIProcess/API/C/WKAPICast.h:
1444         * UIProcess/API/C/WKNavigationDataRef.cpp:
1445         (WKNavigationDataGetTypeID):
1446         * UIProcess/API/Cocoa/WKNavigationData.mm:
1447         (-[WKNavigationData dealloc]):
1448         (-[WKNavigationData title]):
1449         (-[WKNavigationData originalRequest]):
1450         (-[WKNavigationData destinationURL]):
1451         (-[WKNavigationData response]):
1452         * UIProcess/API/Cocoa/WKNavigationDataInternal.h:
1453         (WebKit::wrapper):
1454         * UIProcess/API/mac/WKProcessGroup.mm:
1455         * UIProcess/APINavigationData.cpp: Renamed from Source/WebKit2/UIProcess/WebNavigationData.cpp.
1456         (API::NavigationData::NavigationData):
1457         (API::NavigationData::~NavigationData):
1458         * UIProcess/APINavigationData.h: Renamed from Source/WebKit2/UIProcess/WebNavigationData.h.
1459         (API::NavigationData::create):
1460         (API::NavigationData::title):
1461         (API::NavigationData::url):
1462         (API::NavigationData::originalRequest):
1463         (API::NavigationData::response):
1464         * UIProcess/WebHistoryClient.cpp:
1465         (WebKit::WebHistoryClient::didNavigateWithNavigationData):
1466         * WebKit2.xcodeproj/project.pbxproj:
1467
1468 2013-11-18  David Hyatt  <hyatt@apple.com>
1469
1470         Add a quirk to not respect center text-align when positioning
1471
1472         <rdar://problem/15427571>
1473         https://bugs.webkit.org/show_bug.cgi?id=124522
1474
1475         Reviewed by Simon Fraser.
1476
1477         Added fast/block/legacy-text-align-position-quirk.html
1478
1479         * Shared/WebPreferencesStore.h:
1480         * UIProcess/API/C/WKPreferences.cpp:
1481         (WKPreferencesUseLegacyTextAlignPositionedElementBehavior):
1482         (WKPreferencesSetUseLegacyTextAlignPositionedElementBehavior):
1483         * UIProcess/API/C/WKPreferencesPrivate.h:
1484         * WebProcess/WebPage/WebPage.cpp:
1485         (WebKit::WebPage::updatePreferences):
1486
1487 2013-11-18  Anders Carlsson  <andersca@apple.com>
1488
1489         Add State to PageLoadState
1490         https://bugs.webkit.org/show_bug.cgi?id=124538
1491
1492         Reviewed by Tim Horton.
1493
1494         * UIProcess/PageLoadState.cpp:
1495         (WebKit::PageLoadState::PageLoadState):
1496         (WebKit::PageLoadState::didStartProvisionalLoad):
1497         (WebKit::PageLoadState::didReceiveServerRedirectForProvisionalLoad):
1498         (WebKit::PageLoadState::didFailProvisionalLoad):
1499         (WebKit::PageLoadState::didCommitLoad):
1500         (WebKit::PageLoadState::didFinishLoad):
1501         (WebKit::PageLoadState::didSameDocumentNavigation):
1502         * UIProcess/PageLoadState.h:
1503
1504 2013-11-18  Anders Carlsson  <andersca@apple.com>
1505
1506         The PageLoadState object should keep track of the current URL
1507         https://bugs.webkit.org/show_bug.cgi?id=124536
1508
1509         Reviewed by Dan Bernstein.
1510
1511         * UIProcess/PageLoadState.cpp:
1512         (WebKit::PageLoadState::didCommitLoad):
1513         (WebKit::PageLoadState::didFinishLoad):
1514         (WebKit::PageLoadState::didFailLoad):
1515         (WebKit::PageLoadState::didSameDocumentNavigation):
1516         * UIProcess/PageLoadState.h:
1517         * UIProcess/WebPageProxy.cpp:
1518         (WebKit::WebPageProxy::didFinishLoadForFrame):
1519         (WebKit::WebPageProxy::didFailLoadForFrame):
1520         (WebKit::WebPageProxy::didSameDocumentNavigationForFrame):
1521
1522 2013-11-18  Csaba Osztrogonác  <ossy@webkit.org>
1523
1524         URTBF after r159444.
1525
1526         * GNUmakefile.list.am:
1527
1528 2013-11-18  Anders Carlsson  <andersca@apple.com>
1529
1530         PageLoadState should keep track of the provisional URL
1531         https://bugs.webkit.org/show_bug.cgi?id=124535
1532
1533         Reviewed by Dan Bernstein.
1534
1535         * UIProcess/PageLoadState.cpp:
1536         (WebKit::PageLoadState::didStartProvisionalLoad):
1537         (WebKit::PageLoadState::didReceiveServerRedirectForProvisionalLoad):
1538         (WebKit::PageLoadState::didCommitLoad):
1539         * UIProcess/PageLoadState.h:
1540         * UIProcess/WebPageProxy.cpp:
1541         (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame):
1542         (WebKit::WebPageProxy::didFailProvisionalLoadForFrame):
1543         (WebKit::WebPageProxy::didCommitLoadForFrame):
1544
1545 2013-11-18  Anders Carlsson  <andersca@apple.com>
1546
1547         Move m_pendingAPIRequestURL to PageLoadState
1548         https://bugs.webkit.org/show_bug.cgi?id=124531
1549
1550         Reviewed by Tim Horton.
1551
1552         * UIProcess/API/C/WKPage.cpp:
1553         (WKPageCopyPendingAPIRequestURL):
1554         * UIProcess/PageLoadState.cpp:
1555         (WebKit::PageLoadState::pendingAPIRequestURL):
1556         (WebKit::PageLoadState::setPendingAPIRequestURL):
1557         (WebKit::PageLoadState::clearPendingAPIRequestURL):
1558         * UIProcess/PageLoadState.h:
1559         * UIProcess/WebPageProxy.cpp:
1560         (WebKit::WebPageProxy::loadURL):
1561         (WebKit::WebPageProxy::loadURLRequest):
1562         (WebKit::WebPageProxy::reload):
1563         (WebKit::WebPageProxy::goForward):
1564         (WebKit::WebPageProxy::goBack):
1565         (WebKit::WebPageProxy::goToBackForwardItem):
1566         (WebKit::WebPageProxy::activeURL):
1567         (WebKit::WebPageProxy::receivedPolicyDecision):
1568         (WebKit::WebPageProxy::estimatedProgress):
1569         (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
1570         (WebKit::WebPageProxy::didSameDocumentNavigationForFrame):
1571         (WebKit::WebPageProxy::decidePolicyForNavigationAction):
1572         * UIProcess/WebPageProxy.h:
1573         (WebKit::WebPageProxy::pageLoadState):
1574         * UIProcess/cf/WebPageProxyCF.cpp:
1575         (WebKit::WebPageProxy::sessionStateData):
1576         (WebKit::WebPageProxy::restoreFromSessionStateData):
1577
1578 2013-11-18  Michał Pakuła vel Rutka  <m.pakula@samsung.com>
1579
1580         Unreviewed EFL build fix after r159444
1581
1582         * CMakeLists.txt: Added PageLoadState.cpp.
1583
1584 2013-11-18  Anders Carlsson  <andersca@apple.com>
1585
1586         Add PageLoadState class
1587         https://bugs.webkit.org/show_bug.cgi?id=124528
1588
1589         Reviewed by Dan Bernstein.
1590
1591         Trying to use the main frame load state as the page load state was a bad idea,
1592         add a new PageLoadState and use it instead. Ultimately the long term plan is to
1593         transition away from FrameLoadState entirely.
1594
1595         * UIProcess/PageLoadState.cpp: Added.
1596         (WebKit::PageLoadState::PageLoadState):
1597         (WebKit::PageLoadState::~PageLoadState):
1598         (WebKit::PageLoadState::didStartProvisionalLoad):
1599         * UIProcess/PageLoadState.h: Added.
1600         * UIProcess/WebPageProxy.cpp:
1601         (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
1602         * UIProcess/WebPageProxy.h:
1603         * WebKit2.xcodeproj/project.pbxproj:
1604
1605 2013-11-14  David Farler  <dfarler@apple.com>
1606
1607         [ASAN] WebKit2: Remove calls to dead DownloadAuthenticationClient code
1608         https://bugs.webkit.org/show_bug.cgi?id=124367
1609
1610         Reviewed by Alexey Proskuryakov.
1611
1612         * Shared/Downloads/DownloadAuthenticationClient.cpp:
1613         (WebKit::DownloadAuthenticationClient::receivedCredential):
1614         (WebKit::DownloadAuthenticationClient::receivedRequestToContinueWithoutCredential):
1615         (WebKit::DownloadAuthenticationClient::receivedCancellation):
1616         Remove calls to nowhere:
1617         WebKit::Download::cancelAuthenticationChallenge(WebCore::AuthenticationChallenge const&)
1618         WebKit::Download::continueWithoutCredential(WebCore::AuthenticationChallenge const&)
1619         WebKit::Download::useCredential(WebCore::AuthenticationChallenge const&, WebCore::Credential const&)
1620
1621 2013-11-18  Anders Carlsson  <andersca@apple.com>
1622
1623         Use a strong enum for frame load states
1624         https://bugs.webkit.org/show_bug.cgi?id=124524
1625
1626         Reviewed by Dan Bernstein.
1627
1628         * UIProcess/API/C/WKFrame.cpp:
1629         (WKFrameGetFrameLoadState):
1630         * UIProcess/FrameLoadState.cpp:
1631         (WebKit::FrameLoadState::FrameLoadState):
1632         (WebKit::FrameLoadState::didStartProvisionalLoad):
1633         (WebKit::FrameLoadState::didReceiveServerRedirectForProvisionalLoad):
1634         (WebKit::FrameLoadState::didFailProvisionalLoad):
1635         (WebKit::FrameLoadState::didCommitLoad):
1636         (WebKit::FrameLoadState::didFinishLoad):
1637         (WebKit::FrameLoadState::didFailLoad):
1638         * UIProcess/FrameLoadState.h:
1639         * UIProcess/WebFrameProxy.h:
1640         * UIProcess/WebPageProxy.cpp:
1641         (WebKit::WebPageProxy::WebPageProxy):
1642         (WebKit::WebPageProxy::activeURL):
1643         (WebKit::WebPageProxy::resetStateAfterProcessExited):
1644         * UIProcess/WebPageProxy.h:
1645         (WebKit::WebPageProxy::loadStateAtProcessExit):
1646
1647 2013-11-18  Anders Carlsson  <andersca@apple.com>
1648
1649         Remove unnecessary COMPILER(CLANG) #ifdefs in Mac-only code
1650         https://bugs.webkit.org/show_bug.cgi?id=124523
1651
1652         Reviewed by Dan Bernstein.
1653
1654         * PluginProcess/mac/PluginProcessMac.mm:
1655         (WebKit::beginModal):
1656         * PluginProcess/mac/PluginProcessShim.mm:
1657         * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
1658         (WebKit::NetscapePluginModule::tryLoad):
1659         * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
1660         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
1661         (WebKit::PluginProcessProxy::getPluginProcessSerialNumber):
1662         (WebKit::PluginProcessProxy::makePluginProcessTheFrontProcess):
1663         (WebKit::PluginProcessProxy::makeUIProcessTheFrontProcess):
1664         (WebKit::PluginProcessProxy::exitFullscreen):
1665
1666 2013-11-18  Ryuan Choi  <ryuan.choi@samsung.com>
1667
1668         [EFL] Add EWebKitConfig.cmake and EWebKit2Config.cmake
1669         https://bugs.webkit.org/show_bug.cgi?id=124478
1670
1671         Reviewed by Gyuyoung Kim.
1672
1673         EWebKit is built using CMake but applications use *.pc to use it.
1674         This patch provides EWebKitConfig.cmake and EWebKit2Config.cmake
1675         for applications which use EWebkit and is compiled by CMake.
1676
1677         * PlatformEfl.cmake:
1678         Configure and install EWebKit2Config.cmake and EWebKit2ConfigVersion.cmake
1679         * efl/EWebKit2Config.cmake.in: Added.
1680         * efl/EWebKit2ConfigVersion.cmake.in: Added.
1681
1682 2013-11-18  Eunmi Lee  <eunmi15.lee@samsung.com>
1683
1684         [EFL][WK2] Process single tap using mouse move, down and up event.
1685         https://bugs.webkit.org/show_bug.cgi?id=106864
1686
1687         Reviewed by Christophe Dumez.
1688
1689         Send mouse events to the web process to perform the clicking when
1690         single tap gesture is recognized.
1691         Additionally, add WKViewSendMouseDownEvent(), WKViewSendMouseUpEvent()
1692         and WKViewSendMouseMoveEvent() to avoid using WK2 internals in the EFL
1693         API implementation.
1694
1695         * UIProcess/API/C/efl/WKViewEfl.cpp:
1696         (WKViewSendMouseDownEvent):
1697         (WKViewSendMouseUpEvent):
1698         (WKViewSendMouseMoveEvent):
1699         * UIProcess/API/C/efl/WKViewEfl.h:
1700         * UIProcess/API/efl/GestureRecognizer.cpp:
1701         (WebKit::GestureHandler::handleSingleTap):
1702         * UIProcess/efl/WebViewEfl.cpp:
1703         (WebKit::WebViewEfl::sendMouseEvent):
1704         * UIProcess/efl/WebViewEfl.h:
1705
1706 2013-11-17  Dan Bernstein  <mitz@apple.com>
1707
1708         Try to fix the EFL build.
1709
1710         * UIProcess/efl/PagePolicyClientEfl.cpp:
1711         (WebKit::PagePolicyClientEfl::decidePolicyForResponseCallback): No need to call
1712         WKFrameCanShowMIMEType now that this information is passed in as a parameter.
1713
1714 2013-11-16  Dan Bernstein  <mitz@apple.com>
1715
1716         No way for policy client to determine if a the response’s MIME type can be shown
1717         https://bugs.webkit.org/show_bug.cgi?id=124445
1718
1719         Reviewed by Sam Weinig.
1720
1721         * Platform/CoreIPC/HandleMessage.h:
1722         (CoreIPC::callMemberFunction): Added a fifth message parameter to this template.
1723
1724         * UIProcess/API/C/WKPage.h: Added a canShowMIMEType parameter to
1725         WKPageDecidePolicyForResponseCallback and deprecated the old version.
1726
1727         * UIProcess/API/mac/WKBrowsingContextController.mm:
1728         (setUpPagePolicyClient): Include whether the response MIME type can be shown under a new key
1729         in the action information dictionary.
1730         * UIProcess/API/mac/WKBrowsingContextPolicyDelegate.h: Declared
1731         WKActionCanShowMIMETypeKey.
1732
1733         * UIProcess/WebInspectorProxy.cpp:
1734         (WebKit::WebInspectorProxy::createInspectorPage): Updated for changes in the policy client.
1735
1736         * UIProcess/WebPageProxy.cpp:
1737         (WebKit::WebPageProxy::decidePolicyForResponse): Added canShowMIMEType parameter, which is
1738         passed to the policy client.
1739         (WebKit::WebPageProxy::decidePolicyForResponseSync): Added canShowMIMEType parameter, which
1740         is passed to the above function.
1741         * UIProcess/WebPageProxy.h:
1742         * UIProcess/WebPageProxy.messages.in: Added canShowMIMEType paramter to
1743         DecidePolicyForResponseSync.
1744
1745         * UIProcess/WebPolicyClient.cpp:
1746         (WebKit::WebPolicyClient::decidePolicyForResponse): Added canShowMIMEType parameter, which
1747         is passed to the client callback.
1748         * UIProcess/WebPolicyClient.h:
1749
1750         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1751         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse): Determine if the response
1752         MIME type can be shown and pass this information along in the message to the UI process.
1753
1754 2013-11-15  Ryuan Choi  <ryuan.choi@samsung.com>
1755
1756         Unreviewed EFL build fix after r159358.
1757
1758         * UIProcess/efl/PagePolicyClientEfl.cpp:
1759         (WebKit::PagePolicyClientEfl::decidePolicyForNavigationAction):
1760         * UIProcess/efl/PagePolicyClientEfl.h:
1761
1762 2013-11-15  Brady Eidson  <beidson@apple.com>
1763
1764         Let IDBDatabaseBackend create IDBTransactionBackend's directly
1765         https://bugs.webkit.org/show_bug.cgi?id=124438
1766
1767         Reviewed by Beth Dakin.
1768
1769         Remove maybeCreateTransactionBackend():
1770         * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp:
1771         * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.h:
1772
1773 2013-11-15  Brady Eidson  <beidson@apple.com>
1774
1775         Remove last vestiges of IDBBackingStore* from IDBTransactionBackend.
1776         https://bugs.webkit.org/show_bug.cgi?id=124436
1777
1778         Reviewed by Tim Horton.
1779
1780         * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp: Removed createCursorBackend.
1781         * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.h:
1782
1783 2013-11-15  Dan Bernstein  <mitz@apple.com>
1784
1785         Give the policy client the originating frame of a navigation action
1786         https://bugs.webkit.org/show_bug.cgi?id=124431
1787
1788         Reviewed by Anders Carlsson.
1789
1790         * Platform/CoreIPC/HandleMessage.h:
1791         (CoreIPC::callMemberFunction): Added a seventh message parameter to this template.
1792
1793         * Shared/APIClientTraits.cpp: Defined API traits for WKPagePolicyClient, which now has two
1794         versions.
1795         * Shared/APIClientTraits.h: Declared APIClientTraits<WKPagePolicyClient>.
1796
1797         * UIProcess/API/C/WKPage.h: Added an originatingFrame parameter to
1798         WKPageDecidePolicyForNavigationActionCallback and deprecated the old version. Bumped the
1799         policy client version to 1.
1800
1801         * UIProcess/API/mac/WKBrowsingContextController.mm:
1802         (setUpPagePolicyClient): Include the originating frame’s URL under a new key in the
1803         action information dictionary.
1804         * UIProcess/API/mac/WKBrowsingContextPolicyDelegate.h: Declared
1805         WKActionOriginatingFrameURLKey.
1806
1807         * UIProcess/WebInspectorProxy.cpp:
1808         (WebKit::decidePolicyForNavigationAction): Added originatingFrame parameter.
1809         (WebKit::WebInspectorProxy::createInspectorPage): Updated to the new version of the policy
1810         client interface.
1811
1812         * UIProcess/WebPageProxy.cpp:
1813         (WebKit::WebPageProxy::decidePolicyForNavigationAction): Added originatingFrameID parameter
1814         and passing the originating frame to the policy client.
1815         * UIProcess/WebPageProxy.h:
1816         * UIProcess/WebPageProxy.messages.in: Added originatingFrameID paremeter to
1817         DecidePolicyForNavigationAction.
1818
1819         * UIProcess/WebPolicyClient.cpp:
1820         (WebKit::WebPolicyClient::decidePolicyForNavigationAction): Added originatingFrame
1821         parameter, which is passed to the client callback.
1822         * UIProcess/WebPolicyClient.h:
1823
1824         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1825         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Determine the
1826         originating frame for link activation and form submission actions and send its ID in the
1827         DecidePolicyForNavigationAction message.
1828
1829 2013-11-15  Brady Eidson  <beidson@apple.com>
1830
1831         Move execution of IDBTransactionBackendOperations to the IDBServerConnection
1832         https://bugs.webkit.org/show_bug.cgi?id=124385
1833
1834         Reviewed by Tim Horton.
1835
1836         * WebProcess/Databases/IndexedDB/WebProcessIDBDatabaseBackend.h:
1837
1838 2013-11-15  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
1839
1840         Fixed incorrectly placed NETWORK_PROCESS guard in NetworkConnectionToWebProcess.cpp
1841         https://bugs.webkit.org/show_bug.cgi?id=124398
1842
1843         Reviewed by Brady Eidson.
1844
1845         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
1846
1847 2013-11-15  Tibor Meszaros  <mtibor@inf.u-szeged.hu>
1848
1849         Cleanup the build from unused parameters in WebKit2
1850         https://bugs.webkit.org/show_bug.cgi?id=124201
1851
1852         Reviewed by Darin Adler.
1853
1854         * Shared/Plugins/Netscape/PluginInformation.cpp:
1855         (WebKit::getPluginModuleInformation):
1856         * UIProcess/API/C/WKBatteryManager.cpp:
1857         (WKBatteryManagerSetProvider):
1858         (WKBatteryManagerProviderDidChangeBatteryStatus):
1859         (WKBatteryManagerProviderUpdateBatteryStatus):
1860         * UIProcess/API/C/WKBatteryStatus.cpp:
1861         (WKBatteryStatusCreate):
1862         * UIProcess/API/C/WKColorPickerResultListener.cpp:
1863         (WKColorPickerResultListenerSetColor):
1864         * UIProcess/API/C/WKContext.cpp:
1865         (WKContextGetBatteryManager):
1866         (WKContextGetDatabaseManager):
1867         (WKContextGetNetworkInfoManager):
1868         * UIProcess/API/C/WKDatabaseManager.cpp:
1869         (WKDatabaseManagerSetClient):
1870         (WKDatabaseManagerGetDatabasesByOrigin):
1871         (WKDatabaseManagerGetDatabaseOrigins):
1872         (WKDatabaseManagerDeleteDatabasesWithNameForOrigin):
1873         (WKDatabaseManagerDeleteDatabasesForOrigin):
1874         (WKDatabaseManagerDeleteAllDatabases):
1875         (WKDatabaseManagerSetQuotaForOrigin):
1876         * UIProcess/API/C/WKNetworkInfo.cpp:
1877         (WKNetworkInfoCreate):
1878         * UIProcess/API/C/WKNetworkInfoManager.cpp:
1879         (WKNetworkInfoManagerSetProvider):
1880         (WKNetworkInfoManagerProviderDidChangeNetworkInformation):
1881         * UIProcess/API/C/WKOpenPanelParameters.cpp:
1882         (WKOpenPanelParametersCopyCapture):
1883         * UIProcess/API/C/WKVibration.cpp:
1884         (WKVibrationSetProvider):
1885         * UIProcess/API/efl/EwkView.cpp:
1886         (EwkView::createNewPage):
1887         * UIProcess/WebPageProxy.cpp:
1888         (WebKit::WebPageProxy::setVisibilityState):
1889         (WebKit::WebPageProxy::unavailablePluginButtonClicked):
1890         * UIProcess/efl/ViewClientEfl.cpp:
1891         (WebKit::ViewClientEfl::didChangeContentsPosition):
1892         (WebKit::ViewClientEfl::didRenderFrame):
1893         (WebKit::ViewClientEfl::didChangeViewportAttributes):
1894         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1895         (WebKit::InjectedBundle::setDatabaseQuota):
1896         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1897         (WebKit::WebChromeClient::createWindow):
1898
1899 2013-11-14  Dan Bernstein  <mitz@apple.com>
1900
1901         [Cocoa] WKBrowsingContextController's policy client implementation over-releases WKURLRequests and WKURLResponses
1902         https://bugs.webkit.org/show_bug.cgi?id=124386
1903
1904         Reviewed by Sam Weinig.
1905
1906         * UIProcess/API/mac/WKBrowsingContextController.mm:
1907         (setUpPagePolicyClient): Changed to release the Cocoa objects we copy out of the WK objects
1908         passed into the client callbacks, but not the WK objects themselves, which are not owned by
1909         the callbacks.
1910
1911 2013-11-14  Andy Estes  <aestes@apple.com>
1912
1913         Replace calls to deprecated CFPropertyList functions in WebKit2
1914         https://bugs.webkit.org/show_bug.cgi?id=124384
1915
1916         Reviewed by Anders Carlsson.
1917
1918         * UIProcess/cf/WebPageProxyCF.cpp:
1919         (WebKit::WebPageProxy::sessionStateData): Replaced CFPropertyListWriteToStream() with CFPropertyListWrite().
1920         (WebKit::WebPageProxy::restoreFromSessionStateData): Replaced CFPropertyListCreateFromXMLData() with CFPropertyListCreateWithData().
1921
1922 2013-11-14  Gergo Balogh  <geryxyz@inf.u-szeged.hu>
1923
1924         generate-message-receiver.py can't handle nested #ifs
1925         https://bugs.webkit.org/show_bug.cgi?id=121877
1926
1927         Reviewed by Darin Adler.
1928
1929         parser.py was modifieded to collect and combine conditions of nested #ifs.
1930         messages_unittest.py extended to check these modifications.
1931
1932         * Scripts/webkit2/messages_unittest.py:
1933         (LoadSomething):
1934         (std):
1935         (AddEvent):
1936         (LoadSomethingElse):
1937         * Scripts/webkit2/parser.py:
1938         (combine_condition):
1939         (bracket_if_needed):
1940         (parse):
1941
1942 2013-11-14  Dan Bernstein  <mitz@apple.com>
1943
1944         [Cocoa] WKAction keys are not exported
1945         https://bugs.webkit.org/show_bug.cgi?id=124378
1946
1947         Reviewed by Anders Carlsson.
1948
1949         * UIProcess/API/mac/WKBrowsingContextController.mm: Made the keys constant pointers.
1950         * UIProcess/API/mac/WKBrowsingContextPolicyDelegate.h: Exported the keys.
1951
1952 2013-11-14  Ryuan Choi  <ryuan.choi@samsung.com>
1953
1954         [WK2] Move Coordinated Graphics related code out of DrawingAreaProxy
1955         https://bugs.webkit.org/show_bug.cgi?id=124328
1956
1957         Reviewed by Andreas Kling.
1958
1959         Refactored for DrawingAreaProxy not to include Coordinated Graphics specific code.
1960
1961         * PlatformEfl.cmake:
1962         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp: Moved from DrawingAreaProxy.cpp.
1963         (WebKit::CoordinatedDrawingAreaProxy::updateViewport):
1964         (WebKit::CoordinatedDrawingAreaProxy::contentsRect):
1965         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h: Ditto.
1966         (WebKit::CoordinatedDrawingAreaProxy::coordinatedLayerTreeHostProxy): Refactored to return reference instead of pointer.
1967         (WebKit::CoordinatedDrawingAreaProxy::viewportVisibleRect):
1968         (WebKit::CoordinatedDrawingAreaProxy::page):
1969         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
1970         (WebKit::CoordinatedLayerTreeHostProxy::CoordinatedLayerTreeHostProxy):
1971         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
1972         * UIProcess/CoordinatedGraphics/PageViewportController.cpp:
1973         Renamed from Source/WebKit2/UIProcess/PageViewportController.cpp because it depends on Coordinated Graphics.
1974         (WebKit::fuzzyCompare):
1975         (WebKit::PageViewportController::PageViewportController):
1976         (WebKit::PageViewportController::innerBoundedViewportScale):
1977         (WebKit::PageViewportController::outerBoundedViewportScale):
1978         (WebKit::PageViewportController::deviceScaleFactor):
1979         (WebKit::isIntegral):
1980         (WebKit::PageViewportController::pixelAlignedFloatPoint):
1981         (WebKit::PageViewportController::boundContentsPositionAtScale):
1982         (WebKit::PageViewportController::boundContentsPosition):
1983         (WebKit::PageViewportController::didCommitLoad):
1984         (WebKit::PageViewportController::didChangeContentsSize):
1985         (WebKit::PageViewportController::didRenderFrame):
1986         (WebKit::PageViewportController::pageTransitionViewportReady):
1987         (WebKit::PageViewportController::pageDidRequestScroll):
1988         (WebKit::PageViewportController::didChangeViewportSize):
1989         (WebKit::PageViewportController::didChangeContentsVisibility):
1990         (WebKit::PageViewportController::syncVisibleContents): Added cast to access CoordinatedDrawingAreaProxy method.
1991         (WebKit::PageViewportController::didChangeViewportAttributes):
1992         (WebKit::PageViewportController::visibleContentsSize):
1993         (WebKit::PageViewportController::applyScaleAfterRenderingContents):
1994         (WebKit::PageViewportController::applyPositionAfterRenderingContents):
1995         (WebKit::PageViewportController::updateMinimumScaleToFit):
1996         * UIProcess/CoordinatedGraphics/PageViewportController.h:
1997         Renamed from Source/WebKit2/UIProcess/PageViewportController.cpp because it depends on Coordinated Graphics.
1998         (WebKit::PageViewportController::~PageViewportController):
1999         (WebKit::PageViewportController::hadUserInteraction):
2000         (WebKit::PageViewportController::allowsUserScaling):
2001         (WebKit::PageViewportController::contentsLayoutSize):
2002         (WebKit::PageViewportController::minimumScale):
2003         (WebKit::PageViewportController::maximumScale):
2004         (WebKit::PageViewportController::currentScale):
2005         (WebKit::PageViewportController::setHadUserInteraction):
2006         * UIProcess/CoordinatedGraphics/WebView.cpp: Added some casts to access CoordinatedDrawingAreaProxy methods.
2007         (WebKit::WebView::coordinatedGraphicsScene): Simplified code using reference.
2008         (WebKit::WebView::updateViewportSize):
2009         * UIProcess/DrawingAreaProxy.cpp: Removed Coordinated Graphics macro and related codes.
2010         * UIProcess/DrawingAreaProxy.h: Ditto.
2011
2012 2013-11-13  Nick Diego Yamane  <nick.yamane@openbossa.org>
2013
2014         Rename some ImmutableArray leftovers
2015         https://bugs.webkit.org/show_bug.cgi?id=124320
2016
2017         Reviewed by Anders Carlsson.
2018
2019         ImmutableArray has been renamed to API::Array in r159234.
2020
2021         * Shared/API/c/WKContextMenuItem.cpp:
2022         * Shared/WebContextMenuItem.cpp:
2023         * Shared/WebContextMenuItem.h:
2024         * UIProcess/API/C/WKBackForwardListRef.cpp:
2025         * UIProcess/API/Cocoa/WKBackForwardList.mm:
2026         * UIProcess/API/gtk/WebKitBackForwardList.cpp:
2027         * UIProcess/API/gtk/WebKitWebViewGroup.cpp:
2028         * UIProcess/WebBackForwardList.cpp:
2029         * UIProcess/WebBackForwardList.h:
2030
2031 2013-11-13  Dan Bernstein  <mitz@apple.com>
2032
2033         REGRESSION (r159263): caused 50+ crashes on all mac webkit2 bots
2034         https://bugs.webkit.org/show_bug.cgi?id=124327
2035
2036         Reviewed by Tim Horton.
2037
2038         * Shared/Cocoa/APIObject.mm:
2039         (API::Object::newObject): Allocate extra memory for the WebError inside the WKNSError.
2040
2041 2013-11-13  Dan Bernstein  <mitz@apple.com>
2042
2043         [Cocoa] Add WKNSError
2044         https://bugs.webkit.org/show_bug.cgi?id=124295
2045
2046         Reviewed by Anders Carlsson.
2047
2048         * Shared/Cocoa/APIObject.mm:
2049         (API::Object::newObject): Allocate a WKNSError if the object is a WebError.
2050         * Shared/Cocoa/WKNSError.h: Added.
2051         (WebKit::wrapper): Added. Returns a WebError’s wrapper as an NSError.
2052         * Shared/Cocoa/WKNSError.mm: Added.
2053         (-[WKNSError _web_createTarget]): Override this WKObject method to return a copy of the
2054         underlying CFError.
2055         (-[WKNSError copyWithZone:]): Retains self.
2056         * WebKit2.xcodeproj/project.pbxproj: Added new files.
2057
2058 2013-11-13  Simon Fraser  <simon.fraser@apple.com>
2059
2060         Tweak the property syntax after https://bugs.webkit.org/show_bug.cgi?id=124317
2061
2062         Reviewed by Dan Bernstein.
2063
2064         * UIProcess/API/mac/WKViewPrivate.h:
2065
2066 2013-11-13  Anders Carlsson  <andersca@apple.com>
2067
2068         Move more state tracking to FrameLoadState
2069         https://bugs.webkit.org/show_bug.cgi?id=124316
2070
2071         Reviewed by Simon Fraser.
2072
2073         * UIProcess/FrameLoadState.cpp:
2074         (WebKit::FrameLoadState::didStartProvisionalLoad):
2075         (WebKit::FrameLoadState::didReceiveServerRedirectForProvisionalLoad):
2076         (WebKit::FrameLoadState::didFailProvisionalLoad):
2077         (WebKit::FrameLoadState::didCommitLoad):
2078         (WebKit::FrameLoadState::didFinishLoad):
2079         (WebKit::FrameLoadState::didFailLoad):
2080         (WebKit::FrameLoadState::didSameDocumentNotification):
2081         (WebKit::FrameLoadState::setUnreachableURL):
2082         * UIProcess/FrameLoadState.h:
2083         * UIProcess/WebFrameProxy.cpp:
2084         (WebKit::WebFrameProxy::didCommitLoad):
2085         (WebKit::WebFrameProxy::didFinishLoad):
2086         (WebKit::WebFrameProxy::didFailLoad):
2087         (WebKit::WebFrameProxy::didSameDocumentNavigation):
2088         (WebKit::WebFrameProxy::setUnreachableURL):
2089
2090 2013-11-13  Simon Fraser  <simon.fraser@apple.com>
2091
2092         Expose a private flag on WKView to indicate whether it's using a remote layer tree drawing area
2093         https://bugs.webkit.org/show_bug.cgi?id=124317
2094
2095         Reviewed by Anders Carlsson.
2096         
2097         Expose isUsingUISideCompositing on WKView in the private header,
2098         which returns YES if the view is using a DrawingAreaTypeRemoteLayerTree.
2099
2100         * UIProcess/API/mac/WKView.mm:
2101         (-[WKView isUsingUISideCompositing]):
2102         * UIProcess/API/mac/WKViewPrivate.h:
2103
2104 2013-11-13  Csaba Osztrogonác  <ossy@webkit.org>
2105
2106         Maybe the last attempt to fix the GTK build.
2107
2108         * UIProcess/API/gtk/WebKitBackForwardListPrivate.h:
2109         * UIProcess/API/gtk/WebKitContextMenuPrivate.h:
2110
2111 2013-11-13  Csaba Osztrogonác  <ossy@webkit.org>
2112
2113         One more attempt to fix the GTK build.
2114
2115         * UIProcess/API/gtk/WebKitWebViewPrivate.h:
2116
2117 2013-11-13  Anders Carlsson  <andersca@apple.com>
2118
2119         Plug-in processes hang around for 10 sec after Safari quits
2120         https://bugs.webkit.org/show_bug.cgi?id=124314
2121         <rdar://problem/15460613>
2122
2123         Reviewed by Simon Fraser.
2124
2125         Call stopRunLoop instead of instead of RunLoop::stop().
2126
2127         * PluginProcess/PluginProcess.cpp:
2128         (WebKit::PluginProcess::didClose):
2129
2130 2013-11-13  Csaba Osztrogonác  <ossy@webkit.org>
2131
2132         URTBF after r159234.
2133
2134         * CMakeLists.txt:
2135         * GNUmakefile.list.am:
2136         * Shared/efl/WebEventFactory.cpp:
2137         (WebKit::WebEventFactory::createWebTouchEvent):
2138         * UIProcess/API/C/WKGrammarDetail.cpp:
2139         * UIProcess/API/C/efl/WKEventEfl.cpp:
2140         * UIProcess/API/gtk/WebKitBackForwardList.cpp:
2141         (webkitBackForwardListCreateList):
2142         (webkitBackForwardListChanged):
2143         (webkit_back_forward_list_get_back_list_with_limit):
2144         (webkit_back_forward_list_get_forward_list_with_limit):
2145         * UIProcess/API/gtk/WebKitBackForwardListPrivate.h:
2146         * UIProcess/API/gtk/WebKitContextMenu.cpp:
2147         (webkitContextMenuCreate):
2148         * UIProcess/API/gtk/WebKitContextMenuItem.cpp:
2149         (webkitContextMenuItemCreate):
2150         * UIProcess/API/gtk/WebKitContextMenuPrivate.h:
2151         * UIProcess/API/gtk/WebKitCookieManager.cpp:
2152         (webkitCookieManagerGetDomainsWithCookiesCallback):
2153         * UIProcess/API/gtk/WebKitFileChooserRequest.cpp:
2154         (webkit_file_chooser_request_get_mime_types):
2155         (webkit_file_chooser_request_get_mime_types_filter):
2156         (webkit_file_chooser_request_select_files):
2157         (webkit_file_chooser_request_get_selected_files):
2158         * UIProcess/API/gtk/WebKitWebView.cpp:
2159         (webkitWebViewPopulateContextMenu):
2160         * UIProcess/API/gtk/WebKitWebViewGroup.cpp:
2161         (toImmutableArray):
2162         (webkit_web_view_group_add_user_style_sheet):
2163         * UIProcess/API/gtk/WebKitWebViewPrivate.h:
2164         * UIProcess/WebGrammarDetail.cpp:
2165         (WebKit::WebGrammarDetail::create):
2166         (WebKit::WebGrammarDetail::WebGrammarDetail):
2167         (WebKit::WebGrammarDetail::guesses):
2168         * UIProcess/WebGrammarDetail.h:
2169         * UIProcess/WebTextCheckerClient.cpp:
2170         (WebKit::WebTextCheckerClient::checkGrammarOfString):
2171         (WebKit::WebTextCheckerClient::guessesForWord):
2172         * UIProcess/efl/WebUIPopupMenuClient.cpp:
2173         (WebUIPopupMenuClient::showPopupMenu):
2174
2175 2013-11-13  Anders Carlsson  <andersca@apple.com>
2176
2177         Fix build.
2178
2179         Not sure why these weren't added.
2180
2181         * Shared/APIArray.cpp: Added.
2182         * Shared/APIArray.h: Added.
2183
2184 2013-11-13  Anders Carlsson  <andersca@apple.com>
2185
2186         Rename ImmutableArray to API::Array
2187         https://bugs.webkit.org/show_bug.cgi?id=124307
2188
2189         Reviewed by Andreas Kling.
2190
2191         * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
2192         (ensureObjectStream):
2193         (-[WKRemoteObjectDecoder initWithInterface:rootObjectDictionary:WebKit::]):
2194         * Shared/API/c/WKArray.cpp:
2195         (WKArrayGetTypeID):
2196         (WKArrayCreate):
2197         (WKArrayCreateAdoptingValues):
2198         * Shared/API/c/WKContextMenuItem.cpp:
2199         * Shared/API/c/WKDictionary.cpp:
2200         (WKDictionaryCopyKeys):
2201         * Shared/API/c/WKMutableArray.cpp:
2202         (WKMutableArrayCreate):
2203         * Shared/API/c/WKRenderObject.cpp:
2204         (WKRenderObjectGetChildren):
2205         * Shared/API/c/WKSharedAPICast.h:
2206         (WebKit::toImpl):
2207         * Shared/API/c/mac/WKWebArchive.cpp:
2208         (WKWebArchiveCopySubresources):
2209         (WKWebArchiveCopySubframeArchives):
2210         * Shared/APIArray.cpp: Renamed from Source/WebKit2/Shared/ImmutableArray.cpp.
2211         (API::Array::create):
2212         (API::Array::createStringArray):
2213         (API::Array::Array):
2214         (API::Array::~Array):
2215         * Shared/APIArray.h: Renamed from Source/WebKit2/Shared/ImmutableArray.h.
2216         * Shared/Cocoa/WKNSArray.h:
2217         (wrapper):
2218         * Shared/Cocoa/WKNSArray.mm:
2219         (-[WKNSArray dealloc]):
2220         (-[WKNSArray count]):
2221         (-[WKNSArray objectAtIndex:]):
2222         (-[WKNSArray API::]):
2223         * Shared/ImmutableDictionary.cpp:
2224         (WebKit::ImmutableDictionary::keys):
2225         * Shared/ImmutableDictionary.h:
2226         * Shared/SecurityOriginData.cpp:
2227         (WebKit::performAPICallbackWithSecurityOriginDataVector):
2228         * Shared/UserMessageCoders.h:
2229         (WebKit::UserMessageEncoder::baseEncode):
2230         (WebKit::UserMessageDecoder::baseDecode):
2231         * Shared/WebArchive.cpp:
2232         (WebKit::WebArchive::create):
2233         (WebKit::WebArchive::WebArchive):
2234         (WebKit::WebArchive::subresources):
2235         (WebKit::WebArchive::subframeArchives):
2236         * Shared/WebArchive.h:
2237         * Shared/WebContextMenuItem.cpp:
2238         (WebKit::WebContextMenuItem::create):
2239         (WebKit::WebContextMenuItem::submenuItemsAsImmutableArray):
2240         * Shared/WebContextMenuItem.h:
2241         * Shared/WebOpenPanelParameters.cpp:
2242         (WebKit::WebOpenPanelParameters::acceptMIMETypes):
2243         (WebKit::WebOpenPanelParameters::selectedFileNames):
2244         * Shared/WebOpenPanelParameters.h:
2245         * Shared/WebRenderLayer.cpp:
2246         (WebKit::WebRenderLayer::create):
2247         (WebKit::WebRenderLayer::createArrayFromLayerList):
2248         (WebKit::WebRenderLayer::WebRenderLayer):
2249         * Shared/WebRenderLayer.h:
2250         (WebKit::WebRenderLayer::negativeZOrderList):
2251         (WebKit::WebRenderLayer::normalFlowList):
2252         (WebKit::WebRenderLayer::positiveZOrderList):
2253         * Shared/WebRenderObject.cpp:
2254         (WebKit::WebRenderObject::create):
2255         (WebKit::WebRenderObject::WebRenderObject):
2256         (WebKit::WebRenderObject::~WebRenderObject):
2257         * Shared/WebRenderObject.h:
2258         (WebKit::WebRenderObject::children):
2259         (WebKit::WebRenderObject::elementClassNames):
2260         * UIProcess/API/C/WKBackForwardListRef.cpp:
2261         * UIProcess/API/C/WKOpenPanelParameters.cpp:
2262         * UIProcess/API/C/WKPage.cpp:
2263         * UIProcess/API/C/mac/WKContextPrivateMac.mm:
2264         (WKContextGetInfoForInstalledPlugIns):
2265         * UIProcess/API/Cocoa/WKBackForwardList.mm:
2266         (-[WKBackForwardList backListWithLimit:]):
2267         (-[WKBackForwardList forwardListWithLimit:]):
2268         * UIProcess/API/mac/WKBrowsingContextGroup.mm:
2269         (createWKArray):
2270         * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
2271         (WebKit::WebNotificationManagerProxy::populateCopyOfNotificationPermissions):
2272         (WebKit::WebNotificationManagerProxy::providerDidCloseNotifications):
2273         (WebKit::WebNotificationManagerProxy::providerDidRemoveNotificationPolicies):
2274         * UIProcess/Notifications/WebNotificationManagerProxy.h:
2275         * UIProcess/Notifications/WebNotificationProvider.cpp:
2276         (WebKit::WebNotificationProvider::clearNotifications):
2277         * UIProcess/Plugins/PlugInAutoStartProvider.cpp:
2278         (WebKit::PlugInAutoStartProvider::setAutoStartOriginsArray):
2279         * UIProcess/Plugins/PlugInAutoStartProvider.h:
2280         * UIProcess/Plugins/WebPluginSiteDataManager.cpp:
2281         (WebKit::WebPluginSiteDataManager::didGetSitesWithData):
2282         (WebKit::WebPluginSiteDataManager::clearSiteData):
2283         * UIProcess/Plugins/WebPluginSiteDataManager.h:
2284         * UIProcess/StatisticsRequest.cpp:
2285         (WebKit::StatisticsRequest::completedRequest):
2286         * UIProcess/WebApplicationCacheManagerProxy.h:
2287         * UIProcess/WebBackForwardList.cpp:
2288         (WebKit::WebBackForwardList::backListAsImmutableArrayWithLimit):
2289         (WebKit::WebBackForwardList::forwardListAsImmutableArrayWithLimit):
2290         * UIProcess/WebBackForwardList.h:
2291         * UIProcess/WebContext.cpp:
2292         (WebKit::WebContext::setPlugInAutoStartOrigins):
2293         (WebKit::WebContext::pluginInfoStoreDidLoadPlugins):
2294         * UIProcess/WebContext.h:
2295         * UIProcess/WebContextClient.cpp:
2296         (WebKit::WebContextClient::plugInInformationBecameAvailable):
2297         * UIProcess/WebContextClient.h:
2298         * UIProcess/WebCookieManagerProxy.cpp:
2299         (WebKit::WebCookieManagerProxy::didGetHostnamesWithCookies):
2300         * UIProcess/WebCookieManagerProxy.h:
2301         * UIProcess/WebDatabaseManagerProxy.cpp:
2302         (WebKit::WebDatabaseManagerProxy::didGetDatabasesByOrigin):
2303         (WebKit::WebDatabaseManagerProxy::didGetDatabaseOrigins):
2304         * UIProcess/WebFindClient.cpp:
2305         (WebKit::WebFindMatchesClient::didFindStringMatches):
2306         * UIProcess/WebFindClient.h:
2307         * UIProcess/WebFrameProxy.h:
2308         * UIProcess/WebKeyValueStorageManager.cpp:
2309         (WebKit::didGetKeyValueStorageOrigins):
2310         * UIProcess/WebKeyValueStorageManager.h:
2311         * UIProcess/WebLoaderClient.cpp:
2312         (WebKit::WebLoaderClient::didChangeBackForwardList):
2313         * UIProcess/WebMediaCacheManagerProxy.cpp:
2314         (WebKit::WebMediaCacheManagerProxy::didGetHostnamesWithMediaCache):
2315         * UIProcess/WebMediaCacheManagerProxy.h:
2316         * UIProcess/WebOpenPanelResultListenerProxy.cpp:
2317         (WebKit::WebOpenPanelResultListenerProxy::chooseFiles):
2318         * UIProcess/WebOpenPanelResultListenerProxy.h:
2319         * UIProcess/WebOriginDataManagerProxy.h:
2320         * UIProcess/WebPageContextMenuClient.cpp:
2321         (WebKit::WebPageContextMenuClient::getContextMenuFromProposedMenu):
2322         (WebKit::WebPageContextMenuClient::showContextMenu):
2323         * UIProcess/WebPageGroup.cpp:
2324         (WebKit::toStringVector):
2325         (WebKit::WebPageGroup::addUserStyleSheet):
2326         (WebKit::WebPageGroup::addUserScript):
2327         * UIProcess/WebPageGroup.h:
2328         * UIProcess/WebPageProxy.cpp:
2329         (WebKit::WebPageProxy::relatedPages):
2330         (WebKit::WebPageProxy::didFindStringMatches):
2331         * UIProcess/WebPageProxy.h:
2332         * UIProcess/WebResourceCacheManagerProxy.cpp:
2333         * WebKit2.xcodeproj/project.pbxproj:
2334         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
2335         (WKBundleCopyOriginsWithApplicationCache):
2336         * WebProcess/InjectedBundle/API/c/WKBundleBackForwardListItem.cpp:
2337         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
2338         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
2339         (contextMenuItems):
2340         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2341         (WebKit::InjectedBundle::originsWithApplicationCache):
2342         (WebKit::toStringVector):
2343         (WebKit::InjectedBundle::addUserScript):
2344         (WebKit::InjectedBundle::addUserStyleSheet):
2345         * WebProcess/InjectedBundle/InjectedBundle.h:
2346         * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.cpp:
2347         (WebKit::InjectedBundleBackForwardListItem::children):
2348         * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.h:
2349         * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp:
2350         (WebKit::InjectedBundlePageContextMenuClient::getCustomMenuFromDefaultItems):
2351         * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp:
2352         (WebKit::InjectedBundlePageEditorClient::getPasteboardDataForRange):
2353         * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
2354         (WebKit::InjectedBundlePageFormClient::didAssociateFormControls):
2355         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
2356         (WebKit::InjectedBundlePageLoaderClient::featuresUsedInPage):
2357         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2358         (WebKit::findLargestFrameInFrameSet):
2359         * WebProcess/WebPage/WebFrame.cpp:
2360         (WebKit::WebFrame::childFrames):
2361         * WebProcess/WebPage/WebFrame.h:
2362         * WebProcess/WebPage/WebPage.cpp:
2363         (WebKit::WebPage::trackedRepaintRects):
2364         * WebProcess/WebPage/WebPage.h:
2365
2366 2013-11-13  Nick Diego Yamane  <nick.yamane@openbossa.org>
2367
2368         [GTK] Fix build after r159222
2369         https://bugs.webkit.org/show_bug.cgi?id=124305
2370
2371         Reviewed by Tim Horton.
2372
2373         WebGraphicsContext and its API has been removed.
2374
2375         * CMakeLists.txt:
2376         * GNUmakefile.list.am:
2377         * Shared/API/c/gtk/WKGraphicsContextGtk.cpp: Removed.
2378         * Shared/API/c/gtk/WKGraphicsContextGtk.h: Removed.
2379
2380 2013-11-13  Tim Horton  <timothy_horton@apple.com>
2381
2382         Remove redundant return after r159173
2383         https://bugs.webkit.org/show_bug.cgi?id=124303
2384
2385         Reviewed by Geoff Garen.
2386
2387         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
2388         (WebKit::WebPlatformStrategies::loadResourceSynchronously):
2389         Remove redundant return.
2390
2391 2013-11-13  Michał Pakuła vel Rutka  <m.pakula@samsung.com>
2392
2393         Unreviewed EFL build fix after r159222.
2394
2395         * CMakeLists.txt:
2396
2397 2013-11-13  Anders Carlsson  <andersca@apple.com>
2398
2399         Remove WebGraphicsContext
2400         https://bugs.webkit.org/show_bug.cgi?id=124302
2401
2402         Reviewed by Dan Bernstein.
2403
2404         WebGraphicsContext and its API "object", WKGraphicsContextRef was only used
2405         for the overhang paint callback which has been removed.
2406
2407         * Shared/API/c/WKDeprecatedFunctions.cpp:
2408         (WKGraphicsContextGetCGContext):
2409         * Shared/API/c/WKGraphicsContext.cpp: Removed.
2410         * Shared/API/c/WKGraphicsContext.h: Removed.
2411         * Shared/API/c/cg/WKGraphicsContextCG.cpp: Removed.
2412         * Shared/API/c/cg/WKGraphicsContextCG.h: Removed.
2413         * Shared/APIObject.h:
2414         * Shared/WebGraphicsContext.cpp: Removed.
2415         * Shared/WebGraphicsContext.h: Removed.
2416         * UIProcess/API/C/WebKit2_C.h:
2417         * WebKit2.xcodeproj/project.pbxproj:
2418         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
2419
2420 2013-11-13  Anders Carlsson  <andersca@apple.com>
2421
2422         WKArrayIsMutable should not be mangled
2423         https://bugs.webkit.org/show_bug.cgi?id=124299
2424
2425         Reviewed by Andreas Kling.
2426
2427         * Shared/API/c/WKDeprecatedFunctions.cpp:
2428
2429 2013-11-13  Anders Carlsson  <andersca@apple.com>
2430
2431         Move provisional load state handling to FrameLoadState
2432         https://bugs.webkit.org/show_bug.cgi?id=124291
2433
2434         Reviewed by Dan Bernstein.
2435
2436         * UIProcess/FrameLoadState.cpp:
2437         (WebKit::FrameLoadState::didStartProvisionalLoad):
2438         (WebKit::FrameLoadState::didReceiveServerRedirectForProvisionalLoad):
2439         (WebKit::FrameLoadState::didFailProvisionalLoad):
2440         * UIProcess/FrameLoadState.h:
2441         * UIProcess/WebFrameProxy.cpp:
2442         (WebKit::WebFrameProxy::didStartProvisionalLoad):
2443         (WebKit::WebFrameProxy::didReceiveServerRedirectForProvisionalLoad):
2444         (WebKit::WebFrameProxy::didFailProvisionalLoad):
2445
2446 2013-11-13  Csaba Osztrogonác  <ossy@webkit.org>
2447
2448         One more fix after r159197.
2449
2450         * UIProcess/efl/EwkTouchEvent.h:
2451         * UIProcess/efl/EwkTouchPoint.h:
2452
2453 2013-11-13  Brendan Long  <b.long@cablelabs.com>
2454
2455         [Gtk][EFL] Fix builds by updating Object::TypeX to Object::Type::X
2456         https://bugs.webkit.org/show_bug.cgi?id=124289
2457
2458         Reviewed by Alexey Proskuryakov.
2459
2460         * Shared/API/c/WKContextMenuItem.cpp:
2461         (WKContextMenuItemGetTypeID):
2462         * Shared/WebBatteryStatus.h:
2463         * Shared/WebNetworkInfo.h:
2464         * UIProcess/API/C/WKGrammarDetail.cpp:
2465         (WKGrammarDetailGetTypeID):
2466         * UIProcess/API/C/WKPluginSiteDataManager.cpp:
2467         (WKPluginSiteDataManagerGetTypeID):
2468         * UIProcess/CoordinatedGraphics/WebView.h:
2469         * UIProcess/WebBatteryManagerProxy.h:
2470         * UIProcess/WebNetworkInfoManagerProxy.h:
2471         * UIProcess/WebTextChecker.h:
2472         * UIProcess/WebVibrationProxy.h:
2473         * UIProcess/WebViewportAttributes.h:
2474         * UIProcess/efl/WebPopupItemEfl.h:
2475         * UIProcess/soup/WebSoupRequestManagerProxy.h:
2476
2477 2013-11-13  Tamas Gergely  <gertom@inf.u-szeged.hu>
2478
2479         Remove prefixed template class processing from message receiver generator.
2480         https://bugs.webkit.org/show_bug.cgi?id=123095
2481
2482         Reviewed by Anders Carlsson.
2483
2484         There was a FIXME in messages.py to remove unprefixed WTF template classes,
2485         but in the discussion of the bug report we concluded that in the messages.in
2486         files we should follow the C++ naming convention where none of the WTF
2487         classes require the WTF prefix.
2488
2489         * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
2490         * Scripts/webkit2/messages.py:
2491         (class_template_headers):
2492         * Scripts/webkit2/messages_unittest.py:
2493         (std):
2494         * UIProcess/Storage/StorageManager.messages.in:
2495         * UIProcess/WebPageProxy.messages.in:
2496         * WebProcess/WebPage/WebPage.messages.in:
2497
2498 2013-11-13  Csaba Osztrogonác  <ossy@webkit.org>
2499
2500         URTBF after r159199 to make cmake and GTK build happy.
2501
2502         * CMakeLists.txt:
2503         * GNUmakefile.list.am:
2504
2505 2013-11-13  Anders Carlsson  <andersca@apple.com>
2506
2507         Add WKDeprecatedFunctions.cpp and move WKArrayIsMutable there
2508         https://bugs.webkit.org/show_bug.cgi?id=124284
2509
2510         Reviewed by Andreas Kling.
2511
2512         * Shared/API/c/WKDeprecatedFunctions.cpp: Copied from Source/WebKit2/Shared/API/c/WKMutableArray.h.
2513         (WKArrayIsMutable):
2514         * Shared/API/c/WKMutableArray.cpp:
2515         * Shared/API/c/WKMutableArray.h:
2516         * WebKit2.xcodeproj/project.pbxproj:
2517
2518 2013-11-12  Anders Carlsson  <andersca@apple.com>
2519
2520         API::Object::Type should be a strongly typed enum
2521         https://bugs.webkit.org/show_bug.cgi?id=124258
2522
2523         Reviewed by Tim Horton.
2524
2525         * Shared/API/Cocoa/WKRemoteObjectRegistry.mm:
2526         (-[WKRemoteObjectRegistry _handleMessageWithName:body:]):
2527         * Shared/APIObject.h:
2528         * Shared/Cocoa/APIObject.mm:
2529         (API::Object::newObject):
2530         * Shared/ImmutableArray.h:
2531         * Shared/ImmutableDictionary.h:
2532         * Shared/UserMessageCoders.h:
2533         (WebKit::UserMessageEncoder::baseEncode):
2534         (WebKit::UserMessageDecoder::baseDecode):
2535         * Shared/WebArchive.h:
2536         * Shared/WebArchiveResource.h:
2537         * Shared/WebBackForwardListItem.h:
2538         * Shared/WebCertificateInfo.h:
2539         * Shared/WebConnection.h:
2540         * Shared/WebContextMenuItem.h:
2541         * Shared/WebData.h:
2542         * Shared/WebError.h:
2543         * Shared/WebGeolocationPosition.h:
2544         * Shared/WebGeometry.h:
2545         * Shared/WebGraphicsContext.h:
2546         * Shared/WebHitTestResult.h:
2547         * Shared/WebImage.h:
2548         * Shared/WebNumber.h:
2549         * Shared/WebOpenPanelParameters.h:
2550         * Shared/WebRenderLayer.h:
2551         * Shared/WebRenderObject.h:
2552         * Shared/WebSecurityOrigin.h:
2553         * Shared/WebSerializedScriptValue.h:
2554         * Shared/WebString.h:
2555         * Shared/WebURL.h:
2556         * Shared/WebURLRequest.h:
2557         * Shared/WebURLResponse.h:
2558         * Shared/WebUserContentURLPattern.h:
2559         * Shared/mac/ObjCObjectGraph.h:
2560         * UIProcess/Authentication/AuthenticationChallengeProxy.h:
2561         * UIProcess/Authentication/AuthenticationDecisionListener.h:
2562         * UIProcess/Authentication/WebCredential.h:
2563         * UIProcess/Authentication/WebProtectionSpace.h:
2564         * UIProcess/Downloads/DownloadProxy.h:
2565         * UIProcess/GeolocationPermissionRequestProxy.h:
2566         * UIProcess/Notifications/NotificationPermissionRequest.h:
2567         * UIProcess/Notifications/WebNotification.h:
2568         * UIProcess/Notifications/WebNotificationManagerProxy.h:
2569         * UIProcess/Plugins/WebPluginSiteDataManager.h:
2570         * UIProcess/WebApplicationCacheManagerProxy.h:
2571         * UIProcess/WebBackForwardList.h:
2572         * UIProcess/WebColorPickerResultListenerProxy.h:
2573         * UIProcess/WebContext.h:
2574         * UIProcess/WebContextUserMessageCoders.h:
2575         (WebKit::WebContextUserMessageEncoder::encode):
2576         (WebKit::WebContextUserMessageDecoder::decode):
2577         * UIProcess/WebCookieManagerProxy.h:
2578         * UIProcess/WebDatabaseManagerProxy.h:
2579         * UIProcess/WebEditCommandProxy.h:
2580         * UIProcess/WebFormSubmissionListenerProxy.h:
2581         * UIProcess/WebFramePolicyListenerProxy.h:
2582         * UIProcess/WebFrameProxy.h:
2583         * UIProcess/WebGeolocationManagerProxy.h:
2584         * UIProcess/WebGrammarDetail.h:
2585         * UIProcess/WebIconDatabase.h:
2586         * UIProcess/WebInspectorProxy.h:
2587         * UIProcess/WebKeyValueStorageManager.h:
2588         * UIProcess/WebMediaCacheManagerProxy.h:
2589         * UIProcess/WebNavigationData.h:
2590         * UIProcess/WebOpenPanelResultListenerProxy.h:
2591         * UIProcess/WebOriginDataManagerProxy.h:
2592         * UIProcess/WebPageGroup.h:
2593         * UIProcess/WebPageProxy.h:
2594         * UIProcess/WebPreferences.h:
2595         * UIProcess/WebResourceCacheManagerProxy.h:
2596         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
2597         * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.h:
2598         * WebProcess/InjectedBundle/InjectedBundle.h:
2599         * WebProcess/InjectedBundle/InjectedBundleBackForwardList.h:
2600         * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.h:
2601         * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.h:
2602         * WebProcess/InjectedBundle/InjectedBundleHitTestResult.h:
2603         * WebProcess/InjectedBundle/InjectedBundleNavigationAction.h:
2604         * WebProcess/InjectedBundle/InjectedBundleScriptWorld.h:
2605         * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
2606         (WebKit::InjectedBundleUserMessageEncoder::encode):
2607         (WebKit::InjectedBundleUserMessageDecoder::decode):
2608         * WebProcess/InjectedBundle/mac/InjectedBundleMac.mm:
2609         (WebKit::InjectedBundle::load):
2610         * WebProcess/WebPage/PageBanner.h:
2611         * WebProcess/WebPage/PageOverlay.h:
2612         * WebProcess/WebPage/WebFrame.h:
2613         * WebProcess/WebPage/WebInspector.h:
2614         * WebProcess/WebPage/WebPage.h:
2615         * WebProcess/WebPage/WebPageGroupProxy.h:
2616         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
2617         (-[WKAccessibilityWebPageObject accessibilityParameterizedAttributeNames]):
2618         (-[WKAccessibilityWebPageObject accessibilityAttributeValue:forParameter:]):
2619
2620 2013-11-13  Anders Carlsson  <andersca@apple.com>
2621
2622         Remove custom overhang area painting code
2623         https://bugs.webkit.org/show_bug.cgi?id=124282
2624
2625         Reviewed by Andreas Kling.
2626
2627         This code was only used by the Mac port, to draw the linen background color on Lion.
2628         We now do that on the GPU instead so get rid of this code.
2629
2630         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
2631         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
2632         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
2633         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2634         * WebProcess/WebCoreSupport/WebChromeClient.h:
2635
2636 2013-11-13  Sergio Correia  <sergio.correia@openbossa.org>
2637
2638         [EFL][WK2] Convert some more OwnPtr/PassOwnPtr to std::unique_ptr
2639         https://bugs.webkit.org/show_bug.cgi?id=124241
2640
2641         Reviewed by Gyuyoung Kim.
2642
2643         The modified files are located under UIProcess/{efl,API/efl}.
2644
2645         * UIProcess/API/efl/EwkView.cpp:
2646         * UIProcess/API/efl/EwkView.h:
2647         * UIProcess/API/efl/GestureRecognizer.cpp:
2648         * UIProcess/API/efl/GestureRecognizer.h:
2649         * UIProcess/API/efl/ewk_back_forward_list_private.h:
2650         * UIProcess/API/efl/ewk_color_picker_private.h:
2651         * UIProcess/API/efl/ewk_context.cpp:
2652         * UIProcess/API/efl/ewk_context_menu.cpp:
2653         * UIProcess/API/efl/ewk_context_menu_item.cpp:
2654         * UIProcess/API/efl/ewk_context_menu_item_private.h:
2655         * UIProcess/API/efl/ewk_context_private.h:
2656         * UIProcess/API/efl/ewk_cookie_manager.cpp:
2657         * UIProcess/API/efl/ewk_cookie_manager_private.h:
2658         * UIProcess/API/efl/ewk_database_manager_private.h:
2659         * UIProcess/API/efl/ewk_favicon_database_private.h:
2660         * UIProcess/API/efl/ewk_popup_menu.cpp:
2661         * UIProcess/API/efl/ewk_popup_menu_item_private.h:
2662         * UIProcess/API/efl/ewk_popup_menu_private.h:
2663         * UIProcess/API/efl/ewk_settings_private.h:
2664         * UIProcess/API/efl/ewk_storage_manager.cpp:
2665         * UIProcess/API/efl/ewk_storage_manager_private.h:
2666         * UIProcess/API/efl/ewk_view.cpp:
2667         * UIProcess/API/efl/tests/test_ewk2_auth_request.cpp:
2668         * UIProcess/API/efl/tests/test_ewk2_back_forward_list.cpp:
2669         * UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp:
2670         * UIProcess/API/efl/tests/test_ewk2_download_job.cpp:
2671         * UIProcess/API/efl/tests/test_ewk2_favicon_database.cpp:
2672         * UIProcess/API/efl/tests/test_ewk2_refptr_evas_object.cpp:
2673         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
2674         * UIProcess/efl/ContextHistoryClientEfl.h:
2675         * UIProcess/efl/ContextMenuClientEfl.h:
2676         * UIProcess/efl/DownloadManagerEfl.h:
2677         * UIProcess/efl/FindClientEfl.h:
2678         * UIProcess/efl/FormClientEfl.h:
2679         * UIProcess/efl/PageLoadClientEfl.h:
2680         * UIProcess/efl/PagePolicyClientEfl.h:
2681         * UIProcess/efl/PageUIClientEfl.h:
2682         * UIProcess/efl/PageViewportControllerClientEfl.h:
2683         * UIProcess/efl/RequestManagerClientEfl.h:
2684         * UIProcess/efl/VibrationClientEfl.cpp:
2685         * UIProcess/efl/VibrationClientEfl.h:
2686         * UIProcess/efl/ViewClientEfl.h:
2687
2688 2013-11-12  Alexey Proskuryakov  <ap@apple.com>
2689
2690         Disable WebCrypto on Mountain Lion
2691         https://bugs.webkit.org/show_bug.cgi?id=124261
2692
2693         Rubber-stamped by Sam Weinig.
2694
2695         * Configurations/FeatureDefines.xcconfig:
2696
2697 2013-11-12  Nick Diego Yamane  <nick.yamane@openbossa.org>
2698
2699         [GTK][EFL] More on renaming WebKit::APIObject to API::Object
2700         https://bugs.webkit.org/show_bug.cgi?id=124255
2701
2702         Reviewed by Anders Carlsson.
2703
2704         In r159163 WebKit::APIObject has been renamed to API::Object.
2705         This patch refactors the remaining files which were still
2706         using WebKit::APIObject and WebKit::TypedAPIObject.
2707
2708         * Shared/WebBatteryStatus.h:
2709         * Shared/WebNetworkInfo.h:
2710         * UIProcess/API/C/WKGrammarDetail.cpp:
2711         * UIProcess/API/gtk/WebKitContextMenuItem.cpp:
2712         * UIProcess/API/gtk/WebKitFileChooserRequest.cpp:
2713         * UIProcess/API/gtk/WebKitWebViewGroup.cpp:
2714         * UIProcess/CoordinatedGraphics/WebView.h:
2715         * UIProcess/WebBatteryManagerProxy.cpp:
2716         * UIProcess/WebBatteryManagerProxy.h:
2717         * UIProcess/WebGrammarDetail.cpp:
2718         * UIProcess/WebNetworkInfoManagerProxy.cpp:
2719         * UIProcess/WebNetworkInfoManagerProxy.h:
2720         * UIProcess/WebTextChecker.h:
2721         * UIProcess/WebVibrationProxy.h:
2722         * UIProcess/WebViewportAttributes.h:
2723         * UIProcess/efl/EwkTouchEvent.h:
2724         * UIProcess/efl/EwkTouchPoint.h:
2725         * UIProcess/efl/WebPopupItemEfl.h:
2726         * UIProcess/efl/WebUIPopupMenuClient.cpp:
2727         * UIProcess/gtk/WebFullScreenClientGtk.h:
2728         * UIProcess/gtk/WebInspectorClientGtk.h:
2729         * UIProcess/soup/WebSoupRequestManagerProxy.cpp:
2730         * UIProcess/soup/WebSoupRequestManagerProxy.h:
2731         * WebProcess/InjectedBundle/efl/InjectedBundleEfl.cpp:
2732         * WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp:
2733
2734 2013-11-12  Anders Carlsson  <andersca@apple.com>
2735
2736         fast/canvas/webgl/draw-arrays-out-of-bounds.html is flaky on Mavericks WK2 testers, fails about 20% of the time
2737         https://bugs.webkit.org/show_bug.cgi?id=124223
2738         <rdar://problem/15333977>
2739
2740         Reviewed by Tim Horton.
2741
2742         It's wrong to use DataReferences in sync IPC replies; the underlying MessageDecoder will be freed after the call to
2743         sendSync returns and the DataReference will point to freed memory. Use a Vector<char> instead.
2744
2745         * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
2746         * NetworkProcess/SynchronousNetworkLoaderClient.cpp:
2747         (WebKit::SynchronousNetworkLoaderClient::didReceiveBuffer):
2748         (WebKit::SynchronousNetworkLoaderClient::sendDelayedReply):
2749         * NetworkProcess/SynchronousNetworkLoaderClient.h:
2750         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
2751         (WebKit::WebPlatformStrategies::loadResourceSynchronously):
2752
2753 2013-11-12  Gustavo Noronha Silva  <gns@gnome.org>
2754
2755         Unreviewed try at fixing the GTK+ build.
2756
2757         * UIProcess/soup/WebSoupRequestManagerProxy.h: rename TypedAPIObject to API:TypedObject.
2758
2759 2013-11-12  Nick Diego Yamane  <nick.yamane@openbossa.org>
2760
2761         [EFL][GTK] Remove MutableArray leftovers from build systems
2762         https://bugs.webkit.org/show_bug.cgi?id=124248
2763
2764         Reviewed by Anders Carlsson.
2765
2766         MutableArray.cpp and .h file has been removed by r159155.
2767
2768         * CMakeLists.txt:
2769         * GNUmakefile.list.am:
2770
2771 2013-11-12  Anders Carlsson  <andersca@apple.com>
2772
2773         Rename APIObject to API::Object
2774         https://bugs.webkit.org/show_bug.cgi?id=124247
2775
2776         Reviewed by Tim Horton.
2777
2778         * Shared/API/Cocoa/WKRemoteObjectRegistry.mm:
2779         (-[WKRemoteObjectRegistry _handleMessageWithName:body:]):
2780         * Shared/API/c/WKArray.cpp:
2781         (WKArrayCreate):
2782         (WKArrayCreateAdoptingValues):
2783         * Shared/API/c/WKContextMenuItem.cpp:
2784         (WKContextMenuItemGetTypeID):
2785         * Shared/API/c/WKSharedAPICast.h:
2786         (WebKit::toAPI):
2787         * Shared/API/c/WKType.cpp:
2788         (WKGetTypeID):
2789         (WKRetain):
2790         (WKRelease):
2791         * Shared/APIObject.cpp:
2792         (API::Object::Object):
2793         * Shared/APIObject.h:
2794         (API::Object::~Object):
2795         (API::TypedObject::~TypedObject):
2796         (API::TypedObject::TypedObject):
2797         * Shared/Cocoa/APIObject.mm:
2798         (API::Object::ref):
2799         (API::Object::deref):
2800         (API::Object::newObject):
2801         * Shared/Cocoa/WKNSArray.mm:
2802         (-[WKNSArray objectAtIndex:]):
2803         (-[WKNSArray API::]):
2804         * Shared/Cocoa/WKNSDictionary.mm:
2805         (-[WKNSDictionary objectForKey:]):
2806         (-[WKNSDictionary API::]):
2807         * Shared/Cocoa/WKObject.h:
2808         * Shared/Cocoa/WKObject.mm:
2809         (-[WKObject dealloc]):
2810         (-[WKObject API::]):
2811         * Shared/ImmutableArray.cpp:
2812         (WebKit::ImmutableArray::create):
2813         (WebKit::ImmutableArray::createStringArray):
2814         (WebKit::ImmutableArray::ImmutableArray):
2815         * Shared/ImmutableArray.h:
2816         * Shared/ImmutableDictionary.cpp:
2817         (WebKit::ImmutableDictionary::keys):
2818         * Shared/ImmutableDictionary.h:
2819         (WebKit::ImmutableDictionary::get):
2820         * Shared/MutableDictionary.cpp:
2821         (WebKit::MutableDictionary::add):
2822         (WebKit::MutableDictionary::set):
2823         * Shared/MutableDictionary.h:
2824         * Shared/SecurityOriginData.cpp:
2825         (WebKit::performAPICallbackWithSecurityOriginDataVector):
2826         * Shared/UserMessageCoders.h:
2827         (WebKit::UserMessageEncoder::baseEncode):
2828         (WebKit::UserMessageEncoder::UserMessageEncoder):
2829         (WebKit::UserMessageDecoder::baseDecode):
2830         (WebKit::UserMessageDecoder::UserMessageDecoder):
2831         * Shared/WebArchive.cpp:
2832         (WebKit::WebArchive::subresources):
2833         (WebKit::WebArchive::subframeArchives):
2834         * Shared/WebArchive.h:
2835         * Shared/WebArchiveResource.h:
2836         * Shared/WebBackForwardListItem.h:
2837         * Shared/WebCertificateInfo.h:
2838         * Shared/WebConnection.cpp:
2839         (WebKit::WebConnection::postMessage):
2840         (WebKit::WebConnection::handleMessage):
2841         * Shared/WebConnection.h:
2842         * Shared/WebConnectionClient.cpp:
2843         (WebKit::WebConnectionClient::didReceiveMessage):
2844         * Shared/WebConnectionClient.h:
2845         * Shared/WebContextMenuItem.cpp:
2846         (WebKit::WebContextMenuItem::submenuItemsAsImmutableArray):
2847         (WebKit::WebContextMenuItem::userData):
2848         (WebKit::WebContextMenuItem::setUserData):
2849         * Shared/WebContextMenuItem.h:
2850         * Shared/WebContextMenuItemData.cpp:
2851         (WebKit::WebContextMenuItemData::userData):
2852         (WebKit::WebContextMenuItemData::setUserData):
2853         * Shared/WebContextMenuItemData.h:
2854         * Shared/WebData.h:
2855         * Shared/WebError.h:
2856         * Shared/WebGeolocationPosition.h:
2857         * Shared/WebGeometry.h:
2858         * Shared/WebGraphicsContext.h:
2859         * Shared/WebHitTestResult.h:
2860         * Shared/WebImage.h:
2861         * Shared/WebNumber.h:
2862         * Shared/WebOpenPanelParameters.h:
2863         * Shared/WebRenderLayer.cpp:
2864         (WebKit::WebRenderLayer::createArrayFromLayerList):
2865         * Shared/WebRenderLayer.h:
2866         * Shared/WebRenderObject.cpp:
2867         (WebKit::WebRenderObject::WebRenderObject):
2868         * Shared/WebRenderObject.h:
2869         * Shared/WebSecurityOrigin.h:
2870         * Shared/WebSerializedScriptValue.h:
2871         * Shared/WebString.h:
2872         * Shared/WebURL.h:
2873         * Shared/WebURLRequest.h:
2874         * Shared/WebURLResponse.h:
2875         * Shared/WebUserContentURLPattern.h:
2876         * Shared/mac/ObjCObjectGraph.h:
2877         * Shared/mac/ObjCObjectGraphCoders.mm:
2878         (WebKit::WebContextObjCObjectGraphDecoderImpl::decode):
2879         (WebKit::InjectedBundleObjCObjectGraphDecoderImpl::decode):
2880         * UIProcess/API/C/WKPluginSiteDataManager.cpp:
2881         (WKPluginSiteDataManagerGetTypeID):
2882         * UIProcess/API/C/mac/WKContextPrivateMac.mm:
2883         (WKContextGetInfoForInstalledPlugIns):
2884         * UIProcess/API/Cocoa/WKBackForwardList.mm:
2885         (-[WKBackForwardList API::]):
2886         * UIProcess/API/Cocoa/WKBackForwardListItem.mm:
2887         (-[WKBackForwardListItem API::]):
2888         * UIProcess/API/Cocoa/WKNavigationData.mm:
2889         (-[WKNavigationData API::]):
2890         * UIProcess/API/mac/WKBrowsingContextGroup.mm:
2891         (createWKArray):
2892         * UIProcess/Authentication/AuthenticationChallengeProxy.h:
2893         * UIProcess/Authentication/AuthenticationDecisionListener.h:
2894         * UIProcess/Authentication/WebCredential.h:
2895         * UIProcess/Authentication/WebProtectionSpace.h:
2896         * UIProcess/Downloads/DownloadProxy.h:
2897         * UIProcess/GeolocationPermissionRequestProxy.h:
2898         * UIProcess/Notifications/NotificationPermissionRequest.h:
2899         * UIProcess/Notifications/WebNotification.h:
2900         * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
2901         (WebKit::WebNotificationManagerProxy::refWebContextSupplement):
2902         (WebKit::WebNotificationManagerProxy::derefWebContextSupplement):
2903         * UIProcess/Notifications/WebNotificationManagerProxy.h:
2904         * UIProcess/Notifications/WebNotificationProvider.cpp:
2905         (WebKit::WebNotificationProvider::clearNotifications):
2906         * UIProcess/Plugins/WebPluginSiteDataManager.h:
2907         * UIProcess/StatisticsRequest.cpp:
2908         (WebKit::StatisticsRequest::completedRequest):
2909         * UIProcess/WebApplicationCacheManagerProxy.cpp:
2910         (WebKit::WebApplicationCacheManagerProxy::refWebContextSupplement):
2911         (WebKit::WebApplicationCacheManagerProxy::derefWebContextSupplement):
2912         * UIProcess/WebApplicationCacheManagerProxy.h:
2913         * UIProcess/WebBackForwardList.cpp:
2914         (WebKit::WebBackForwardList::addItem):
2915         (WebKit::WebBackForwardList::backListAsImmutableArrayWithLimit):
2916         (WebKit::WebBackForwardList::forwardListAsImmutableArrayWithLimit):
2917         (WebKit::WebBackForwardList::clear):
2918         * UIProcess/WebBackForwardList.h:
2919         * UIProcess/WebColorPickerResultListenerProxy.h:
2920         * UIProcess/WebConnectionToWebProcess.cpp:
2921         (WebKit::WebConnectionToWebProcess::encodeMessageBody):
2922         (WebKit::WebConnectionToWebProcess::decodeMessageBody):
2923         * UIProcess/WebConnectionToWebProcess.h:
2924         * UIProcess/WebContext.cpp:
2925         (WebKit::WebContext::createNewWebProcess):
2926         (WebKit::WebContext::postMessageToInjectedBundle):
2927         (WebKit::WebContext::didReceiveMessageFromInjectedBundle):
2928         (WebKit::WebContext::didReceiveSynchronousMessageFromInjectedBundle):
2929         (WebKit::WebContext::didReceiveMessage):
2930         (WebKit::WebContext::didReceiveSyncMessage):
2931         (WebKit::WebContext::pluginInfoStoreDidLoadPlugins):
2932         * UIProcess/WebContext.h:
2933         (WebKit::WebContext::setInjectedBundleInitializationUserData):
2934         * UIProcess/WebContextInjectedBundleClient.cpp:
2935         (WebKit::WebContextInjectedBundleClient::didReceiveMessageFromInjectedBundle):
2936         (WebKit::WebContextInjectedBundleClient::didReceiveSynchronousMessageFromInjectedBundle):
2937         (WebKit::WebContextInjectedBundleClient::getInjectedBundleInitializationUserData):
2938         * UIProcess/WebContextInjectedBundleClient.h:
2939         * UIProcess/WebContextUserMessageCoders.h:
2940         (WebKit::WebContextUserMessageEncoder::WebContextUserMessageEncoder):
2941         (WebKit::WebContextUserMessageEncoder::encode):
2942         (WebKit::WebContextUserMessageDecoder::WebContextUserMessageDecoder):
2943         (WebKit::WebContextUserMessageDecoder::decode):
2944         * UIProcess/WebCookieManagerProxy.cpp:
2945         (WebKit::WebCookieManagerProxy::refWebContextSupplement):
2946         (WebKit::WebCookieManagerProxy::derefWebContextSupplement):
2947         * UIProcess/WebCookieManagerProxy.h:
2948         * UIProcess/WebDatabaseManagerProxy.cpp:
2949         (WebKit::WebDatabaseManagerProxy::refWebContextSupplement):
2950         (WebKit::WebDatabaseManagerProxy::derefWebContextSupplement):
2951         (WebKit::WebDatabaseManagerProxy::didGetDatabasesByOrigin):
2952         (WebKit::WebDatabaseManagerProxy::didGetDatabaseOrigins):
2953         * UIProcess/WebDatabaseManagerProxy.h:
2954         * UIProcess/WebEditCommandProxy.h:
2955         * UIProcess/WebFormClient.cpp:
2956         (WebKit::WebFormClient::willSubmitForm):
2957         * UIProcess/WebFormClient.h:
2958         * UIProcess/WebFrameListenerProxy.h:
2959         * UIProcess/WebFrameProxy.h:
2960         * UIProcess/WebGeolocationManagerProxy.cpp:
2961         (WebKit::WebGeolocationManagerProxy::refWebContextSupplement):
2962         (WebKit::WebGeolocationManagerProxy::derefWebContextSupplement):
2963         * UIProcess/WebGeolocationManagerProxy.h:
2964         * UIProcess/WebGrammarDetail.h:
2965         * UIProcess/WebIconDatabase.h:
2966         * UIProcess/WebIconDatabaseClient.h:
2967         * UIProcess/WebInspectorProxy.h:
2968         * UIProcess/WebKeyValueStorageManager.cpp:
2969         (WebKit::WebKeyValueStorageManager::refWebContextSupplement):
2970         (WebKit::WebKeyValueStorageManager::derefWebContextSupplement):
2971         (WebKit::didGetKeyValueStorageOrigins):
2972         * UIProcess/WebKeyValueStorageManager.h:
2973         * UIProcess/WebLoaderClient.cpp:
2974         (WebKit::WebLoaderClient::didStartProvisionalLoadForFrame):
2975         (WebKit::WebLoaderClient::didReceiveServerRedirectForProvisionalLoadForFrame):
2976         (WebKit::WebLoaderClient::didFailProvisionalLoadWithErrorForFrame):
2977         (WebKit::WebLoaderClient::didCommitLoadForFrame):
2978         (WebKit::WebLoaderClient::didFinishDocumentLoadForFrame):
2979         (WebKit::WebLoaderClient::didFinishLoadForFrame):
2980         (WebKit::WebLoaderClient::didFailLoadWithErrorForFrame):
2981         (WebKit::WebLoaderClient::didSameDocumentNavigationForFrame):
2982         (WebKit::WebLoaderClient::didReceiveTitleForFrame):
2983         (WebKit::WebLoaderClient::didFirstLayoutForFrame):
2984         (WebKit::WebLoaderClient::didFirstVisuallyNonEmptyLayoutForFrame):
2985         (WebKit::WebLoaderClient::didLayout):
2986         (WebKit::WebLoaderClient::didRemoveFrameFromHierarchy):
2987         (WebKit::WebLoaderClient::didDisplayInsecureContentForFrame):
2988         (WebKit::WebLoaderClient::didRunInsecureContentForFrame):
2989         (WebKit::WebLoaderClient::didDetectXSSForFrame):
2990         (WebKit::WebLoaderClient::didChangeBackForwardList):
2991         (WebKit::WebLoaderClient::willGoToBackForwardListItem):
2992         * UIProcess/WebLoaderClient.h:
2993         * UIProcess/WebMediaCacheManagerProxy.cpp:
2994         (WebKit::WebMediaCacheManagerProxy::refWebContextSupplement):
2995         (WebKit::WebMediaCacheManagerProxy::derefWebContextSupplement):
2996         * UIProcess/WebMediaCacheManagerProxy.h:
2997         * UIProcess/WebNavigationData.h:
2998         * UIProcess/WebOpenPanelResultListenerProxy.h:
2999         * UIProcess/WebOriginDataManagerProxy.cpp:
3000         (WebKit::WebOriginDataManagerProxy::refWebContextSupplement):
3001         (WebKit::WebOriginDataManagerProxy::derefWebContextSupplement):
3002         * UIProcess/WebOriginDataManagerProxy.h:
3003         * UIProcess/WebPageContextMenuClient.cpp:
3004         (WebKit::WebPageContextMenuClient::getContextMenuFromProposedMenu):
3005         (WebKit::WebPageContextMenuClient::showContextMenu):
3006         * UIProcess/WebPageContextMenuClient.h:
3007         * UIProcess/WebPageGroup.h:
3008         * UIProcess/WebPageProxy.cpp:
3009         (WebKit::WebPageProxy::relatedPages):
3010         (WebKit::WebPageProxy::loadURL):
3011         (WebKit::WebPageProxy::loadURLRequest):
3012         (WebKit::WebPageProxy::loadFile):
3013         (WebKit::WebPageProxy::loadData):
3014         (WebKit::WebPageProxy::loadHTMLString):
3015         (WebKit::WebPageProxy::loadAlternateHTMLString):
3016         (WebKit::WebPageProxy::loadPlainTextString):
3017         (WebKit::WebPageProxy::loadWebArchiveData):
3018         (WebKit::WebPageProxy::didChangeBackForwardList):
3019         (WebKit::WebPageProxy::willGoToBackForwardListItem):
3020         (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
3021         (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame):
3022         (WebKit::WebPageProxy::didFailProvisionalLoadForFrame):
3023         (WebKit::WebPageProxy::didCommitLoadForFrame):
3024         (WebKit::WebPageProxy::didFinishDocumentLoadForFrame):
3025         (WebKit::WebPageProxy::didFinishLoadForFrame):
3026         (WebKit::WebPageProxy::didFailLoadForFrame):
3027         (WebKit::WebPageProxy::didSameDocumentNavigationForFrame):
3028         (WebKit::WebPageProxy::didReceiveTitleForFrame):
3029         (WebKit::WebPageProxy::didFirstLayoutForFrame):
3030         (WebKit::WebPageProxy::didFirstVisuallyNonEmptyLayoutForFrame):
3031         (WebKit::WebPageProxy::didLayout):
3032         (WebKit::WebPageProxy::didRemoveFrameFromHierarchy):
3033         (WebKit::WebPageProxy::didDisplayInsecureContentForFrame):
3034         (WebKit::WebPageProxy::didRunInsecureContentForFrame):
3035         (WebKit::WebPageProxy::didDetectXSSForFrame):
3036         (WebKit::WebPageProxy::decidePolicyForNavigationAction):
3037         (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
3038         (WebKit::WebPageProxy::decidePolicyForResponse):
3039         (WebKit::WebPageProxy::unableToImplementPolicy):
3040         (WebKit::WebPageProxy::willSubmitForm):
3041         (WebKit::WebPageProxy::mouseDidMoveOverElement):
3042         (WebKit::WebPageProxy::didFindStringMatches):
3043         (WebKit::WebPageProxy::postMessageToInjectedBundle):
3044         (WebKit::WebPageProxy::internalShowContextMenu):
3045         * UIProcess/WebPageProxy.h:
3046         * UIProcess/WebPolicyClient.cpp:
3047         (WebKit::WebPolicyClient::decidePolicyForNavigationAction):
3048         (WebKit::WebPolicyClient::decidePolicyForNewWindowAction):
3049         (WebKit::WebPolicyClient::decidePolicyForResponse):
3050         (WebKit::WebPolicyClient::unableToImplementPolicy):
3051         * UIProcess/WebPolicyClient.h:
3052         * UIProcess/WebPreferences.h:
3053         * UIProcess/WebResourceCacheManagerProxy.cpp:
3054         (WebKit::WebResourceCacheManagerProxy::refWebContextSupplement):
3055         (WebKit::WebResourceCacheManagerProxy::derefWebContextSupplement):
3056         * UIProcess/WebResourceCacheManagerProxy.h:
3057         * UIProcess/WebUIClient.cpp:
3058         (WebKit::WebUIClient::mouseDidMoveOverElement):
3059         * UIProcess/WebUIClient.h:
3060         * UIProcess/mac/WebContextMenuProxyMac.mm:
3061         (-[WKUserDataWrapper initWithUserData:API::]):
3062         (-[WKUserDataWrapper API::]):
3063         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
3064         (WKBundlePostSynchronousMessage):
3065         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
3066         (contextMenuItems):
3067         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
3068         * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.h:
3069         * WebProcess/InjectedBundle/InjectedBundle.cpp:
3070         (WebKit::InjectedBundle::postMessage):
3071         (WebKit::InjectedBundle::postSynchronousMessage):
3072         (WebKit::InjectedBundle::originsWithApplicationCache):
3073         (WebKit::InjectedBundle::didReceiveMessage):
3074         (WebKit::InjectedBundle::didReceiveMessageToPage):
3075         * WebProcess/InjectedBundle/InjectedBundle.h:
3076         * WebProcess/InjectedBundle/InjectedBundleBackForwardList.h:
3077         * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.cpp:
3078         (WebKit::InjectedBundleBackForwardListItem::children):
3079         * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.h:
3080         * WebProcess/InjectedBundle/InjectedBundleClient.cpp:
3081         (WebKit::InjectedBundleClient::didReceiveMessage):
3082         (WebKit::InjectedBundleClient::didReceiveMessageToPage):
3083         * WebProcess/InjectedBundle/InjectedBundleClient.h:
3084         * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.h:
3085         * WebProcess/InjectedBundle/InjectedBundleHitTestResult.h:
3086         * WebProcess/InjectedBundle/InjectedBundleNavigationAction.h:
3087         * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp:
3088         (WebKit::InjectedBundlePageContextMenuClient::getCustomMenuFromDefaultItems):
3089         * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.h:
3090         * WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.h:
3091         * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
3092         (WebKit::InjectedBundlePageFormClient::willSubmitForm):
3093         (WebKit::InjectedBundlePageFormClient::didAssociateFormControls):
3094         * WebProcess/InjectedBundle/InjectedBundlePageFormClient.h:
3095         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
3096         (WebKit::InjectedBundlePageLoaderClient::willLoadURLRequest):
3097         (WebKit::InjectedBundlePageLoaderClient::willLoadDataRequest):
3098         (WebKit::InjectedBundlePageLoaderClient::shouldGoToBackForwardListItem):
3099         (WebKit::InjectedBundlePageLoaderClient::didStartProvisionalLoadForFrame):
3100         (WebKit::InjectedBundlePageLoaderClient::didReceiveServerRedirectForProvisionalLoadForFrame):
3101         (WebKit::InjectedBundlePageLoaderClient::didFailProvisionalLoadWithErrorForFrame):
3102         (WebKit::InjectedBundlePageLoaderClient::didCommitLoadForFrame):
3103         (WebKit::InjectedBundlePageLoaderClient::didFinishDocumentLoadForFrame):
3104         (WebKit::InjectedBundlePageLoaderClient::didFinishLoadForFrame):
3105         (WebKit::InjectedBundlePageLoaderClient::didFailLoadWithErrorForFrame):
3106         (WebKit::InjectedBundlePageLoaderClient::didSameDocumentNavigationForFrame):
3107         (WebKit::InjectedBundlePageLoaderClient::didReceiveTitleForFrame):
3108         (WebKit::InjectedBundlePageLoaderClient::didRemoveFrameFromHierarchy):
3109         (WebKit::InjectedBundlePageLoaderClient::didDisplayInsecureContentForFrame):
3110         (WebKit::InjectedBundlePageLoaderClient::didRunInsecureContentForFrame):
3111         (WebKit::InjectedBundlePageLoaderClient::didDetectXSSForFrame):
3112         (WebKit::InjectedBundlePageLoaderClient::didFirstLayoutForFrame):
3113         (WebKit::InjectedBundlePageLoaderClient::didFirstVisuallyNonEmptyLayoutForFrame):
3114         (WebKit::InjectedBundlePageLoaderClient::didLayout):
3115         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
3116         * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp:
3117         (WebKit::InjectedBundlePagePolicyClient::decidePolicyForNavigationAction):
3118         (WebKit::InjectedBundlePagePolicyClient::decidePolicyForNewWindowAction):
3119         (WebKit::InjectedBundlePagePolicyClient::decidePolicyForResponse):
3120         (WebKit::InjectedBundlePagePolicyClient::unableToImplementPolicy):
3121         * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.h:
3122         * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.h:
3123         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
3124         (WebKit::InjectedBundlePageUIClient::mouseDidMoveOverElement):
3125         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
3126         * WebProcess/InjectedBundle/InjectedBundleScriptWorld.h:
3127         * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
3128         (WebKit::InjectedBundleUserMessageEncoder::InjectedBundleUserMessageEncoder):
3129         (WebKit::InjectedBundleUserMessageEncoder::encode):
3130         (WebKit::InjectedBundleUserMessageDecoder::InjectedBundleUserMessageDecoder):
3131         (WebKit::InjectedBundleUserMessageDecoder::decode):
3132         * WebProcess/InjectedBundle/mac/InjectedBundleMac.mm:
3133         (WebKit::InjectedBundle::load):
3134         * WebProcess/WebConnectionToUIProcess.cpp:
3135         (WebKit::WebConnectionToUIProcess::encodeMessageBody):
3136         (WebKit::WebConnectionToUIProcess::decodeMessageBody):
3137         * WebProcess/WebConnectionToUIProcess.h:
3138         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3139         (WebKit::WebChromeClient::mouseDidMoveOverElement):
3140         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
3141         (WebKit::WebFrameLoaderClient::detachedFromParent2):
3142         (WebKit::WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
3143         (WebKit::WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
3144         (WebKit::WebFrameLoaderClient::dispatchDidPushStateWithinPage):
3145         (WebKit::WebFrameLoaderClient::dispatchDidReplaceStateWithinPage):
3146         (WebKit::WebFrameLoaderClient::dispatchDidPopStateWithinPage):
3147         (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
3148         (WebKit::WebFrameLoaderClient::dispatchDidReceiveTitle):
3149         (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
3150         (WebKit::WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
3151         (WebKit::WebFrameLoaderClient::dispatchDidFailLoad):
3152         (WebKit::WebFrameLoaderClient::dispatchDidFinishDocumentLoad):
3153         (WebKit::WebFrameLoaderClient::dispatchDidFinishLoad):
3154         (WebKit::WebFrameLoaderClient::dispatchDidLayout):
3155         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
3156         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
3157         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
3158         (WebKit::WebFrameLoaderClient::dispatchUnableToImplementPolicy):
3159         (WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
3160         (WebKit::WebFrameLoaderClient::shouldGoToHistoryItem):
3161         (WebKit::WebFrameLoaderClient::didDisplayInsecureContent):
3162         (WebKit::WebFrameLoaderClient::didRunInsecureContent):
3163         (WebKit::WebFrameLoaderClient::didDetectXSS):
3164         * WebProcess/WebPage/PageBanner.h:
3165         * WebProcess/WebPage/PageOverlay.h:
3166         * WebProcess/WebPage/WebContextMenu.cpp:
3167         (WebKit::WebContextMenu::show):
3168         (WebKit::WebContextMenu::menuItemsWithUserData):
3169         (WebKit::WebContextMenu::items):
3170         * WebProcess/WebPage/WebContextMenu.h:
3171         * WebProcess/WebPage/WebFrame.cpp:
3172         (WebKit::WebFrame::childFrames):
3173         * WebProcess/WebPage/WebFrame.h:
3174         * WebProcess/WebPage/WebInspector.h:
3175         * WebProcess/WebPage/WebPage.cpp:
3176         (WebKit::WebPage::trackedRepaintRects):
3177         (WebKit::WebPage::loadURLRequest):
3178         (WebKit::WebPage::loadDataImpl):
3179         (WebKit::WebPage::postInjectedBundleMessage):
3180         * WebProcess/WebPage/WebPage.h:
3181         * WebProcess/WebPage/WebPageGroupProxy.h:
3182         * WebProcess/WebProcess.cpp:
3183         (WebKit::WebProcess::initializeWebProcess):
3184         (WebKit::WebProcess::postInjectedBundleMessage):
3185
3186 2013-11-12  Nick Diego Yamane  <nick.yamane@openbossa.org>
3187
3188         Fix GTK build after r159142
3189         https://bugs.webkit.org/show_bug.cgi?id=124243
3190
3191         Reviewed by Anders Carlsson.
3192
3193         Use Vector + ImmutableArray instead of MutableArray
3194
3195         * UIProcess/API/gtk/WebKitContextMenuItem.cpp:
3196         (webkitContextMenuItemCreate):
3197
3198 2013-11-12  Anders Carlsson  <andersca@apple.com>
3199
3200         Remove ImmutableArray::isMutable
3201         https://bugs.webkit.org/show_bug.cgi?id=124242
3202
3203         Reviewed by Dan Bernstein.
3204
3205         * Shared/API/c/WKMutableArray.cpp:
3206         (WKArrayIsMutable):
3207         * Shared/Cocoa/WKNSArray.mm:
3208         (-[WKNSArray copyWithZone:]):
3209         * Shared/ImmutableArray.h:
3210
3211 2013-11-12  Anders Carlsson  <andersca@apple.com>
3212
3213         WKMutableArrayRef should be an ImmutableArray
3214         https://bugs.webkit.org/show_bug.cgi?id=124239
3215
3216         Reviewed by Sam Weinig.
3217
3218         * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
3219         (ensureObjectStream):
3220         * Shared/API/c/WKMutableArray.cpp:
3221         (WKMutableArrayCreate):
3222         * Shared/API/c/WKSharedAPICast.h:
3223
3224 2013-11-12  Anders Carlsson  <andersca@apple.com>
3225
3226         Remove more functionality from MutableArray
3227         https://bugs.webkit.org/show_bug.cgi?id=124235
3228
3229         Reviewed by Beth Dakin.
3230
3231         * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
3232         (encodeToObjectStream):
3233         * Shared/API/c/WKMutableArray.cpp:
3234         (WKArrayAppendItem):
3235         (WKArrayRemoveItemAtIndex):
3236         * Shared/Cocoa/WKNSArray.mm:
3237         (-[WKNSArray copyWithZone:]):
3238         * Shared/ImmutableArray.h:
3239         (WebKit::ImmutableArray::elements):
3240         * Shared/MutableArray.cpp:
3241         * Shared/MutableArray.h:
3242
3243 2013-11-12  Anders Carlsson  <andersca@apple.com>
3244
3245         Remove most uses of MutableArray
3246         https://bugs.webkit.org/show_bug.cgi?id=124232
3247
3248         Reviewed by Sam Weinig.
3249
3250         * Shared/API/c/WKMutableArray.cpp:
3251         (WKMutableArrayCreate):
3252         * Shared/UserMessageCoders.h:
3253         (WebKit::UserMessageDecoder::baseDecode):
3254         * Shared/WebRenderLayer.h:
3255         (WebKit::WebRenderLayer::create):
3256         (WebKit::WebRenderLayer::WebRenderLayer):
3257         * Shared/WebRenderObject.cpp:
3258         (WebKit::WebRenderObject::WebRenderObject):
3259         * Shared/WebRenderObject.h:
3260         (WebKit::WebRenderObject::create):
3261         (WebKit::WebRenderObject::WebRenderObject):
3262         * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp:
3263         (WebKit::InjectedBundlePageContextMenuClient::getCustomMenuFromDefaultItems):
3264
3265 2013-11-12  Anders Carlsson  <andersca@apple.com>
3266
3267         Use Vector + ImmutableArray instead of MutableArray
3268         https://bugs.webkit.org/show_bug.cgi?id=124221
3269
3270         Reviewed by Andreas Kling.
3271
3272         * Shared/WebRenderLayer.cpp:
3273         (WebKit::WebRenderLayer::createArrayFromLayerList):
3274         * Shared/WebRenderLayer.h:
3275         * UIProcess/Notifications/WebNotificationProvider.cpp:
3276         (WebKit::WebNotificationProvider::clearNotifications):
3277         * UIProcess/WebPageContextMenuClient.cpp:
3278         (WebKit::WebPageContextMenuClient::getContextMenuFromProposedMenu):
3279         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
3280         (contextMenuItems):
3281         (WKBundlePageCopyContextMenuItems):
3282         (WKBundlePageCopyContextMenuAtPointInWindow):
3283
3284 2013-11-12  Zan Dobersek  <zdobersek@igalia.com>
3285
3286         Unreviewed GTK build fix after r159129.
3287
3288         * UIProcess/API/gtk/WebKitFileChooserRequest.cpp:
3289         (webkit_file_chooser_request_select_files): Use ImmutableArray::create() instead.
3290         * UIProcess/API/gtk/WebKitWebViewGroup.cpp:
3291         (toImmutableArray): Ditto.
3292
3293 2013-11-12  Anders Carlsson  <andersca@apple.com>
3294
3295         Stop using WKArrayCreate internally
3296         https://bugs.webkit.org/show_bug.cgi?id=124217
3297
3298         Reviewed by Andreas Kling.
3299
3300         * UIProcess/API/mac/WKBrowsingContextGroup.mm:
3301         (createWKArray):
3302         (-[WKBrowsingContextGroup addUserStyleSheet:baseURL:whitelistedURLPatterns:blacklistedURLPatterns:mainFrameOnly:]):
3303         (-[WKBrowsingContextGroup addUserScript:baseURL:whitelistedURLPatterns:blacklistedURLPatterns:injectionTime:mainFrameOnly:]):
3304         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
3305         (WKBundlePageCopyContextMenuItems):
3306
3307 2013-11-12  Csaba Osztrogonác  <ossy@webkit.org>
3308
3309         URTBF after r159129, use create() instead of adopt() everywhere.
3310
3311         * UIProcess/WebGrammarDetail.cpp:
3312         (WebKit::WebGrammarDetail::guesses):
3313         * UIProcess/efl/WebUIPopupMenuClient.cpp:
3314         (WebUIPopupMenuClient::showPopupMenu):
3315
3316 2013-11-12  Anders Carlsson  <andersca@apple.com>
3317
3318         Simplify ImmutableArray creation
3319         https://bugs.webkit.org/show_bug.cgi?id=124213
3320
3321         Reviewed by Andreas Kling.
3322
3323         Get rid of the various ImmutableArray::adopt functions and have a single create function instead.
3324         Use std::move to avoid unnecessarily copying vector data.
3325
3326         * Shared/API/c/WKArray.cpp:
3327         (WKArrayCreate):
3328         (WKArrayCreateAdoptingValues):
3329         * Shared/Cocoa/WKNSArray.mm:
3330         (-[WKNSArray copyWithZone:]):
3331         * Shared/ImmutableArray.cpp:
3332         (WebKit::ImmutableArray::create):
3333         (WebKit::ImmutableArray::createStringArray):
3334         (WebKit::ImmutableArray::ImmutableArray):
3335         * Shared/ImmutableArray.h:
3336         (WebKit::ImmutableArray::at):
3337         (WebKit::ImmutableArray::size):
3338         (WebKit::ImmutableArray::entries):
3339         * Shared/ImmutableDictionary.cpp:
3340         (WebKit::ImmutableDictionary::keys):
3341         * Shared/MutableArray.cpp:
3342         (WebKit::MutableArray::MutableArray):
3343         (WebKit::MutableArray::append):
3344         (WebKit::MutableArray::reserveCapacity):
3345         (WebKit::MutableArray::removeItemAtIndex):
3346         * Shared/SecurityOriginData.cpp:
3347         (WebKit::performAPICallbackWithSecurityOriginDataVector):
3348         * Shared/UserMessageCoders.h:
3349         (WebKit::UserMessageDecoder::baseDecode):
3350         * Shared/WebArchive.cpp:
3351         (WebKit::WebArchive::subresources):
3352         (WebKit::WebArchive::subframeArchives):
3353         * Shared/WebContextMenuItem.cpp:
3354         (WebKit::WebContextMenuItem::submenuItemsAsImmutableArray):
3355         * UIProcess/API/C/mac/WKContextPrivateMac.mm:
3356         (WKContextGetInfoForInstalledPlugIns):
3357         * UIProcess/StatisticsRequest.cpp:
3358         (WebKit::StatisticsRequest::completedRequest):
3359         * UIProcess/WebBackForwardList.cpp:
3360         (WebKit::WebBackForwardList::backListAsImmutableArrayWithLimit):
3361         (WebKit::WebBackForwardList::forwardListAsImmutableArrayWithLimit):
3362         * UIProcess/WebContext.cpp:
3363         (WebKit::WebContext::pluginInfoStoreDidLoadPlugins):
3364         * UIProcess/WebDatabaseManagerProxy.cpp:
3365         (WebKit::WebDatabaseManagerProxy::didGetDatabasesByOrigin):
3366         (WebKit::WebDatabaseManagerProxy::didGetDatabaseOrigins):
3367         * UIProcess/WebKeyValueStorageManager.cpp:
3368         (WebKit::didGetKeyValueStorageOrigins):
3369         * UIProcess/WebLoaderClient.cpp:
3370         (WebKit::WebLoaderClient::didChangeBackForwardList):
3371         * UIProcess/WebPageContextMenuClient.cpp:
3372         (WebKit::WebPageContextMenuClient::showContextMenu):
3373         * UIProcess/WebPageProxy.cpp:
3374         (WebKit::WebPageProxy::relatedPages):
3375         (WebKit::WebPageProxy::didFindStringMatches):
3376         * WebProcess/InjectedBundle/InjectedBundle.cpp:
3377         (WebKit::InjectedBundle::originsWithApplicationCache):
3378         * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.cpp:
3379         (WebKit::InjectedBundleBackForwardListItem::children):
3380         * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
3381         (WebKit::InjectedBundlePageFormClient::didAssociateFormControls):
3382         * WebProcess/WebPage/WebFrame.cpp:
3383         (WebKit::WebFrame::childFrames):
3384         * WebProcess/WebPage/WebPage.cpp:
3385         (WebKit::WebPage::trackedRepaintRects):
3386
3387 2013-11-12  Csaba Osztrogonác  <ossy@webkit.org>
3388
3389         The last URTBF after r159108 to make GTK happy.
3390
3391         * GNUmakefile.am:
3392
3393 2013-11-12  Csaba Osztrogonác  <ossy@webkit.org>
3394
3395         One more URTBF after r159108, I hope the last one.
3396
3397         * GNUmakefile.am:
3398
3399 2013-11-12  Tim Horton  <timothy_horton@apple.com>
3400
3401         Remote Layer Tree: Assertions during layer flushing after replaceSublayer()
3402         https://bugs.webkit.org/show_bug.cgi?id=124194
3403
3404         Reviewed by Anders Carlsson.
3405
3406         * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
3407         (PlatformCALayerRemote::replaceSublayer):
3408         Only remove the old layer from the children array once (via removeFromSuperlayer).
3409         Update the superlayer backpointer on the new layer.
3410
3411 2013-11-12  Anders Carlsson  <andersca@apple.com>
3412
3413         Add ImmutableArray::createStringArray
3414         https://bugs.webkit.org/show_bug.cgi?id=124210
3415
3416         Reviewed by Andreas Kling.
3417
3418         Creating an ImmutableArray of WebStrings is a common operation, so add a 
3419         helper function to ImmutableArray that does this from a Vector of Strings.
3420
3421         * Shared/ImmutableArray.cpp:
3422         (WebKit::ImmutableArray::createStringArray):
3423         * Shared/ImmutableArray.h:
3424         * Shared/ImmutableDictionary.cpp:
3425         (WebKit::ImmutableDictionary::keys):
3426         * Shared/WebOpenPanelParameters.cpp:
3427         (WebKit::WebOpenPanelParameters::acceptMIMETypes):
3428         (WebKit::WebOpenPanelParameters::selectedFileNames):
3429         * UIProcess/Plugins/WebPluginSiteDataManager.cpp:
3430         (WebKit::WebPluginSiteDataManager::didGetSitesWithData):
3431         * UIProcess/WebCookieManagerProxy.cpp:
3432         (WebKit::WebCookieManagerProxy::didGetHostnamesWithCookies):
3433         * UIProcess/WebMediaCacheManagerProxy.cpp:
3434         (WebKit::WebMediaCacheManagerProxy::didGetHostnamesWithMediaCache):
3435         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
3436         (WebKit::InjectedBundlePageLoaderClient::featuresUsedInPage):
3437
3438 2013-11-12  Csaba Osztrogonác  <ossy@webkit.org>
3439
3440         One more URTBF after r159108.
3441
3442         * GNUmakefile.am:
3443
3444 2013-11-12  Anders Carlsson  <andersca@apple.com>
3445
3446         Begin cleaning up handling of ImmutableArray vectors
3447         https://bugs.webkit.org/show_bug.cgi?id=124208
3448
3449         Reviewed by Andreas Kling.
3450
3451         Use range based for to iterate the loops. Use reserveInitialCapacity + uncheckedAppend
3452         when appending vector elements.
3453
3454         * Shared/SecurityOriginData.cpp:
3455         (WebKit::performAPICallbackWithSecurityOriginDataVector):
3456         * Shared/WebArchive.cpp:
3457         (WebKit::WebArchive::subresources):
3458         (WebKit::WebArchive::subframeArchives):
3459         * Shared/WebContextMenuItem.cpp:
3460         (WebKit::WebContextMenuItem::submenuItemsAsImmutableArray):
3461         * Shared/WebOpenPanelParameters.cpp:
3462         (WebKit::WebOpenPanelParameters::acceptMIMETypes):
3463         (WebKit::WebOpenPanelParameters::selectedFileNames):
3464         * UIProcess/API/C/mac/WKContextPrivateMac.mm:
3465         (WKContextGetInfoForInstalledPlugIns):
3466         * UIProcess/Plugins/WebPluginSiteDataManager.cpp:
3467         (WebKit::WebPluginSiteDataManager::didGetSitesWithData):
3468         * UIProcess/StatisticsRequest.cpp:
3469         (WebKit::StatisticsRequest::completedRequest):
3470         * UIProcess/WebContext.cpp:
3471         (WebKit::WebContext::pluginInfoStoreDidLoadPlugins):
3472         * UIProcess/WebCookieManagerProxy.cpp:
3473         (WebKit::WebCookieManagerProxy::didGetHostnamesWithCookies):
3474         * UIProcess/WebDatabaseManagerProxy.cpp:
3475         (WebKit::WebDatabaseManagerProxy::didGetDatabasesByOrigin):
3476         (WebKit::WebDatabaseManagerProxy::didGetDatabaseOrigins):
3477         * UIProcess/WebMediaCacheManagerProxy.cpp:
3478         (WebKit::WebMediaCacheManagerProxy::didGetHostnamesWithMediaCache):
3479         * UIProcess/WebPageContextMenuClient.cpp:
3480         (WebKit::WebPageContextMenuClient::showContextMenu):
3481         * UIProcess/WebPageProxy.cpp:
3482         (WebKit::WebPageProxy::relatedPages):
3483         (WebKit::WebPageProxy::didFindStringMatches):
3484         * WebProcess/InjectedBundle/InjectedBundle.cpp:
3485         (WebKit::InjectedBundle::originsWithApplicationCache):
3486         * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.cpp:
3487         (WebKit::InjectedBundleBackForwardListItem::children):
3488         * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
3489         (WebKit::InjectedBundlePageFormClient::didAssociateFormControls):
3490         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
3491         (WebKit::InjectedBundlePageLoaderClient::featuresUsedInPage):
3492         * WebProcess/WebPage/WebPage.cpp:
3493         (WebKit::WebPage::trackedRepaintRects):
3494
3495 2013-11-12  Csaba Osztrogonác  <ossy@webkit.org>
3496
3497         One more URTBF after r159108.
3498
3499         * CMakeLists.txt:
3500
3501 2013-11-12  Csaba Osztrogonác  <ossy@webkit.org>
3502
3503         URTBF after r159108.
3504
3505         * CMakeLists.txt:
3506         * GNUmakefile.list.am:
3507
3508 2013-11-12  Anders Carlsson  <andersca@apple.com>
3509
3510         Move StringReference to Platform/IPC
3511         https://bugs.webkit.org/show_bug.cgi?id=124203
3512
3513         Reviewed by Antti Koivisto.
3514
3515         * Platform/IPC/StringReference.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/StringReference.cpp.
3516         (CoreIPC::StringReference::toString):
3517         (CoreIPC::StringReference::encode):
3518         (CoreIPC::StringReference::decode):
3519         (CoreIPC::StringReference::Hash::hash):
3520         * Platform/IPC/StringReference.h: Renamed from Source/WebKit2/Platform/CoreIPC/StringReference.h.
3521         (CoreIPC::StringReference::StringReference):
3522         (CoreIPC::StringReference::isEmpty):
3523         (CoreIPC::StringReference::size):
3524         (CoreIPC::StringReference::data):
3525         (CoreIPC::StringReference::operator==):
3526         (CoreIPC::StringReference::Hash::equal):
3527         * WebKit2.xcodeproj/project.pbxproj:
3528
3529 2013-11-11  Tim Horton  <timothy_horton@apple.com>
3530
3531         Remote Layer Tree: Sporadic memory corruption during painting
3532         https://bugs.webkit.org/show_bug.cgi?id=124191
3533
3534         Reviewed by Brady Eidson.
3535
3536         Fix a logic error (flipped the logic, didn't flip the operator)
3537         made in the last version of r158982 that caused some crashes because
3538         it allowed us to overrun the end of cgPaintingRects.
3539
3540         * Shared/mac/RemoteLayerBackingStore.mm:
3541         (RemoteLayerBackingStore::drawInContext):
3542
3543 2013-11-11  Commit Queue  <commit-queue@webkit.org>
3544
3545         Unreviewed, rolling out r159088.
3546         http://trac.webkit.org/changeset/159088
3547         https://bugs.webkit.org/show_bug.cgi?id=124187
3548
3549         It broke the EFL build, because it removed a used function
3550         (rs=thorton) (Requested by Ossy_night on #webkit).
3551
3552         * UIProcess/WebPageProxy.cpp:
3553         (WebKit::WebPageProxy::WebPageProxy):
3554         (WebKit::WebPageProxy::resetStateAfterProcessExited):
3555         * UIProcess/WebPageProxy.h:
3556         (WebKit::WebPageProxy::urlAtProcessExit):
3557         (WebKit::WebPageProxy::loadStateAtProcessExit):
3558
3559 2013-11-11  Csaba Osztrogonác  <ossy@webkit.org>
3560
3561         URTBF after r159077 to make GTK build happy.
3562
3563         * GNUmakefile.list.am:
3564
3565 2013-11-11  Gustavo Noronha Silva  <gns@gnome.org>
3566
3567         REGRESSION(r158976): Web Inspector: unable to start docked or dock
3568         https://bugs.webkit.org/show_bug.cgi?id=124148
3569
3570         Reviewed by Timothy Hatcher.
3571
3572         * UIProcess/WebInspectorProxy.cpp:
3573         (WebKit::WebInspectorProxy::canAttach): check for a level that is greater than 1 rather than 0
3574         to deny attachment, since 1 is the first level of inspectors.
3575
3576 2013-11-11  Anders Carlsson  <andersca@apple.com>
3577
3578         FrameFilter can just be an std::function instead
3579         https://bugs.webkit.org/show_bug.cgi?id=124176
3580
3581         Reviewed by Tim Horton.
3582
3583         * WebProcess/WebPage/WebFrame.cpp:
3584         (WebKit::WebFrame::webArchiveData):
3585
3586 2013-11-11  Anders Carlsson  <andersca@apple.com>
3587
3588         Remove unused Qt cruft
3589         https://bugs.webkit.org/show_bug.cgi?id=124174
3590
3591         Reviewed by Tim Horton.
3592
3593         * UIProcess/WebPageProxy.cpp:
3594         (WebKit::WebPageProxy::WebPageProxy):
3595         (WebKit::WebPageProxy::resetStateAfterProcessExited):
3596         * UIProcess/WebPageProxy.h:
3597
3598 2013-11-11  Anders Carlsson  <andersca@apple.com>
3599
3600         REGRESSION (r158927): curly-braces-escaping.html is broken on Mac WebKit2
3601         https://bugs.webkit.org/show_bug.cgi?id=124164
3602
3603         Reviewed by Alexey Proskuryakov.
3604
3605         Back out the change to use NSSecureCoding for encoding/decoding NSURLRequest and
3606         NSURLResponse objects; turns out the NSURL encoding/decoding doesn't preserve the raw URL bytes.
3607
3608         * Shared/mac/WebCoreArgumentCodersMac.mm:
3609         (CoreIPC::encodePlatformData):
3610         (CoreIPC::decodePlatformData):
3611
3612 2013-11-11  Ryuan Choi  <ryuan.choi@samsung.com>
3613
3614         Unreviewed build fix on CMake Based port since r159077.
3615
3616         * CMakeLists.txt:
3617
3618 2013-11-11  Tim Horton  <timothy_horton@apple.com>
3619
3620         Remote Layer Tree: Implement Page Overlays
3621         https://bugs.webkit.org/show_bug.cgi?id=124165
3622         <rdar://problem/15199056>
3623
3624         Reviewed by Anders Carlsson.
3625
3626         Implement page overlays, very similar to how they work in TiledCoreAnimationDrawingArea,
3627         but manipulating the PlatformCALayer tree instead of the CALayer tree directly.
3628
3629         * WebProcess/WebPage/mac/RemoteLayerTreeContext.h:
3630         * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
3631         (WebKit::RemoteLayerTreeContext::outOfTreeLayerWasAdded):
3632         (WebKit::RemoteLayerTreeContext::outOfTreeLayerWillBeRemoved):
3633         (WebKit::RemoteLayerTreeContext::flushLayers):
3634         Add a list of out-of-tree GraphicsLayers which are flushed in addition
3635         to the page's GraphicsLayer tree, and functions to manipulate this list.
3636
3637         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
3638         Make RemoteLayerTreeDrawingArea a GraphicsLayerClient, so we can get callbacks
3639         from the GraphicsLayers that drive our page overlays.
3640         Override the relevant page overlay functions.
3641         Add storage for the root layer, view size, and a map of PageOverlay->GraphicsLayer.
3642
3643         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
3644         (WebKit::RemoteLayerTreeDrawingArea::setRootCompositingLayer):
3645         Store the root GraphicsLayer for later use.
3646
3647         (WebKit::RemoteLayerTreeDrawingArea::updateGeometry):
3648         Update the size of the page overlays when the DrawingArea's geometry changes.
3649
3650         (WebKit::RemoteLayerTreeDrawingArea::updatePreferences):
3651         Update the page overlay settings when necessary.
3652
3653         (WebKit::RemoteLayerTreeDrawingArea::didInstallPageOverlay):
3654         Create a GraphicsLayer for our page overlay, set it up, and parent it.
3655         Inform the RemoteLayerTreeContext that it will need to flush this GraphicsLayer,
3656         since it's not a part of the page's GraphicsLayer tree.
3657
3658         (WebKit::RemoteLayerTreeDrawingArea::didUninstallPageOverlay):
3659         Tear down our page overlay's GraphicsLayer.
3660
3661         (WebKit::RemoteLayerTreeDrawingArea::setPageOverlayNeedsDisplay):
3662         (WebKit::RemoteLayerTreeDrawingArea::setPageOverlayOpacity):
3663         (WebKit::RemoteLayerTreeDrawingArea::paintContents):
3664         (WebKit::RemoteLayerTreeDrawingArea::deviceScaleFactor):
3665
3666 2013-11-11  Anders Carlsson  <andersca@apple.com>
3667
3668         Add a FrameLoadState object and begin moving loading related members from WebFrameProxy
3669         https://bugs.webkit.org/show_bug.cgi?id=124163
3670
3671         Reviewed by Beth Dakin.
3672
3673         * UIProcess/API/C/WKFrame.cpp:
3674         (WKFrameGetFrameLoadState):
3675         * UIProcess/FrameLoadState.cpp: Added.
3676         (WebKit::FrameLoadState::FrameLoadState):
3677         (WebKit::FrameLoadState::~FrameLoadState):
3678         * UIProcess/FrameLoadState.h: Added.
3679         * UIProcess/WebFrameProxy.cpp:
3680         (WebKit::WebFrameProxy::WebFrameProxy):
3681         (WebKit::WebFrameProxy::didStartProvisionalLoad):
3682         (WebKit::WebFrameProxy::didReceiveServerRedirectForProvisionalLoad):
3683         (WebKit::WebFrameProxy::didFailProvisionalLoad):
3684         (WebKit::WebFrameProxy::didCommitLoad):
3685         (WebKit::WebFrameProxy::didFinishLoad):
3686         (WebKit::WebFrameProxy::didFailLoad):
3687         (WebKit::WebFrameProxy::didSameDocumentNavigation):
3688         (WebKit::WebFrameProxy::setUnreachableURL):
3689         * UIProcess/WebFrameProxy.h:
3690         (WebKit::WebFrameProxy::frameLoadState):
3691         (WebKit::WebFrameProxy::loadState):
3692         (WebKit::WebFrameProxy::url):
3693         (WebKit::WebFrameProxy::provisionalURL):
3694         (WebKit::WebFrameProxy::unreachableURL):
3695         * UIProcess/WebPageProxy.cpp:
3696         (WebKit::WebPageProxy::WebPageProxy):
3697         (WebKit::WebPageProxy::activeURL):
3698         * UIProcess/WebPageProxy.h:
3699         (WebKit::WebPageProxy::loadStateAtProcessExit):
3700         * WebKit2.xcodeproj/project.pbxproj:
3701
3702 2013-11-11  Gergo Balogh  <geryxyz@inf.u-szeged.hu>
3703
3704         Remove #include from test input of the *Messages.in processing scripts.
3705         https://bugs.webkit.org/show_bug.cgi?id=123563
3706
3707         Reviewed by Darin Adler.
3708
3709         * Scripts/webkit2/messages_unittest.py:
3710
3711 2013-11-11  Anders Carlsson  <andersca@apple.com>
3712
3713         Remove block based APIs from the WebKit2 C API
3714         https://bugs.webkit.org/show_bug.cgi?id=124157
3715
3716         Reviewed by Sam Weinig.
3717
3718         Remove most of the block based C APIs from WebKit2. We want to discourage people from using
3719         them since any C API "objects" captured by blocks won't be implicitly retained which
3720         can lead to dangling pointer bugs.
3721
3722         * UIProcess/API/C/WKDatabaseManager.cpp:
3723         * UIProcess/API/C/WKDatabaseManager.h:
3724         * UIProcess/API/C/WKFrame.cpp:
3725         * UIProcess/API/C/WKFrame.h:
3726         * UIProcess/API/C/WKPage.cpp:
3727         * UIProcess/API/C/WKPage.h:
3728         * UIProcess/API/C/WKPagePrivate.h:
3729
3730 2013-11-11  Carlos Garcia Campos  <cgarcia@igalia.com>
3731
3732         [GTK] Crash when printing via javascript in WebKit2
3733         https://bugs.webkit.org/show_bug.cgi?id=124043
3734
3735         Reviewed by Martin Robinson.
3736
3737         It happens because the print operation when started by the
3738         WebProcess due to a DOM operation is supposed to be synchronous
3739         and our print operation is always asynchronous. This is currently
3740         handled only in the UI process because other ports print
3741         synchronously in the WebProcess. In the GTK+ port we need to
3742         notify the WebProcess that the print operation should run
3743         synchronously when request by a DOM operation. Together with the
3744         print settings and page setup we now send a print mode that can be
3745         sync or async. When printing in sync mode we run a nested main loop
3746         for the print operation, making sure that print sources have a
3747         higher priority.
3748
3749         * Shared/PrintInfo.cpp:
3750         (WebKit::PrintInfo::encode): Encode the print mode.
3751         (WebKit::PrintInfo::decode): Decode the print mode.
3752         * Shared/PrintInfo.h: Add PrintMode enum.
3753         * Shared/gtk/PrintInfoGtk.cpp:
3754         (WebKit::PrintInfo::PrintInfo): Initialize print mode.
3755         * UIProcess/API/gtk/WebKitPrintOperation.cpp:
3756         (drawPagesForPrintingCompleted): Do not call endPrinting() when
3757         printing synchronously because WebPageProxy already calls it right
3758         after sending the message to the WebProcess.
3759         (webkitPrintOperationPrintPagesForFrame): Create the PrintInfo
3760         struct with a print mode.
3761         (webkitPrintOperationSetPrintMode): Helper private function to set
3762         the print mode of the print operation.
3763         * UIProcess/API/gtk/WebKitPrintOperationPrivate.h:
3764         * UIProcess/API/gtk/WebKitWebView.cpp:
3765         (webkitWebViewPrintFrame): Set sync print mode when printing due
3766         to a UIClient request.
3767         * WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:
3768         (WebKit::PrintPagesData::PrintPagesData): Create a main loop when
3769         printing synchronously.
3770         (WebKit::WebPrintOperationGtk::WebPrintOperationGtk): Initialize
3771         print mode.
3772         (WebKit::WebPrintOperationGtk::printPagesIdleDone): Finish the
3773         nested main loop when printing synchronously.
3774         (WebKit::WebPrintOperationGtk::print): Run a nested main loop when
3775         printing synchronously.
3776         * WebProcess/WebPage/gtk/WebPrintOperationGtk.h:
3777         (WebKit::WebPrintOperationGtk::printMode): Return the print mode.
3778
3779 2013-11-10  Carlos Garcia Campos  <cgarcia@igalia.com>
3780
3781         [GTK] [WebKit2] Crash when printing to a file via javascript
3782         https://bugs.webkit.org/show_bug.cgi?id=122801
3783
3784         Reviewed by Martin Robinson.
3785
3786         This crash is caused by a GTK+ bug, but we can work around it by
3787         ensuring the print dialog is always shown with a valid
3788         GtkPrintSettings object.
3789
3790         * UIProcess/API/gtk/WebKitPrintOperation.cpp:
3791         (webkitPrintOperationRunDialog):
3792
3793 2013-11-09  Dan Bernstein  <mitz@apple.com>
3794
3795         Use createCFURLFromBuffer when converting a String to a CFURL
3796         https://bugs.webkit.org/show_bug.cgi?id=124113
3797
3798         Reviewed by Anders Carlsson.
3799
3800         * Shared/API/c/cf/WKURLCF.mm:
3801         (WKURLCopyCFURL): Replaced some code with a call to createCFURLFromBuffer(), which does the
3802         same thing.
3803
3804         * Shared/Cocoa/WKNSURLExtras.h: Added.
3805         * Shared/Cocoa/WKNSURLExtras.mm: Added.
3806         (+[NSURL _web_URLWithWTFString:relativeToURL:]): Added. Returns nil for the null String,
3807         otherwise returns the result of createCFURLFromBuffer().
3808
3809         * UIProcess/API/Cocoa/WKBackForwardListItem.mm:
3810         (-[WKBackForwardListItem URL]): Changed to use +_web_URLWithWTFString:relativeToURL:.
3811         (-[WKBackForwardListItem originalURL]): Ditto.
3812
3813         * UIProcess/API/Cocoa/WKNavigationData.mm:
3814         (-[WKNavigationData destinationURL]): Ditto.
3815
3816         * UIProcess/API/mac/WKBrowsingContextController.mm:
3817         (-[WKBrowsingContextController unreachableURL]): Ditto.
3818
3819         * WebKit2.xcodeproj/project.pbxproj: Added references to new files.
3820
3821 2013-11-09  Anders Carlsson  <andersca@apple.com>
3822
3823         Encode form data using the KeyedEncoder
3824         https://bugs.webkit.org/show_bug.cgi?id=124107
3825
3826         Reviewed by Sam Weinig.
3827
3828         * Shared/cf/KeyedEncoder.cpp:
3829         (WebKit::KeyedEncoder::encodeBool):
3830         (WebKit::KeyedEncoder::encodeDouble):
3831         * Shared/cf/KeyedEncoder.h:
3832
3833 2013-11-09  Anders Carlsson  <andersca@apple.com>
3834
3835         Remove an unused file.
3836
3837         Rubber-stamped by Andreas Kling.
3838
3839         * WebProcess/WebPage/gtk/ChunkedUpdateDrawingAreaGtk.cpp: Removed.
3840
3841 2013-11-09  Patrick Gansterer  <paroga@webkit.org>
3842
3843         Move RunLoop from WebCore to WTF
3844         https://bugs.webkit.org/show_bug.cgi?id=116606
3845
3846         Reviewed by Anders Carlsson.
3847
3848         * DatabaseProcess/DatabaseProcess.cpp:
3849         * DatabaseProcess/DatabaseToWebProcessConnection.cpp:
3850         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
3851         * NetworkProcess/NetworkProcess.cpp:
3852         * NetworkProcess/NetworkProcess.h:
3853         * NetworkProcess/NetworkResourceLoader.h:
3854         * NetworkProcess/mac/DiskCacheMonitor.h:
3855         * NetworkProcess/unix/NetworkProcessMainUnix.cpp:
3856         * Platform/CoreIPC/Connection.cpp:
3857         * Platform/CoreIPC/Connection.h:
3858         * Platform/CoreIPC/mac/ConnectionMac.cpp:
3859         * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
3860         * PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm:
3861         * PluginProcess/PluginControllerProxy.h:
3862         * PluginProcess/PluginProcess.cpp:
3863         * PluginProcess/PluginProcess.h:
3864         * PluginProcess/WebProcessConnection.cpp:
3865         * PluginProcess/unix/PluginProcessMainUnix.cpp:
3866         * Shared/ChildProcess.cpp:
3867         * Shared/ChildProcess.h:
3868         * Shared/ChildProcessProxy.cpp:
3869         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.h:
3870         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.mm:
3871         * Shared/Plugins/NPObjectProxy.cpp:
3872         * Shared/WebKit2Initialize.cpp:
3873         (WebKit::InitializeWebKit2):
3874         * UIProcess/API/gtk/WebKitFaviconDatabase.cpp:
3875         * UIProcess/API/mac/FindIndicatorWindow.h:
3876         * UIProcess/API/mac/WKPrintingView.mm:
3877         * UIProcess/API/mac/WKView.mm:
3878         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h:
3879         * UIProcess/DrawingAreaProxyImpl.h:
3880         * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
3881         * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
3882         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
3883         * UIProcess/Network/NetworkProcessProxy.cpp:
3884         * UIProcess/Plugins/PluginProcessProxy.cpp:
3885         * UIProcess/ResponsivenessTimer.cpp:
3886         * UIProcess/ResponsivenessTimer.h:
3887         * UIProcess/VisitedLinkProvider.h:
3888         * UIProcess/WebContext.cpp:
3889         * UIProcess/WebProcessProxy.cpp:
3890         * WebProcess/Databases/WebToDatabaseProcessConnection.cpp:
3891         * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm:
3892         * WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm:
3893         * WebProcess/Network/WebResourceLoadScheduler.h:
3894         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.h:
3895         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
3896         * WebProcess/Plugins/Netscape/NetscapePluginStream.h:
3897         * WebProcess/Plugins/PluginView.h:
3898         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h:
3899         * WebProcess/WebPage/DrawingAreaImpl.h:
3900         * WebProcess/WebPage/EventDispatcher.cpp:
3901         * WebProcess/WebPage/PageOverlay.h:
3902         * WebProcess/WebPage/WebPage.cpp:
3903         * WebProcess/WebPage/WebPage.h:
3904         * WebProcess/WebProcess.cpp:
3905         * WebProcess/efl/WebProcessMainEfl.cpp:
3906         * WebProcess/gtk/WebProcessMainGtk.cpp:
3907
3908 2013-11-08  Brady Eidson  <beidson@apple.com>
3909
3910         Merge IDBDatabaseBackendInterface and IDBDatabaseBackendImpl
3911         https://bugs.webkit.org/show_bug.cgi?id=124088
3912
3913         Reviewed by Tim Horton.
3914
3915         This abstraction is no longer meaningful in its current form in WebCore.
3916         The current groundwork for the WK2 DatabaseProcess relied on this abstraction,
3917         but that will be reworked in a future patch.
3918
3919         * DatabaseProcess/IndexedDB/DatabaseProcessIDBDatabaseBackend.h:
3920
3921         * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp:
3922         (WebKit::WebIDBFactoryBackend::maybeCreateTransactionBackend):
3923         (WebKit::WebIDBFactoryBackend::createCursorBackend):
3924         * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.h:
3925
3926         * WebProcess/Databases/IndexedDB/WebProcessIDBDatabaseBackend.cpp:
3927         (WebKit::WebProcessIDBDatabaseBackend::put):
3928         (WebKit::WebProcessIDBDatabaseBackend::openCursor):
3929         * WebProcess/Databases/IndexedDB/WebProcessIDBDatabaseBackend.h:
3930
3931 2013-11-08  Jaehun Lim  <ljaehun.lim@samsung.com>
3932
3933         Unreviewed build fix after r158984.
3934
3935         No needs to include "KeyedEncoder.h".
3936         WebKit/Source/WebKit2/WebProcess/WebPage/WebBackForwardListProxy.cpp:31:26: fatal error: KeyedEncoder.h: No such file or directory
3937
3938         * WebProcess/WebPage/WebBackForwardListProxy.cpp: Removed #include line.
3939
3940 2013-11-08  Anders Carlsson  <andersca@apple.com>
3941
3942         Implement encoding of arrays of objects
3943         https://bugs.webkit.org/show_bug.cgi?id=124091
3944
3945         Reviewed by Beth Dakin.
3946
3947         Add a new array stack and push and pop from it accordingly.
3948
3949         * Shared/cf/KeyedEncoder.cpp:
3950         (WebKit::KeyedEncoder::~KeyedEncoder):
3951         (WebKit::KeyedEncoder::encodeBytes):
3952         (WebKit::KeyedEncoder::encodeUInt32):
3953         (WebKit::KeyedEncoder::encodeInt32):
3954         (WebKit::KeyedEncoder::encodeInt64):
3955         (WebKit::KeyedEncoder::encodeFloat):
3956         (WebKit::KeyedEncoder::beginArray):
3957         (WebKit::KeyedEncoder::beginArrayElement):
3958         (WebKit::KeyedEncoder::endArrayElement):
3959         (WebKit::KeyedEncoder::endArray):
3960         * Shared/cf/KeyedEncoder.h:
3961
3962 2013-11-08  Tim Horton  <timothy_horton@apple.com>
3963
3964         Remote Layer Tree: RemoteLayerBackingStore partial repaint is broken for the tile cache
3965         https://bugs.webkit.org/show_bug.cgi?id=123944
3966
3967         Reviewed by Simon Fraser.
3968
3969         Rework RemoteLayerBackingStore painting to fix some rounding issues
3970         that would cause pixel cracks upon repaint, and to speed it up a bit.
3971
3972         * Shared/mac/RemoteLayerBackingStore.h:
3973         Redefine RepaintRectList because we can't include WebLayer.h here yet.
3974         Remove createBackingStore, which was never implemented.
3975         Remove mapToContentCoordinates, because we don't need it on Mac.
3976
3977         (WebKit::RemoteLayerBackingStore::paintingRects): Added.
3978
3979         * Shared/mac/RemoteLayerBackingStore.mm:
3980         (RemoteLayerBackingStore::setNeedsDisplay):
3981         (RemoteLayerBackingStore::display):
3982         Stop using mapToContentCoordinates.
3983
3984         (RemoteLayerBackingStore::drawInContext):
3985         Use clipping instead of painting the image multiple times.
3986         Never repaint more than the dirty region's bounds.
3987         Don't waste time with all of the drawNativeImage code, just use CG.
3988         Unindent the switch's cases.
3989         Store the rects we're painting so that enumerateRectsBeingDrawn can get them.
3990         Pixel-snap the rects we're painting.
3991         Clip the context before going to paint.
3992
3993         * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
3994         (PlatformCALayerRemote::enumerateRectsBeingDrawn):
3995         * WebProcess/WebPage/mac/PlatformCALayerRemote.h:
3996         Retrieve the rects currently being painted from our backing store, and
3997         transform them (mostly) according to the CTM, to match the transformation
3998         that will have occurred underneath wkCALayerEnumerateRectsBeingDrawnWithBlock.
3999
4000 2013-11-08  Anders Carlsson  <andersca@apple.com>
4001
4002         Implement more KeyedEncoder functionality
4003         https://bugs.webkit.org/show_bug.cgi?id=124089
4004
4005         Reviewed by Beth Dakin.
4006
4007         * Shared/cf/KeyedEncoder.cpp:
4008         (WebKit::KeyedEncoder::encodeBytes):
4009         (WebKit::KeyedEncoder::encodeInt32):
4010         (WebKit::KeyedEncoder::encodeFloat):
4011         * Shared/cf/KeyedEncoder.h:
4012
4013 2013-11-08  Anders Carlsson  <andersca@apple.com>
4014
4015         KeyedEncoder should be able to encoder objects
4016         https://bugs.webkit.org/show_bug.cgi?id=124085
4017
4018         Reviewed by Sam Weinig.
4019
4020         Add a dictionary stack to KeyedEncoder that's pushed and popped by
4021         beginObject/endObject.
4022
4023         * Shared/cf/KeyedEncoder.cpp:
4024         (WebKit::KeyedEncoder::KeyedEncoder):
4025         (WebKit::KeyedEncoder::~KeyedEncoder):
4026         (WebKit::KeyedEncoder::encodeUInt32):
4027         (WebKit::KeyedEncoder::encodeString):
4028         (WebKit::KeyedEncoder::beginObject):
4029         (WebKit::KeyedEncoder::endObject):
4030         * Shared/cf/KeyedEncoder.h:
4031
4032 2013-11-08  Alexandru Chiculita  <achicu@adobe.com>
4033
4034         Web Inspector: It should be possible to debug the Inspector code
4035         https://bugs.webkit.org/show_bug.cgi?id=124065
4036
4037         Reviewed by Timothy Hatcher.
4038
4039         When the script is paused, the debugger will pause all the pages in the same PageGroup.
4040         All the Inspector windows were created in the same PageGroup, so pausing one debugger
4041         would stop the other too.
4042
4043         Added WebInspectorPageGroups to manage the PageGroups created for the Inspectors.
4044         The WebInspectors will now use the inspection "level" to figure out which PageGroup to use.
4045         The inspector that debugs the main page will use "__WebInspectorPageGroupLevel1__",
4046         the second inspector (that debugs the first inspector) will use "__WebInspectorPageGroupLevel2__" ...
4047
4048         * UIProcess/WebInspectorProxy.cpp:
4049         (WebKit::WebInspectorPageGroups::shared):
4050         (WebKit::WebInspectorPageGroups::inspectorLevel):
4051         (WebKit::WebInspectorPageGroups::isInspectorPageGroup):
4052         (WebKit::WebInspectorPageGroups::inspectorPageGroupLevel):
4053         (WebKit::WebInspectorPageGroups::inspectorPageGroupForLevel):
4054         (WebKit::WebInspectorPageGroups::createInspectorPageGroup):
4055         (WebKit::WebInspectorProxy::WebInspectorProxy):
4056         (WebKit::WebInspectorProxy::inspectorPageGroup):
4057         (WebKit::WebInspectorProxy::isInspectorPage):
4058         (WebKit::WebInspectorProxy::canAttach):
4059         * UIProcess/WebInspectorProxy.h:
4060
4061 2013-11-08  Anders Carlsson  <andersca@apple.com>
4062
4063         Begin stubbing out a KeyedEncoder class in WebCore
4064         https://bugs.webkit.org/show_bug.cgi?id=124079
4065
4066         Reviewed by Sam Weinig.
4067
4068         * Shared/KeyedEncoder.h: Removed.
4069         * Shared/cf/KeyedCodingValueCF.cpp: Removed.
4070         * Shared/cf/KeyedEncoder.cpp: Added.
4071         Remove old keyed encoders.
4072
4073         (WebKit::createDictionary):
4074         Helper function to create a mutable dictionary.
4075         (WebKit::KeyedEncoder::KeyedEncoder):
4076         Create the root dictionary.
4077
4078         (WebKit::KeyedEncoder::encodeUInt32):
4079         Create a CFNumberRef and add it to the dictionary.
4080
4081         * Shared/cf/KeyedEncoder.h: Added.
4082         * WebKit2.xcodeproj/project.pbxproj:
4083         Add new files.
4084
4085         * WebProcess/WebPage/WebBackForwardListProxy.cpp:
4086         (WebKit::updateBackForwardItem):
4087         Create a KeyedEncoder and encode the history tree.
4088
4089 2013-11-08  Brady Eidson  <beidson@apple.com>
4090
4091         Merge IDBTransactionBackendInterface and IDBTransactionBackendImpl
4092         https://bugs.webkit.org/show_bug.cgi?id=124077