1 2013-11-27 Zan Dobersek <zdobersek@igalia.com>
3 [GTK] Programs/WebKit2APITests/TestWebKitSettings unit test is failing
4 https://bugs.webkit.org/show_bug.cgi?id=124924
6 Reviewed by Carlos Garcia Campos.
8 'Chrome'/'Chromium' substrings were removed from the user agent string in r159572, meaning the unit
9 test shouldn't check for those two substrings anymore. Instead, 'Safari' (as until now) and 'AppleWebKit'
10 substrings should be checked for.
12 * UIProcess/API/gtk/tests/TestWebKitSettings.cpp:
13 (testWebKitSettingsUserAgent):
15 2013-11-26 Nick Diego Yamane <nick.yamane@openbossa.org>
17 [MediaStream API] HTMLMediaElement should be able to use MediaStream as source
18 https://bugs.webkit.org/show_bug.cgi?id=121943
20 Reviewed by Eric Carlson.
22 Add mediastream module and platform to cmake include directories.
26 2013-11-26 Dan Bernstein <mitz@apple.com>
28 Some WebKit2 headers are not self-contained
29 https://bugs.webkit.org/show_bug.cgi?id=124884
31 Reviewed by Anders Carlsson.
33 * Shared/API/Cocoa/WKRemoteObjectInterface.h: Added import.
34 * Shared/API/Cocoa/WKRemoteObjectRegistry.h: Ditto.
35 * Shared/API/c/WKContextMenuItemTypes.h: Added include.
36 * Shared/API/c/WKFindOptions.h: Ditto.
37 * Shared/API/c/WKMutableArray.h: Ditto.
38 * Shared/API/c/WKPageLoadTypes.h: Ditto.
39 * Shared/API/c/WKPageVisibilityTypes.h: Ditto.
41 * Shared/API/c/WKPluginInformation.cpp:
42 (WKPluginInformationBundleIdentifierKey): Made this API function always be defined. When
43 the Netscape plug-in API is not enabled, it returns 0.
44 (WKPluginInformationBundleVersionKey): Ditto.
45 (WKPluginInformationBundleShortVersionKey): Ditto.
46 (WKPluginInformationPathKey): Ditto.
47 (WKPluginInformationDisplayNameKey): Ditto.
48 (WKPluginInformationDefaultLoadPolicyKey): Ditto.
49 (WKPluginInformationUpdatePastLastBlockedVersionIsKnownAvailableKey): Ditto.
50 (WKPluginInformationHasSandboxProfileKey): Ditto.
51 (WKPluginInformationFrameURLKey): Ditto.
52 (WKPluginInformationMIMETypeKey): Ditto.
53 (WKPluginInformationPageURLKey): Ditto.
54 (WKPluginInformationPluginspageAttributeURLKey): Ditto.
55 (WKPluginInformationPluginURLKey): Ditto.
56 (WKPlugInInformationReplacementObscuredKey): Ditto.
58 * Shared/API/c/WKString.h: Added include.
59 * UIProcess/API/C/WKCredentialTypes.h: Ditto.
60 * UIProcess/API/C/WKPageContextMenuClient.h: Ditto.
61 * UIProcess/API/C/WKPageLoaderClient.h: Added includes.
62 * UIProcess/API/C/WKPagePolicyClient.h: Ditto.
63 * UIProcess/API/C/WKPageUIClient.h: Ditto.
65 * UIProcess/API/C/WKPluginSiteDataManager.cpp:
66 (WKPluginSiteDataManagerGetTypeID): Fixed the !ENABLE(NETSCAPE_PLUGIN_API) build.
68 * UIProcess/API/C/mac/WKContextPrivateMac.h: Removed use of ENABLE() from this private
70 * UIProcess/API/C/mac/WKContextPrivateMac.mm:
71 (WKContextCopyPlugInInfoForBundleIdentifier): Made this API function always be defined.
72 When the Netscape plug-in API is not enabled, it returns 0.
73 (WKContextGetInfoForInstalledPlugIns): Made this API function always be defined.
75 * UIProcess/API/C/mac/WKInspectorPrivateMac.h: Added imports.
76 * UIProcess/API/C/mac/WKPagePrivateMac.h: Added include.
77 * UIProcess/API/Cocoa/WKBackForwardListItem.h: Added import.
78 * UIProcess/API/Cocoa/WKNavigationData.h: Ditto.
79 * UIProcess/API/cpp/WKRetainPtr.h: Replaced use of WARN_UNUSED_RETURN in this private header
80 with an equivalent macro defined in the header.
82 * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h: Added include.
83 * WebProcess/InjectedBundle/API/c/WKBundleInspector.cpp:
84 (WKBundleInspectorGetTypeID): Made this API function always be defined. When the Inspector
85 is not enabled, it returns the Null type.
86 (WKBundleInspectorShow): Made this API function always be defined.
87 (WKBundleInspectorClose): Ditto.
88 (WKBundleInspectorEvaluateScriptForTest): Ditto.
89 (WKBundleInspectorSetPageProfilingEnabled): Ditto.
90 * WebProcess/InjectedBundle/API/c/WKBundleInspector.h: Removed use of ENABLE() from this
93 * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h: Added includes.
94 * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: Added include.
96 * WebProcess/Plugins/Netscape/mac/WKNPAPIPlugInContainer.mm:
97 (-[WKNPAPIPlugInContainer openPlugInPreferencePane]): Fixed the !ENABLE(NETSCAPE_PLUGIN_API)
100 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
101 (WebKit::WebFrameLoaderClient::createJavaAppletWidget): Ditto.
103 * WebProcess/WebPage/mac/WebInspectorMac.mm: Fixed the !ENABLE(INSPECTOR) build.
105 2013-11-25 Dan Bernstein <mitz@apple.com>
107 [Cocoa] Use class extensions for IPI
108 https://bugs.webkit.org/show_bug.cgi?id=124870
110 Reviewed by Sam Weinig.
112 * UIProcess/API/mac/WKBrowsingContextController.mm: Reordered methods so that the Private
113 cateogry isn’t stuck between the API methods and the internal methods.
114 (-[WKBrowsingContextController setPaginationMode:]):
115 (-[WKBrowsingContextController paginationMode]):
116 (-[WKBrowsingContextController setPaginationBehavesLikeColumns:]):
117 (-[WKBrowsingContextController paginationBehavesLikeColumns]):
118 (-[WKBrowsingContextController setPageLength:]):
119 (-[WKBrowsingContextController pageLength]):
120 (-[WKBrowsingContextController setGapBetweenPages:]):
121 (-[WKBrowsingContextController gapBetweenPages]):
122 (-[WKBrowsingContextController pageCount]):
123 (-[WKBrowsingContextController handle]):
124 * UIProcess/API/mac/WKBrowsingContextControllerInternal.h: Changed Internal category into
127 * UIProcess/API/mac/WKConnection.mm:
128 * UIProcess/API/mac/WKConnectionInternal.h: Changed Internal category into a class
131 * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.mm:
132 * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInInternal.h: Ditto.
134 2013-11-25 Dan Bernstein <mitz@apple.com>
138 * UIProcess/API/mac/WKBrowsingContextController.mm:
139 (-[WKBrowsingContextController loadDelegateInternal]):
140 (-[WKBrowsingContextController setLoadDelegateInternal:]):
142 2013-11-25 Dan Bernstein <mitz@apple.com>
144 [Cocoa] Remove some indirection that was only necessary for supporting the legacy Objective-C runtime
145 https://bugs.webkit.org/show_bug.cgi?id=123065
147 Reviewed by Sam Weinig.
149 * UIProcess/API/mac/WKBrowsingContextController.h: Removed _data ivar and
150 WKBrowsingContextControllerData class declaration.
151 * UIProcess/API/mac/WKBrowsingContextController.mm:
152 (-[WKBrowsingContextController dealloc]): Removed
153 WKBrowsingContextControllerData class and moved ivars directly into
154 WKBrowsingContextController, declaring them in the @implementation. Removed ivar and
155 accessors for the delegate properties, letting the compiler synthesize them.
156 (-[WKBrowsingContextController _pageRef]): Removed indirection via _data.
157 (-[WKBrowsingContextController loadRequest:userData:]): Removed indirection via -_pageRef.
158 (-[WKBrowsingContextController loadFileURL:restrictToFilesWithin:userData:]): Ditto.
159 (-[WKBrowsingContextController loadHTMLString:baseURL:userData:]): Ditto.
160 (-[WKBrowsingContextController loadData:MIMEType:textEncodingName:baseURL:userData:]): Ditto.
161 (-[WKBrowsingContextController stopLoading]): Ditto.
162 (-[WKBrowsingContextController reload]): Ditto.
163 (-[WKBrowsingContextController reloadFromOrigin]): Ditto.
164 (-[WKBrowsingContextController goForward]): Ditto.
165 (-[WKBrowsingContextController canGoForward]): Ditto.
166 (-[WKBrowsingContextController goBack]): Ditto.
167 (-[WKBrowsingContextController canGoBack]): Ditto.
168 (-[WKBrowsingContextController goToBackForwardListItem:]): Ditto.
169 (-[WKBrowsingContextController backForwardList]): Ditto.
170 (-[WKBrowsingContextController activeURL]): Ditto.
171 (-[WKBrowsingContextController provisionalURL]): Ditto.
172 (-[WKBrowsingContextController committedURL]): Ditto.
173 (-[WKBrowsingContextController unreachableURL]): Removed idirection via _data.
174 (-[WKBrowsingContextController estimatedProgress]): Removed indirection via -_pageRef.
175 (-[WKBrowsingContextController title]): Ditto.
176 (-[WKBrowsingContextController textZoom]): Ditto.
177 (-[WKBrowsingContextController setTextZoom:]): Ditto.
178 (-[WKBrowsingContextController pageZoom]): Ditto.
179 (-[WKBrowsingContextController setPageZoom:]): Ditto.
180 (-[WKBrowsingContextController setPaginationMode:]): Ditto.
181 (-[WKBrowsingContextController paginationMode]): Ditto.
182 (-[WKBrowsingContextController setPaginationBehavesLikeColumns:]): Ditto.
183 (-[WKBrowsingContextController paginationBehavesLikeColumns]): Ditto.
184 (-[WKBrowsingContextController setPageLength:]): Ditto.
185 (-[WKBrowsingContextController pageLength]): Ditto.
186 (-[WKBrowsingContextController setGapBetweenPages:]): Ditto.
187 (-[WKBrowsingContextController gapBetweenPages]): Ditto.
188 (-[WKBrowsingContextController pageCount]): Ditto.
189 (-[WKBrowsingContextController handle]): Ditto.
190 (-[WKBrowsingContextController _initWithPageRef:]): Removed indirection via _data.
192 * UIProcess/API/mac/WKBrowsingContextGroup.h: Removed _data ivar and
193 WKBrowsingContextGroupData class declaration.
194 * UIProcess/API/mac/WKBrowsingContextGroup.mm: Removed WKBrowsingContextGroupData class and
195 moved _pageGroupRef ivar directly into WKBrowsingContextGroup, declaring it in the
197 (-[WKBrowsingContextGroup initWithIdentifier:]): Removed indirection via _data.
198 (-[WKBrowsingContextGroup allowsJavaScript]): Removed indirection via -_pageGroupRef.
199 (-[WKBrowsingContextGroup setAllowsJavaScript:]): Ditto.
200 (-[WKBrowsingContextGroup allowsJavaScriptMarkup]): Ditto.
201 (-[WKBrowsingContextGroup setAllowsJavaScriptMarkup:]): Ditto.
202 (-[WKBrowsingContextGroup allowsPlugIns]): Ditto.
203 (-[WKBrowsingContextGroup setAllowsPlugIns:]): Ditto.
204 (-[WKBrowsingContextGroup addUserStyleSheet:baseURL:whitelistedURLPatterns:blacklistedURLPatterns:mainFrameOnly:]): Ditto.
205 (-[WKBrowsingContextGroup removeAllUserStyleSheets]): Ditto.
206 (-[WKBrowsingContextGroup addUserScript:baseURL:whitelistedURLPatterns:blacklistedURLPatterns:injectionTime:mainFrameOnly:]): Ditto.
207 (-[WKBrowsingContextGroup removeAllUserScripts]): Ditto.
208 (-[WKBrowsingContextGroup _pageGroupRef]): Removed indirection via _data.
210 * UIProcess/API/mac/WKConnection.h: Removed _data ivar and WKConnectionData class declaration.
211 * UIProcess/API/mac/WKConnection.mm: Removed WKConnectionData class and moved _connectionRef
212 ivar directly into WKConnection, declaring it in the @implementation. Removed ivar and
213 accessors for the delegate property, letting the compiler synthesize them.
214 (-[WKConnection dealloc]): Removed indirection via _data.
215 (-[WKConnection sendMessageWithName:body:]): Ditto.
216 (-[WKConnection remoteObjectRegistry]): Ditto.
217 (didReceiveMessage): Ditto.
218 (-[WKConnection _initWithConnectionRef:]): Ditto.
220 * UIProcess/API/mac/WKProcessGroup.h: Replaced forward declaration of WKConnection with an
221 import. Removed _data ivar and WKProcessGroupData class declaration.
222 * UIProcess/API/mac/WKProcessGroup.mm: Removed WKProcessGroupData class and moved
223 _contextRef ivar directly into WKProcessGroup, declaring it in the @implementation. Removed
224 ivar and accessors for the delegate property, letting the compiler synthesize them.
225 (-[WKProcessGroup initWithInjectedBundleURL:]): Removed indirection via _data.
226 (-[WKProcessGroup dealloc]): Ditto.
227 (-[WKProcessGroup _contextRef]): Ditto.
228 (-[WKProcessGroup _geolocationProvider]): Ditto.
230 2013-11-25 Commit Queue <commit-queue@webkit.org>
232 Unreviewed, rolling out r159740.
233 http://trac.webkit.org/changeset/159740
234 https://bugs.webkit.org/show_bug.cgi?id=124859
236 Crashing xmlhttprequest/access-control-repeated-failed-
237 preflight-crash.html on Mavericks and Mountain Lion -
238 ASSERT(m_pageGroup) WebPage.cpp:352 (Requested by dino_ on
241 * Scripts/webkit2/messages.py:
243 * Shared/UserMessageCoders.h:
244 (WebKit::UserMessageEncoder::baseEncode):
245 * Shared/WebPageCreationParameters.cpp:
246 (WebKit::WebPageCreationParameters::encode):
247 (WebKit::WebPageCreationParameters::decode):
248 * Shared/WebPageCreationParameters.h:
249 * Shared/mac/ObjCObjectGraphCoders.h:
250 * Shared/mac/ObjCObjectGraphCoders.mm:
251 (WebKit::ObjCObjectGraphEncoder::baseEncode):
252 (WebKit::WebContextObjCObjectGraphEncoderImpl::WebContextObjCObjectGraphEncoderImpl):
253 (WebKit::WebContextObjCObjectGraphEncoderImpl::encode):
254 (WebKit::InjectedBundleObjCObjectGraphEncoderImpl::encode):
255 (WebKit::WebContextObjCObjectGraphEncoder::WebContextObjCObjectGraphEncoder):
256 (WebKit::WebContextObjCObjectGraphEncoder::encode):
257 * UIProcess/WebConnectionToWebProcess.cpp:
258 (WebKit::WebConnectionToWebProcess::encodeMessageBody):
259 * UIProcess/WebContext.cpp:
260 (WebKit::WebContext::createNewWebProcess):
261 (WebKit::WebContext::createWebPage):
262 (WebKit::WebContext::postMessageToInjectedBundle):
263 (WebKit::WebContext::didReceiveSyncMessage):
264 * UIProcess/WebContextUserMessageCoders.h:
265 (WebKit::WebContextUserMessageEncoder::WebContextUserMessageEncoder):
266 (WebKit::WebContextUserMessageEncoder::encode):
267 (WebKit::WebContextUserMessageDecoder::decode):
268 * UIProcess/WebPageGroup.cpp:
269 * UIProcess/WebPageGroup.h:
270 (WebKit::WebPageGroup::sendToAllProcessesInGroup):
271 * UIProcess/WebPageProxy.cpp:
272 (WebKit::WebPageProxy::create):
273 (WebKit::WebPageProxy::WebPageProxy):
274 (WebKit::WebPageProxy::initializeWebPage):
275 (WebKit::WebPageProxy::loadURL):
276 (WebKit::WebPageProxy::loadURLRequest):
277 (WebKit::WebPageProxy::loadFile):
278 (WebKit::WebPageProxy::loadData):
279 (WebKit::WebPageProxy::loadHTMLString):
280 (WebKit::WebPageProxy::loadAlternateHTMLString):
281 (WebKit::WebPageProxy::loadPlainTextString):
282 (WebKit::WebPageProxy::loadWebArchiveData):
283 (WebKit::WebPageProxy::postMessageToInjectedBundle):
284 (WebKit::WebPageProxy::initializeCreationParameters):
285 * UIProcess/WebPageProxy.h:
286 * UIProcess/WebProcessProxy.cpp:
287 (WebKit::WebProcessProxy::disconnect):
288 (WebKit::WebProcessProxy::createWebPage):
289 * UIProcess/WebProcessProxy.h:
290 * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
291 (WebKit::InjectedBundleUserMessageEncoder::encode):
292 (WebKit::InjectedBundleUserMessageDecoder::decode):
293 * WebProcess/WebPage/WebPage.cpp:
294 (WebKit::WebPage::WebPage):
295 * WebProcess/WebProcess.cpp:
296 (WebKit::WebProcess::webPageGroup):
297 * WebProcess/WebProcess.h:
298 * WebProcess/WebProcess.messages.in:
300 2013-11-25 Dan Bernstein <mitz@apple.com>
302 [Cocoa] Put most of the Cocoa API behind WK_API_ENABLED guards
303 https://bugs.webkit.org/show_bug.cgi?id=124850
305 Reviewed by Brady Eidson.
307 Guarded all Cocoa API headers and implementations with WK_API_ENABLED. Left the WKView class
308 unguarded, but limited its API.
310 * Shared/API/Cocoa/WKFoundation.h: Replaced OBJ_VISIBLE with an explicit attribute.
311 * Shared/API/Cocoa/WKRemoteObjectCoder.mm: Moved #if WK_API_ENABLED before the rest of the
313 * Shared/API/Cocoa/WKRemoteObjectInterface.mm: Ditto.
314 * Shared/API/Cocoa/WKRemoteObjectRegistry.mm: Ditto.
315 * Shared/API/Cocoa/WKRemoteObjectRegistryPrivate.h: Ditto.
316 * UIProcess/API/mac/WKBrowsingContextController.h: Guarded all declarations with
317 WK_API_ENABLED, changed to use WK_API_CLASS instead of WK_EXPORT.
318 * UIProcess/API/mac/WKBrowsingContextController.mm: Guarded everything with WK_API_ENABLED.
319 (-[WKBrowsingContextController dealloc]):
320 (-[WKBrowsingContextController setPolicyDelegate:]):
321 (-[WKBrowsingContextController backForwardList]):
322 (didChangeBackForwardList):
323 (setUpPageLoaderClient):
324 (setUpPagePolicyClient):
325 (-[WKBrowsingContextController _initWithPageRef:]):
326 * UIProcess/API/mac/WKBrowsingContextControllerInternal.h: Ditto.
327 * UIProcess/API/mac/WKBrowsingContextControllerPrivate.h: Ditto.
328 * UIProcess/API/mac/WKBrowsingContextGroup.h: Guarded all declarations with WK_API_ENABLED,
329 chanegd to use WK_API_CLASS instead of WK_EXPORT.
330 * UIProcess/API/mac/WKBrowsingContextGroup.mm: Removed redundant import, guarded everything
332 * UIProcess/API/mac/WKBrowsingContextGroupPrivate.h: Guarded with WK_API_ENABLED.
333 * UIProcess/API/mac/WKBrowsingContextPolicyDelegate.h: Added necessary import.
334 * UIProcess/API/mac/WKConnection.h: Guarded all declarations with WK_API_ENABLED, chanegd to
335 use WK_API_CLASS instead of WK_EXPORT.
336 * UIProcess/API/mac/WKConnection.mm: Guarded everything with WK_API_ENABLED.
337 (-[WKConnection remoteObjectRegistry]):
339 * UIProcess/API/mac/WKConnectionInternal.h: Guarded the delcarations with WK_API_ENABLED.
340 * UIProcess/API/mac/WKProcessGroup.h: Ditto. Also changed to use WK_API_CLASS instead of
342 * UIProcess/API/mac/WKProcessGroup.mm: Guarded everything with WK_API_ENABLED.
343 (-[WKProcessGroup initWithInjectedBundleURL:]):
344 * UIProcess/API/mac/WKProcessGroupPrivate.h: Guarded the declarations with WK_API_ENABLED.
345 * UIProcess/API/mac/WKTypeRefWrapper.h: Moved #if WK_API_ENABLED before the rest of the
346 imports, changed to use WK_API_CLASS instead of WK_EXPORT.
347 * UIProcess/API/mac/WKTypeRefWrapper.mm: Removed empty line after #import "config.h".
348 * UIProcess/API/mac/WKView.h: Added #if WK_API_ENABLED around API that uses other Cocoa API
350 * UIProcess/API/mac/WKView.mm: Added #if WK_API_ENABLED around implementations of methods
351 that are only declared when the API is enabled.
352 * UIProcess/API/mac/WKViewInternal.h: Reordered imports.
353 * UIProcess/mac/WKFullScreenWindowController.mm: Added comment to #endif.
354 * UIProcess/mac/WebContextMac.mm:
355 (WebKit::WebContext::platformInitializeWebProcess): Guarded use of
356 WKBrowsingContextController with WK_API_ENABLED.
357 (WebKit::WebContext::platformInitializeNetworkProcess): Ditto.
358 * UIProcess/mac/WebContextMenuProxyMac.mm: Removed newline between imports.
359 * WebProcess/InjectedBundle/API/mac/WKDOMDocument.h: Moved #if WK_API_ENABLED before the
360 rest of the imports, and changed to use WK_API_CLASS instead of WK_EXPORT.
361 * WebProcess/InjectedBundle/API/mac/WKDOMDocument.mm: Removed newline after #import
363 * WebProcess/InjectedBundle/API/mac/WKDOMElement.h: Moved #if WK_API_ENABLED before the
364 rest of the imports, and changed to use WK_API_CLASS instead of WK_EXPORT.
365 * WebProcess/InjectedBundle/API/mac/WKDOMElement.mm: Removed newline after #import
367 * WebProcess/InjectedBundle/API/mac/WKDOMInternals.mm: Ditto.
368 * WebProcess/InjectedBundle/API/mac/WKDOMNode.h: Moved #if WK_API_ENABLED before the
369 rest of the imports, and changed to use WK_API_CLASS instead of WK_EXPORT.
370 * WebProcess/InjectedBundle/API/mac/WKDOMNode.mm: Removed redundant import.
371 * WebProcess/InjectedBundle/API/mac/WKDOMRange.h: Moved #if WK_API_ENABLED before the
372 rest of the imports, and changed to use WK_API_CLASS instead of WK_EXPORT.
373 * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm: Removed newline and redundant import.
374 * WebProcess/InjectedBundle/API/mac/WKDOMText.h: Moved #if WK_API_ENABLED before the
375 rest of the imports, and changed to use WK_API_CLASS instead of WK_EXPORT.
376 * WebProcess/InjectedBundle/API/mac/WKDOMTextIterator.h: Ditto.
377 * WebProcess/InjectedBundle/API/mac/WKDOMTextIterator.mm: Removed newline after
379 * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.h: Moved #if WK_API_ENABLED before
380 the rest of the imports, and changed to use WK_API_CLASS instead of WK_EXPORT.
381 * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.mm: Removed newline and redundant
383 * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.h: Moved #if
384 WK_API_ENABLED before the rest of the imports, and changed to use WK_API_CLASS instead of
386 * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm: Removed
387 newline after #import "config.h".
389 2013-11-22 Sam Weinig <sam@webkit.org>
391 WebPageGroup's should keep track of what processes they are being used by
392 https://bugs.webkit.org/show_bug.cgi?id=124556
394 Reviewed by Dan Bernstein.
396 * Scripts/webkit2/messages.py:
398 Mark WebPageGroupData as a struct.
400 * Shared/UserMessageCoders.h:
401 * Shared/mac/ObjCObjectGraphCoders.h:
402 * Shared/mac/ObjCObjectGraphCoders.mm:
403 * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
404 * UIProcess/WebConnectionToWebProcess.cpp:
405 * UIProcess/WebContext.cpp:
406 * UIProcess/WebContextUserMessageCoders.h:
407 * UIProcess/WebPageProxy.cpp:
408 * UIProcess/WebPageProxy.h:
409 Pass the WebProcess/WebProcessProxy to both encode and decode.
411 * Shared/WebPageCreationParameters.h:
412 Pass the page group by ID when creating a page, as it will have had its own
413 creation message sent already.
415 * UIProcess/WebPageGroup.cpp:
416 * UIProcess/WebPageGroup.h:
417 Keep track of processes.
419 * UIProcess/WebProcessProxy.cpp:
420 * UIProcess/WebProcessProxy.h:
421 Keep track of the page groups used by the process.
423 * WebProcess/WebPage/WebPage.cpp:
424 Get the already create page group on creation.
426 * WebProcess/WebProcess.cpp:
427 * WebProcess/WebProcess.h:
428 * WebProcess/WebProcess.messages.in:
429 Explicitly create page groups in the WebProcess.
431 2013-11-24 Brady Eidson <beidson@apple.com>
433 DatabaseProcess: Add "UniqueIDBDatabase" that multiple WebProcesses can connect to
434 https://bugs.webkit.org/show_bug.cgi?id=124819
436 Reviewed by Dan Bernstein.
438 UniqueIDBDatabase instances are per-DatabaseProcess, so it manages the set of them.
439 * DatabaseProcess/DatabaseProcess.cpp:
440 (WebKit::DatabaseProcess::getOrCreateUniqueIDBDatabase):
441 (WebKit::DatabaseProcess::removeUniqueIDBDatabase):
442 * DatabaseProcess/DatabaseProcess.h:
444 * DatabaseProcess/DatabaseToWebProcessConnection.h:
446 Start forwarding things along to the appropriate UniqueIDBDatabase.
447 * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
448 (WebKit::DatabaseProcessIDBConnection::~DatabaseProcessIDBConnection):
449 (WebKit::DatabaseProcessIDBConnection::disconnectedFromWebProcess):
450 (WebKit::DatabaseProcessIDBConnection::establishConnection):
451 (WebKit::DatabaseProcessIDBConnection::getOrEstablishIDBDatabaseMetadata):
452 * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
454 A class that represents a single concrete IDB database that multiple WebProcesses can connect to.
455 * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
456 (WebKit::UniqueIDBDatabase::UniqueIDBDatabase):
457 (WebKit::UniqueIDBDatabase::~UniqueIDBDatabase):
458 (WebKit::UniqueIDBDatabase::registerConnection):
459 (WebKit::UniqueIDBDatabase::unregisterConnection):
460 (WebKit::UniqueIDBDatabase::getIDBDatabaseMetadata):
461 * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:
462 (WebKit::UniqueIDBDatabase::create):
463 (WebKit::UniqueIDBDatabase::identifier):
465 A class to help uniquely identify an IDBDatabase that can be expanded as needed.
466 Importantly, it knows how to be used as a key in a HashMap.
467 * DatabaseProcess/IndexedDB/UniqueIDBDatabaseIdentifier.cpp: Added.
468 (WebKit::UniqueIDBDatabaseIdentifier::UniqueIDBDatabaseIdentifier):
469 (WebKit::UniqueIDBDatabaseIdentifier::isHashTableDeletedValue):
470 (WebKit::UniqueIDBDatabaseIdentifier::hash):
471 (WebKit::UniqueIDBDatabaseIdentifier::isNull):
472 (WebKit::operator==):
473 * DatabaseProcess/IndexedDB/UniqueIDBDatabaseIdentifier.h: Added.
474 (WebKit::UniqueIDBDatabaseIdentifier::databaseName):
475 (WebKit::UniqueIDBDatabaseIdentifier::openingOrigin):
476 (WebKit::UniqueIDBDatabaseIdentifier::mainFrameOrigin):
477 (WebKit::UniqueIDBDatabaseIdentifierHash::hash):
478 (WebKit::UniqueIDBDatabaseIdentifierHash::equal):
479 (WebKit::UniqueIDBDatabaseIdentifierHashTraits::isEmptyValue):
481 * Shared/SecurityOriginData.cpp:
482 (WebKit::operator==):
483 * Shared/SecurityOriginData.h:
485 * UIProcess/WebContext.cpp:
487 * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp:
488 (WebKit::WebIDBFactoryBackend::open):
489 (WebKit::WebIDBFactoryBackend::removeIDBDatabaseBackend):
491 * WebKit2.xcodeproj/project.pbxproj:
493 2013-11-24 Danilo Cesar Lemes de Paula <danilo.cesar@collabora.co.uk>, Arunprasad Rajkumar <arurajku@cisco.com>
495 [WK2][GTK] Adding SpatialNavigation setting to webkit2
496 https://bugs.webkit.org/show_bug.cgi?id=114298
498 Reviewed by Anders Carlsson.
500 Adding SpatialNavigation support to WebPreferencesStore allows us
501 to toggle that feature on WebKitSettings.
503 * Shared/WebPreferencesStore.h:
504 * UIProcess/API/C/WKPreferences.cpp:
505 (WKPreferencesSetSpatialNavigationEnabled):
506 (WKPreferencesGetSpatialNavigationEnabled):
507 * UIProcess/API/C/WKPreferences.h:
508 * UIProcess/API/gtk/WebKitSettings.cpp:
509 (webKitSettingsSetProperty):
510 (webKitSettingsGetProperty):
511 (webkit_settings_class_init):
512 (webkit_settings_set_enable_spatial_navigation):
513 (webkit_settings_get_enable_spatial_navigation):
514 * UIProcess/API/gtk/WebKitSettings.h:
515 * UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
516 * UIProcess/API/gtk/tests/TestWebKitSettings.cpp:
517 (testWebKitSettings):
518 * WebProcess/WebPage/WebPage.cpp:
519 (WebKit::WebPage::updatePreferences):
521 2013-11-22 Brady Eidson <beidson@apple.com>
523 Add DatabaseProcessCreationParameters, starting with the database path.
524 https://bugs.webkit.org/show_bug.cgi?id=124804
526 Reviewed by Dean Jackson and Benjamin Poulain.
528 * DatabaseProcess/DatabaseProcess.cpp:
529 (WebKit::DatabaseProcess::initializeDatabaseProcess):
530 * DatabaseProcess/DatabaseProcess.h:
531 (WebKit::DatabaseProcess::indexedDatabaseDirectory):
532 * DatabaseProcess/DatabaseProcess.messages.in:
534 * Shared/Databases/DatabaseProcessCreationParameters.cpp: Added.
535 (WebKit::DatabaseProcessCreationParameters::DatabaseProcessCreationParameters):
536 (WebKit::DatabaseProcessCreationParameters::encode):
537 (WebKit::DatabaseProcessCreationParameters::decode):
538 * Shared/Databases/DatabaseProcessCreationParameters.h: Added.
540 * UIProcess/WebContext.cpp:
541 (WebKit::WebContext::ensureDatabaseProcess):
543 * WebKit2.xcodeproj/project.pbxproj:
544 * Scripts/webkit2/messages.py:
547 2013-11-22 Ryuan Choi <ryuan.choi@samsung.com>
549 [EFL] Build break after r159724
550 https://bugs.webkit.org/show_bug.cgi?id=124806
552 Reviewed by Tim Horton.
554 * Platform/CoreIPC/Connection.h: Include atomic header.
555 * UIProcess/CoordinatedGraphics/WebView.cpp: Rename didChangeContentsSize to didChangeContentSize.
556 (WebKit::WebView::didChangeContentSize):
557 * UIProcess/CoordinatedGraphics/WebView.h: Ditto.
558 * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Adjust TARGET_OS_IPHONE macro.
560 2013-11-22 Tim Horton <timothy_horton@apple.com>
562 Attempt build fixes for 32-bit after 159724.
564 There's probably a better fix, but this will work for now.
566 * UIProcess/API/mac/WKView.h:
568 2013-11-22 Enrica Casucci <enrica@apple.com>
570 Upstream iOS WebKit2 to OpenSource (part 3).
571 https://bugs.webkit.org/show_bug.cgi?id=124803
573 Reviewed by Anders Carlsson and Tim Horton.
576 2013-11-22 Jer Noble <jer.noble@apple.com>
578 [Mac] Can't drag full-screen video to another monitor
579 https://bugs.webkit.org/show_bug.cgi?id=124798
581 Reviewed by Geoffrey Garen.
583 Make full screen windows resizable by default. This allows the window to be resized when
584 moved between monitors with different resolutions.
586 * UIProcess/API/mac/WKView.mm:
587 (-[WKView createFullScreenWindow]):
589 2013-11-22 Benjamin Poulain <bpoulain@apple.com>
591 [WK2] Another build fix for NetworkProcess on iOS
592 https://bugs.webkit.org/show_bug.cgi?id=124797
594 Reviewed by Alexey Proskuryakov.
596 * NetworkProcess/NetworkResourceLoader.h:
598 2013-11-22 Benjamin Poulain <bpoulain@apple.com>
600 [WK2] Fix the build of the NetworkProcess on iOS
601 https://bugs.webkit.org/show_bug.cgi?id=124794
603 Reviewed by Alexey Proskuryakov.
605 * NetworkProcess/AsynchronousNetworkLoaderClient.cpp:
606 (WebKit::AsynchronousNetworkLoaderClient::didReceiveBuffer):
607 * NetworkProcess/NetworkResourceLoader.h:
608 * NetworkProcess/SynchronousNetworkLoaderClient.cpp:
609 (WebKit::SynchronousNetworkLoaderClient::willSendRequest):
611 2013-11-22 Anders Carlsson <andersca@apple.com>
613 Move the remaining page loader clients out into separate files
614 https://bugs.webkit.org/show_bug.cgi?id=124792
616 Reviewed by Dan Bernstein.
618 * UIProcess/API/C/WKPage.h:
619 * UIProcess/API/C/WKPageContextMenuClient.h: Added.
620 * UIProcess/API/C/WKPageFindClient.h: Added.
621 * UIProcess/API/C/WKPageFindMatchesClient.h: Added.
622 * UIProcess/API/C/WKPageFormClient.h: Added.
623 * UIProcess/API/C/WKPageLoaderClient.h:
624 * UIProcess/API/C/WKPagePolicyClient.h: Added.
625 * UIProcess/API/C/WKPageUIClient.h: Added.
626 * WebKit2.xcodeproj/project.pbxproj:
628 2013-11-22 Anders Carlsson <andersca@apple.com>
630 Move WKPageLoaderClient out into a separate header
631 https://bugs.webkit.org/show_bug.cgi?id=124790
633 Reviewed by Dan Bernstein.
635 * UIProcess/API/C/WKPage.h:
636 * UIProcess/API/C/WKPageLoaderClient.h: Added.
637 * WebKit2.xcodeproj/project.pbxproj:
639 2013-11-22 Anders Carlsson <andersca@apple.com>
643 * UIProcess/API/mac/WKBrowsingContextController.mm:
644 (-[WKBrowsingContextController dealloc]):
645 (-[WKBrowsingContextController _initWithPageRef:]):
647 2013-11-22 Dan Bernstein <mitz@apple.com>
649 Debug builds unconditionally dump remote layer tree transactions to stderr.
651 Reviewed by Sam Weinig.
653 * Platform/Logging.h: Declared RemoteLayerTree logging channel.
654 * Shared/mac/RemoteLayerTreeTransaction.h: Declared description().
655 * Shared/mac/RemoteLayerTreeTransaction.mm:
656 (WebKit::RemoteLayerTreeTransaction::dump): Changed to use description().
657 (WebKit::RemoteLayerTreeTransaction::description): Returns a CString with the description.
658 * UIProcess/mac/RemoteLayerTreeHost.mm:
659 (WebKit::RemoteLayerTreeHost::commit): Changed to use logging instead of calling dump().
661 2013-11-21 Anders Carlsson <andersca@apple.com>
663 Send out the right KVO callbacks when the page title changes
664 https://bugs.webkit.org/show_bug.cgi?id=124753
666 Reviewed by Simon Fraser.
668 * UIProcess/API/mac/WKBrowsingContextController.mm:
669 (PageLoadStateObserver::PageLoadStateObserver):
670 New class that sends the right KVO notifications when the load state changes.
672 (-[WKBrowsingContextController dealloc]):
675 (-[WKBrowsingContextController _initWithPageRef:]):
676 Allocate the observer and add it.
678 * UIProcess/PageLoadState.cpp:
679 (WebKit::PageLoadState::~PageLoadState):
680 Assert that we don't have any observers left.
682 (WebKit::PageLoadState::addObserver):
683 Add the observer to the list.
685 (WebKit::PageLoadState::removeObserver):
686 Remove the observer from the list.
688 (WebKit::PageLoadState::reset):
689 Call title change callbacks.
691 (WebKit::PageLoadState::setTitle):
694 (WebKit::PageLoadState::callObserverCallback):
695 Helper function to dispatch callbacks to observers.
697 * UIProcess/PageLoadState.h:
700 2013-11-21 Sergio Correia <sergio.correia@openbossa.org>
702 [EFL][WK2] Fix build after r159656
703 https://bugs.webkit.org/show_bug.cgi?id=124755
705 Reviewed by Gyuyoung Kim.
707 Page title was moved to page load state.
709 * UIProcess/InspectorServer/efl/WebInspectorServerEfl.cpp:
710 (WebKit::WebInspectorServer::buildPageList):
712 2013-11-21 Mark Rowe <mrowe@apple.com>
714 <https://webkit.org/b/124702> Stop overriding VALID_ARCHS.
716 All modern versions of Xcode set it appropriately for our needs.
718 Reviewed by Alexey Proskuryakov.
720 * Configurations/Base.xcconfig:
722 2013-11-21 Gwang Yoon Hwang <ryumiel@company100.net>
724 [GTK] Unreviewed buildfix after r159614 and r159656.
726 * UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp:
727 (WebKit::WebInspectorServer::buildPageList): Use the page load state to get page title.
729 2013-11-21 Mark Rowe <mrowe@apple.com>
731 <https://webkit.org/b/124701> Fix an error in a few Xcode configuration setting files.
733 Reviewed by Alexey Proskuryakov.
735 * Configurations/Base.xcconfig:
737 2013-11-21 Mark Rowe <mrowe@apple.com>
739 <https://webkit.org/b/124700> Fix some deprecation warnings.
741 Reviewed by Anders Carlsson.
743 * UIProcess/API/mac/WKView.mm:
744 (-[WKView namesOfPromisedFilesDroppedAtDestination:]): Move off a deprecated NSFileWrapper method.
746 2013-11-21 Anders Carlsson <andersca@apple.com>
748 Didn't mean to commit this.
750 * UIProcess/PageLoadState.h:
752 2013-11-21 Anders Carlsson <andersca@apple.com>
754 Move page title handling to the page load state
755 https://bugs.webkit.org/show_bug.cgi?id=124748
757 Reviewed by Dan Bernstein.
759 * UIProcess/API/C/WKPage.cpp:
761 * UIProcess/PageLoadState.cpp:
762 (WebKit::PageLoadState::reset):
763 (WebKit::PageLoadState::didCommitLoad):
764 (WebKit::PageLoadState::title):
765 (WebKit::PageLoadState::setTitle):
766 * UIProcess/PageLoadState.h:
767 * UIProcess/WebPageProxy.cpp:
768 (WebKit::WebPageProxy::didReceiveTitleForFrame):
769 * UIProcess/WebPageProxy.h:
771 2013-11-21 Daniel Bates <dabates@apple.com>
773 Remove unused functions from WebCore and WebKit2
774 https://bugs.webkit.org/show_bug.cgi?id=124739
776 Reviewed by Alexey Proskuryakov.
778 Remove unused functions autoreleased({WKURLRequestRef, WKURLResponseRef}).
780 * UIProcess/API/mac/WKBrowsingContextController.mm:
782 2013-11-21 Csaba Osztrogonác <ossy@webkit.org>
784 Rename PlatformCertificateInfo to CertificateInfo
785 https://bugs.webkit.org/show_bug.cgi?id=124150
787 Reviewed by Darin Adler.
789 * GNUmakefile.list.am:
790 * NetworkProcess/AsynchronousNetworkLoaderClient.cpp:
791 (WebKit::AsynchronousNetworkLoaderClient::didReceiveResponse):
792 * NetworkProcess/NetworkProcess.h:
793 * NetworkProcess/NetworkProcess.messages.in:
794 * NetworkProcess/NetworkResourceLoader.cpp:
795 * NetworkProcess/mac/NetworkProcessMac.mm:
796 (WebKit::NetworkProcess::allowSpecificHTTPSCertificateForHost):
797 * NetworkProcess/soup/NetworkProcessSoup.cpp:
798 (WebKit::NetworkProcess::allowSpecificHTTPSCertificateForHost):
801 * Shared/API/c/mac/WKCertificateInfoMac.mm:
802 (WKCertificateInfoCreateWithCertficateChain):
803 (WKCertificateInfoGetCertificateChain):
804 * Shared/Authentication/AuthenticationManager.cpp:
805 (WebKit::AuthenticationManager::tryUseCertificateInfoForChallenge):
806 (WebKit::AuthenticationManager::useCredentialForChallenge):
807 * Shared/Authentication/AuthenticationManager.h:
808 * Shared/Authentication/AuthenticationManager.messages.in:
809 * Shared/Authentication/mac/AuthenticationManager.mac.mm:
810 (WebKit::AuthenticationManager::tryUseCertificateInfoForChallenge):
811 * Shared/UserMessageCoders.h:
812 (WebKit::UserMessageEncoder::baseEncode):
813 (WebKit::UserMessageDecoder::baseDecode):
814 * Shared/WebCertificateInfo.h:
815 (WebKit::WebCertificateInfo::create):
816 (WebKit::WebCertificateInfo::certificateInfo):
817 (WebKit::WebCertificateInfo::WebCertificateInfo):
818 * Shared/mac/CertificateInfo.h: Renamed from Source/WebKit2/Shared/mac/PlatformCertificateInfo.h.
819 (WebKit::CertificateInfo::certificateChain):
820 * Shared/mac/CertificateInfo.mm: Renamed from Source/WebKit2/Shared/mac/PlatformCertificateInfo.mm.
821 (WebKit::CertificateInfo::CertificateInfo):
822 (WebKit::CertificateInfo::encode):
823 (WebKit::CertificateInfo::decode):
824 (WebKit::CertificateInfo::dump):
825 * Shared/mac/WebCoreArgumentCodersMac.mm:
826 (CoreIPC::::encodePlatformData):
827 (CoreIPC::::decodePlatformData):
828 * Shared/soup/CertificateInfo.cpp: Renamed from Source/WebKit2/Shared/soup/PlatformCertificateInfo.cpp.
829 (WebKit::CertificateInfo::CertificateInfo):
830 (WebKit::CertificateInfo::~CertificateInfo):
831 (WebKit::CertificateInfo::encode):
832 (WebKit::CertificateInfo::decode):
833 * Shared/soup/CertificateInfo.h: Renamed from Source/WebKit2/Shared/soup/PlatformCertificateInfo.h.
834 (WebKit::CertificateInfo::certificate):
835 (WebKit::CertificateInfo::tlsErrors):
836 * Shared/soup/WebCoreArgumentCodersSoup.cpp:
837 (CoreIPC::::encodePlatformData):
838 (CoreIPC::::decodePlatformData):
839 * UIProcess/API/gtk/WebKitCertificateInfo.cpp:
840 (webkitCertificateInfoGetCertificateInfo):
841 * UIProcess/API/gtk/WebKitCertificateInfoPrivate.h:
842 * UIProcess/API/gtk/WebKitWebView.cpp:
843 (webkit_web_view_get_tls_info):
844 * UIProcess/Authentication/AuthenticationChallengeProxy.cpp:
845 (WebKit::AuthenticationChallengeProxy::useCredential):
846 * UIProcess/WebContext.cpp:
847 (WebKit::WebContext::allowSpecificHTTPSCertificateForHost):
848 * UIProcess/WebFrameProxy.cpp:
849 (WebKit::WebFrameProxy::didCommitLoad):
850 * UIProcess/WebFrameProxy.h:
851 * UIProcess/WebPageProxy.cpp:
852 (WebKit::WebPageProxy::didCommitLoadForFrame):
853 * UIProcess/WebPageProxy.h:
854 * UIProcess/WebPageProxy.messages.in:
855 * WebKit2.xcodeproj/project.pbxproj:
856 * WebProcess/Network/WebResourceLoader.cpp:
857 (WebKit::WebResourceLoader::didReceiveResponseWithCertificateInfo):
858 * WebProcess/Network/WebResourceLoader.h:
859 * WebProcess/Network/WebResourceLoader.messages.in:
860 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
861 (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
862 * WebProcess/WebProcess.h:
863 * WebProcess/WebProcess.messages.in:
864 * WebProcess/soup/WebProcessSoup.cpp:
865 (WebKit::WebProcess::allowSpecificHTTPSCertificateForHost):
867 2013-11-21 Sergio Correia <sergio.correia@openbossa.org>
869 [EFL][GTK][WK2] Build fix after r159641
870 https://bugs.webkit.org/show_bug.cgi?id=124742
872 Reviewed by Csaba Osztrogonác.
874 Should fetch activeURL from page load state.
876 * UIProcess/API/gtk/WebKitWebView.cpp:
877 (webkitWebViewUpdateURI):
878 * UIProcess/InspectorServer/efl/WebInspectorServerEfl.cpp:
879 (WebKit::WebInspectorServer::buildPageList):
880 * UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp:
881 (WebKit::WebInspectorServer::buildPageList):
883 2013-11-21 Anders Carlsson <andersca@apple.com>
885 Fetch all page loading related URLs from the page load state
886 https://bugs.webkit.org/show_bug.cgi?id=124732
888 Reviewed by Dan Bernstein.
890 * UIProcess/API/C/WKPage.cpp:
891 (WKPageCopyActiveURL):
892 (WKPageCopyProvisionalURL):
893 (WKPageCopyCommittedURL):
894 * UIProcess/API/mac/WKBrowsingContextController.mm:
895 (-[WKBrowsingContextController unreachableURL]):
896 * UIProcess/PageLoadState.h:
897 (WebKit::PageLoadState::provisionalURL):
898 (WebKit::PageLoadState::url):
899 (WebKit::PageLoadState::unreachableURL):
900 * UIProcess/WebPageProxy.cpp:
901 * UIProcess/WebPageProxy.h:
903 2013-11-20 Brady Eidson <beidson@apple.com>
905 Hook up WebProcess-side of getOrEstablishIDBDatabaseMetadata
906 https://bugs.webkit.org/show_bug.cgi?id=124698
908 Reviewed by Anders Carlsson.
910 With this change the IDB API in WebKit2 using the DatabaseProcess finally does something observable:
911 window.indexedDB.open() sends an error to Javascript.
913 * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
914 (WebKit::DatabaseProcessIDBConnection::getOrEstablishIDBDatabaseMetadata): Continue calling back to the
915 WebProcess with dummy data, but include the request ID for reference.
916 * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
917 * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in:
919 Add a new class that wraps a completion callback function and gives it a unique integer identifier.
920 It also allows for wrapping an abort callback function (in case a connection is lost, for example).
921 It is templated to flexibly handle any callback function signature.
922 * Shared/AsyncRequest.cpp: Added.
923 (WebKit::generateRequestID):
924 (WebKit::AsyncRequest::AsyncRequest):
925 (WebKit::AsyncRequest::~AsyncRequest):
926 (WebKit::AsyncRequest::setAbortHandler):
927 (WebKit::AsyncRequest::requestAborted):
928 (WebKit::AsyncRequest::clearAbortHandler):
929 * Shared/AsyncRequest.h: Added.
930 (WebKit::AsyncRequest::requestID):
931 (WebKit::AsyncRequest::requestCompleted):
933 * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
934 (WebKit::WebIDBServerConnection::getOrEstablishIDBDatabaseMetadata): Wrap the completion handler in an
935 AsyncRequest and save off the request for later use.
936 (WebKit::WebIDBServerConnection::didGetOrEstablishIDBDatabaseMetadata): Send the results to the AsyncRequest.
937 * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
938 * WebProcess/Databases/IndexedDB/WebIDBServerConnection.messages.in:
940 * WebKit2.xcodeproj/project.pbxproj:
942 2013-11-20 Anders Carlsson <andersca@apple.com>
944 Move activeURL getter to PageLoadState
945 https://bugs.webkit.org/show_bug.cgi?id=124690
947 Reviewed by Tim Horton.
949 * UIProcess/PageLoadState.cpp:
950 (WebKit::PageLoadState::activeURL):
951 * UIProcess/PageLoadState.h:
952 * UIProcess/WebPageProxy.cpp:
953 (WebKit::WebPageProxy::activeURL):
955 2013-11-20 Simon Fraser <simon.fraser@apple.com>
957 Clean up WebKit2 initialization
958 https://bugs.webkit.org/show_bug.cgi?id=124696
960 Reviewed by Sam Weinig.
962 Call InitializeWebKit2() everywhere we need to do one-time
963 initialization in WebKit2, rather than having a hotch-potch
966 * Shared/APIObject.cpp:
967 (API::Object::Object):
968 * UIProcess/API/mac/WKView.mm:
969 (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
970 * UIProcess/Launcher/mac/ProcessLauncherMac.mm: Removed an unused #include.
971 * UIProcess/WebContext.cpp:
972 (WebKit::WebContext::create):
974 2013-11-21 Dan Bernstein <mitz@apple.com>
976 Reverted r159603, as it appears to have caused Safari’s Web processes to crash on launch.
978 Requested by Sam Weinig.
980 * Scripts/webkit2/messages.py:
982 * Shared/UserMessageCoders.h:
983 (WebKit::UserMessageEncoder::baseEncode):
984 * Shared/WebPageCreationParameters.cpp:
985 (WebKit::WebPageCreationParameters::encode):
986 (WebKit::WebPageCreationParameters::decode):
987 * Shared/WebPageCreationParameters.h:
988 * Shared/mac/ObjCObjectGraphCoders.h:
989 * Shared/mac/ObjCObjectGraphCoders.mm:
990 (WebKit::ObjCObjectGraphEncoder::baseEncode):
991 (WebKit::WebContextObjCObjectGraphEncoderImpl::WebContextObjCObjectGraphEncoderImpl):
992 (WebKit::WebContextObjCObjectGraphEncoderImpl::encode):
993 (WebKit::InjectedBundleObjCObjectGraphEncoderImpl::encode):
994 (WebKit::WebContextObjCObjectGraphEncoder::WebContextObjCObjectGraphEncoder):
995 (WebKit::WebContextObjCObjectGraphEncoder::encode):
996 * UIProcess/WebConnectionToWebProcess.cpp:
997 (WebKit::WebConnectionToWebProcess::encodeMessageBody):
998 * UIProcess/WebContext.cpp:
999 (WebKit::WebContext::createNewWebProcess):
1000 (WebKit::WebContext::createWebPage):
1001 (WebKit::WebContext::postMessageToInjectedBundle):
1002 (WebKit::WebContext::didReceiveSyncMessage):
1003 * UIProcess/WebContextUserMessageCoders.h:
1004 (WebKit::WebContextUserMessageEncoder::WebContextUserMessageEncoder):
1005 (WebKit::WebContextUserMessageEncoder::encode):
1006 (WebKit::WebContextUserMessageDecoder::decode):
1007 * UIProcess/WebPageGroup.cpp:
1008 * UIProcess/WebPageGroup.h:
1009 (WebKit::WebPageGroup::sendToAllProcessesInGroup):
1010 * UIProcess/WebPageProxy.cpp:
1011 (WebKit::WebPageProxy::create):
1012 (WebKit::WebPageProxy::WebPageProxy):
1013 (WebKit::WebPageProxy::initializeWebPage):
1014 (WebKit::WebPageProxy::loadURL):
1015 (WebKit::WebPageProxy::loadURLRequest):
1016 (WebKit::WebPageProxy::loadFile):
1017 (WebKit::WebPageProxy::loadData):
1018 (WebKit::WebPageProxy::loadHTMLString):
1019 (WebKit::WebPageProxy::loadAlternateHTMLString):
1020 (WebKit::WebPageProxy::loadPlainTextString):
1021 (WebKit::WebPageProxy::loadWebArchiveData):
1022 (WebKit::WebPageProxy::postMessageToInjectedBundle):
1023 (WebKit::WebPageProxy::initializeCreationParameters):
1024 * UIProcess/WebPageProxy.h:
1025 * UIProcess/WebProcessProxy.cpp:
1026 (WebKit::WebProcessProxy::disconnect):
1027 (WebKit::WebProcessProxy::createWebPage):
1028 * UIProcess/WebProcessProxy.h:
1029 * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
1030 (WebKit::InjectedBundleUserMessageEncoder::encode):
1031 (WebKit::InjectedBundleUserMessageDecoder::decode):
1032 * WebProcess/WebPage/WebPage.cpp:
1033 (WebKit::WebPage::WebPage):
1034 * WebProcess/WebProcess.cpp:
1035 (WebKit::WebProcess::webPageGroup):
1036 * WebProcess/WebProcess.h:
1037 * WebProcess/WebProcess.messages.in:
1039 2013-11-20 Brady Eidson <beidson@apple.com>
1041 Add more infrastructure for ServerConnection communication between Web and Database processes
1042 https://bugs.webkit.org/show_bug.cgi?id=124693
1044 Reviewed by Anders Carlsson.
1046 * DatabaseProcess/DatabaseToWebProcessConnection.cpp:
1047 (WebKit::DatabaseToWebProcessConnection::establishIDBConnection):
1048 (WebKit::DatabaseToWebProcessConnection::removeDatabaseProcessIDBConnection): Added for WebProcess to be able
1049 to invalidate the DatabaseProcess side of a server connection.
1050 * DatabaseProcess/DatabaseToWebProcessConnection.h:
1051 * DatabaseProcess/DatabaseToWebProcessConnection.messages.in:
1053 * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
1054 (WebKit::DatabaseProcessIDBConnection::DatabaseProcessIDBConnection):
1055 (WebKit::DatabaseProcessIDBConnection::disconnectedFromWebProcess): Added for future cleanup.
1056 (WebKit::DatabaseProcessIDBConnection::establishConnection):
1057 (WebKit::DatabaseProcessIDBConnection::getOrEstablishIDBDatabaseMetadata): Callback to the WebProcess, even if
1058 it is just dummy data for now.
1059 * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
1060 (WebKit::DatabaseProcessIDBConnection::create):
1062 * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
1063 (WebKit::WebIDBServerConnection::create): Register the new object with the WebToDatabaseProcessConnection.
1064 (WebKit::WebIDBServerConnection::~WebIDBServerConnection): Remove from the WebToDatabaseProcessConnection.
1065 (WebKit::WebIDBServerConnection::getOrEstablishIDBDatabaseMetadata):
1066 (WebKit::WebIDBServerConnection::didGetOrEstablishIDBDatabaseMetadata): Callback from the DatabaseProcess,
1068 * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
1069 * WebProcess/Databases/IndexedDB/WebIDBServerConnection.messages.in: Copied from Source/WebKit2/DatabaseProcess/DatabaseToWebProcessConnection.messages.in.
1071 * WebProcess/Databases/WebToDatabaseProcessConnection.cpp:
1072 (WebKit::WebToDatabaseProcessConnection::didReceiveMessage):
1073 (WebKit::WebToDatabaseProcessConnection::didClose):
1074 (WebKit::WebToDatabaseProcessConnection::registerWebIDBServerConnection): Hold a collection of all
1075 server connections for messaging.
1076 (WebKit::WebToDatabaseProcessConnection::removeWebIDBServerConnection): Remove a connection from the collection,
1077 and also message the DatabaseProcess that it’s gone away.
1078 * WebProcess/Databases/WebToDatabaseProcessConnection.h:
1080 Project files, etc etc:
1081 * DerivedSources.make:
1082 * Scripts/webkit2/messages.py:
1084 * WebKit2.xcodeproj/project.pbxproj:
1086 2013-11-18 Sam Weinig <sam@webkit.org>
1088 WebPageGroup's should keep track of what processes they are being used by
1089 https://bugs.webkit.org/show_bug.cgi?id=124556
1091 Reviewed by Dan Bernstein.
1093 * Scripts/webkit2/messages.py:
1095 Mark WebPageGroupData as a struct.
1097 * Shared/UserMessageCoders.h:
1098 * Shared/mac/ObjCObjectGraphCoders.h:
1099 * Shared/mac/ObjCObjectGraphCoders.mm:
1100 * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
1101 * UIProcess/WebConnectionToWebProcess.cpp:
1102 * UIProcess/WebContext.cpp:
1103 * UIProcess/WebContextUserMessageCoders.h:
1104 * UIProcess/WebPageProxy.cpp:
1105 * UIProcess/WebPageProxy.h:
1106 Pass the WebProcess/WebProcessProxy to both encode and decode.
1108 * Shared/WebPageCreationParameters.h:
1109 Pass the page group by ID when creating a page, as it will have had its own
1110 creation message sent already.
1112 * UIProcess/WebPageGroup.cpp:
1113 * UIProcess/WebPageGroup.h:
1114 Keep track of processes.
1116 * UIProcess/WebProcessProxy.cpp:
1117 * UIProcess/WebProcessProxy.h:
1118 Keep track of the page groups used by the process.
1120 * WebProcess/WebPage/WebPage.cpp:
1121 Get the already created page group on creation.
1123 * WebProcess/WebProcess.cpp:
1124 * WebProcess/WebProcess.h:
1125 * WebProcess/WebProcess.messages.in:
1126 Explicitly create page groups in the WebProcess.
1128 2013-11-20 Brady Eidson <beidson@apple.com>
1130 IDB related cleanup in WebKit2
1131 https://bugs.webkit.org/show_bug.cgi?id=124691
1133 Reviewed by Enrica Casucci.
1135 - WebIDBServerConnection.cpp should use the WebCore namespace and get rid of "WebCore::" throughout
1136 - "backendIndentifier" should be renamed to "serverConnectionIdentifier" throughout
1138 * DatabaseProcess/DatabaseToWebProcessConnection.cpp:
1139 (WebKit::DatabaseToWebProcessConnection::establishIDBConnection):
1140 * DatabaseProcess/DatabaseToWebProcessConnection.h:
1141 * DatabaseProcess/DatabaseToWebProcessConnection.messages.in:
1143 * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
1144 (WebKit::DatabaseProcessIDBConnection::DatabaseProcessIDBConnection):
1145 * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
1146 (WebKit::DatabaseProcessIDBConnection::create):
1148 * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
1149 (WebKit::generateServerConnectionIdentifier):
1150 (WebKit::WebIDBServerConnection::WebIDBServerConnection):
1151 (WebKit::WebIDBServerConnection::openTransaction):
1152 (WebKit::WebIDBServerConnection::setIndexKeys):
1153 (WebKit::WebIDBServerConnection::createObjectStore):
1154 (WebKit::WebIDBServerConnection::createIndex):
1155 (WebKit::WebIDBServerConnection::deleteIndex):
1156 (WebKit::WebIDBServerConnection::get):
1157 (WebKit::WebIDBServerConnection::put):
1158 (WebKit::WebIDBServerConnection::openCursor):
1159 (WebKit::WebIDBServerConnection::count):
1160 (WebKit::WebIDBServerConnection::deleteRange):
1161 (WebKit::WebIDBServerConnection::clearObjectStore):
1162 (WebKit::WebIDBServerConnection::deleteObjectStore):
1163 (WebKit::WebIDBServerConnection::changeDatabaseVersion):
1164 (WebKit::WebIDBServerConnection::cursorAdvance):
1165 (WebKit::WebIDBServerConnection::cursorIterate):
1166 (WebKit::WebIDBServerConnection::cursorPrefetchIteration):
1167 (WebKit::WebIDBServerConnection::cursorPrefetchReset):
1168 * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
1170 2013-11-20 Brady Eidson <beidson@apple.com>
1172 Add argument coders for IDBDatabaseMetadata classes
1173 https://bugs.webkit.org/show_bug.cgi?id=124689
1175 Reviewed by Anders Carlsson.
1178 - IDBDatabaseMetadata
1181 - IDBObjectStoreMetadata
1183 * Shared/WebCoreArgumentCoders.cpp:
1184 (CoreIPC::::encode):
1185 (CoreIPC::::decode):
1186 * Shared/WebCoreArgumentCoders.h:
1188 2013-11-20 Anders Carlsson <andersca@apple.com>
1190 Enable PageLoadTest assertions again
1191 https://bugs.webkit.org/show_bug.cgi?id=124681
1193 Reviewed by Tim Horton.
1195 Remove an overzealous assertion and re-enable assertions in PageLoadState again.
1197 * UIProcess/PageLoadState.cpp:
1198 (WebKit::PageLoadState::didCommitLoad):
1199 Remove assertion - it's fine for a page to have a null URL.
1201 (WebKit::PageLoadState::didFinishLoad):
1204 (WebKit::PageLoadState::didFailLoad):
1207 2013-11-20 Anders Carlsson <andersca@apple.com>
1209 PageLoadState should keep track of unreachable URLs
1210 https://bugs.webkit.org/show_bug.cgi?id=124677
1212 Reviewed by Dan Bernstein.
1214 * UIProcess/PageLoadState.cpp:
1215 (WebKit::PageLoadState::reset):
1216 (WebKit::PageLoadState::didStartProvisionalLoad):
1217 (WebKit::PageLoadState::didFailProvisionalLoad):
1218 (WebKit::PageLoadState::setUnreachableURL):
1219 * UIProcess/PageLoadState.h:
1220 * UIProcess/WebPageProxy.cpp:
1221 (WebKit::WebPageProxy::loadAlternateHTMLString):
1223 2013-11-20 Tim Horton <timothy_horton@apple.com>
1225 Remote Layer Tree: 100% repro crasher on the IPC thread when creating lots of layers
1226 https://bugs.webkit.org/show_bug.cgi?id=124643
1228 Reviewed by Anders Carlsson.
1230 * Platform/CoreIPC/mac/ConnectionMac.cpp:
1231 (CoreIPC::Connection::sendOutgoingMessage):
1232 Dynamically allocate storage for the message if needed.
1234 2013-11-20 Tim Horton <timothy_horton@apple.com>
1236 machMessageSize uses sizeof(mach_msg_ool_ports_descriptor_t) for out-of-line *memory*
1237 https://bugs.webkit.org/show_bug.cgi?id=124644
1239 Reviewed by Anders Carlsson.
1241 * Platform/CoreIPC/mac/ConnectionMac.cpp:
1242 (CoreIPC::machMessageSize):
1243 mach_msg_ool_descriptor_t is the correct type, given that
1244 out-of-line memory descriptors use the mach_msg_ool_descriptor_t
1245 member of the mach_msg_descriptor_t union.
1247 2013-11-20 Brady Eidson <beidson@apple.com>
1249 Cleanup getOrEstablishIDBDatabaseMetadata and stub it out in WK2
1250 https://bugs.webkit.org/show_bug.cgi?id=124635
1252 Reviewed by Tim Horton.
1254 Stub out the message for getOrEstablishIDBDatabaseMetadata in the DatabaseProcess.
1256 * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
1257 (WebKit::DatabaseProcessIDBConnection::establishConnection):
1258 (WebKit::DatabaseProcessIDBConnection::getOrEstablishIDBDatabaseMetadata):
1259 * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
1260 * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in:
1262 * Shared/SecurityOriginData.cpp:
1263 (WebKit::SecurityOriginData::fromSecurityOrigin):
1264 * Shared/SecurityOriginData.h:
1266 * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
1267 (WebKit::WebIDBServerConnection::WebIDBServerConnection):
1268 (WebKit::WebIDBServerConnection::deleteDatabase):
1269 (WebKit::WebIDBServerConnection::getOrEstablishIDBDatabaseMetadata):
1270 * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
1272 2013-11-20 Carlos Garcia Campos <cgarcia@igalia.com>
1274 [GTK] Do not use deprecated callbacks in WebKitPolicyClient
1275 https://bugs.webkit.org/show_bug.cgi?id=124648
1277 Reviewed by Philippe Normand.
1279 Fixes compile warnings for uninitialized callbacks.
1281 * UIProcess/API/gtk/WebKitPolicyClient.cpp:
1282 (decidePolicyForNavigationAction): Add originatingFrame parameter.
1283 (decidePolicyForNewWindowAction): Renamed for consistency.
1284 (decidePolicyForResponse): Add canShowMIMEType parameter.
1285 (attachPolicyClientToView): Add new callbacks.
1287 2013-11-19 Ryosuke Niwa <rniwa@webkit.org>
1289 Enable HTMLTemplateElement on Mac port
1290 https://bugs.webkit.org/show_bug.cgi?id=124637
1292 Reviewed by Tim Horton.
1294 * Configurations/FeatureDefines.xcconfig:
1296 2013-11-19 Brady Eidson <beidson@apple.com>
1298 Add WebIDBServerConnection and DatabaseProcessIDBConnection stubs
1299 https://bugs.webkit.org/show_bug.cgi?id=124562
1301 Reviewed by Alexey Proskuryakov.
1303 Also remove Web/DatabaseProcessDatabaseBackend stubs, as that is no longer the abstraction layer.
1305 * DatabaseProcess/DatabaseToWebProcessConnection.cpp:
1306 (WebKit::DatabaseToWebProcessConnection::didReceiveMessage):
1307 (WebKit::DatabaseToWebProcessConnection::establishIDBConnection):
1308 * DatabaseProcess/DatabaseToWebProcessConnection.h:
1309 * DatabaseProcess/DatabaseToWebProcessConnection.messages.in:
1311 * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp: Renamed from Source/WebKit2/DatabaseProcess/IndexedDB/DatabaseProcessIDBDatabaseBackend.cpp.
1312 (WebKit::DatabaseProcessIDBConnection::DatabaseProcessIDBConnection):
1313 (WebKit::DatabaseProcessIDBConnection::~DatabaseProcessIDBConnection):
1314 (WebKit::DatabaseProcessIDBConnection::establishConnection):
1315 (WebKit::DatabaseProcessIDBConnection::messageSenderConnection):
1316 * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h: Renamed from Source/WebKit2/DatabaseProcess/IndexedDB/DatabaseProcessIDBDatabaseBackend.h.
1317 (WebKit::DatabaseProcessIDBConnection::create):
1318 * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in: Renamed from Source/WebKit2/DatabaseProcess/IndexedDB/DatabaseProcessIDBDatabaseBackend.messages.in.
1320 * Shared/Databases/IndexedDB/IDBUtilities.cpp:
1321 (WebKit::uniqueDatabaseIdentifier): Modified to take two security origin arguments.
1322 * Shared/Databases/IndexedDB/IDBUtilities.h:
1324 * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp:
1325 (WebKit::WebIDBFactoryBackend::open):
1327 * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp: Added. Stubbed out all the pure virtual methods.
1328 (WebKit::generateBackendIdentifier):
1329 (WebKit::WebIDBServerConnection::WebIDBServerConnection):
1330 (WebKit::WebIDBServerConnection::~WebIDBServerConnection):
1331 (WebKit::WebIDBServerConnection::isClosed):
1332 (WebKit::WebIDBServerConnection::getOrEstablishIDBDatabaseMetadata):
1333 (WebKit::WebIDBServerConnection::deleteDatabase):
1334 (WebKit::WebIDBServerConnection::close):
1335 (WebKit::WebIDBServerConnection::openTransaction):
1336 (WebKit::WebIDBServerConnection::beginTransaction):
1337 (WebKit::WebIDBServerConnection::commitTransaction):
1338 (WebKit::WebIDBServerConnection::resetTransaction):
1339 (WebKit::WebIDBServerConnection::rollbackTransaction):
1340 (WebKit::WebIDBServerConnection::setIndexKeys):
1341 (WebKit::WebIDBServerConnection::createObjectStore):
1342 (WebKit::WebIDBServerConnection::createIndex):
1343 (WebKit::WebIDBServerConnection::deleteIndex):
1344 (WebKit::WebIDBServerConnection::get):
1345 (WebKit::WebIDBServerConnection::put):
1346 (WebKit::WebIDBServerConnection::openCursor):
1347 (WebKit::WebIDBServerConnection::count):
1348 (WebKit::WebIDBServerConnection::deleteRange):
1349 (WebKit::WebIDBServerConnection::clearObjectStore):
1350 (WebKit::WebIDBServerConnection::deleteObjectStore):
1351 (WebKit::WebIDBServerConnection::changeDatabaseVersion):
1352 (WebKit::WebIDBServerConnection::cursorAdvance):
1353 (WebKit::WebIDBServerConnection::cursorIterate):
1354 (WebKit::WebIDBServerConnection::cursorPrefetchIteration):
1355 (WebKit::WebIDBServerConnection::cursorPrefetchReset):
1356 (WebKit::WebIDBServerConnection::messageSenderConnection):
1357 * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h: Added.
1359 * WebProcess/Databases/IndexedDB/WebProcessIDBDatabaseBackend.cpp: Removed.
1360 * WebProcess/Databases/IndexedDB/WebProcessIDBDatabaseBackend.h: Removed.
1362 * WebProcess/Databases/WebToDatabaseProcessConnection.cpp:
1364 * DerivedSources.make:
1365 * WebKit2.xcodeproj/project.pbxproj:
1367 2013-11-19 Michał Pakuła vel Rutka <m.pakula@samsung.com>
1369 Unreviewed EFL and GTK build fix attempt after r159507
1371 * CMakeLists.txt: Changed Platform/CoreIPC/DataReference.cpp to Platform/IPC/DataReference.cpp
1372 * GNUmakefile.list.am: Ditto
1374 2013-11-19 Anders Carlsson <andersca@apple.com>
1376 Move DataReference to Platform/IPC.
1378 * Platform/IPC/DataReference.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/DataReference.cpp.
1379 * Platform/IPC/DataReference.h: Renamed from Source/WebKit2/Platform/CoreIPC/DataReference.h.
1380 * WebKit2.xcodeproj/project.pbxproj:
1382 2013-11-19 Anders Carlsson <andersca@apple.com>
1384 Add and call PageLoadState::reset
1385 https://bugs.webkit.org/show_bug.cgi?id=124591
1387 Reviewed by Dan Bernstein.
1389 * UIProcess/PageLoadState.cpp:
1390 (WebKit::PageLoadState::reset):
1391 * UIProcess/PageLoadState.h:
1392 * UIProcess/WebPageProxy.cpp:
1393 (WebKit::WebPageProxy::processDidCrash):
1395 2013-11-18 Ryuan Choi <ryuan.choi@samsung.com>
1397 [EFL] Initialize efreet before getting directories
1398 https://bugs.webkit.org/show_bug.cgi?id=124560
1400 Reviewed by Gyuyoung Kim.
1402 efreet is used to get several directories including home dierectory since
1403 r123731, but it does not call efreet_init/efreet_shutdown explicitly.
1405 * UIProcess/API/efl/ewk_main.cpp: Call efreet_init()/efreet_shutdown() explicitly.
1409 2013-11-18 Mark Rowe <mrowe@apple.com>
1411 Use hw.activecpu for determining how many processes to spawn.
1413 It's documented as the preferred way to determine the number of threads
1414 or processes to create in a SMP aware application.
1416 Rubber-stamped by Tim Horton.
1418 * WebKit2.xcodeproj/project.pbxproj:
1420 2013-11-18 Anders Carlsson <andersca@apple.com>
1422 Let's try this again.
1424 * UIProcess/PageLoadState.cpp:
1426 2013-11-18 Anders Carlsson <andersca@apple.com>
1428 Disable assertions in PageLoadState.cpp for now.
1430 * UIProcess/PageLoadState.cpp:
1432 2013-11-18 Anders Carlsson <andersca@apple.com>
1434 TestWebKitAPI crashes when running under GuardMalloc
1435 https://bugs.webkit.org/show_bug.cgi?id=124546
1437 Reviewed by Tim Horton.
1439 * UIProcess/Downloads/DownloadProxyMap.cpp:
1440 (WebKit::DownloadProxyMap::downloadFinished):
1441 Grab the download ID before removing the DownloadProxy from the map.
1443 2013-11-18 Ryuan Choi <ryuan.choi@samsung.com>
1445 Unreviewed build fix attempt on GTK and EFL port after r159461
1447 * CMakeLists.txt: Added APINavigationData.cpp and removed WebNavigationData.cpp
1448 * GNUmakefile.list.am: Ditto.
1450 2013-11-18 Anders Carlsson <andersca@apple.com>
1452 Rename WebNavigationData to API::NavigationData
1453 https://bugs.webkit.org/show_bug.cgi?id=124542
1455 Reviewed by Dan Bernstein.
1457 * UIProcess/API/C/WKAPICast.h:
1458 * UIProcess/API/C/WKNavigationDataRef.cpp:
1459 (WKNavigationDataGetTypeID):
1460 * UIProcess/API/Cocoa/WKNavigationData.mm:
1461 (-[WKNavigationData dealloc]):
1462 (-[WKNavigationData title]):
1463 (-[WKNavigationData originalRequest]):
1464 (-[WKNavigationData destinationURL]):
1465 (-[WKNavigationData response]):
1466 * UIProcess/API/Cocoa/WKNavigationDataInternal.h:
1468 * UIProcess/API/mac/WKProcessGroup.mm:
1469 * UIProcess/APINavigationData.cpp: Renamed from Source/WebKit2/UIProcess/WebNavigationData.cpp.
1470 (API::NavigationData::NavigationData):
1471 (API::NavigationData::~NavigationData):
1472 * UIProcess/APINavigationData.h: Renamed from Source/WebKit2/UIProcess/WebNavigationData.h.
1473 (API::NavigationData::create):
1474 (API::NavigationData::title):
1475 (API::NavigationData::url):
1476 (API::NavigationData::originalRequest):
1477 (API::NavigationData::response):
1478 * UIProcess/WebHistoryClient.cpp:
1479 (WebKit::WebHistoryClient::didNavigateWithNavigationData):
1480 * WebKit2.xcodeproj/project.pbxproj:
1482 2013-11-18 David Hyatt <hyatt@apple.com>
1484 Add a quirk to not respect center text-align when positioning
1486 <rdar://problem/15427571>
1487 https://bugs.webkit.org/show_bug.cgi?id=124522
1489 Reviewed by Simon Fraser.
1491 Added fast/block/legacy-text-align-position-quirk.html
1493 * Shared/WebPreferencesStore.h:
1494 * UIProcess/API/C/WKPreferences.cpp:
1495 (WKPreferencesUseLegacyTextAlignPositionedElementBehavior):
1496 (WKPreferencesSetUseLegacyTextAlignPositionedElementBehavior):
1497 * UIProcess/API/C/WKPreferencesPrivate.h:
1498 * WebProcess/WebPage/WebPage.cpp:
1499 (WebKit::WebPage::updatePreferences):
1501 2013-11-18 Anders Carlsson <andersca@apple.com>
1503 Add State to PageLoadState
1504 https://bugs.webkit.org/show_bug.cgi?id=124538
1506 Reviewed by Tim Horton.
1508 * UIProcess/PageLoadState.cpp:
1509 (WebKit::PageLoadState::PageLoadState):
1510 (WebKit::PageLoadState::didStartProvisionalLoad):
1511 (WebKit::PageLoadState::didReceiveServerRedirectForProvisionalLoad):
1512 (WebKit::PageLoadState::didFailProvisionalLoad):
1513 (WebKit::PageLoadState::didCommitLoad):
1514 (WebKit::PageLoadState::didFinishLoad):
1515 (WebKit::PageLoadState::didSameDocumentNavigation):
1516 * UIProcess/PageLoadState.h:
1518 2013-11-18 Anders Carlsson <andersca@apple.com>
1520 The PageLoadState object should keep track of the current URL
1521 https://bugs.webkit.org/show_bug.cgi?id=124536
1523 Reviewed by Dan Bernstein.
1525 * UIProcess/PageLoadState.cpp:
1526 (WebKit::PageLoadState::didCommitLoad):
1527 (WebKit::PageLoadState::didFinishLoad):
1528 (WebKit::PageLoadState::didFailLoad):
1529 (WebKit::PageLoadState::didSameDocumentNavigation):
1530 * UIProcess/PageLoadState.h:
1531 * UIProcess/WebPageProxy.cpp:
1532 (WebKit::WebPageProxy::didFinishLoadForFrame):
1533 (WebKit::WebPageProxy::didFailLoadForFrame):
1534 (WebKit::WebPageProxy::didSameDocumentNavigationForFrame):
1536 2013-11-18 Csaba Osztrogonác <ossy@webkit.org>
1538 URTBF after r159444.
1540 * GNUmakefile.list.am:
1542 2013-11-18 Anders Carlsson <andersca@apple.com>
1544 PageLoadState should keep track of the provisional URL
1545 https://bugs.webkit.org/show_bug.cgi?id=124535
1547 Reviewed by Dan Bernstein.
1549 * UIProcess/PageLoadState.cpp:
1550 (WebKit::PageLoadState::didStartProvisionalLoad):
1551 (WebKit::PageLoadState::didReceiveServerRedirectForProvisionalLoad):
1552 (WebKit::PageLoadState::didCommitLoad):
1553 * UIProcess/PageLoadState.h:
1554 * UIProcess/WebPageProxy.cpp:
1555 (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame):
1556 (WebKit::WebPageProxy::didFailProvisionalLoadForFrame):
1557 (WebKit::WebPageProxy::didCommitLoadForFrame):
1559 2013-11-18 Anders Carlsson <andersca@apple.com>
1561 Move m_pendingAPIRequestURL to PageLoadState
1562 https://bugs.webkit.org/show_bug.cgi?id=124531
1564 Reviewed by Tim Horton.
1566 * UIProcess/API/C/WKPage.cpp:
1567 (WKPageCopyPendingAPIRequestURL):
1568 * UIProcess/PageLoadState.cpp:
1569 (WebKit::PageLoadState::pendingAPIRequestURL):
1570 (WebKit::PageLoadState::setPendingAPIRequestURL):
1571 (WebKit::PageLoadState::clearPendingAPIRequestURL):
1572 * UIProcess/PageLoadState.h:
1573 * UIProcess/WebPageProxy.cpp:
1574 (WebKit::WebPageProxy::loadURL):
1575 (WebKit::WebPageProxy::loadURLRequest):
1576 (WebKit::WebPageProxy::reload):
1577 (WebKit::WebPageProxy::goForward):
1578 (WebKit::WebPageProxy::goBack):
1579 (WebKit::WebPageProxy::goToBackForwardItem):
1580 (WebKit::WebPageProxy::activeURL):
1581 (WebKit::WebPageProxy::receivedPolicyDecision):
1582 (WebKit::WebPageProxy::estimatedProgress):
1583 (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
1584 (WebKit::WebPageProxy::didSameDocumentNavigationForFrame):
1585 (WebKit::WebPageProxy::decidePolicyForNavigationAction):
1586 * UIProcess/WebPageProxy.h:
1587 (WebKit::WebPageProxy::pageLoadState):
1588 * UIProcess/cf/WebPageProxyCF.cpp:
1589 (WebKit::WebPageProxy::sessionStateData):
1590 (WebKit::WebPageProxy::restoreFromSessionStateData):
1592 2013-11-18 Michał Pakuła vel Rutka <m.pakula@samsung.com>
1594 Unreviewed EFL build fix after r159444
1596 * CMakeLists.txt: Added PageLoadState.cpp.
1598 2013-11-18 Anders Carlsson <andersca@apple.com>
1600 Add PageLoadState class
1601 https://bugs.webkit.org/show_bug.cgi?id=124528
1603 Reviewed by Dan Bernstein.
1605 Trying to use the main frame load state as the page load state was a bad idea,
1606 add a new PageLoadState and use it instead. Ultimately the long term plan is to
1607 transition away from FrameLoadState entirely.
1609 * UIProcess/PageLoadState.cpp: Added.
1610 (WebKit::PageLoadState::PageLoadState):
1611 (WebKit::PageLoadState::~PageLoadState):
1612 (WebKit::PageLoadState::didStartProvisionalLoad):
1613 * UIProcess/PageLoadState.h: Added.
1614 * UIProcess/WebPageProxy.cpp:
1615 (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
1616 * UIProcess/WebPageProxy.h:
1617 * WebKit2.xcodeproj/project.pbxproj:
1619 2013-11-14 David Farler <dfarler@apple.com>
1621 [ASAN] WebKit2: Remove calls to dead DownloadAuthenticationClient code
1622 https://bugs.webkit.org/show_bug.cgi?id=124367
1624 Reviewed by Alexey Proskuryakov.
1626 * Shared/Downloads/DownloadAuthenticationClient.cpp:
1627 (WebKit::DownloadAuthenticationClient::receivedCredential):
1628 (WebKit::DownloadAuthenticationClient::receivedRequestToContinueWithoutCredential):
1629 (WebKit::DownloadAuthenticationClient::receivedCancellation):
1630 Remove calls to nowhere:
1631 WebKit::Download::cancelAuthenticationChallenge(WebCore::AuthenticationChallenge const&)
1632 WebKit::Download::continueWithoutCredential(WebCore::AuthenticationChallenge const&)
1633 WebKit::Download::useCredential(WebCore::AuthenticationChallenge const&, WebCore::Credential const&)
1635 2013-11-18 Anders Carlsson <andersca@apple.com>
1637 Use a strong enum for frame load states
1638 https://bugs.webkit.org/show_bug.cgi?id=124524
1640 Reviewed by Dan Bernstein.
1642 * UIProcess/API/C/WKFrame.cpp:
1643 (WKFrameGetFrameLoadState):
1644 * UIProcess/FrameLoadState.cpp:
1645 (WebKit::FrameLoadState::FrameLoadState):
1646 (WebKit::FrameLoadState::didStartProvisionalLoad):
1647 (WebKit::FrameLoadState::didReceiveServerRedirectForProvisionalLoad):
1648 (WebKit::FrameLoadState::didFailProvisionalLoad):
1649 (WebKit::FrameLoadState::didCommitLoad):
1650 (WebKit::FrameLoadState::didFinishLoad):
1651 (WebKit::FrameLoadState::didFailLoad):
1652 * UIProcess/FrameLoadState.h:
1653 * UIProcess/WebFrameProxy.h:
1654 * UIProcess/WebPageProxy.cpp:
1655 (WebKit::WebPageProxy::WebPageProxy):
1656 (WebKit::WebPageProxy::activeURL):
1657 (WebKit::WebPageProxy::resetStateAfterProcessExited):
1658 * UIProcess/WebPageProxy.h:
1659 (WebKit::WebPageProxy::loadStateAtProcessExit):
1661 2013-11-18 Anders Carlsson <andersca@apple.com>
1663 Remove unnecessary COMPILER(CLANG) #ifdefs in Mac-only code
1664 https://bugs.webkit.org/show_bug.cgi?id=124523
1666 Reviewed by Dan Bernstein.
1668 * PluginProcess/mac/PluginProcessMac.mm:
1669 (WebKit::beginModal):
1670 * PluginProcess/mac/PluginProcessShim.mm:
1671 * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
1672 (WebKit::NetscapePluginModule::tryLoad):
1673 * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
1674 * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
1675 (WebKit::PluginProcessProxy::getPluginProcessSerialNumber):
1676 (WebKit::PluginProcessProxy::makePluginProcessTheFrontProcess):
1677 (WebKit::PluginProcessProxy::makeUIProcessTheFrontProcess):
1678 (WebKit::PluginProcessProxy::exitFullscreen):
1680 2013-11-18 Ryuan Choi <ryuan.choi@samsung.com>
1682 [EFL] Add EWebKitConfig.cmake and EWebKit2Config.cmake
1683 https://bugs.webkit.org/show_bug.cgi?id=124478
1685 Reviewed by Gyuyoung Kim.
1687 EWebKit is built using CMake but applications use *.pc to use it.
1688 This patch provides EWebKitConfig.cmake and EWebKit2Config.cmake
1689 for applications which use EWebkit and is compiled by CMake.
1691 * PlatformEfl.cmake:
1692 Configure and install EWebKit2Config.cmake and EWebKit2ConfigVersion.cmake
1693 * efl/EWebKit2Config.cmake.in: Added.
1694 * efl/EWebKit2ConfigVersion.cmake.in: Added.
1696 2013-11-18 Eunmi Lee <eunmi15.lee@samsung.com>
1698 [EFL][WK2] Process single tap using mouse move, down and up event.
1699 https://bugs.webkit.org/show_bug.cgi?id=106864
1701 Reviewed by Christophe Dumez.
1703 Send mouse events to the web process to perform the clicking when
1704 single tap gesture is recognized.
1705 Additionally, add WKViewSendMouseDownEvent(), WKViewSendMouseUpEvent()
1706 and WKViewSendMouseMoveEvent() to avoid using WK2 internals in the EFL
1709 * UIProcess/API/C/efl/WKViewEfl.cpp:
1710 (WKViewSendMouseDownEvent):
1711 (WKViewSendMouseUpEvent):
1712 (WKViewSendMouseMoveEvent):
1713 * UIProcess/API/C/efl/WKViewEfl.h:
1714 * UIProcess/API/efl/GestureRecognizer.cpp:
1715 (WebKit::GestureHandler::handleSingleTap):
1716 * UIProcess/efl/WebViewEfl.cpp:
1717 (WebKit::WebViewEfl::sendMouseEvent):
1718 * UIProcess/efl/WebViewEfl.h:
1720 2013-11-17 Dan Bernstein <mitz@apple.com>
1722 Try to fix the EFL build.
1724 * UIProcess/efl/PagePolicyClientEfl.cpp:
1725 (WebKit::PagePolicyClientEfl::decidePolicyForResponseCallback): No need to call
1726 WKFrameCanShowMIMEType now that this information is passed in as a parameter.
1728 2013-11-16 Dan Bernstein <mitz@apple.com>
1730 No way for policy client to determine if a the response’s MIME type can be shown
1731 https://bugs.webkit.org/show_bug.cgi?id=124445
1733 Reviewed by Sam Weinig.
1735 * Platform/CoreIPC/HandleMessage.h:
1736 (CoreIPC::callMemberFunction): Added a fifth message parameter to this template.
1738 * UIProcess/API/C/WKPage.h: Added a canShowMIMEType parameter to
1739 WKPageDecidePolicyForResponseCallback and deprecated the old version.
1741 * UIProcess/API/mac/WKBrowsingContextController.mm:
1742 (setUpPagePolicyClient): Include whether the response MIME type can be shown under a new key
1743 in the action information dictionary.
1744 * UIProcess/API/mac/WKBrowsingContextPolicyDelegate.h: Declared
1745 WKActionCanShowMIMETypeKey.
1747 * UIProcess/WebInspectorProxy.cpp:
1748 (WebKit::WebInspectorProxy::createInspectorPage): Updated for changes in the policy client.
1750 * UIProcess/WebPageProxy.cpp:
1751 (WebKit::WebPageProxy::decidePolicyForResponse): Added canShowMIMEType parameter, which is
1752 passed to the policy client.
1753 (WebKit::WebPageProxy::decidePolicyForResponseSync): Added canShowMIMEType parameter, which
1754 is passed to the above function.
1755 * UIProcess/WebPageProxy.h:
1756 * UIProcess/WebPageProxy.messages.in: Added canShowMIMEType paramter to
1757 DecidePolicyForResponseSync.
1759 * UIProcess/WebPolicyClient.cpp:
1760 (WebKit::WebPolicyClient::decidePolicyForResponse): Added canShowMIMEType parameter, which
1761 is passed to the client callback.
1762 * UIProcess/WebPolicyClient.h:
1764 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1765 (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse): Determine if the response
1766 MIME type can be shown and pass this information along in the message to the UI process.
1768 2013-11-15 Ryuan Choi <ryuan.choi@samsung.com>
1770 Unreviewed EFL build fix after r159358.
1772 * UIProcess/efl/PagePolicyClientEfl.cpp:
1773 (WebKit::PagePolicyClientEfl::decidePolicyForNavigationAction):
1774 * UIProcess/efl/PagePolicyClientEfl.h:
1776 2013-11-15 Brady Eidson <beidson@apple.com>
1778 Let IDBDatabaseBackend create IDBTransactionBackend's directly
1779 https://bugs.webkit.org/show_bug.cgi?id=124438
1781 Reviewed by Beth Dakin.
1783 Remove maybeCreateTransactionBackend():
1784 * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp:
1785 * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.h:
1787 2013-11-15 Brady Eidson <beidson@apple.com>
1789 Remove last vestiges of IDBBackingStore* from IDBTransactionBackend.
1790 https://bugs.webkit.org/show_bug.cgi?id=124436
1792 Reviewed by Tim Horton.
1794 * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp: Removed createCursorBackend.
1795 * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.h:
1797 2013-11-15 Dan Bernstein <mitz@apple.com>
1799 Give the policy client the originating frame of a navigation action
1800 https://bugs.webkit.org/show_bug.cgi?id=124431
1802 Reviewed by Anders Carlsson.
1804 * Platform/CoreIPC/HandleMessage.h:
1805 (CoreIPC::callMemberFunction): Added a seventh message parameter to this template.
1807 * Shared/APIClientTraits.cpp: Defined API traits for WKPagePolicyClient, which now has two
1809 * Shared/APIClientTraits.h: Declared APIClientTraits<WKPagePolicyClient>.
1811 * UIProcess/API/C/WKPage.h: Added an originatingFrame parameter to
1812 WKPageDecidePolicyForNavigationActionCallback and deprecated the old version. Bumped the
1813 policy client version to 1.
1815 * UIProcess/API/mac/WKBrowsingContextController.mm:
1816 (setUpPagePolicyClient): Include the originating frame’s URL under a new key in the
1817 action information dictionary.
1818 * UIProcess/API/mac/WKBrowsingContextPolicyDelegate.h: Declared
1819 WKActionOriginatingFrameURLKey.
1821 * UIProcess/WebInspectorProxy.cpp:
1822 (WebKit::decidePolicyForNavigationAction): Added originatingFrame parameter.
1823 (WebKit::WebInspectorProxy::createInspectorPage): Updated to the new version of the policy
1826 * UIProcess/WebPageProxy.cpp:
1827 (WebKit::WebPageProxy::decidePolicyForNavigationAction): Added originatingFrameID parameter
1828 and passing the originating frame to the policy client.
1829 * UIProcess/WebPageProxy.h:
1830 * UIProcess/WebPageProxy.messages.in: Added originatingFrameID paremeter to
1831 DecidePolicyForNavigationAction.
1833 * UIProcess/WebPolicyClient.cpp:
1834 (WebKit::WebPolicyClient::decidePolicyForNavigationAction): Added originatingFrame
1835 parameter, which is passed to the client callback.
1836 * UIProcess/WebPolicyClient.h:
1838 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1839 (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Determine the
1840 originating frame for link activation and form submission actions and send its ID in the
1841 DecidePolicyForNavigationAction message.
1843 2013-11-15 Brady Eidson <beidson@apple.com>
1845 Move execution of IDBTransactionBackendOperations to the IDBServerConnection
1846 https://bugs.webkit.org/show_bug.cgi?id=124385
1848 Reviewed by Tim Horton.
1850 * WebProcess/Databases/IndexedDB/WebProcessIDBDatabaseBackend.h:
1852 2013-11-15 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
1854 Fixed incorrectly placed NETWORK_PROCESS guard in NetworkConnectionToWebProcess.cpp
1855 https://bugs.webkit.org/show_bug.cgi?id=124398
1857 Reviewed by Brady Eidson.
1859 * NetworkProcess/NetworkConnectionToWebProcess.cpp:
1861 2013-11-15 Tibor Meszaros <mtibor@inf.u-szeged.hu>
1863 Cleanup the build from unused parameters in WebKit2
1864 https://bugs.webkit.org/show_bug.cgi?id=124201
1866 Reviewed by Darin Adler.
1868 * Shared/Plugins/Netscape/PluginInformation.cpp:
1869 (WebKit::getPluginModuleInformation):
1870 * UIProcess/API/C/WKBatteryManager.cpp:
1871 (WKBatteryManagerSetProvider):
1872 (WKBatteryManagerProviderDidChangeBatteryStatus):
1873 (WKBatteryManagerProviderUpdateBatteryStatus):
1874 * UIProcess/API/C/WKBatteryStatus.cpp:
1875 (WKBatteryStatusCreate):
1876 * UIProcess/API/C/WKColorPickerResultListener.cpp:
1877 (WKColorPickerResultListenerSetColor):
1878 * UIProcess/API/C/WKContext.cpp:
1879 (WKContextGetBatteryManager):
1880 (WKContextGetDatabaseManager):
1881 (WKContextGetNetworkInfoManager):
1882 * UIProcess/API/C/WKDatabaseManager.cpp:
1883 (WKDatabaseManagerSetClient):
1884 (WKDatabaseManagerGetDatabasesByOrigin):
1885 (WKDatabaseManagerGetDatabaseOrigins):
1886 (WKDatabaseManagerDeleteDatabasesWithNameForOrigin):
1887 (WKDatabaseManagerDeleteDatabasesForOrigin):
1888 (WKDatabaseManagerDeleteAllDatabases):
1889 (WKDatabaseManagerSetQuotaForOrigin):
1890 * UIProcess/API/C/WKNetworkInfo.cpp:
1891 (WKNetworkInfoCreate):
1892 * UIProcess/API/C/WKNetworkInfoManager.cpp:
1893 (WKNetworkInfoManagerSetProvider):
1894 (WKNetworkInfoManagerProviderDidChangeNetworkInformation):
1895 * UIProcess/API/C/WKOpenPanelParameters.cpp:
1896 (WKOpenPanelParametersCopyCapture):
1897 * UIProcess/API/C/WKVibration.cpp:
1898 (WKVibrationSetProvider):
1899 * UIProcess/API/efl/EwkView.cpp:
1900 (EwkView::createNewPage):
1901 * UIProcess/WebPageProxy.cpp:
1902 (WebKit::WebPageProxy::setVisibilityState):
1903 (WebKit::WebPageProxy::unavailablePluginButtonClicked):
1904 * UIProcess/efl/ViewClientEfl.cpp:
1905 (WebKit::ViewClientEfl::didChangeContentsPosition):
1906 (WebKit::ViewClientEfl::didRenderFrame):
1907 (WebKit::ViewClientEfl::didChangeViewportAttributes):
1908 * WebProcess/InjectedBundle/InjectedBundle.cpp:
1909 (WebKit::InjectedBundle::setDatabaseQuota):
1910 * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1911 (WebKit::WebChromeClient::createWindow):
1913 2013-11-14 Dan Bernstein <mitz@apple.com>
1915 [Cocoa] WKBrowsingContextController's policy client implementation over-releases WKURLRequests and WKURLResponses
1916 https://bugs.webkit.org/show_bug.cgi?id=124386
1918 Reviewed by Sam Weinig.
1920 * UIProcess/API/mac/WKBrowsingContextController.mm:
1921 (setUpPagePolicyClient): Changed to release the Cocoa objects we copy out of the WK objects
1922 passed into the client callbacks, but not the WK objects themselves, which are not owned by
1925 2013-11-14 Andy Estes <aestes@apple.com>
1927 Replace calls to deprecated CFPropertyList functions in WebKit2
1928 https://bugs.webkit.org/show_bug.cgi?id=124384
1930 Reviewed by Anders Carlsson.
1932 * UIProcess/cf/WebPageProxyCF.cpp:
1933 (WebKit::WebPageProxy::sessionStateData): Replaced CFPropertyListWriteToStream() with CFPropertyListWrite().
1934 (WebKit::WebPageProxy::restoreFromSessionStateData): Replaced CFPropertyListCreateFromXMLData() with CFPropertyListCreateWithData().
1936 2013-11-14 Gergo Balogh <geryxyz@inf.u-szeged.hu>
1938 generate-message-receiver.py can't handle nested #ifs
1939 https://bugs.webkit.org/show_bug.cgi?id=121877
1941 Reviewed by Darin Adler.
1943 parser.py was modifieded to collect and combine conditions of nested #ifs.
1944 messages_unittest.py extended to check these modifications.
1946 * Scripts/webkit2/messages_unittest.py:
1950 (LoadSomethingElse):
1951 * Scripts/webkit2/parser.py:
1952 (combine_condition):
1953 (bracket_if_needed):
1956 2013-11-14 Dan Bernstein <mitz@apple.com>
1958 [Cocoa] WKAction keys are not exported
1959 https://bugs.webkit.org/show_bug.cgi?id=124378
1961 Reviewed by Anders Carlsson.
1963 * UIProcess/API/mac/WKBrowsingContextController.mm: Made the keys constant pointers.
1964 * UIProcess/API/mac/WKBrowsingContextPolicyDelegate.h: Exported the keys.
1966 2013-11-14 Ryuan Choi <ryuan.choi@samsung.com>
1968 [WK2] Move Coordinated Graphics related code out of DrawingAreaProxy
1969 https://bugs.webkit.org/show_bug.cgi?id=124328
1971 Reviewed by Andreas Kling.
1973 Refactored for DrawingAreaProxy not to include Coordinated Graphics specific code.
1975 * PlatformEfl.cmake:
1976 * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp: Moved from DrawingAreaProxy.cpp.
1977 (WebKit::CoordinatedDrawingAreaProxy::updateViewport):
1978 (WebKit::CoordinatedDrawingAreaProxy::contentsRect):
1979 * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h: Ditto.
1980 (WebKit::CoordinatedDrawingAreaProxy::coordinatedLayerTreeHostProxy): Refactored to return reference instead of pointer.
1981 (WebKit::CoordinatedDrawingAreaProxy::viewportVisibleRect):
1982 (WebKit::CoordinatedDrawingAreaProxy::page):
1983 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
1984 (WebKit::CoordinatedLayerTreeHostProxy::CoordinatedLayerTreeHostProxy):
1985 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
1986 * UIProcess/CoordinatedGraphics/PageViewportController.cpp:
1987 Renamed from Source/WebKit2/UIProcess/PageViewportController.cpp because it depends on Coordinated Graphics.
1988 (WebKit::fuzzyCompare):
1989 (WebKit::PageViewportController::PageViewportController):
1990 (WebKit::PageViewportController::innerBoundedViewportScale):
1991 (WebKit::PageViewportController::outerBoundedViewportScale):
1992 (WebKit::PageViewportController::deviceScaleFactor):
1993 (WebKit::isIntegral):
1994 (WebKit::PageViewportController::pixelAlignedFloatPoint):
1995 (WebKit::PageViewportController::boundContentsPositionAtScale):
1996 (WebKit::PageViewportController::boundContentsPosition):
1997 (WebKit::PageViewportController::didCommitLoad):
1998 (WebKit::PageViewportController::didChangeContentsSize):
1999 (WebKit::PageViewportController::didRenderFrame):
2000 (WebKit::PageViewportController::pageTransitionViewportReady):
2001 (WebKit::PageViewportController::pageDidRequestScroll):
2002 (WebKit::PageViewportController::didChangeViewportSize):
2003 (WebKit::PageViewportController::didChangeContentsVisibility):
2004 (WebKit::PageViewportController::syncVisibleContents): Added cast to access CoordinatedDrawingAreaProxy method.
2005 (WebKit::PageViewportController::didChangeViewportAttributes):
2006 (WebKit::PageViewportController::visibleContentsSize):
2007 (WebKit::PageViewportController::applyScaleAfterRenderingContents):
2008 (WebKit::PageViewportController::applyPositionAfterRenderingContents):
2009 (WebKit::PageViewportController::updateMinimumScaleToFit):
2010 * UIProcess/CoordinatedGraphics/PageViewportController.h:
2011 Renamed from Source/WebKit2/UIProcess/PageViewportController.cpp because it depends on Coordinated Graphics.
2012 (WebKit::PageViewportController::~PageViewportController):
2013 (WebKit::PageViewportController::hadUserInteraction):
2014 (WebKit::PageViewportController::allowsUserScaling):
2015 (WebKit::PageViewportController::contentsLayoutSize):
2016 (WebKit::PageViewportController::minimumScale):
2017 (WebKit::PageViewportController::maximumScale):
2018 (WebKit::PageViewportController::currentScale):
2019 (WebKit::PageViewportController::setHadUserInteraction):
2020 * UIProcess/CoordinatedGraphics/WebView.cpp: Added some casts to access CoordinatedDrawingAreaProxy methods.
2021 (WebKit::WebView::coordinatedGraphicsScene): Simplified code using reference.
2022 (WebKit::WebView::updateViewportSize):
2023 * UIProcess/DrawingAreaProxy.cpp: Removed Coordinated Graphics macro and related codes.
2024 * UIProcess/DrawingAreaProxy.h: Ditto.
2026 2013-11-13 Nick Diego Yamane <nick.yamane@openbossa.org>
2028 Rename some ImmutableArray leftovers
2029 https://bugs.webkit.org/show_bug.cgi?id=124320
2031 Reviewed by Anders Carlsson.
2033 ImmutableArray has been renamed to API::Array in r159234.
2035 * Shared/API/c/WKContextMenuItem.cpp:
2036 * Shared/WebContextMenuItem.cpp:
2037 * Shared/WebContextMenuItem.h:
2038 * UIProcess/API/C/WKBackForwardListRef.cpp:
2039 * UIProcess/API/Cocoa/WKBackForwardList.mm:
2040 * UIProcess/API/gtk/WebKitBackForwardList.cpp:
2041 * UIProcess/API/gtk/WebKitWebViewGroup.cpp:
2042 * UIProcess/WebBackForwardList.cpp:
2043 * UIProcess/WebBackForwardList.h:
2045 2013-11-13 Dan Bernstein <mitz@apple.com>
2047 REGRESSION (r159263): caused 50+ crashes on all mac webkit2 bots
2048 https://bugs.webkit.org/show_bug.cgi?id=124327
2050 Reviewed by Tim Horton.
2052 * Shared/Cocoa/APIObject.mm:
2053 (API::Object::newObject): Allocate extra memory for the WebError inside the WKNSError.
2055 2013-11-13 Dan Bernstein <mitz@apple.com>
2057 [Cocoa] Add WKNSError
2058 https://bugs.webkit.org/show_bug.cgi?id=124295
2060 Reviewed by Anders Carlsson.
2062 * Shared/Cocoa/APIObject.mm:
2063 (API::Object::newObject): Allocate a WKNSError if the object is a WebError.
2064 * Shared/Cocoa/WKNSError.h: Added.
2065 (WebKit::wrapper): Added. Returns a WebError’s wrapper as an NSError.
2066 * Shared/Cocoa/WKNSError.mm: Added.
2067 (-[WKNSError _web_createTarget]): Override this WKObject method to return a copy of the
2069 (-[WKNSError copyWithZone:]): Retains self.
2070 * WebKit2.xcodeproj/project.pbxproj: Added new files.
2072 2013-11-13 Simon Fraser <simon.fraser@apple.com>
2074 Tweak the property syntax after https://bugs.webkit.org/show_bug.cgi?id=124317
2076 Reviewed by Dan Bernstein.
2078 * UIProcess/API/mac/WKViewPrivate.h:
2080 2013-11-13 Anders Carlsson <andersca@apple.com>
2082 Move more state tracking to FrameLoadState
2083 https://bugs.webkit.org/show_bug.cgi?id=124316
2085 Reviewed by Simon Fraser.
2087 * UIProcess/FrameLoadState.cpp:
2088 (WebKit::FrameLoadState::didStartProvisionalLoad):
2089 (WebKit::FrameLoadState::didReceiveServerRedirectForProvisionalLoad):
2090 (WebKit::FrameLoadState::didFailProvisionalLoad):
2091 (WebKit::FrameLoadState::didCommitLoad):
2092 (WebKit::FrameLoadState::didFinishLoad):
2093 (WebKit::FrameLoadState::didFailLoad):
2094 (WebKit::FrameLoadState::didSameDocumentNotification):
2095 (WebKit::FrameLoadState::setUnreachableURL):
2096 * UIProcess/FrameLoadState.h:
2097 * UIProcess/WebFrameProxy.cpp:
2098 (WebKit::WebFrameProxy::didCommitLoad):
2099 (WebKit::WebFrameProxy::didFinishLoad):
2100 (WebKit::WebFrameProxy::didFailLoad):
2101 (WebKit::WebFrameProxy::didSameDocumentNavigation):
2102 (WebKit::WebFrameProxy::setUnreachableURL):
2104 2013-11-13 Simon Fraser <simon.fraser@apple.com>
2106 Expose a private flag on WKView to indicate whether it's using a remote layer tree drawing area
2107 https://bugs.webkit.org/show_bug.cgi?id=124317
2109 Reviewed by Anders Carlsson.
2111 Expose isUsingUISideCompositing on WKView in the private header,
2112 which returns YES if the view is using a DrawingAreaTypeRemoteLayerTree.
2114 * UIProcess/API/mac/WKView.mm:
2115 (-[WKView isUsingUISideCompositing]):
2116 * UIProcess/API/mac/WKViewPrivate.h:
2118 2013-11-13 Csaba Osztrogonác <ossy@webkit.org>
2120 Maybe the last attempt to fix the GTK build.
2122 * UIProcess/API/gtk/WebKitBackForwardListPrivate.h:
2123 * UIProcess/API/gtk/WebKitContextMenuPrivate.h:
2125 2013-11-13 Csaba Osztrogonác <ossy@webkit.org>
2127 One more attempt to fix the GTK build.
2129 * UIProcess/API/gtk/WebKitWebViewPrivate.h:
2131 2013-11-13 Anders Carlsson <andersca@apple.com>
2133 Plug-in processes hang around for 10 sec after Safari quits
2134 https://bugs.webkit.org/show_bug.cgi?id=124314
2135 <rdar://problem/15460613>
2137 Reviewed by Simon Fraser.
2139 Call stopRunLoop instead of instead of RunLoop::stop().
2141 * PluginProcess/PluginProcess.cpp:
2142 (WebKit::PluginProcess::didClose):
2144 2013-11-13 Csaba Osztrogonác <ossy@webkit.org>
2146 URTBF after r159234.
2149 * GNUmakefile.list.am:
2150 * Shared/efl/WebEventFactory.cpp:
2151 (WebKit::WebEventFactory::createWebTouchEvent):
2152 * UIProcess/API/C/WKGrammarDetail.cpp:
2153 * UIProcess/API/C/efl/WKEventEfl.cpp:
2154 * UIProcess/API/gtk/WebKitBackForwardList.cpp:
2155 (webkitBackForwardListCreateList):
2156 (webkitBackForwardListChanged):
2157 (webkit_back_forward_list_get_back_list_with_limit):
2158 (webkit_back_forward_list_get_forward_list_with_limit):
2159 * UIProcess/API/gtk/WebKitBackForwardListPrivate.h:
2160 * UIProcess/API/gtk/WebKitContextMenu.cpp:
2161 (webkitContextMenuCreate):
2162 * UIProcess/API/gtk/WebKitContextMenuItem.cpp:
2163 (webkitContextMenuItemCreate):
2164 * UIProcess/API/gtk/WebKitContextMenuPrivate.h:
2165 * UIProcess/API/gtk/WebKitCookieManager.cpp:
2166 (webkitCookieManagerGetDomainsWithCookiesCallback):
2167 * UIProcess/API/gtk/WebKitFileChooserRequest.cpp:
2168 (webkit_file_chooser_request_get_mime_types):
2169 (webkit_file_chooser_request_get_mime_types_filter):
2170 (webkit_file_chooser_request_select_files):
2171 (webkit_file_chooser_request_get_selected_files):
2172 * UIProcess/API/gtk/WebKitWebView.cpp:
2173 (webkitWebViewPopulateContextMenu):
2174 * UIProcess/API/gtk/WebKitWebViewGroup.cpp:
2176 (webkit_web_view_group_add_user_style_sheet):
2177 * UIProcess/API/gtk/WebKitWebViewPrivate.h:
2178 * UIProcess/WebGrammarDetail.cpp:
2179 (WebKit::WebGrammarDetail::create):
2180 (WebKit::WebGrammarDetail::WebGrammarDetail):
2181 (WebKit::WebGrammarDetail::guesses):
2182 * UIProcess/WebGrammarDetail.h:
2183 * UIProcess/WebTextCheckerClient.cpp:
2184 (WebKit::WebTextCheckerClient::checkGrammarOfString):
2185 (WebKit::WebTextCheckerClient::guessesForWord):
2186 * UIProcess/efl/WebUIPopupMenuClient.cpp:
2187 (WebUIPopupMenuClient::showPopupMenu):
2189 2013-11-13 Anders Carlsson <andersca@apple.com>
2193 Not sure why these weren't added.
2195 * Shared/APIArray.cpp: Added.
2196 * Shared/APIArray.h: Added.
2198 2013-11-13 Anders Carlsson <andersca@apple.com>
2200 Rename ImmutableArray to API::Array
2201 https://bugs.webkit.org/show_bug.cgi?id=124307
2203 Reviewed by Andreas Kling.
2205 * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
2206 (ensureObjectStream):
2207 (-[WKRemoteObjectDecoder initWithInterface:rootObjectDictionary:WebKit::]):
2208 * Shared/API/c/WKArray.cpp:
2211 (WKArrayCreateAdoptingValues):
2212 * Shared/API/c/WKContextMenuItem.cpp:
2213 * Shared/API/c/WKDictionary.cpp:
2214 (WKDictionaryCopyKeys):
2215 * Shared/API/c/WKMutableArray.cpp:
2216 (WKMutableArrayCreate):
2217 * Shared/API/c/WKRenderObject.cpp:
2218 (WKRenderObjectGetChildren):
2219 * Shared/API/c/WKSharedAPICast.h:
2221 * Shared/API/c/mac/WKWebArchive.cpp:
2222 (WKWebArchiveCopySubresources):
2223 (WKWebArchiveCopySubframeArchives):
2224 * Shared/APIArray.cpp: Renamed from Source/WebKit2/Shared/ImmutableArray.cpp.
2225 (API::Array::create):
2226 (API::Array::createStringArray):
2227 (API::Array::Array):
2228 (API::Array::~Array):
2229 * Shared/APIArray.h: Renamed from Source/WebKit2/Shared/ImmutableArray.h.
2230 * Shared/Cocoa/WKNSArray.h:
2232 * Shared/Cocoa/WKNSArray.mm:
2233 (-[WKNSArray dealloc]):
2234 (-[WKNSArray count]):
2235 (-[WKNSArray objectAtIndex:]):
2236 (-[WKNSArray API::]):
2237 * Shared/ImmutableDictionary.cpp:
2238 (WebKit::ImmutableDictionary::keys):
2239 * Shared/ImmutableDictionary.h:
2240 * Shared/SecurityOriginData.cpp:
2241 (WebKit::performAPICallbackWithSecurityOriginDataVector):
2242 * Shared/UserMessageCoders.h:
2243 (WebKit::UserMessageEncoder::baseEncode):
2244 (WebKit::UserMessageDecoder::baseDecode):
2245 * Shared/WebArchive.cpp:
2246 (WebKit::WebArchive::create):
2247 (WebKit::WebArchive::WebArchive):
2248 (WebKit::WebArchive::subresources):
2249 (WebKit::WebArchive::subframeArchives):
2250 * Shared/WebArchive.h:
2251 * Shared/WebContextMenuItem.cpp:
2252 (WebKit::WebContextMenuItem::create):
2253 (WebKit::WebContextMenuItem::submenuItemsAsImmutableArray):
2254 * Shared/WebContextMenuItem.h:
2255 * Shared/WebOpenPanelParameters.cpp:
2256 (WebKit::WebOpenPanelParameters::acceptMIMETypes):
2257 (WebKit::WebOpenPanelParameters::selectedFileNames):
2258 * Shared/WebOpenPanelParameters.h:
2259 * Shared/WebRenderLayer.cpp:
2260 (WebKit::WebRenderLayer::create):
2261 (WebKit::WebRenderLayer::createArrayFromLayerList):
2262 (WebKit::WebRenderLayer::WebRenderLayer):
2263 * Shared/WebRenderLayer.h:
2264 (WebKit::WebRenderLayer::negativeZOrderList):
2265 (WebKit::WebRenderLayer::normalFlowList):
2266 (WebKit::WebRenderLayer::positiveZOrderList):
2267 * Shared/WebRenderObject.cpp:
2268 (WebKit::WebRenderObject::create):
2269 (WebKit::WebRenderObject::WebRenderObject):
2270 (WebKit::WebRenderObject::~WebRenderObject):
2271 * Shared/WebRenderObject.h:
2272 (WebKit::WebRenderObject::children):
2273 (WebKit::WebRenderObject::elementClassNames):
2274 * UIProcess/API/C/WKBackForwardListRef.cpp:
2275 * UIProcess/API/C/WKOpenPanelParameters.cpp:
2276 * UIProcess/API/C/WKPage.cpp:
2277 * UIProcess/API/C/mac/WKContextPrivateMac.mm:
2278 (WKContextGetInfoForInstalledPlugIns):
2279 * UIProcess/API/Cocoa/WKBackForwardList.mm:
2280 (-[WKBackForwardList backListWithLimit:]):
2281 (-[WKBackForwardList forwardListWithLimit:]):
2282 * UIProcess/API/mac/WKBrowsingContextGroup.mm:
2284 * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
2285 (WebKit::WebNotificationManagerProxy::populateCopyOfNotificationPermissions):
2286 (WebKit::WebNotificationManagerProxy::providerDidCloseNotifications):
2287 (WebKit::WebNotificationManagerProxy::providerDidRemoveNotificationPolicies):
2288 * UIProcess/Notifications/WebNotificationManagerProxy.h:
2289 * UIProcess/Notifications/WebNotificationProvider.cpp:
2290 (WebKit::WebNotificationProvider::clearNotifications):
2291 * UIProcess/Plugins/PlugInAutoStartProvider.cpp:
2292 (WebKit::PlugInAutoStartProvider::setAutoStartOriginsArray):
2293 * UIProcess/Plugins/PlugInAutoStartProvider.h:
2294 * UIProcess/Plugins/WebPluginSiteDataManager.cpp:
2295 (WebKit::WebPluginSiteDataManager::didGetSitesWithData):
2296 (WebKit::WebPluginSiteDataManager::clearSiteData):
2297 * UIProcess/Plugins/WebPluginSiteDataManager.h:
2298 * UIProcess/StatisticsRequest.cpp:
2299 (WebKit::StatisticsRequest::completedRequest):
2300 * UIProcess/WebApplicationCacheManagerProxy.h:
2301 * UIProcess/WebBackForwardList.cpp:
2302 (WebKit::WebBackForwardList::backListAsImmutableArrayWithLimit):
2303 (WebKit::WebBackForwardList::forwardListAsImmutableArrayWithLimit):
2304 * UIProcess/WebBackForwardList.h:
2305 * UIProcess/WebContext.cpp:
2306 (WebKit::WebContext::setPlugInAutoStartOrigins):
2307 (WebKit::WebContext::pluginInfoStoreDidLoadPlugins):
2308 * UIProcess/WebContext.h:
2309 * UIProcess/WebContextClient.cpp:
2310 (WebKit::WebContextClient::plugInInformationBecameAvailable):
2311 * UIProcess/WebContextClient.h:
2312 * UIProcess/WebCookieManagerProxy.cpp:
2313 (WebKit::WebCookieManagerProxy::didGetHostnamesWithCookies):
2314 * UIProcess/WebCookieManagerProxy.h:
2315 * UIProcess/WebDatabaseManagerProxy.cpp:
2316 (WebKit::WebDatabaseManagerProxy::didGetDatabasesByOrigin):
2317 (WebKit::WebDatabaseManagerProxy::didGetDatabaseOrigins):
2318 * UIProcess/WebFindClient.cpp:
2319 (WebKit::WebFindMatchesClient::didFindStringMatches):
2320 * UIProcess/WebFindClient.h:
2321 * UIProcess/WebFrameProxy.h:
2322 * UIProcess/WebKeyValueStorageManager.cpp:
2323 (WebKit::didGetKeyValueStorageOrigins):
2324 * UIProcess/WebKeyValueStorageManager.h:
2325 * UIProcess/WebLoaderClient.cpp:
2326 (WebKit::WebLoaderClient::didChangeBackForwardList):
2327 * UIProcess/WebMediaCacheManagerProxy.cpp:
2328 (WebKit::WebMediaCacheManagerProxy::didGetHostnamesWithMediaCache):
2329 * UIProcess/WebMediaCacheManagerProxy.h:
2330 * UIProcess/WebOpenPanelResultListenerProxy.cpp:
2331 (WebKit::WebOpenPanelResultListenerProxy::chooseFiles):
2332 * UIProcess/WebOpenPanelResultListenerProxy.h:
2333 * UIProcess/WebOriginDataManagerProxy.h:
2334 * UIProcess/WebPageContextMenuClient.cpp:
2335 (WebKit::WebPageContextMenuClient::getContextMenuFromProposedMenu):
2336 (WebKit::WebPageContextMenuClient::showContextMenu):
2337 * UIProcess/WebPageGroup.cpp:
2338 (WebKit::toStringVector):
2339 (WebKit::WebPageGroup::addUserStyleSheet):
2340 (WebKit::WebPageGroup::addUserScript):
2341 * UIProcess/WebPageGroup.h:
2342 * UIProcess/WebPageProxy.cpp:
2343 (WebKit::WebPageProxy::relatedPages):
2344 (WebKit::WebPageProxy::didFindStringMatches):
2345 * UIProcess/WebPageProxy.h:
2346 * UIProcess/WebResourceCacheManagerProxy.cpp:
2347 * WebKit2.xcodeproj/project.pbxproj:
2348 * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
2349 (WKBundleCopyOriginsWithApplicationCache):
2350 * WebProcess/InjectedBundle/API/c/WKBundleBackForwardListItem.cpp:
2351 * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
2352 * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
2354 * WebProcess/InjectedBundle/InjectedBundle.cpp:
2355 (WebKit::InjectedBundle::originsWithApplicationCache):
2356 (WebKit::toStringVector):
2357 (WebKit::InjectedBundle::addUserScript):
2358 (WebKit::InjectedBundle::addUserStyleSheet):
2359 * WebProcess/InjectedBundle/InjectedBundle.h:
2360 * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.cpp:
2361 (WebKit::InjectedBundleBackForwardListItem::children):
2362 * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.h:
2363 * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp:
2364 (WebKit::InjectedBundlePageContextMenuClient::getCustomMenuFromDefaultItems):
2365 * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp:
2366 (WebKit::InjectedBundlePageEditorClient::getPasteboardDataForRange):
2367 * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
2368 (WebKit::InjectedBundlePageFormClient::didAssociateFormControls):
2369 * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
2370 (WebKit::InjectedBundlePageLoaderClient::featuresUsedInPage):
2371 * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2372 (WebKit::findLargestFrameInFrameSet):
2373 * WebProcess/WebPage/WebFrame.cpp:
2374 (WebKit::WebFrame::childFrames):
2375 * WebProcess/WebPage/WebFrame.h:
2376 * WebProcess/WebPage/WebPage.cpp:
2377 (WebKit::WebPage::trackedRepaintRects):
2378 * WebProcess/WebPage/WebPage.h:
2380 2013-11-13 Nick Diego Yamane <nick.yamane@openbossa.org>
2382 [GTK] Fix build after r159222
2383 https://bugs.webkit.org/show_bug.cgi?id=124305
2385 Reviewed by Tim Horton.
2387 WebGraphicsContext and its API has been removed.
2390 * GNUmakefile.list.am:
2391 * Shared/API/c/gtk/WKGraphicsContextGtk.cpp: Removed.
2392 * Shared/API/c/gtk/WKGraphicsContextGtk.h: Removed.
2394 2013-11-13 Tim Horton <timothy_horton@apple.com>
2396 Remove redundant return after r159173
2397 https://bugs.webkit.org/show_bug.cgi?id=124303
2399 Reviewed by Geoff Garen.
2401 * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
2402 (WebKit::WebPlatformStrategies::loadResourceSynchronously):
2403 Remove redundant return.
2405 2013-11-13 Michał Pakuła vel Rutka <m.pakula@samsung.com>
2407 Unreviewed EFL build fix after r159222.
2411 2013-11-13 Anders Carlsson <andersca@apple.com>
2413 Remove WebGraphicsContext
2414 https://bugs.webkit.org/show_bug.cgi?id=124302
2416 Reviewed by Dan Bernstein.
2418 WebGraphicsContext and its API "object", WKGraphicsContextRef was only used
2419 for the overhang paint callback which has been removed.
2421 * Shared/API/c/WKDeprecatedFunctions.cpp:
2422 (WKGraphicsContextGetCGContext):
2423 * Shared/API/c/WKGraphicsContext.cpp: Removed.
2424 * Shared/API/c/WKGraphicsContext.h: Removed.
2425 * Shared/API/c/cg/WKGraphicsContextCG.cpp: Removed.
2426 * Shared/API/c/cg/WKGraphicsContextCG.h: Removed.
2427 * Shared/APIObject.h:
2428 * Shared/WebGraphicsContext.cpp: Removed.
2429 * Shared/WebGraphicsContext.h: Removed.
2430 * UIProcess/API/C/WebKit2_C.h:
2431 * WebKit2.xcodeproj/project.pbxproj:
2432 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
2434 2013-11-13 Anders Carlsson <andersca@apple.com>
2436 WKArrayIsMutable should not be mangled
2437 https://bugs.webkit.org/show_bug.cgi?id=124299
2439 Reviewed by Andreas Kling.
2441 * Shared/API/c/WKDeprecatedFunctions.cpp:
2443 2013-11-13 Anders Carlsson <andersca@apple.com>
2445 Move provisional load state handling to FrameLoadState
2446 https://bugs.webkit.org/show_bug.cgi?id=124291
2448 Reviewed by Dan Bernstein.
2450 * UIProcess/FrameLoadState.cpp:
2451 (WebKit::FrameLoadState::didStartProvisionalLoad):
2452 (WebKit::FrameLoadState::didReceiveServerRedirectForProvisionalLoad):
2453 (WebKit::FrameLoadState::didFailProvisionalLoad):
2454 * UIProcess/FrameLoadState.h:
2455 * UIProcess/WebFrameProxy.cpp:
2456 (WebKit::WebFrameProxy::didStartProvisionalLoad):
2457 (WebKit::WebFrameProxy::didReceiveServerRedirectForProvisionalLoad):
2458 (WebKit::WebFrameProxy::didFailProvisionalLoad):
2460 2013-11-13 Csaba Osztrogonác <ossy@webkit.org>
2462 One more fix after r159197.
2464 * UIProcess/efl/EwkTouchEvent.h:
2465 * UIProcess/efl/EwkTouchPoint.h:
2467 2013-11-13 Brendan Long <b.long@cablelabs.com>
2469 [Gtk][EFL] Fix builds by updating Object::TypeX to Object::Type::X
2470 https://bugs.webkit.org/show_bug.cgi?id=124289
2472 Reviewed by Alexey Proskuryakov.
2474 * Shared/API/c/WKContextMenuItem.cpp:
2475 (WKContextMenuItemGetTypeID):
2476 * Shared/WebBatteryStatus.h:
2477 * Shared/WebNetworkInfo.h:
2478 * UIProcess/API/C/WKGrammarDetail.cpp:
2479 (WKGrammarDetailGetTypeID):
2480 * UIProcess/API/C/WKPluginSiteDataManager.cpp:
2481 (WKPluginSiteDataManagerGetTypeID):
2482 * UIProcess/CoordinatedGraphics/WebView.h:
2483 * UIProcess/WebBatteryManagerProxy.h:
2484 * UIProcess/WebNetworkInfoManagerProxy.h:
2485 * UIProcess/WebTextChecker.h:
2486 * UIProcess/WebVibrationProxy.h:
2487 * UIProcess/WebViewportAttributes.h:
2488 * UIProcess/efl/WebPopupItemEfl.h:
2489 * UIProcess/soup/WebSoupRequestManagerProxy.h:
2491 2013-11-13 Tamas Gergely <gertom@inf.u-szeged.hu>
2493 Remove prefixed template class processing from message receiver generator.
2494 https://bugs.webkit.org/show_bug.cgi?id=123095
2496 Reviewed by Anders Carlsson.
2498 There was a FIXME in messages.py to remove unprefixed WTF template classes,
2499 but in the discussion of the bug report we concluded that in the messages.in
2500 files we should follow the C++ naming convention where none of the WTF
2501 classes require the WTF prefix.
2503 * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
2504 * Scripts/webkit2/messages.py:
2505 (class_template_headers):
2506 * Scripts/webkit2/messages_unittest.py:
2508 * UIProcess/Storage/StorageManager.messages.in:
2509 * UIProcess/WebPageProxy.messages.in:
2510 * WebProcess/WebPage/WebPage.messages.in:
2512 2013-11-13 Csaba Osztrogonác <ossy@webkit.org>
2514 URTBF after r159199 to make cmake and GTK build happy.
2517 * GNUmakefile.list.am:
2519 2013-11-13 Anders Carlsson <andersca@apple.com>
2521 Add WKDeprecatedFunctions.cpp and move WKArrayIsMutable there
2522 https://bugs.webkit.org/show_bug.cgi?id=124284
2524 Reviewed by Andreas Kling.
2526 * Shared/API/c/WKDeprecatedFunctions.cpp: Copied from Source/WebKit2/Shared/API/c/WKMutableArray.h.
2528 * Shared/API/c/WKMutableArray.cpp:
2529 * Shared/API/c/WKMutableArray.h:
2530 * WebKit2.xcodeproj/project.pbxproj:
2532 2013-11-12 Anders Carlsson <andersca@apple.com>
2534 API::Object::Type should be a strongly typed enum
2535 https://bugs.webkit.org/show_bug.cgi?id=124258
2537 Reviewed by Tim Horton.
2539 * Shared/API/Cocoa/WKRemoteObjectRegistry.mm:
2540 (-[WKRemoteObjectRegistry _handleMessageWithName:body:]):
2541 * Shared/APIObject.h:
2542 * Shared/Cocoa/APIObject.mm:
2543 (API::Object::newObject):
2544 * Shared/ImmutableArray.h:
2545 * Shared/ImmutableDictionary.h:
2546 * Shared/UserMessageCoders.h:
2547 (WebKit::UserMessageEncoder::baseEncode):
2548 (WebKit::UserMessageDecoder::baseDecode):
2549 * Shared/WebArchive.h:
2550 * Shared/WebArchiveResource.h:
2551 * Shared/WebBackForwardListItem.h:
2552 * Shared/WebCertificateInfo.h:
2553 * Shared/WebConnection.h:
2554 * Shared/WebContextMenuItem.h:
2556 * Shared/WebError.h:
2557 * Shared/WebGeolocationPosition.h:
2558 * Shared/WebGeometry.h:
2559 * Shared/WebGraphicsContext.h:
2560 * Shared/WebHitTestResult.h:
2561 * Shared/WebImage.h:
2562 * Shared/WebNumber.h:
2563 * Shared/WebOpenPanelParameters.h:
2564 * Shared/WebRenderLayer.h:
2565 * Shared/WebRenderObject.h:
2566 * Shared/WebSecurityOrigin.h:
2567 * Shared/WebSerializedScriptValue.h:
2568 * Shared/WebString.h:
2570 * Shared/WebURLRequest.h:
2571 * Shared/WebURLResponse.h:
2572 * Shared/WebUserContentURLPattern.h:
2573 * Shared/mac/ObjCObjectGraph.h:
2574 * UIProcess/Authentication/AuthenticationChallengeProxy.h:
2575 * UIProcess/Authentication/AuthenticationDecisionListener.h:
2576 * UIProcess/Authentication/WebCredential.h:
2577 * UIProcess/Authentication/WebProtectionSpace.h:
2578 * UIProcess/Downloads/DownloadProxy.h:
2579 * UIProcess/GeolocationPermissionRequestProxy.h:
2580 * UIProcess/Notifications/NotificationPermissionRequest.h:
2581 * UIProcess/Notifications/WebNotification.h:
2582 * UIProcess/Notifications/WebNotificationManagerProxy.h:
2583 * UIProcess/Plugins/WebPluginSiteDataManager.h:
2584 * UIProcess/WebApplicationCacheManagerProxy.h:
2585 * UIProcess/WebBackForwardList.h:
2586 * UIProcess/WebColorPickerResultListenerProxy.h:
2587 * UIProcess/WebContext.h:
2588 * UIProcess/WebContextUserMessageCoders.h:
2589 (WebKit::WebContextUserMessageEncoder::encode):
2590 (WebKit::WebContextUserMessageDecoder::decode):
2591 * UIProcess/WebCookieManagerProxy.h:
2592 * UIProcess/WebDatabaseManagerProxy.h:
2593 * UIProcess/WebEditCommandProxy.h:
2594 * UIProcess/WebFormSubmissionListenerProxy.h:
2595 * UIProcess/WebFramePolicyListenerProxy.h:
2596 * UIProcess/WebFrameProxy.h:
2597 * UIProcess/WebGeolocationManagerProxy.h:
2598 * UIProcess/WebGrammarDetail.h:
2599 * UIProcess/WebIconDatabase.h:
2600 * UIProcess/WebInspectorProxy.h:
2601 * UIProcess/WebKeyValueStorageManager.h:
2602 * UIProcess/WebMediaCacheManagerProxy.h:
2603 * UIProcess/WebNavigationData.h:
2604 * UIProcess/WebOpenPanelResultListenerProxy.h:
2605 * UIProcess/WebOriginDataManagerProxy.h:
2606 * UIProcess/WebPageGroup.h:
2607 * UIProcess/WebPageProxy.h:
2608 * UIProcess/WebPreferences.h:
2609 * UIProcess/WebResourceCacheManagerProxy.h:
2610 * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
2611 * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.h:
2612 * WebProcess/InjectedBundle/InjectedBundle.h:
2613 * WebProcess/InjectedBundle/InjectedBundleBackForwardList.h:
2614 * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.h:
2615 * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.h:
2616 * WebProcess/InjectedBundle/InjectedBundleHitTestResult.h:
2617 * WebProcess/InjectedBundle/InjectedBundleNavigationAction.h:
2618 * WebProcess/InjectedBundle/InjectedBundleScriptWorld.h:
2619 * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
2620 (WebKit::InjectedBundleUserMessageEncoder::encode):
2621 (WebKit::InjectedBundleUserMessageDecoder::decode):
2622 * WebProcess/InjectedBundle/mac/InjectedBundleMac.mm:
2623 (WebKit::InjectedBundle::load):
2624 * WebProcess/WebPage/PageBanner.h:
2625 * WebProcess/WebPage/PageOverlay.h:
2626 * WebProcess/WebPage/WebFrame.h:
2627 * WebProcess/WebPage/WebInspector.h:
2628 * WebProcess/WebPage/WebPage.h:
2629 * WebProcess/WebPage/WebPageGroupProxy.h:
2630 * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
2631 (-[WKAccessibilityWebPageObject accessibilityParameterizedAttributeNames]):
2632 (-[WKAccessibilityWebPageObject accessibilityAttributeValue:forParameter:]):
2634 2013-11-13 Anders Carlsson <andersca@apple.com>
2636 Remove custom overhang area painting code
2637 https://bugs.webkit.org/show_bug.cgi?id=124282
2639 Reviewed by Andreas Kling.
2641 This code was only used by the Mac port, to draw the linen background color on Lion.
2642 We now do that on the GPU instead so get rid of this code.
2644 * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
2645 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
2646 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
2647 * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2648 * WebProcess/WebCoreSupport/WebChromeClient.h:
2650 2013-11-13 Sergio Correia <sergio.correia@openbossa.org>
2652 [EFL][WK2] Convert some more OwnPtr/PassOwnPtr to std::unique_ptr
2653 https://bugs.webkit.org/show_bug.cgi?id=124241
2655 Reviewed by Gyuyoung Kim.
2657 The modified files are located under UIProcess/{efl,API/efl}.
2659 * UIProcess/API/efl/EwkView.cpp:
2660 * UIProcess/API/efl/EwkView.h:
2661 * UIProcess/API/efl/GestureRecognizer.cpp:
2662 * UIProcess/API/efl/GestureRecognizer.h:
2663 * UIProcess/API/efl/ewk_back_forward_list_private.h:
2664 * UIProcess/API/efl/ewk_color_picker_private.h:
2665 * UIProcess/API/efl/ewk_context.cpp:
2666 * UIProcess/API/efl/ewk_context_menu.cpp:
2667 * UIProcess/API/efl/ewk_context_menu_item.cpp:
2668 * UIProcess/API/efl/ewk_context_menu_item_private.h:
2669 * UIProcess/API/efl/ewk_context_private.h:
2670 * UIProcess/API/efl/ewk_cookie_manager.cpp:
2671 * UIProcess/API/efl/ewk_cookie_manager_private.h:
2672 * UIProcess/API/efl/ewk_database_manager_private.h:
2673 * UIProcess/API/efl/ewk_favicon_database_private.h:
2674 * UIProcess/API/efl/ewk_popup_menu.cpp:
2675 * UIProcess/API/efl/ewk_popup_menu_item_private.h:
2676 * UIProcess/API/efl/ewk_popup_menu_private.h:
2677 * UIProcess/API/efl/ewk_settings_private.h:
2678 * UIProcess/API/efl/ewk_storage_manager.cpp:
2679 * UIProcess/API/efl/ewk_storage_manager_private.h:
2680 * UIProcess/API/efl/ewk_view.cpp:
2681 * UIProcess/API/efl/tests/test_ewk2_auth_request.cpp:
2682 * UIProcess/API/efl/tests/test_ewk2_back_forward_list.cpp:
2683 * UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp:
2684 * UIProcess/API/efl/tests/test_ewk2_download_job.cpp:
2685 * UIProcess/API/efl/tests/test_ewk2_favicon_database.cpp:
2686 * UIProcess/API/efl/tests/test_ewk2_refptr_evas_object.cpp:
2687 * UIProcess/API/efl/tests/test_ewk2_view.cpp:
2688 * UIProcess/efl/ContextHistoryClientEfl.h:
2689 * UIProcess/efl/ContextMenuClientEfl.h:
2690 * UIProcess/efl/DownloadManagerEfl.h:
2691 * UIProcess/efl/FindClientEfl.h:
2692 * UIProcess/efl/FormClientEfl.h:
2693 * UIProcess/efl/PageLoadClientEfl.h:
2694 * UIProcess/efl/PagePolicyClientEfl.h:
2695 * UIProcess/efl/PageUIClientEfl.h:
2696 * UIProcess/efl/PageViewportControllerClientEfl.h:
2697 * UIProcess/efl/RequestManagerClientEfl.h:
2698 * UIProcess/efl/VibrationClientEfl.cpp:
2699 * UIProcess/efl/VibrationClientEfl.h:
2700 * UIProcess/efl/ViewClientEfl.h:
2702 2013-11-12 Alexey Proskuryakov <ap@apple.com>
2704 Disable WebCrypto on Mountain Lion
2705 https://bugs.webkit.org/show_bug.cgi?id=124261
2707 Rubber-stamped by Sam Weinig.
2709 * Configurations/FeatureDefines.xcconfig:
2711 2013-11-12 Nick Diego Yamane <nick.yamane@openbossa.org>
2713 [GTK][EFL] More on renaming WebKit::APIObject to API::Object
2714 https://bugs.webkit.org/show_bug.cgi?id=124255
2716 Reviewed by Anders Carlsson.
2718 In r159163 WebKit::APIObject has been renamed to API::Object.
2719 This patch refactors the remaining files which were still
2720 using WebKit::APIObject and WebKit::TypedAPIObject.
2722 * Shared/WebBatteryStatus.h:
2723 * Shared/WebNetworkInfo.h:
2724 * UIProcess/API/C/WKGrammarDetail.cpp:
2725 * UIProcess/API/gtk/WebKitContextMenuItem.cpp:
2726 * UIProcess/API/gtk/WebKitFileChooserRequest.cpp:
2727 * UIProcess/API/gtk/WebKitWebViewGroup.cpp:
2728 * UIProcess/CoordinatedGraphics/WebView.h:
2729 * UIProcess/WebBatteryManagerProxy.cpp:
2730 * UIProcess/WebBatteryManagerProxy.h:
2731 * UIProcess/WebGrammarDetail.cpp:
2732 * UIProcess/WebNetworkInfoManagerProxy.cpp:
2733 * UIProcess/WebNetworkInfoManagerProxy.h:
2734 * UIProcess/WebTextChecker.h:
2735 * UIProcess/WebVibrationProxy.h:
2736 * UIProcess/WebViewportAttributes.h:
2737 * UIProcess/efl/EwkTouchEvent.h:
2738 * UIProcess/efl/EwkTouchPoint.h:
2739 * UIProcess/efl/WebPopupItemEfl.h:
2740 * UIProcess/efl/WebUIPopupMenuClient.cpp:
2741 * UIProcess/gtk/WebFullScreenClientGtk.h:
2742 * UIProcess/gtk/WebInspectorClientGtk.h:
2743 * UIProcess/soup/WebSoupRequestManagerProxy.cpp:
2744 * UIProcess/soup/WebSoupRequestManagerProxy.h:
2745 * WebProcess/InjectedBundle/efl/InjectedBundleEfl.cpp:
2746 * WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp:
2748 2013-11-12 Anders Carlsson <andersca@apple.com>
2750 fast/canvas/webgl/draw-arrays-out-of-bounds.html is flaky on Mavericks WK2 testers, fails about 20% of the time
2751 https://bugs.webkit.org/show_bug.cgi?id=124223
2752 <rdar://problem/15333977>
2754 Reviewed by Tim Horton.
2756 It's wrong to use DataReferences in sync IPC replies; the underlying MessageDecoder will be freed after the call to
2757 sendSync returns and the DataReference will point to freed memory. Use a Vector<char> instead.
2759 * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
2760 * NetworkProcess/SynchronousNetworkLoaderClient.cpp:
2761 (WebKit::SynchronousNetworkLoaderClient::didReceiveBuffer):
2762 (WebKit::SynchronousNetworkLoaderClient::sendDelayedReply):
2763 * NetworkProcess/SynchronousNetworkLoaderClient.h:
2764 * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
2765 (WebKit::WebPlatformStrategies::loadResourceSynchronously):
2767 2013-11-12 Gustavo Noronha Silva <gns@gnome.org>
2769 Unreviewed try at fixing the GTK+ build.
2771 * UIProcess/soup/WebSoupRequestManagerProxy.h: rename TypedAPIObject to API:TypedObject.
2773 2013-11-12 Nick Diego Yamane <nick.yamane@openbossa.org>
2775 [EFL][GTK] Remove MutableArray leftovers from build systems
2776 https://bugs.webkit.org/show_bug.cgi?id=124248
2778 Reviewed by Anders Carlsson.
2780 MutableArray.cpp and .h file has been removed by r159155.
2783 * GNUmakefile.list.am:
2785 2013-11-12 Anders Carlsson <andersca@apple.com>
2787 Rename APIObject to API::Object
2788 https://bugs.webkit.org/show_bug.cgi?id=124247
2790 Reviewed by Tim Horton.
2792 * Shared/API/Cocoa/WKRemoteObjectRegistry.mm:
2793 (-[WKRemoteObjectRegistry _handleMessageWithName:body:]):
2794 * Shared/API/c/WKArray.cpp:
2796 (WKArrayCreateAdoptingValues):
2797 * Shared/API/c/WKContextMenuItem.cpp:
2798 (WKContextMenuItemGetTypeID):
2799 * Shared/API/c/WKSharedAPICast.h:
2801 * Shared/API/c/WKType.cpp:
2805 * Shared/APIObject.cpp:
2806 (API::Object::Object):
2807 * Shared/APIObject.h:
2808 (API::Object::~Object):
2809 (API::TypedObject::~TypedObject):
2810 (API::TypedObject::TypedObject):
2811 * Shared/Cocoa/APIObject.mm:
2813 (API::Object::deref):
2814 (API::Object::newObject):
2815 * Shared/Cocoa/WKNSArray.mm:
2816 (-[WKNSArray objectAtIndex:]):
2817 (-[WKNSArray API::]):
2818 * Shared/Cocoa/WKNSDictionary.mm:
2819 (-[WKNSDictionary objectForKey:]):
2820 (-[WKNSDictionary API::]):
2821 * Shared/Cocoa/WKObject.h:
2822 * Shared/Cocoa/WKObject.mm:
2823 (-[WKObject dealloc]):
2824 (-[WKObject API::]):
2825 * Shared/ImmutableArray.cpp:
2826 (WebKit::ImmutableArray::create):
2827 (WebKit::ImmutableArray::createStringArray):
2828 (WebKit::ImmutableArray::ImmutableArray):
2829 * Shared/ImmutableArray.h:
2830 * Shared/ImmutableDictionary.cpp:
2831 (WebKit::ImmutableDictionary::keys):
2832 * Shared/ImmutableDictionary.h:
2833 (WebKit::ImmutableDictionary::get):
2834 * Shared/MutableDictionary.cpp:
2835 (WebKit::MutableDictionary::add):
2836 (WebKit::MutableDictionary::set):
2837 * Shared/MutableDictionary.h:
2838 * Shared/SecurityOriginData.cpp:
2839 (WebKit::performAPICallbackWithSecurityOriginDataVector):
2840 * Shared/UserMessageCoders.h:
2841 (WebKit::UserMessageEncoder::baseEncode):
2842 (WebKit::UserMessageEncoder::UserMessageEncoder):
2843 (WebKit::UserMessageDecoder::baseDecode):
2844 (WebKit::UserMessageDecoder::UserMessageDecoder):
2845 * Shared/WebArchive.cpp:
2846 (WebKit::WebArchive::subresources):
2847 (WebKit::WebArchive::subframeArchives):
2848 * Shared/WebArchive.h:
2849 * Shared/WebArchiveResource.h:
2850 * Shared/WebBackForwardListItem.h:
2851 * Shared/WebCertificateInfo.h:
2852 * Shared/WebConnection.cpp:
2853 (WebKit::WebConnection::postMessage):
2854 (WebKit::WebConnection::handleMessage):
2855 * Shared/WebConnection.h:
2856 * Shared/WebConnectionClient.cpp:
2857 (WebKit::WebConnectionClient::didReceiveMessage):
2858 * Shared/WebConnectionClient.h:
2859 * Shared/WebContextMenuItem.cpp:
2860 (WebKit::WebContextMenuItem::submenuItemsAsImmutableArray):
2861 (WebKit::WebContextMenuItem::userData):
2862 (WebKit::WebContextMenuItem::setUserData):
2863 * Shared/WebContextMenuItem.h:
2864 * Shared/WebContextMenuItemData.cpp:
2865 (WebKit::WebContextMenuItemData::userData):
2866 (WebKit::WebContextMenuItemData::setUserData):
2867 * Shared/WebContextMenuItemData.h:
2869 * Shared/WebError.h:
2870 * Shared/WebGeolocationPosition.h:
2871 * Shared/WebGeometry.h:
2872 * Shared/WebGraphicsContext.h:
2873 * Shared/WebHitTestResult.h:
2874 * Shared/WebImage.h:
2875 * Shared/WebNumber.h:
2876 * Shared/WebOpenPanelParameters.h:
2877 * Shared/WebRenderLayer.cpp:
2878 (WebKit::WebRenderLayer::createArrayFromLayerList):
2879 * Shared/WebRenderLayer.h:
2880 * Shared/WebRenderObject.cpp:
2881 (WebKit::WebRenderObject::WebRenderObject):
2882 * Shared/WebRenderObject.h:
2883 * Shared/WebSecurityOrigin.h:
2884 * Shared/WebSerializedScriptValue.h:
2885 * Shared/WebString.h:
2887 * Shared/WebURLRequest.h:
2888 * Shared/WebURLResponse.h:
2889 * Shared/WebUserContentURLPattern.h:
2890 * Shared/mac/ObjCObjectGraph.h:
2891 * Shared/mac/ObjCObjectGraphCoders.mm:
2892 (WebKit::WebContextObjCObjectGraphDecoderImpl::decode):
2893 (WebKit::InjectedBundleObjCObjectGraphDecoderImpl::decode):
2894 * UIProcess/API/C/WKPluginSiteDataManager.cpp:
2895 (WKPluginSiteDataManagerGetTypeID):
2896 * UIProcess/API/C/mac/WKContextPrivateMac.mm:
2897 (WKContextGetInfoForInstalledPlugIns):
2898 * UIProcess/API/Cocoa/WKBackForwardList.mm:
2899 (-[WKBackForwardList API::]):
2900 * UIProcess/API/Cocoa/WKBackForwardListItem.mm:
2901 (-[WKBackForwardListItem API::]):
2902 * UIProcess/API/Cocoa/WKNavigationData.mm:
2903 (-[WKNavigationData API::]):
2904 * UIProcess/API/mac/WKBrowsingContextGroup.mm:
2906 * UIProcess/Authentication/AuthenticationChallengeProxy.h:
2907 * UIProcess/Authentication/AuthenticationDecisionListener.h:
2908 * UIProcess/Authentication/WebCredential.h:
2909 * UIProcess/Authentication/WebProtectionSpace.h:
2910 * UIProcess/Downloads/DownloadProxy.h:
2911 * UIProcess/GeolocationPermissionRequestProxy.h:
2912 * UIProcess/Notifications/NotificationPermissionRequest.h:
2913 * UIProcess/Notifications/WebNotification.h:
2914 * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
2915 (WebKit::WebNotificationManagerProxy::refWebContextSupplement):
2916 (WebKit::WebNotificationManagerProxy::derefWebContextSupplement):
2917 * UIProcess/Notifications/WebNotificationManagerProxy.h:
2918 * UIProcess/Notifications/WebNotificationProvider.cpp:
2919 (WebKit::WebNotificationProvider::clearNotifications):
2920 * UIProcess/Plugins/WebPluginSiteDataManager.h:
2921 * UIProcess/StatisticsRequest.cpp:
2922 (WebKit::StatisticsRequest::completedRequest):
2923 * UIProcess/WebApplicationCacheManagerProxy.cpp:
2924 (WebKit::WebApplicationCacheManagerProxy::refWebContextSupplement):
2925 (WebKit::WebApplicationCacheManagerProxy::derefWebContextSupplement):
2926 * UIProcess/WebApplicationCacheManagerProxy.h:
2927 * UIProcess/WebBackForwardList.cpp:
2928 (WebKit::WebBackForwardList::addItem):
2929 (WebKit::WebBackForwardList::backListAsImmutableArrayWithLimit):
2930 (WebKit::WebBackForwardList::forwardListAsImmutableArrayWithLimit):
2931 (WebKit::WebBackForwardList::clear):
2932 * UIProcess/WebBackForwardList.h:
2933 * UIProcess/WebColorPickerResultListenerProxy.h:
2934 * UIProcess/WebConnectionToWebProcess.cpp:
2935 (WebKit::WebConnectionToWebProcess::encodeMessageBody):
2936 (WebKit::WebConnectionToWebProcess::decodeMessageBody):
2937 * UIProcess/WebConnectionToWebProcess.h:
2938 * UIProcess/WebContext.cpp:
2939 (WebKit::WebContext::createNewWebProcess):
2940 (WebKit::WebContext::postMessageToInjectedBundle):
2941 (WebKit::WebContext::didReceiveMessageFromInjectedBundle):
2942 (WebKit::WebContext::didReceiveSynchronousMessageFromInjectedBundle):
2943 (WebKit::WebContext::didReceiveMessage):
2944 (WebKit::WebContext::didReceiveSyncMessage):
2945 (WebKit::WebContext::pluginInfoStoreDidLoadPlugins):
2946 * UIProcess/WebContext.h:
2947 (WebKit::WebContext::setInjectedBundleInitializationUserData):
2948 * UIProcess/WebContextInjectedBundleClient.cpp:
2949 (WebKit::WebContextInjectedBundleClient::didReceiveMessageFromInjectedBundle):
2950 (WebKit::WebContextInjectedBundleClient::didReceiveSynchronousMessageFromInjectedBundle):
2951 (WebKit::WebContextInjectedBundleClient::getInjectedBundleInitializationUserData):
2952 * UIProcess/WebContextInjectedBundleClient.h:
2953 * UIProcess/WebContextUserMessageCoders.h:
2954 (WebKit::WebContextUserMessageEncoder::WebContextUserMessageEncoder):
2955 (WebKit::WebContextUserMessageEncoder::encode):
2956 (WebKit::WebContextUserMessageDecoder::WebContextUserMessageDecoder):
2957 (WebKit::WebContextUserMessageDecoder::decode):
2958 * UIProcess/WebCookieManagerProxy.cpp:
2959 (WebKit::WebCookieManagerProxy::refWebContextSupplement):
2960 (WebKit::WebCookieManagerProxy::derefWebContextSupplement):
2961 * UIProcess/WebCookieManagerProxy.h:
2962 * UIProcess/WebDatabaseManagerProxy.cpp:
2963 (WebKit::WebDatabaseManagerProxy::refWebContextSupplement):
2964 (WebKit::WebDatabaseManagerProxy::derefWebContextSupplement):
2965 (WebKit::WebDatabaseManagerProxy::didGetDatabasesByOrigin):
2966 (WebKit::WebDatabaseManagerProxy::didGetDatabaseOrigins):
2967 * UIProcess/WebDatabaseManagerProxy.h:
2968 * UIProcess/WebEditCommandProxy.h:
2969 * UIProcess/WebFormClient.cpp:
2970 (WebKit::WebFormClient::willSubmitForm):
2971 * UIProcess/WebFormClient.h:
2972 * UIProcess/WebFrameListenerProxy.h:
2973 * UIProcess/WebFrameProxy.h:
2974 * UIProcess/WebGeolocationManagerProxy.cpp:
2975 (WebKit::WebGeolocationManagerProxy::refWebContextSupplement):
2976 (WebKit::WebGeolocationManagerProxy::derefWebContextSupplement):
2977 * UIProcess/WebGeolocationManagerProxy.h:
2978 * UIProcess/WebGrammarDetail.h:
2979 * UIProcess/WebIconDatabase.h:
2980 * UIProcess/WebIconDatabaseClient.h:
2981 * UIProcess/WebInspectorProxy.h:
2982 * UIProcess/WebKeyValueStorageManager.cpp:
2983 (WebKit::WebKeyValueStorageManager::refWebContextSupplement):
2984 (WebKit::WebKeyValueStorageManager::derefWebContextSupplement):
2985 (WebKit::didGetKeyValueStorageOrigins):
2986 * UIProcess/WebKeyValueStorageManager.h:
2987 * UIProcess/WebLoaderClient.cpp:
2988 (WebKit::WebLoaderClient::didStartProvisionalLoadForFrame):
2989 (WebKit::WebLoaderClient::didReceiveServerRedirectForProvisionalLoadForFrame):
2990 (WebKit::WebLoaderClient::didFailProvisionalLoadWithErrorForFrame):
2991 (WebKit::WebLoaderClient::didCommitLoadForFrame):
2992 (WebKit::WebLoaderClient::didFinishDocumentLoadForFrame):
2993 (WebKit::WebLoaderClient::didFinishLoadForFrame):
2994 (WebKit::WebLoaderClient::didFailLoadWithErrorForFrame):
2995 (WebKit::WebLoaderClient::didSameDocumentNavigationForFrame):
2996 (WebKit::WebLoaderClient::didReceiveTitleForFrame):
2997 (WebKit::WebLoaderClient::didFirstLayoutForFrame):
2998 (WebKit::WebLoaderClient::didFirstVisuallyNonEmptyLayoutForFrame):
2999 (WebKit::WebLoaderClient::didLayout):
3000 (WebKit::WebLoaderClient::didRemoveFrameFromHierarchy):
3001 (WebKit::WebLoaderClient::didDisplayInsecureContentForFrame):
3002 (WebKit::WebLoaderClient::didRunInsecureContentForFrame):
3003 (WebKit::WebLoaderClient::didDetectXSSForFrame):
3004 (WebKit::WebLoaderClient::didChangeBackForwardList):
3005 (WebKit::WebLoaderClient::willGoToBackForwardListItem):
3006 * UIProcess/WebLoaderClient.h:
3007 * UIProcess/WebMediaCacheManagerProxy.cpp:
3008 (WebKit::WebMediaCacheManagerProxy::refWebContextSupplement):
3009 (WebKit::WebMediaCacheManagerProxy::derefWebContextSupplement):
3010 * UIProcess/WebMediaCacheManagerProxy.h:
3011 * UIProcess/WebNavigationData.h:
3012 * UIProcess/WebOpenPanelResultListenerProxy.h:
3013 * UIProcess/WebOriginDataManagerProxy.cpp:
3014 (WebKit::WebOriginDataManagerProxy::refWebContextSupplement):
3015 (WebKit::WebOriginDataManagerProxy::derefWebContextSupplement):
3016 * UIProcess/WebOriginDataManagerProxy.h:
3017 * UIProcess/WebPageContextMenuClient.cpp:
3018 (WebKit::WebPageContextMenuClient::getContextMenuFromProposedMenu):
3019 (WebKit::WebPageContextMenuClient::showContextMenu):
3020 * UIProcess/WebPageContextMenuClient.h:
3021 * UIProcess/WebPageGroup.h:
3022 * UIProcess/WebPageProxy.cpp:
3023 (WebKit::WebPageProxy::relatedPages):
3024 (WebKit::WebPageProxy::loadURL):
3025 (WebKit::WebPageProxy::loadURLRequest):
3026 (WebKit::WebPageProxy::loadFile):
3027 (WebKit::WebPageProxy::loadData):
3028 (WebKit::WebPageProxy::loadHTMLString):
3029 (WebKit::WebPageProxy::loadAlternateHTMLString):
3030 (WebKit::WebPageProxy::loadPlainTextString):
3031 (WebKit::WebPageProxy::loadWebArchiveData):
3032 (WebKit::WebPageProxy::didChangeBackForwardList):
3033 (WebKit::WebPageProxy::willGoToBackForwardListItem):
3034 (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
3035 (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame):
3036 (WebKit::WebPageProxy::didFailProvisionalLoadForFrame):
3037 (WebKit::WebPageProxy::didCommitLoadForFrame):
3038 (WebKit::WebPageProxy::didFinishDocumentLoadForFrame):
3039 (WebKit::WebPageProxy::didFinishLoadForFrame):
3040 (WebKit::WebPageProxy::didFailLoadForFrame):
3041 (WebKit::WebPageProxy::didSameDocumentNavigationForFrame):
3042 (WebKit::WebPageProxy::didReceiveTitleForFrame):
3043 (WebKit::WebPageProxy::didFirstLayoutForFrame):
3044 (WebKit::WebPageProxy::didFirstVisuallyNonEmptyLayoutForFrame):
3045 (WebKit::WebPageProxy::didLayout):
3046 (WebKit::WebPageProxy::didRemoveFrameFromHierarchy):
3047 (WebKit::WebPageProxy::didDisplayInsecureContentForFrame):
3048 (WebKit::WebPageProxy::didRunInsecureContentForFrame):
3049 (WebKit::WebPageProxy::didDetectXSSForFrame):
3050 (WebKit::WebPageProxy::decidePolicyForNavigationAction):
3051 (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
3052 (WebKit::WebPageProxy::decidePolicyForResponse):
3053 (WebKit::WebPageProxy::unableToImplementPolicy):
3054 (WebKit::WebPageProxy::willSubmitForm):
3055 (WebKit::WebPageProxy::mouseDidMoveOverElement):
3056 (WebKit::WebPageProxy::didFindStringMatches):
3057 (WebKit::WebPageProxy::postMessageToInjectedBundle):
3058 (WebKit::WebPageProxy::internalShowContextMenu):
3059 * UIProcess/WebPageProxy.h:
3060 * UIProcess/WebPolicyClient.cpp:
3061 (WebKit::WebPolicyClient::decidePolicyForNavigationAction):
3062 (WebKit::WebPolicyClient::decidePolicyForNewWindowAction):
3063 (WebKit::WebPolicyClient::decidePolicyForResponse):
3064 (WebKit::WebPolicyClient::unableToImplementPolicy):
3065 * UIProcess/WebPolicyClient.h:
3066 * UIProcess/WebPreferences.h:
3067 * UIProcess/WebResourceCacheManagerProxy.cpp:
3068 (WebKit::WebResourceCacheManagerProxy::refWebContextSupplement):
3069 (WebKit::WebResourceCacheManagerProxy::derefWebContextSupplement):
3070 * UIProcess/WebResourceCacheManagerProxy.h:
3071 * UIProcess/WebUIClient.cpp:
3072 (WebKit::WebUIClient::mouseDidMoveOverElement):
3073 * UIProcess/WebUIClient.h:
3074 * UIProcess/mac/WebContextMenuProxyMac.mm:
3075 (-[WKUserDataWrapper initWithUserData:API::]):
3076 (-[WKUserDataWrapper API::]):
3077 * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
3078 (WKBundlePostSynchronousMessage):
3079 * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
3081 * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
3082 * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.h:
3083 * WebProcess/InjectedBundle/InjectedBundle.cpp:
3084 (WebKit::InjectedBundle::postMessage):
3085 (WebKit::InjectedBundle::postSynchronousMessage):
3086 (WebKit::InjectedBundle::originsWithApplicationCache):
3087 (WebKit::InjectedBundle::didReceiveMessage):
3088 (WebKit::InjectedBundle::didReceiveMessageToPage):
3089 * WebProcess/InjectedBundle/InjectedBundle.h:
3090 * WebProcess/InjectedBundle/InjectedBundleBackForwardList.h:
3091 * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.cpp:
3092 (WebKit::InjectedBundleBackForwardListItem::children):
3093 * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.h:
3094 * WebProcess/InjectedBundle/InjectedBundleClient.cpp:
3095 (WebKit::InjectedBundleClient::didReceiveMessage):
3096 (WebKit::InjectedBundleClient::didReceiveMessageToPage):
3097 * WebProcess/InjectedBundle/InjectedBundleClient.h:
3098 * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.h:
3099 * WebProcess/InjectedBundle/InjectedBundleHitTestResult.h:
3100 * WebProcess/InjectedBundle/InjectedBundleNavigationAction.h:
3101 * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp:
3102 (WebKit::InjectedBundlePageContextMenuClient::getCustomMenuFromDefaultItems):
3103 * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.h:
3104 * WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.h:
3105 * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
3106 (WebKit::InjectedBundlePageFormClient::willSubmitForm):
3107 (WebKit::InjectedBundlePageFormClient::didAssociateFormControls):
3108 * WebProcess/InjectedBundle/InjectedBundlePageFormClient.h:
3109 * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
3110 (WebKit::InjectedBundlePageLoaderClient::willLoadURLRequest):
3111 (WebKit::InjectedBundlePageLoaderClient::willLoadDataRequest):
3112 (WebKit::InjectedBundlePageLoaderClient::shouldGoToBackForwardListItem):
3113 (WebKit::InjectedBundlePageLoaderClient::didStartProvisionalLoadForFrame):
3114 (WebKit::InjectedBundlePageLoaderClient::didReceiveServerRedirectForProvisionalLoadForFrame):
3115 (WebKit::InjectedBundlePageLoaderClient::didFailProvisionalLoadWithErrorForFrame):
3116 (WebKit::InjectedBundlePageLoaderClient::didCommitLoadForFrame):
3117 (WebKit::InjectedBundlePageLoaderClient::didFinishDocumentLoadForFrame):
3118 (WebKit::InjectedBundlePageLoaderClient::didFinishLoadForFrame):
3119 (WebKit::InjectedBundlePageLoaderClient::didFailLoadWithErrorForFrame):
3120 (WebKit::InjectedBundlePageLoaderClient::didSameDocumentNavigationForFrame):
3121 (WebKit::InjectedBundlePageLoaderClient::didReceiveTitleForFrame):
3122 (WebKit::InjectedBundlePageLoaderClient::didRemoveFrameFromHierarchy):
3123 (WebKit::InjectedBundlePageLoaderClient::didDisplayInsecureContentForFrame):
3124 (WebKit::InjectedBundlePageLoaderClient::didRunInsecureContentForFrame):
3125 (WebKit::InjectedBundlePageLoaderClient::didDetectXSSForFrame):
3126 (WebKit::InjectedBundlePageLoaderClient::didFirstLayoutForFrame):
3127 (WebKit::InjectedBundlePageLoaderClient::didFirstVisuallyNonEmptyLayoutForFrame):
3128 (WebKit::InjectedBundlePageLoaderClient::didLayout):
3129 * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
3130 * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp:
3131 (WebKit::InjectedBundlePagePolicyClient::decidePolicyForNavigationAction):
3132 (WebKit::InjectedBundlePagePolicyClient::decidePolicyForNewWindowAction):
3133 (WebKit::InjectedBundlePagePolicyClient::decidePolicyForResponse):
3134 (WebKit::InjectedBundlePagePolicyClient::unableToImplementPolicy):
3135 * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.h:
3136 * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.h:
3137 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
3138 (WebKit::InjectedBundlePageUIClient::mouseDidMoveOverElement):
3139 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
3140 * WebProcess/InjectedBundle/InjectedBundleScriptWorld.h:
3141 * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
3142 (WebKit::InjectedBundleUserMessageEncoder::InjectedBundleUserMessageEncoder):
3143 (WebKit::InjectedBundleUserMessageEncoder::encode):
3144 (WebKit::InjectedBundleUserMessageDecoder::InjectedBundleUserMessageDecoder):
3145 (WebKit::InjectedBundleUserMessageDecoder::decode):
3146 * WebProcess/InjectedBundle/mac/InjectedBundleMac.mm:
3147 (WebKit::InjectedBundle::load):
3148 * WebProcess/WebConnectionToUIProcess.cpp:
3149 (WebKit::WebConnectionToUIProcess::encodeMessageBody):
3150 (WebKit::WebConnectionToUIProcess::decodeMessageBody):
3151 * WebProcess/WebConnectionToUIProcess.h:
3152 * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3153 (WebKit::WebChromeClient::mouseDidMoveOverElement):
3154 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
3155 (WebKit::WebFrameLoaderClient::detachedFromParent2):
3156 (WebKit::WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
3157 (WebKit::WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
3158 (WebKit::WebFrameLoaderClient::dispatchDidPushStateWithinPage):
3159 (WebKit::WebFrameLoaderClient::dispatchDidReplaceStateWithinPage):
3160 (WebKit::WebFrameLoaderClient::dispatchDidPopStateWithinPage):
3161 (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
3162 (WebKit::WebFrameLoaderClient::dispatchDidReceiveTitle):
3163 (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
3164 (WebKit::WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
3165 (WebKit::WebFrameLoaderClient::dispatchDidFailLoad):
3166 (WebKit::WebFrameLoaderClient::dispatchDidFinishDocumentLoad):
3167 (WebKit::WebFrameLoaderClient::dispatchDidFinishLoad):
3168 (WebKit::WebFrameLoaderClient::dispatchDidLayout):
3169 (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
3170 (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
3171 (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
3172 (WebKit::WebFrameLoaderClient::dispatchUnableToImplementPolicy):
3173 (WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
3174 (WebKit::WebFrameLoaderClient::shouldGoToHistoryItem):
3175 (WebKit::WebFrameLoaderClient::didDisplayInsecureContent):
3176 (WebKit::WebFrameLoaderClient::didRunInsecureContent):
3177 (WebKit::WebFrameLoaderClient::didDetectXSS):
3178 * WebProcess/WebPage/PageBanner.h:
3179 * WebProcess/WebPage/PageOverlay.h:
3180 * WebProcess/WebPage/WebContextMenu.cpp:
3181 (WebKit::WebContextMenu::show):
3182 (WebKit::WebContextMenu::menuItemsWithUserData):
3183 (WebKit::WebContextMenu::items):
3184 * WebProcess/WebPage/WebContextMenu.h:
3185 * WebProcess/WebPage/WebFrame.cpp:
3186 (WebKit::WebFrame::childFrames):
3187 * WebProcess/WebPage/WebFrame.h:
3188 * WebProcess/WebPage/WebInspector.h:
3189 * WebProcess/WebPage/WebPage.cpp:
3190 (WebKit::WebPage::trackedRepaintRects):
3191 (WebKit::WebPage::loadURLRequest):
3192 (WebKit::WebPage::loadDataImpl):
3193 (WebKit::WebPage::postInjectedBundleMessage):
3194 * WebProcess/WebPage/WebPage.h:
3195 * WebProcess/WebPage/WebPageGroupProxy.h:
3196 * WebProcess/WebProcess.cpp:
3197 (WebKit::WebProcess::initializeWebProcess):
3198 (WebKit::WebProcess::postInjectedBundleMessage):
3200 2013-11-12 Nick Diego Yamane <nick.yamane@openbossa.org>
3202 Fix GTK build after r159142
3203 https://bugs.webkit.org/show_bug.cgi?id=124243
3205 Reviewed by Anders Carlsson.
3207 Use Vector + ImmutableArray instead of MutableArray
3209 * UIProcess/API/gtk/WebKitContextMenuItem.cpp:
3210 (webkitContextMenuItemCreate):
3212 2013-11-12 Anders Carlsson <andersca@apple.com>
3214 Remove ImmutableArray::isMutable
3215 https://bugs.webkit.org/show_bug.cgi?id=124242
3217 Reviewed by Dan Bernstein.
3219 * Shared/API/c/WKMutableArray.cpp:
3221 * Shared/Cocoa/WKNSArray.mm:
3222 (-[WKNSArray copyWithZone:]):
3223 * Shared/ImmutableArray.h:
3225 2013-11-12 Anders Carlsson <andersca@apple.com>
3227 WKMutableArrayRef should be an ImmutableArray
3228 https://bugs.webkit.org/show_bug.cgi?id=124239
3230 Reviewed by Sam Weinig.
3232 * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
3233 (ensureObjectStream):
3234 * Shared/API/c/WKMutableArray.cpp:
3235 (WKMutableArrayCreate):
3236 * Shared/API/c/WKSharedAPICast.h:
3238 2013-11-12 Anders Carlsson <andersca@apple.com>
3240 Remove more functionality from MutableArray
3241 https://bugs.webkit.org/show_bug.cgi?id=124235
3243 Reviewed by Beth Dakin.
3245 * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
3246 (encodeToObjectStream):
3247 * Shared/API/c/WKMutableArray.cpp:
3248 (WKArrayAppendItem):
3249 (WKArrayRemoveItemAtIndex):
3250 * Shared/Cocoa/WKNSArray.mm:
3251 (-[WKNSArray copyWithZone:]):
3252 * Shared/ImmutableArray.h:
3253 (WebKit::ImmutableArray::elements):
3254 * Shared/MutableArray.cpp:
3255 * Shared/MutableArray.h:
3257 2013-11-12 Anders Carlsson <andersca@apple.com>
3259 Remove most uses of MutableArray
3260 https://bugs.webkit.org/show_bug.cgi?id=124232
3262 Reviewed by Sam Weinig.
3264 * Shared/API/c/WKMutableArray.cpp:
3265 (WKMutableArrayCreate):
3266 * Shared/UserMessageCoders.h:
3267 (WebKit::UserMessageDecoder::baseDecode):
3268 * Shared/WebRenderLayer.h:
3269 (WebKit::WebRenderLayer::create):
3270 (WebKit::WebRenderLayer::WebRenderLayer):
3271 * Shared/WebRenderObject.cpp:
3272 (WebKit::WebRenderObject::WebRenderObject):
3273 * Shared/WebRenderObject.h:
3274 (WebKit::WebRenderObject::create):
3275 (WebKit::WebRenderObject::WebRenderObject):
3276 * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp:
3277 (WebKit::InjectedBundlePageContextMenuClient::getCustomMenuFromDefaultItems):
3279 2013-11-12 Anders Carlsson <andersca@apple.com>
3281 Use Vector + ImmutableArray instead of MutableArray
3282 https://bugs.webkit.org/show_bug.cgi?id=124221
3284 Reviewed by Andreas Kling.
3286 * Shared/WebRenderLayer.cpp:
3287 (WebKit::WebRenderLayer::createArrayFromLayerList):
3288 * Shared/WebRenderLayer.h:
3289 * UIProcess/Notifications/WebNotificationProvider.cpp:
3290 (WebKit::WebNotificationProvider::clearNotifications):
3291 * UIProcess/WebPageContextMenuClient.cpp:
3292 (WebKit::WebPageContextMenuClient::getContextMenuFromProposedMenu):
3293 * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
3295 (WKBundlePageCopyContextMenuItems):
3296 (WKBundlePageCopyContextMenuAtPointInWindow):
3298 2013-11-12 Zan Dobersek <zdobersek@igalia.com>
3300 Unreviewed GTK build fix after r159129.
3302 * UIProcess/API/gtk/WebKitFileChooserRequest.cpp:
3303 (webkit_file_chooser_request_select_files): Use ImmutableArray::create() instead.
3304 * UIProcess/API/gtk/WebKitWebViewGroup.cpp:
3305 (toImmutableArray): Ditto.
3307 2013-11-12 Anders Carlsson <andersca@apple.com>
3309 Stop using WKArrayCreate internally
3310 https://bugs.webkit.org/show_bug.cgi?id=124217
3312 Reviewed by Andreas Kling.
3314 * UIProcess/API/mac/WKBrowsingContextGroup.mm:
3316 (-[WKBrowsingContextGroup addUserStyleSheet:baseURL:whitelistedURLPatterns:blacklistedURLPatterns:mainFrameOnly:]):
3317 (-[WKBrowsingContextGroup addUserScript:baseURL:whitelistedURLPatterns:blacklistedURLPatterns:injectionTime:mainFrameOnly:]):
3318 * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
3319 (WKBundlePageCopyContextMenuItems):
3321 2013-11-12 Csaba Osztrogonác <ossy@webkit.org>
3323 URTBF after r159129, use create() instead of adopt() everywhere.
3325 * UIProcess/WebGrammarDetail.cpp:
3326 (WebKit::WebGrammarDetail::guesses):
3327 * UIProcess/efl/WebUIPopupMenuClient.cpp:
3328 (WebUIPopupMenuClient::showPopupMenu):
3330 2013-11-12 Anders Carlsson <andersca@apple.com>
3332 Simplify ImmutableArray creation
3333 https://bugs.webkit.org/show_bug.cgi?id=124213
3335 Reviewed by Andreas Kling.
3337 Get rid of the various ImmutableArray::adopt functions and have a single create function instead.
3338 Use std::move to avoid unnecessarily copying vector data.
3340 * Shared/API/c/WKArray.cpp:
3342 (WKArrayCreateAdoptingValues):
3343 * Shared/Cocoa/WKNSArray.mm:
3344 (-[WKNSArray copyWithZone:]):
3345 * Shared/ImmutableArray.cpp:
3346 (WebKit::ImmutableArray::create):
3347 (WebKit::ImmutableArray::createStringArray):
3348 (WebKit::ImmutableArray::ImmutableArray):
3349 * Shared/ImmutableArray.h:
3350 (WebKit::ImmutableArray::at):
3351 (WebKit::ImmutableArray::size):
3352 (WebKit::ImmutableArray::entries):
3353 * Shared/ImmutableDictionary.cpp:
3354 (WebKit::ImmutableDictionary::keys):
3355 * Shared/MutableArray.cpp:
3356 (WebKit::MutableArray::MutableArray):
3357 (WebKit::MutableArray::append):
3358 (WebKit::MutableArray::reserveCapacity):
3359 (WebKit::MutableArray::removeItemAtIndex):
3360 * Shared/SecurityOriginData.cpp:
3361 (WebKit::performAPICallbackWithSecurityOriginDataVector):
3362 * Shared/UserMessageCoders.h:
3363 (WebKit::UserMessageDecoder::baseDecode):
3364 * Shared/WebArchive.cpp:
3365 (WebKit::WebArchive::subresources):
3366 (WebKit::WebArchive::subframeArchives):
3367 * Shared/WebContextMenuItem.cpp:
3368 (WebKit::WebContextMenuItem::submenuItemsAsImmutableArray):
3369 * UIProcess/API/C/mac/WKContextPrivateMac.mm:
3370 (WKContextGetInfoForInstalledPlugIns):
3371 * UIProcess/StatisticsRequest.cpp:
3372 (WebKit::StatisticsRequest::completedRequest):
3373 * UIProcess/WebBackForwardList.cpp:
3374 (WebKit::WebBackForwardList::backListAsImmutableArrayWithLimit):
3375 (WebKit::WebBackForwardList::forwardListAsImmutableArrayWithLimit):
3376 * UIProcess/WebContext.cpp:
3377 (WebKit::WebContext::pluginInfoStoreDidLoadPlugins):
3378 * UIProcess/WebDatabaseManagerProxy.cpp:
3379 (WebKit::WebDatabaseManagerProxy::didGetDatabasesByOrigin):
3380 (WebKit::WebDatabaseManagerProxy::didGetDatabaseOrigins):
3381 * UIProcess/WebKeyValueStorageManager.cpp:
3382 (WebKit::didGetKeyValueStorageOrigins):
3383 * UIProcess/WebLoaderClient.cpp:
3384 (WebKit::WebLoaderClient::didChangeBackForwardList):
3385 * UIProcess/WebPageContextMenuClient.cpp:
3386 (WebKit::WebPageContextMenuClient::showContextMenu):
3387 * UIProcess/WebPageProxy.cpp:
3388 (WebKit::WebPageProxy::relatedPages):
3389 (WebKit::WebPageProxy::didFindStringMatches):
3390 * WebProcess/InjectedBundle/InjectedBundle.cpp:
3391 (WebKit::InjectedBundle::originsWithApplicationCache):
3392 * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.cpp:
3393 (WebKit::InjectedBundleBackForwardListItem::children):
3394 * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
3395 (WebKit::InjectedBundlePageFormClient::didAssociateFormControls):
3396 * WebProcess/WebPage/WebFrame.cpp:
3397 (WebKit::WebFrame::childFrames):
3398 * WebProcess/WebPage/WebPage.cpp:
3399 (WebKit::WebPage::trackedRepaintRects):
3401 2013-11-12 Csaba Osztrogonác <ossy@webkit.org>
3403 The last URTBF after r159108 to make GTK happy.
3407 2013-11-12 Csaba Osztrogonác <ossy@webkit.org>
3409 One more URTBF after r159108, I hope the last one.
3413 2013-11-12 Tim Horton <timothy_horton@apple.com>
3415 Remote Layer Tree: Assertions during layer flushing after replaceSublayer()
3416 https://bugs.webkit.org/show_bug.cgi?id=124194
3418 Reviewed by Anders Carlsson.
3420 * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
3421 (PlatformCALayerRemote::replaceSublayer):
3422 Only remove the old layer from the children array once (via removeFromSuperlayer).
3423 Update the superlayer backpointer on the new layer.
3425 2013-11-12 Anders Carlsson <andersca@apple.com>
3427 Add ImmutableArray::createStringArray
3428 https://bugs.webkit.org/show_bug.cgi?id=124210
3430 Reviewed by Andreas Kling.
3432 Creating an ImmutableArray of WebStrings is a common operation, so add a
3433 helper function to ImmutableArray that does this from a Vector of Strings.
3435 * Shared/ImmutableArray.cpp:
3436 (WebKit::ImmutableArray::createStringArray):
3437 * Shared/ImmutableArray.h:
3438 * Shared/ImmutableDictionary.cpp:
3439 (WebKit::ImmutableDictionary::keys):
3440 * Shared/WebOpenPanelParameters.cpp:
3441 (WebKit::WebOpenPanelParameters::acceptMIMETypes):
3442 (WebKit::WebOpenPanelParameters::selectedFileNames):
3443 * UIProcess/Plugins/WebPluginSiteDataManager.cpp:
3444 (WebKit::WebPluginSiteDataManager::didGetSitesWithData):
3445 * UIProcess/WebCookieManagerProxy.cpp:
3446 (WebKit::WebCookieManagerProxy::didGetHostnamesWithCookies):
3447 * UIProcess/WebMediaCacheManagerProxy.cpp:
3448 (WebKit::WebMediaCacheManagerProxy::didGetHostnamesWithMediaCache):
3449 * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
3450 (WebKit::InjectedBundlePageLoaderClient::featuresUsedInPage):
3452 2013-11-12 Csaba Osztrogonác <ossy@webkit.org>
3454 One more URTBF after r159108.
3458 2013-11-12 Anders Carlsson <andersca@apple.com>
3460 Begin cleaning up handling of ImmutableArray vectors
3461 https://bugs.webkit.org/show_bug.cgi?id=124208
3463 Reviewed by Andreas Kling.
3465 Use range based for to iterate the loops. Use reserveInitialCapacity + uncheckedAppend
3466 when appending vector elements.
3468 * Shared/SecurityOriginData.cpp:
3469 (WebKit::performAPICallbackWithSecurityOriginDataVector):
3470 * Shared/WebArchive.cpp:
3471 (WebKit::WebArchive::subresources):
3472 (WebKit::WebArchive::subframeArchives):
3473 * Shared/WebContextMenuItem.cpp:
3474 (WebKit::WebContextMenuItem::submenuItemsAsImmutableArray):
3475 * Shared/WebOpenPanelParameters.cpp:
3476 (WebKit::WebOpenPanelParameters::acceptMIMETypes):
3477 (WebKit::WebOpenPanelParameters::selectedFileNames):
3478 * UIProcess/API/C/mac/WKContextPrivateMac.mm:
3479 (WKContextGetInfoForInstalledPlugIns):
3480 * UIProcess/Plugins/WebPluginSiteDataManager.cpp:
3481 (WebKit::WebPluginSiteDataManager::didGetSitesWithData):
3482 * UIProcess/StatisticsRequest.cpp:
3483 (WebKit::StatisticsRequest::completedRequest):
3484 * UIProcess/WebContext.cpp: