ChangeLog 969 KB
Newer Older
andersca@apple.com's avatar
andersca@apple.com committed
1 2 3 4 5 6
2014-01-22  Anders Carlsson  <andersca@apple.com>

        Fix 32-bit build.

        * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:

7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
2014-01-22  Tim Horton  <timothy_horton@apple.com>

        [wk2] Scroll pinning state is wrong until the first scroll event
        https://bugs.webkit.org/show_bug.cgi?id=127437

        Reviewed by Simon Fraser.

        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
        (WebKit::WebFrameLoaderClient::didChangeScrollOffset):
        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::updateMainFrameScrollOffsetPinning):
        (WebKit::WebPage::didCommitLoad):
        * WebProcess/WebPage/WebPage.h:
        Rename WebPage::didChangeScrollOffsetForMainFrame to
        updateMainFrameScrollOffsetPinning, which better describes what it
        actually does. Call it when a load is committed, so that we have valid
        pinning state before the first scroll event comes in.

25 26 27 28 29 30 31 32 33 34 35 36 37
2014-01-22  Anders Carlsson  <andersca@apple.com>

        Add WKWebViewConfiguration class
        https://bugs.webkit.org/show_bug.cgi?id=127436
        <rdar://problem/15882923>

        Reviewed by Tim Horton.

        * UIProcess/API/Cocoa/WKWebViewConfiguration.h: Added.
        * UIProcess/API/Cocoa/WKWebViewConfiguration.mm: Added.
        (-[WKWebViewConfiguration copyWithZone:]):
        * WebKit2.xcodeproj/project.pbxproj:

38 39 40 41 42 43 44 45 46 47 48 49 50 51
2014-01-22  Alice Barraclough  <alice.liu@apple.com>

        [WK2] add cocoa API for private browsing setting
        https://bugs.webkit.org/show_bug.cgi?id=127391

        Reviewed by Sam Weinig.

        * UIProcess/API/Cocoa/WKBrowsingContextGroup.h:
        * UIProcess/API/Cocoa/WKBrowsingContextGroup.mm:
        (-[WKBrowsingContextGroup privateBrowsingEnabled]):
        (-[WKBrowsingContextGroup setPrivateBrowsingEnabled:]):
        Adding some API for the private Browsing setting. Reaches through
        to the WKPageGroup's preferences.

andersca@apple.com's avatar
andersca@apple.com committed
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
2014-01-22  Anders Carlsson  <andersca@apple.com>

        Add WKProcessClass class
        https://bugs.webkit.org/show_bug.cgi?id=127433
        <rdar://problem/15882582>

        Reviewed by Dan Bernstein.

        Add a stubbed out WKProcessClass class.

        * Shared/API/Cocoa/WKFoundation.h:
        * UIProcess/API/Cocoa/WKProcessClass.h: Added.
        * UIProcess/API/Cocoa/WKProcessClass.mm: Added.
        (-[WKProcessClass initWithConfiguration:]):
        (-[WKProcessClass configuration]):
        * UIProcess/API/Cocoa/WKProcessClassConfiguration.mm:
        * WebKit2.xcodeproj/project.pbxproj:

70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
2014-01-22  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>

        [EFL][GTK] Get EFL and GTK compiling with ACCESSIBILITY disabled
        https://bugs.webkit.org/show_bug.cgi?id=127119

        Reviewed by Mario Sanchez Prada.

        Guarding ACCESSIBILITY code with HAVE(ACCESSIBILITY).

        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::WebPage):
        * WebProcess/WebPage/WebPage.h:
        * WebProcess/WebPage/gtk/WebPageGtk.cpp:
        (WebKit::WebPage::platformInitialize):

85 86 87 88 89 90 91 92 93 94 95
2014-01-22  Martin Robinson  <mrobinson@igalia.com>

        [GTK][CMake] Add support for building the NetworkProcess
        https://bugs.webkit.org/show_bug.cgi?id=127195

        Reviewed by Daniel Bates.

        * CMakeLists.txt: Add shared network process build instructions.
        * PlatformEfl.cmake: Move build instructions to the platform-independent file.
        * PlatformGTK.cmake: Add some files to the source lists.

96 97 98 99 100 101 102 103 104 105 106 107
2014-01-22  Carlos Garcia Campos  <cgarcia@igalia.com>

        REGRESSION(r162441): [GTK] ResourceLoader is broken when there aren't user extensions
        https://bugs.webkit.org/show_bug.cgi?id=127422

        Reviewed by Anders Carlsson.

        * WebProcess/gtk/WebGtkExtensionManager.cpp:
        (WebKit::WebGtkExtensionManager::initialize): Always create the
        WebKitWebExtension object since it's used internally to implement
        the ResourceLoader client.

108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
2014-01-22  Jer Noble  <jer.noble@apple.com>

        [Mac][WK2] Unable to play video protected by session cookies
        https://bugs.webkit.org/show_bug.cgi?id=127207

        Reviewed by Sam Weinig.

        Recent changes in our underlying media frameworks caused our shimmed methods
        in CookieStorageShim to stop being called. Insert an objective-c shim in addition
        to our original shim to intercept pulling cookies out of cookie storage.

        * Shared/mac/CookieStorageShim.mm: Renamed from Source/WebKit2/Shared/mac/CookieStorageShim.cpp.
        (WebKit::CookieStorageShim::initialize): Insert the shim.
        (-[WKNSURLSessionLocal _copyCookiesForRequestUsingAllAppropriateStorageSemantics:]):
            Pass through to webKitCookieStorageCopyRequestHeaderFieldsForURL().
        * WebKit2.xcodeproj/project.pbxproj: Rename CookieStorageShim.cpp -> .mm.

125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
2014-01-22  Yongjun Zhang  <yongjun_zhang@apple.com>

        https://bugs.webkit.org/show_bug.cgi?id=127380
        Add more methods to WKWebProcessPlugInNodeHandle.

        Reviewed by Sam Weinig.

        Add a static method that creates a WKWebProcessPlugInNodeHandle from a JSValue* and a JSContext*.  Also
        add a method to return the iframe's content frame from a WKWebProcessPlugInNodeHandle.
 
        * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.h:
        * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm:
        (+[WKWebProcessPlugInNodeHandle nodeHandleWithJSValue:inContext:]):
        (-[WKWebProcessPlugInNodeHandle htmlIFrameElementContentFrame]):

140 141 142 143 144 145 146
2014-01-22  Carlos Garcia Campos  <cgarcia@igalia.com>

        Unreviewed. Fix GTK+ build with CUSTOM_PROTOCOL enabled after r162449.

        * UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.h:
        Use override instead of OVERRIDE.

147 148 149 150 151 152 153 154 155 156
2014-01-22  Koop Mast <kwm@FreeBSD.org>

        Build fixes for FreeBSD.
        https://bugs.webkit.org/show_bug.cgi?id=126779

        Reviewed by Csaba Osztrogonác.

        * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
        (WebKit::PluginProcessProxy::scanPlugin):

157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
2014-01-22  Jinwoo Song  <jinwoo7.song@samsung.com>

        [EFL][WK2] Use std::function in the rest of EFL's WorkQueue implementation
        https://bugs.webkit.org/show_bug.cgi?id=127397

        Reviewed by Anders Carlsson.

        Move to using std::function and move semantics in WorkQueue::registerSocketEventHandler
        and DispatchQueue::setSocketEventHandler.

        * Platform/IPC/unix/ConnectionUnix.cpp:
        (IPC::Connection::open):
        * Platform/WorkQueue.h:
        * Platform/efl/DispatchQueueEfl.cpp:
        (DispatchQueue::setSocketEventHandler):
        * Platform/efl/DispatchQueueEfl.h:
        * Platform/efl/WorkQueueEfl.cpp:
        (WorkQueue::registerSocketEventHandler):

176 177 178 179 180 181 182 183 184 185 186 187
2014-01-21  Tim Horton  <timothy_horton@apple.com>

        [wk2] De-.get()ify receivers of Objective-C messages
        https://bugs.webkit.org/show_bug.cgi?id=127398

        Reviewed by Sam Weinig.

        RetainPtr does the right thing when you use it as the
        receiver of an Obj-C message, so we don't need .get().

        Long and useless file list elided.

188 189 190 191 192 193 194 195 196 197 198
2014-01-21  Brady Eidson  <beidson@apple.com>

        The IDB backing store put() method shouldn't call IDB callbacks directly
        https://bugs.webkit.org/show_bug.cgi?id=127399

        Reviewed by Beth Dakin.

        * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
        (WebKit::WebIDBServerConnection::put):
        * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:

andersca@apple.com's avatar
andersca@apple.com committed
199 200 201 202 203 204
2014-01-21  Anders Carlsson  <andersca@apple.com>

        Fix 32-bit build.

        * UIProcess/API/Cocoa/WKProcessClassConfiguration.mm:

205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
2014-01-21  Jinwoo Song  <jinwoo7.song@samsung.com>

        [EFL][WK2] Use nanoseconds in TimerWorkItem class consistently
        https://bugs.webkit.org/show_bug.cgi?id=127263

        Reviewed by Gyuyoung Kim.

        After r162276 and r162300, TimerWorkItem is getting nanoseconds as parameter.
        So it would be better to use nanoseconds in TimerWorkItem for consistency.

        * Platform/efl/DispatchQueueEfl.cpp:
        (DispatchQueue::performTimerWork):
        (DispatchQueue::insertTimerWorkItem):
        (DispatchQueue::getNextTimeOut):
        * Platform/efl/DispatchQueueWorkItemEfl.h:
        (TimerWorkItem::create):
        (TimerWorkItem::expirationTimeNanoSeconds):
        (TimerWorkItem::hasExpired):
        (TimerWorkItem::TimerWorkItem):

225 226 227 228 229 230 231 232
2014-01-21  Tim Horton  <timothy_horton@apple.com>

        Don't copy ViewGestureGeometryCollector.messages.in into the WebProcess bundle.

        Reviewed by Simon Fraser.

        * WebKit2.xcodeproj/project.pbxproj:

233 234 235 236 237 238 239 240 241 242 243 244 245 246
2014-01-21  Anders Carlsson  <andersca@apple.com>

        Add a WKProcessClassConfiguration class
        https://bugs.webkit.org/show_bug.cgi?id=127378
        <rdar://problem/15875413>

        Reviewed by Dan Bernstein.

        * UIProcess/API/Cocoa/WKProcessClassConfiguration.h: Added.
        * UIProcess/API/Cocoa/WKProcessClassConfiguration.mm: Added.
        (-[WKProcessClassConfiguration copyWithZone:]):
        * UIProcess/API/Cocoa/WKProcessClassConfigurationPrivate.h: Added.
        * WebKit2.xcodeproj/project.pbxproj:

247 248 249 250 251 252 253 254 255 256
2014-01-21  Tim Horton  <timothy_horton@apple.com>

        Make ViewGestureController Obj-C++
        https://bugs.webkit.org/show_bug.cgi?id=127385

        Reviewed by Dean Jackson.

        * UIProcess/mac/ViewGestureController.mm: Renamed from Source/WebKit2/UIProcess/mac/ViewGestureController.cpp.
        * WebKit2.xcodeproj/project.pbxproj:

257 258 259 260 261 262 263 264 265
2014-01-21  Anders Carlsson  <andersca@apple.com>

        Make all the WebKit2 headers private and move Cocoa UIProcess API headers to a Deprecated group
        https://bugs.webkit.org/show_bug.cgi?id=127374

        Reviewed by Dan Bernstein.

        * WebKit2.xcodeproj/project.pbxproj:

266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284
2014-01-21  Commit Queue  <commit-queue@webkit.org>

        Unreviewed, rolling out r162452.
        http://trac.webkit.org/changeset/162452
        https://bugs.webkit.org/show_bug.cgi?id=127366

        broke a few tests on all Mac WebKit1 bots (Requested by
        thorton on #webkit).

        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::WebPage):
        (WebKit::WebPage::setActive):
        (WebKit::WebPage::setViewIsVisible):
        (WebKit::WebPage::setFocused):
        (WebKit::WebPage::setIsInWindow):
        (WebKit::WebPage::setViewStateInternal):
        (WebKit::WebPage::setIsVisuallyIdle):
        * WebProcess/WebPage/WebPage.h:

285 286 287 288 289 290 291 292 293 294 295
2014-01-21  Martin Hock  <mhock@apple.com>

        Trivial Session API cleanup.
        https://bugs.webkit.org/show_bug.cgi?id=127356

        Reviewed by Alexey Proskuryakov.

        * UIProcess/API/C/WKSessionRef.cpp:
        (WKSessionIsEphemeral):
        * UIProcess/API/C/WKSessionRef.h:

296 297 298 299 300 301 302 303 304 305 306 307 308 309
2014-01-16  Simon Fraser  <simon.fraser@apple.com>

        Log an error for a common cause of WebProcess early launch crashing in misconfigured development builds
        https://bugs.webkit.org/show_bug.cgi?id=127121

        Reviewed by Anders Carlsson.
        
        A common cause of early WebProcess crashes during development is a null return
        from CFBundleGetValueForInfoDictionaryKey(), so log and return an error in
        this case rather than passing a null C string to dlsym().

        * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.mm:
        (WebKit::BootstrapMain):

310 311 312 313 314 315 316
2014-01-21  Tim Horton  <timothy_horton@apple.com>

        Sort headers after the rename that happened in r162454.

        * UIProcess/mac/RemoteLayerTreeHost.mm:
        * WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm:

317 318 319 320 321 322 323 324 325 326
2014-01-21  Tim Horton  <timothy_horton@apple.com>

        Address late review naming comments after r162453.

        * UIProcess/API/mac/WKView.mm:
        And, fix the build by adding an include I accidentally missed.

        * UIProcess/mac/RemoteLayerTreeHost.mm:
        * WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm:

327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355
2014-01-21  Tim Horton  <timothy_horton@apple.com>

        Keep CALayer implicit animation disabling code in a single place
        https://bugs.webkit.org/show_bug.cgi?id=127355

        Reviewed by Simon Fraser.

        * Shared/mac/RemoteLayerTreePropertyApplier.h:
        * Shared/mac/RemoteLayerTreePropertyApplier.mm:
        Remove disableActionsForLayer.

        * UIProcess/API/mac/WKView.mm:
        (-[WKView _rootLayer]):
        Disable actions on the root layer. It doesn't need them, and currently
        isn't affected by implicit animations, but future patches which animate
        the root layer will benefit from this.

        * UIProcess/mac/RemoteLayerTreeHost.mm:
        (WebKit::RemoteLayerTreeHost::createLayer):
        Use web_disableAllActions instead of disableActionsForLayer.

        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm: Renamed from Source/WebKit2/WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.cpp.
        (PlatformCALayerRemoteCustom::PlatformCALayerRemoteCustom):
        (PlatformCALayerRemoteCustom::~PlatformCALayerRemoteCustom):
        (PlatformCALayerRemoteCustom::hostingContextID):
        Use web_disableAllActions instead of disableActionsForLayer.
        This requires making this file Obj-C++ but that's OK since it's Mac/iOS only.

356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378
2014-01-21  Gavin Barraclough  <barraclough@apple.com>

        Change Page, FocusController to use ViewState
        https://bugs.webkit.org/show_bug.cgi?id=126533

        Reviewed by Tim Horton.

        These classes currently maintain a set of separate fields to represent the view state;
        combine these into a single field, and allow WebPage to send the combined update rather
        than individual changes.

        Maintain existing interface for WebKit1 clients.

        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::WebPage):
            - Combined separate calls to Page::setViewState.
        (WebKit::WebPage::updateIsInWindow):
            - Simplied from setIsInWindow.
        (WebKit::WebPage::setViewState):
            - Combined separate calls to Page::setViewState.
        * WebProcess/WebPage/WebPage.h:
            - Declare updateIsInWindow.

379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484
2014-01-21  Carlos Garcia Campos  <cgarcia@igalia.com>

        [SOUP] Implement CUSTOM PROTOCOLS
        https://bugs.webkit.org/show_bug.cgi?id=125583

        Reviewed by Anders Carlsson.

        Add new classes to implement CustomProtocols for soup. The
        implementation is the same, but using the CustomProtocol API and
        messages. The current implementation can be removed once all ports
        using soup switch to using CustomProtocols.

        * GNUmakefile.am: Add new include paths.
        * GNUmakefile.list.am: Add new files to compilation.
        * PlatformGTK.cmake: Add new files to compilation.
        * Shared/API/c/soup/WKBaseSoup.h:
        * Shared/APIObject.h:
        * Shared/Network/CustomProtocols/CustomProtocolManager.h:
        * Shared/Network/CustomProtocols/soup/CustomProtocolManagerImpl.cpp: Added.
        (WebKit::generateCustomProtocolID):
        (WebKit::WebSoupRequestAsyncData::WebSoupRequestAsyncData):
        (WebKit::WebSoupRequestAsyncData::~WebSoupRequestAsyncData):
        (WebKit::WebSoupRequestAsyncData::requestFailed):
        (WebKit::WebSoupRequestAsyncData::releaseTask):
        (WebKit::CustomProtocolManagerImpl::CustomProtocolManagerImpl):
        (WebKit::CustomProtocolManagerImpl::~CustomProtocolManagerImpl):
        (WebKit::CustomProtocolManagerImpl::registerScheme):
        (WebKit::CustomProtocolManagerImpl::supportsScheme):
        (WebKit::CustomProtocolManagerImpl::didFailWithError):
        (WebKit::CustomProtocolManagerImpl::didLoadData):
        (WebKit::CustomProtocolManagerImpl::didReceiveResponse):
        (WebKit::CustomProtocolManagerImpl::didFinishLoading):
        (WebKit::CustomProtocolManagerImpl::send):
        (WebKit::CustomProtocolManagerImpl::finish):
        * Shared/Network/CustomProtocols/soup/CustomProtocolManagerImpl.h: Added.
        * Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp:
        (WebKit::CustomProtocolManager::CustomProtocolManager):
        (WebKit::CustomProtocolManager::initialize):
        (WebKit::CustomProtocolManager::registerScheme):
        (WebKit::CustomProtocolManager::supportsScheme):
        (WebKit::CustomProtocolManager::didFailWithError):
        (WebKit::CustomProtocolManager::didLoadData):
        (WebKit::CustomProtocolManager::didReceiveResponse):
        (WebKit::CustomProtocolManager::didFinishLoading):
        * Shared/WebProcessCreationParameters.cpp:
        (WebKit::WebProcessCreationParameters::encode):
        (WebKit::WebProcessCreationParameters::decode):
        * Shared/WebProcessCreationParameters.h:
        * UIProcess/API/C/soup/WKAPICastSoup.h:
        * UIProcess/API/C/soup/WKSoupCustomProtocolRequestManager.cpp: Copied from Source/WebKit2/UIProcess/soup/WebContextSoup.cpp.
        (WKSoupCustomProtocolRequestManagerGetTypeID):
        (WKSoupCustomProtocolRequestManagerSetClient):
        * UIProcess/API/C/soup/WKSoupCustomProtocolRequestManager.h: Added.
        * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
        * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
        (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
        * UIProcess/Network/CustomProtocols/soup/CustomProtocolManagerProxySoup.cpp:
        (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
        (WebKit::CustomProtocolManagerProxy::startLoading):
        (WebKit::CustomProtocolManagerProxy::stopLoading):
        * UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.cpp: Added.
        (WebKit::WebSoupCustomProtocolRequestManager::supplementName):
        (WebKit::WebSoupCustomProtocolRequestManager::create):
        (WebKit::WebSoupCustomProtocolRequestManager::WebSoupCustomProtocolRequestManager):
        (WebKit::WebSoupCustomProtocolRequestManager::~WebSoupCustomProtocolRequestManager):
        (WebKit::WebSoupCustomProtocolRequestManager::initializeClient):
        (WebKit::WebSoupCustomProtocolRequestManager::contextDestroyed):
        (WebKit::WebSoupCustomProtocolRequestManager::processDidClose):
        (WebKit::WebSoupCustomProtocolRequestManager::refWebContextSupplement):
        (WebKit::WebSoupCustomProtocolRequestManager::derefWebContextSupplement):
        (WebKit::WebSoupCustomProtocolRequestManager::registerSchemeForCustomProtocol):
        (WebKit::WebSoupCustomProtocolRequestManager::unregisterSchemeForCustomProtocol):
        (WebKit::WebSoupCustomProtocolRequestManager::startLoading):
        (WebKit::WebSoupCustomProtocolRequestManager::stopLoading):
        (WebKit::WebSoupCustomProtocolRequestManager::didReceiveResponse):
        (WebKit::WebSoupCustomProtocolRequestManager::didLoadData):
        (WebKit::WebSoupCustomProtocolRequestManager::didFailWithError):
        (WebKit::WebSoupCustomProtocolRequestManager::didFinishLoading):
        * UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.h: Added.
        (WebKit::WebSoupCustomProtocolRequestManager::registeredSchemesForCustomProtocols):
        * UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManagerClient.cpp: Added.
        (WebKit::WebSoupCustomProtocolRequestManagerClient::startLoading):
        (WebKit::WebSoupCustomProtocolRequestManagerClient::stopLoading):
        * UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManagerClient.h: Added.
        * UIProcess/Network/NetworkProcessProxy.cpp:
        (WebKit::NetworkProcessProxy::NetworkProcessProxy):
        * UIProcess/WebContext.cpp:
        (WebKit::WebContext::WebContext):
        * UIProcess/WebPageProxy.cpp:
        * UIProcess/WebPageProxy.h:
        * UIProcess/WebPageProxy.messages.in:
        * UIProcess/WebProcessProxy.cpp:
        (WebKit::WebProcessProxy::WebProcessProxy):
        * UIProcess/gtk/WebContextGtk.cpp:
        (WebKit::WebContext::platformInitializeWebProcess):
        * UIProcess/soup/WebContextSoup.cpp:
        (WebKit::WebContext::platformInitializeNetworkProcess):
        * WebProcess/WebProcess.cpp:
        (WebKit::WebProcess::WebProcess):
        * WebProcess/soup/WebKitSoupRequestGeneric.cpp:
        (webkitSoupRequestGenericSendAsync):
        (webkitSoupRequestGenericSendFinish):
        * WebProcess/soup/WebKitSoupRequestGeneric.h:
        * WebProcess/soup/WebProcessSoup.cpp:
        (WebKit::WebProcess::platformInitializeWebProcess):

485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534
2014-01-21  Adrian Perez de Castro  <aperez@igalia.com>

        [GTK] Allow passing extra data to web extensions
        https://bugs.webkit.org/show_bug.cgi?id=125990

        Reviewed by Carlos Garcia Campos.

        Allow passing additional information to the injected bundle. On top
        of the string containing the path to the web extensions directory,
        a GVariant can be set with additional data using
        webkit_web_context_set_web_extensions_initialization_user_data().
        Also, a new initialize-web-extensions signal is emitted before
        launching a new WebProcess to allow setting different user data
        for each process. The GVariant is serialized as a string, passed
        to the injected bundle, and the injected bundle deserializes back
        the data, which is passed to web extensions which define the
        webkit_web_extension_initialize_with_user_data() function (for
        backwards compatibility, webkit_web_extension_initialize() is
        used as a fallback.)

        * UIProcess/API/gtk/WebKitInjectedBundleClient.cpp:
        (getInjectedBundleInitializationUserData): Define new callback
        function which causes emission of the initialize-web-extensions
        signal, and serializes the data to be passed to the web process.
        (attachInjectedBundleClientToContext): Set the
        getInjectedBundleInitializationUserData() callback.
        * UIProcess/API/gtk/WebKitWebContext.cpp:
        (webkit_web_context_class_init): Define the
        initialize-web-extensions signal.
        (webkit_web_context_set_web_extensions_directory):
        Web extensions directory as now member of WebKitWebContextPrivate,
        to be able to retrieve it later.
        (webkit_web_context_set_web_extensions_initialization_user_data):
        New API method to set the user data passed to the web extensions
        when initialized.
        (webkitWebContextInitializeWebExtensions): Private function used
        to trigger emission of the initialize-web-extensions signal.
        * UIProcess/API/gtk/WebKitWebContext.h:
        Added prototype for new API method
        webkit_web_context_set_web_extensions_initialization_user_data().
        * UIProcess/API/gtk/WebKitWebContextPrivate.h:
        Prototype of the new private function.
        * UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
        Add new public API bits to the documentation.
        * WebProcess/gtk/WebGtkExtensionManager.cpp:
        (WebKit::WebGtkExtensionManager::initialize):
        Deserialize the data received from the UI process and pass it to
        webkit_web_extension_initialize_with_user_data() if available,
        keeping webkit_web_extension_initialize() as fallback.

535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556
2014-01-20  Ryuan Choi  <ryuan.choi@samsung.com>

        [EFL][WK2] Move isEwkViewEvasObject back to ewk_view.cpp
        https://bugs.webkit.org/show_bug.cgi?id=127261

        Reviewed by Gyuyoung Kim.

        isEwkViewEvasObject is general check routine of EFL and mainly used in
        ewk_view.cpp but it was in EwkView.cpp since separated EwkView.cpp from ewk_view.cpp

        This patch moves it to EwkView.h as inline function with small refactoring.
        In addition, this patch added EINA_UNLIKELY keyword in cold paths.

        * UIProcess/API/efl/EwkView.cpp:
        (defaultSmartClassInstance):
        (toSmartData):
        (toEwkView): Moved it from bottom not to expose it to header file.
        * UIProcess/API/efl/EwkView.h:
        * UIProcess/API/efl/ewk_view.cpp:
        (isEwkViewEvasObject):
        (toEwkViewChecked):

557 558 559 560 561 562 563 564 565 566 567 568 569 570
2014-01-20  Eunmi Lee  <eunmi15.lee@samsung.com>

        [EFL][WK2] Amount of scrolling is different from movement of touch when device pixel ratio is not 1.
        https://bugs.webkit.org/show_bug.cgi?id=127268

        Reviewed by Gyuyoung Kim.

        Amount of scrolling should be same with movement of touch even though
        device pixel ratio is not 1, so apply device pixel ratio to the new
        position of scrollBy().

        * UIProcess/API/efl/EwkView.cpp:
        (EwkView::scrollBy):

571 572 573 574 575 576 577 578 579 580 581 582 583 584 585
2014-01-20  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>

        [WK2] Setting m_pageScaleFactor directly in WebPageProxy::scalePage
        https://bugs.webkit.org/show_bug.cgi?id=127090

        Reviewed by Simon Fraser.

        When the client side sets the scale factor, the UIProcess will send the message to WebProcess and only after
        WebPageProxy::pageScaleFactorDidChange is called the desired scale factor is returned correctly by
        WebPageProxy::pageScaleFactor.
        This will avoid the client side retrieve a wrong scale factor while UIProcess and WebProcess gets synchronized.

        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::scalePage):

586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605
2014-01-20  Zan Dobersek  <zdobersek@igalia.com>

        [GTK][WK2] Move the rest of GTK's WorkQueue implementation to std::function
        https://bugs.webkit.org/show_bug.cgi?id=127273

        Reviewed by Anders Carlsson.

        Move to using std::function and move semantics in WorkQueue::registerSocketEventHandler
        and WorkQueue::SocketEventSource.

        * Platform/IPC/unix/ConnectionUnix.cpp:
        (IPC::Connection::open):
        * Platform/WorkQueue.h:
        * Platform/gtk/WorkQueueGtk.cpp:
        (WorkQueue::SocketEventSource::SocketEventSource):
        (WorkQueue::registerSocketEventHandler):
        (WorkQueue::dispatchOnSource): Use std::move instead of std::forward<T>.
        (WorkQueue::dispatch): Ditto.
        (WorkQueue::dispatchAfter): Ditto.

606 607 608 609 610 611 612 613 614 615 616
2014-01-20  Zan Dobersek  <zdobersek@igalia.com>

        Unreviewed. Additional build fixes after r162276 and r163304.

        * Platform/WorkQueue.h:
        * Platform/gtk/WorkQueueGtk.cpp:
        (WorkQueue::EventSource::EventSource):
        (WorkQueue::dispatchOnSource):
        (WorkQueue::dispatch):
        (WorkQueue::dispatchAfter):

617 618 619 620 621 622 623 624 625 626 627 628
2014-01-19  Zan Dobersek  <zdobersek@igalia.com>

        Unreviewed GTK build fix after r162276.

        Updating the WorkQueue implementation to use std::function and std::chrono.

        * Platform/WorkQueue.h:
        * Platform/gtk/WorkQueueGtk.cpp:
        (WorkQueue::dispatchOnSource):
        (WorkQueue::dispatch):
        (WorkQueue::dispatchAfter):

629 630 631 632 633 634 635
2014-01-19  Jinwoo Song  <jinwoo7.song@samsung.com>

        Unreviewed debug build fix on EFL port after r162300.

        * Platform/efl/DispatchQueueWorkItemEfl.h:
        (TimerWorkItem::create):

636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654
2014-01-19  Jinwoo Song  <jinwoo7.song@samsung.com>

        [EFL][WK2] build fix after r162276
        https://bugs.webkit.org/show_bug.cgi?id=127259

        Reviewed by Anders Carlsson.

        * Platform/efl/DispatchQueueEfl.cpp:
        (DispatchQueue::performTimerWork):
        (DispatchQueue::getNextTimeOut):
        * Platform/efl/DispatchQueueWorkItemEfl.h:
        (WorkItem::create):
        (WorkItem::WorkItem):
        (TimerWorkItem::create):
        (TimerWorkItem::TimerWorkItem):
        * Platform/efl/WorkQueueEfl.cpp:
        (WorkQueue::dispatch):
        (WorkQueue::dispatchAfter):

655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678
2014-01-18  Anders Carlsson  <andersca@apple.com>

        Replace a couple of uses of WTF::Function with std::function
        https://bugs.webkit.org/show_bug.cgi?id=127218

        Reviewed by Andreas Kling.

        * Platform/IPC/mac/ConnectionMac.cpp:
        (IPC::createDataAvailableSource):
        * Platform/WorkQueue.h:
        * Platform/mac/WorkQueueMac.cpp:
        (WorkQueue::dispatch):
        (WorkQueue::dispatchAfter):
        * Shared/ChildProcess.cpp:
        (WebKit::didCloseOnConnectionWorkQueue):
        * UIProcess/Storage/LocalStorageDatabase.cpp:
        (WebKit::LocalStorageDatabase::scheduleDatabaseUpdate):
        * WebProcess/WebPage/DrawingArea.cpp:
        (WebKit::DrawingArea::dispatchAfterEnsuringUpdatedScrollPosition):
        * WebProcess/WebPage/DrawingArea.h:
        * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
        * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
        (WebKit::TiledCoreAnimationDrawingArea::dispatchAfterEnsuringUpdatedScrollPosition):

679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771
2014-01-18  Martin Hock  <mhock@apple.com>

        Flesh out session APIs (still not enabled at API level).
        https://bugs.webkit.org/show_bug.cgi?id=126918

        Reviewed by Alexey Proskuryakov.

        * CMakeLists.txt:
        * GNUmakefile.list.am:
        * NetworkProcess/NetworkConnectionToWebProcess.cpp:
        (WebKit::storageSession):
        (WebKit::NetworkConnectionToWebProcess::startDownload):
        (WebKit::NetworkConnectionToWebProcess::cookiesForDOM):
        (WebKit::NetworkConnectionToWebProcess::setCookiesFromDOM):
        (WebKit::NetworkConnectionToWebProcess::cookiesEnabled):
        (WebKit::NetworkConnectionToWebProcess::cookieRequestHeaderFieldValue):
        (WebKit::NetworkConnectionToWebProcess::getRawCookies):
        (WebKit::NetworkConnectionToWebProcess::deleteCookie):
        * NetworkProcess/NetworkConnectionToWebProcess.h:
        * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
        * NetworkProcess/NetworkProcess.cpp:
        (WebKit::NetworkProcess::initializeNetworkProcess):
        (WebKit::NetworkProcess::ensurePrivateBrowsingSession):
        (WebKit::NetworkProcess::destroyPrivateBrowsingSession):
        * NetworkProcess/NetworkProcess.h:
        * NetworkProcess/NetworkProcess.messages.in:
        * NetworkProcess/RemoteNetworkingContext.h:
        * NetworkProcess/mac/RemoteNetworkingContext.mm:
        (WebKit::RemoteNetworkingContext::storageSession):
        (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
        * NetworkProcess/soup/RemoteNetworkingContextSoup.cpp:
        (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
        * Shared/SessionTracker.cpp: Copied from Source/WebKit2/UIProcess/APISession.cpp.
        (WebKit::sessionMap):
        (WebKit::identifierBase):
        (WebKit::SessionTracker::getSessionMap):
        (WebKit::SessionTracker::getIdentifierBase):
        (WebKit::SessionTracker::session):
        (WebKit::SessionTracker::destroySession):
        (WebKit::SessionTracker::setIdentifierBase):
        * Shared/SessionTracker.h: Copied from Source/WebKit2/UIProcess/APISession.h.
        (WebKit::SessionTracker::isEphemeralID):
        * Shared/mac/CookieStorageShim.cpp:
        (WebKit::webKitCookieStorageCopyRequestHeaderFieldsForURL):
        * UIProcess/APISession.cpp:
        (API::generateID):
        (API::Session::defaultSession):
        (API::Session::legacyPrivateSession):
        (API::Session::Session):
        (API::Session::create):
        (API::Session::isEphemeral):
        (API::Session::getID):
        * UIProcess/APISession.h:
        * UIProcess/WebContext.cpp:
        (WebKit::WebContext::setAnyPageGroupMightHavePrivateBrowsingEnabled):
        (WebKit::WebContext::createNewWebProcess):
        (WebKit::WebContext::createWebPage):
        * UIProcess/WebContext.h:
        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::create):
        (WebKit::WebPageProxy::WebPageProxy):
        * UIProcess/WebPageProxy.h:
        (WebKit::WebPageProxy::sessionID):
        * UIProcess/WebProcessProxy.cpp:
        (WebKit::WebProcessProxy::createWebPage):
        * UIProcess/WebProcessProxy.h:
        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/InjectedBundle/InjectedBundle.cpp:
        (WebKit::InjectedBundle::setPrivateBrowsingEnabled):
        * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
        (WebKit::legacySessionID):
        (WebKit::WebPlatformStrategies::cookiesForDOM):
        (WebKit::WebPlatformStrategies::setCookiesFromDOM):
        (WebKit::WebPlatformStrategies::cookiesEnabled):
        (WebKit::WebPlatformStrategies::cookieRequestHeaderFieldValue):
        (WebKit::WebPlatformStrategies::getRawCookies):
        (WebKit::WebPlatformStrategies::deleteCookie):
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
        (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
        (WebKit::WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
        (WebKit::WebFrameNetworkingContext::storageSession):
        * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
        (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
        (WebKit::WebFrameNetworkingContext::storageSession):
        * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
        * WebProcess/WebProcess.cpp:
        (WebKit::WebProcess::initializeWebProcess):
        (WebKit::WebProcess::ensurePrivateBrowsingSession):
        (WebKit::WebProcess::destroyPrivateBrowsingSession):
        * WebProcess/WebProcess.h:
        * WebProcess/WebProcess.messages.in:

772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804
2014-01-18  Brian Burg  <bburg@apple.com>

        Web Inspector: Page should use std::unique_ptr for InspectorController
        https://bugs.webkit.org/show_bug.cgi?id=127068

        Reviewed by Joseph Pecoraro.

        Convert call sites to use a InspectorController reference.

        * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
        (WebKit::WebInspectorClient::drawRect):
        * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
        (WebKit::WebInspectorFrontendClient::WebInspectorFrontendClient):
        (WebKit::WebInspectorFrontendClient::closeWindow):
        * WebProcess/WebPage/WebInspector.cpp:
        (WebKit::WebInspector::createInspectorPage):
        (WebKit::WebInspector::show):
        (WebKit::WebInspector::close):
        (WebKit::WebInspector::evaluateScriptForTest):
        (WebKit::WebInspector::showConsole):
        (WebKit::WebInspector::showResources):
        (WebKit::WebInspector::showMainResourceForFrame):
        (WebKit::WebInspector::startJavaScriptDebugging):
        (WebKit::WebInspector::stopJavaScriptDebugging):
        (WebKit::WebInspector::setJavaScriptProfilingEnabled):
        (WebKit::WebInspector::startJavaScriptProfiling):
        (WebKit::WebInspector::stopJavaScriptProfiling):
        (WebKit::WebInspector::startPageProfiling):
        (WebKit::WebInspector::stopPageProfiling):
        (WebKit::WebInspector::dispatchMessageFromRemoteFrontend):
        (WebKit::WebInspector::remoteFrontendConnected):
        (WebKit::WebInspector::remoteFrontendDisconnected):

805 806 807 808 809 810 811 812 813 814 815
2014-01-18  Anders Carlsson  <andersca@apple.com>

        Remove ENABLE_THREADED_HTML_PARSER defines everywhere
        https://bugs.webkit.org/show_bug.cgi?id=127225

        Reviewed by Andreas Kling.

        This concludes the removal of over 8.8 million lines of threaded parser code.

        * Configurations/FeatureDefines.xcconfig:

816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838
2014-01-18  Yongjun Zhang  <yongjun_zhang@apple.com>

        Make WKRenderingProgressEvents a shareable API.
        https://bugs.webkit.org/show_bug.cgi?id=127213

        Reviewed by Dan Bernstein.

        Move WKRenderingProgressEvents from UIProcess to Shared, so that an inject bundle
        could also use this enum when listening to layout milestones.

        * Shared/API/Cocoa/WKRenderingProgressEvents.h: Added.
        (NS_OPTIONS):
        * Shared/API/Cocoa/WKRenderingProgressEventsInternal.h: Added.
        (renderingProgressEvents):
        * UIProcess/API/Cocoa/WKBrowsingContextController.h: Move WKRenderingProgressEvents to Shared/API/Cocoa/WKRenderingProgressEvents.h.
        * UIProcess/API/Cocoa/WKBrowsingContextController.mm: Move renderingProgressEvents() to WKRenderingProgressEventsInternal.h.
        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInLoadDelegate.h: Add
            webProcessPlugInBrowserContextController:renderingProgressDidChange: to load delegate.
        * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
        (didLayout):
        (setUpPageLoaderClient): Also listen to didLayout callback for layout milestones.

839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931
2014-01-17  Commit Queue  <commit-queue@webkit.org>

        Unreviewed, rolling out r162237 and r162241.
        http://trac.webkit.org/changeset/162237
        http://trac.webkit.org/changeset/162241
        https://bugs.webkit.org/show_bug.cgi?id=127216

        Broke lots of API tests (Requested by ap on #webkit).

        * CMakeLists.txt:
        * GNUmakefile.list.am:
        * NetworkProcess/NetworkConnectionToWebProcess.cpp:
        (WebKit::storageSession):
        (WebKit::NetworkConnectionToWebProcess::startDownload):
        (WebKit::NetworkConnectionToWebProcess::cookiesForDOM):
        (WebKit::NetworkConnectionToWebProcess::setCookiesFromDOM):
        (WebKit::NetworkConnectionToWebProcess::cookiesEnabled):
        (WebKit::NetworkConnectionToWebProcess::cookieRequestHeaderFieldValue):
        (WebKit::NetworkConnectionToWebProcess::getRawCookies):
        (WebKit::NetworkConnectionToWebProcess::deleteCookie):
        * NetworkProcess/NetworkConnectionToWebProcess.h:
        * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
        * NetworkProcess/NetworkProcess.cpp:
        (WebKit::NetworkProcess::initializeNetworkProcess):
        (WebKit::NetworkProcess::ensurePrivateBrowsingSession):
        (WebKit::NetworkProcess::destroyPrivateBrowsingSession):
        * NetworkProcess/NetworkProcess.h:
        * NetworkProcess/NetworkProcess.messages.in:
        * NetworkProcess/RemoteNetworkingContext.h:
        * NetworkProcess/mac/RemoteNetworkingContext.mm:
        (WebKit::privateBrowsingStorageSession):
        (WebKit::RemoteNetworkingContext::storageSession):
        (WebKit::RemoteNetworkingContext::privateBrowsingSession):
        (WebKit::privateBrowsingStorageSessionIdentifierBase):
        (WebKit::RemoteNetworkingContext::setPrivateBrowsingStorageSessionIdentifierBase):
        (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
        (WebKit::RemoteNetworkingContext::destroyPrivateBrowsingSession):
        * NetworkProcess/soup/RemoteNetworkingContextSoup.cpp:
        (WebKit::RemoteNetworkingContext::setPrivateBrowsingStorageSessionIdentifierBase):
        (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
        (WebKit::RemoteNetworkingContext::destroyPrivateBrowsingSession):
        (WebKit::RemoteNetworkingContext::privateBrowsingSession):
        * Shared/SessionTracker.cpp: Removed.
        * Shared/SessionTracker.h: Removed.
        * UIProcess/APISession.cpp:
        (API::Session::Session):
        (API::Session::create):
        (API::Session::isEphemeral):
        * UIProcess/APISession.h:
        * UIProcess/WebContext.cpp:
        (WebKit::WebContext::setAnyPageGroupMightHavePrivateBrowsingEnabled):
        (WebKit::WebContext::createNewWebProcess):
        (WebKit::WebContext::createWebPage):
        * UIProcess/WebContext.h:
        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::create):
        (WebKit::WebPageProxy::WebPageProxy):
        * UIProcess/WebPageProxy.h:
        * UIProcess/WebProcessProxy.cpp:
        (WebKit::WebProcessProxy::createWebPage):
        * UIProcess/WebProcessProxy.h:
        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/InjectedBundle/InjectedBundle.cpp:
        (WebKit::InjectedBundle::setPrivateBrowsingEnabled):
        * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
        (WebKit::WebPlatformStrategies::cookiesForDOM):
        (WebKit::WebPlatformStrategies::setCookiesFromDOM):
        (WebKit::WebPlatformStrategies::cookiesEnabled):
        (WebKit::WebPlatformStrategies::cookieRequestHeaderFieldValue):
        (WebKit::WebPlatformStrategies::getRawCookies):
        (WebKit::WebPlatformStrategies::deleteCookie):
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
        (WebKit::privateSession):
        (WebKit::identifierBase):
        (WebKit::WebFrameNetworkingContext::setPrivateBrowsingStorageSessionIdentifierBase):
        (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
        (WebKit::WebFrameNetworkingContext::destroyPrivateBrowsingSession):
        (WebKit::WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
        (WebKit::WebFrameNetworkingContext::storageSession):
        * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
        (WebKit::privateSession):
        (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
        (WebKit::WebFrameNetworkingContext::destroyPrivateBrowsingSession):
        (WebKit::WebFrameNetworkingContext::storageSession):
        * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
        * WebProcess/WebProcess.cpp:
        (WebKit::WebProcess::initializeWebProcess):
        (WebKit::WebProcess::ensurePrivateBrowsingSession):
        (WebKit::WebProcess::destroyPrivateBrowsingSession):
        * WebProcess/WebProcess.h:
        * WebProcess/WebProcess.messages.in:

932 933 934 935 936 937 938 939 940
2014-01-17  Ryuan Choi  <ryuan.choi@samsung.com>

        Unreviewed build fix on EFL port after r162237

        The EFL port disabled NETWORK_PROCESS yet and use -Werror=unused-function.

        * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
        Guarded legacySessionID with ENABLE(NETWORK_PROCESS)

941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031
2014-01-17  Martin Hock  <mhock@apple.com>

        Flesh out session APIs (still not enabled at API level).
        https://bugs.webkit.org/show_bug.cgi?id=126918

        Reviewed by Alexey Proskuryakov.

        * CMakeLists.txt:
        * GNUmakefile.list.am:
        * NetworkProcess/NetworkConnectionToWebProcess.cpp:
        (WebKit::storageSession):
        (WebKit::NetworkConnectionToWebProcess::startDownload):
        (WebKit::NetworkConnectionToWebProcess::cookiesForDOM):
        (WebKit::NetworkConnectionToWebProcess::setCookiesFromDOM):
        (WebKit::NetworkConnectionToWebProcess::cookiesEnabled):
        (WebKit::NetworkConnectionToWebProcess::cookieRequestHeaderFieldValue):
        (WebKit::NetworkConnectionToWebProcess::getRawCookies):
        (WebKit::NetworkConnectionToWebProcess::deleteCookie):
        * NetworkProcess/NetworkConnectionToWebProcess.h:
        * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
        * NetworkProcess/NetworkProcess.cpp:
        (WebKit::NetworkProcess::initializeNetworkProcess):
        (WebKit::NetworkProcess::ensurePrivateBrowsingSession):
        (WebKit::NetworkProcess::destroyPrivateBrowsingSession):
        * NetworkProcess/NetworkProcess.h:
        * NetworkProcess/NetworkProcess.messages.in:
        * NetworkProcess/RemoteNetworkingContext.h:
        * NetworkProcess/mac/RemoteNetworkingContext.mm:
        (WebKit::RemoteNetworkingContext::storageSession):
        (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
        * NetworkProcess/soup/RemoteNetworkingContextSoup.cpp:
        (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
        * Shared/SessionTracker.cpp: Copied from Source/WebKit2/UIProcess/APISession.cpp.
        (WebKit::sessionMap):
        (WebKit::identifierBase):
        (WebKit::SessionTracker::getSessionMap):
        (WebKit::SessionTracker::getIdentifierBase):
        (WebKit::SessionTracker::session):
        (WebKit::SessionTracker::destroySession):
        (WebKit::SessionTracker::setIdentifierBase):
        * Shared/SessionTracker.h: Copied from Source/WebKit2/UIProcess/APISession.h.
        (WebKit::SessionTracker::isEphemeralID):
        * UIProcess/APISession.cpp:
        (API::generateID):
        (API::Session::defaultSession):
        (API::Session::legacyPrivateSession):
        (API::Session::Session):
        (API::Session::create):
        (API::Session::isEphemeral):
        (API::Session::getID):
        * UIProcess/APISession.h:
        * UIProcess/WebContext.cpp:
        (WebKit::WebContext::setAnyPageGroupMightHavePrivateBrowsingEnabled):
        (WebKit::WebContext::createNewWebProcess):
        (WebKit::WebContext::createWebPage):
        * UIProcess/WebContext.h:
        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::create):
        (WebKit::WebPageProxy::WebPageProxy):
        * UIProcess/WebPageProxy.h:
        (WebKit::WebPageProxy::sessionID):
        * UIProcess/WebProcessProxy.cpp:
        (WebKit::WebProcessProxy::createWebPage):
        * UIProcess/WebProcessProxy.h:
        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/InjectedBundle/InjectedBundle.cpp:
        (WebKit::InjectedBundle::setPrivateBrowsingEnabled):
        * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
        (WebKit::legacySessionID):
        (WebKit::WebPlatformStrategies::cookiesForDOM):
        (WebKit::WebPlatformStrategies::setCookiesFromDOM):
        (WebKit::WebPlatformStrategies::cookiesEnabled):
        (WebKit::WebPlatformStrategies::cookieRequestHeaderFieldValue):
        (WebKit::WebPlatformStrategies::getRawCookies):
        (WebKit::WebPlatformStrategies::deleteCookie):
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
        (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
        (WebKit::WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
        (WebKit::WebFrameNetworkingContext::storageSession):
        * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
        (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
        (WebKit::WebFrameNetworkingContext::storageSession):
        * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
        * WebProcess/WebProcess.cpp:
        (WebKit::WebProcess::initializeWebProcess):
        (WebKit::WebProcess::ensurePrivateBrowsingSession):
        (WebKit::WebProcess::destroyPrivateBrowsingSession):
        * WebProcess/WebProcess.h:
        * WebProcess/WebProcess.messages.in:

1032 1033 1034 1035 1036 1037 1038 1039 1040 1041
2014-01-17  Andreas Kling  <akling@apple.com>

        Remove unused TOUCH_ADJUSTMENT code.
        <https://webkit.org/b/127181>

        Reviewed by Anders Carlsson.

        * WebProcess/WebPage/CoordinatedGraphics/WebPageCoordinatedGraphics.cpp:
        (WebKit::WebPage::findZoomableAreaForPoint):

andersca@apple.com's avatar
andersca@apple.com committed
1042 1043 1044 1045 1046 1047 1048
2014-01-17  Anders Carlsson  <andersca@apple.com>

        Fix build.

        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:

1049 1050 1051 1052 1053 1054 1055 1056 1057 1058
2014-01-17  Anders Carlsson  <andersca@apple.com>

        Remove FrameLoaderClient::didPerformFirstNavigation()
        https://bugs.webkit.org/show_bug.cgi?id=127191

        Reviewed by Dan Bernstein.

        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:

1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074
2014-01-17  Manuel Rego Casasnovas  <rego@igalia.com>

        [GTK] Add CSS Grid Layout as experimental feature
        https://bugs.webkit.org/show_bug.cgi?id=127089

        Reviewed by Martin Robinson.

        Allow CSS Grid Layout to be enabled through the environment variable WEBKITGTK_EXPERIMENTAL_FEATURES.

        Example: WEBKITGTK_EXPERIMENTAL_FEATURES="CSS_GRID_LAYOUT=1"

        * UIProcess/API/gtk/WebKitSettings.cpp:
        (webKitSettingsConstructed): Use new experimental feature to enable or disable CSS Grid Layout.
        * UIProcess/gtk/ExperimentalFeatures.cpp: Add new experimental feature.
        * UIProcess/gtk/ExperimentalFeatures.h: Ditto.

1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088
2014-01-17  Enrica Casucci  <enrica@apple.com>

        Support WebSelections in WK2 on iOS.
        https://bugs.webkit.org/show_bug.cgi?id=127015
        <rdar://problem/15843090>

        Reviewed by Dan Bernstein.

        Removing unused variable in selectWithGesture that
        causes Release build to fail after r162103.

        * WebProcess/WebPage/ios/WebPageIOS.mm:
        (WebKit::WebPage::selectWithGesture):

1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108
2014-01-17  Yongjun Zhang  <yongjun_zhang@apple.com>

        https://bugs.webkit.org/show_bug.cgi?id=127138
        Add more delegate callback methods to WKWebProcessPlugInLoadDelegate.

        Reviewed by Sam Weinig.

        Add more WKWebProcessPlugInLoadDelegate callback methods so that a injected
        bundle can listen/react to more frame loading events.

        * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInLoadDelegate.h: Add more delegate callback methods for
            WKWebProcessPlugInLoadDelegate.
        * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
        (didCommitLoadForFrame):
        (didFinishDocumentLoadForFrame):
        (didFailLoadWithErrorForFrame):
        (didSameDocumentNavigationForFrame): 
        (didLayoutForFrame):
        (setUpPageLoaderClient):

1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140
2014-01-16  Carlos Garcia Campos  <cgarcia@igalia.com>

        [SOUP] Add stubs for CustomProtocol classes
        https://bugs.webkit.org/show_bug.cgi?id=126343

        Reviewed by Gustavo Noronha Silva.

        * CMakeLists.txt:
        * GNUmakefile.am:
        * GNUmakefile.list.am:
        * PlatformGTK.cmake:
        * Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp: Added.
        (WebKit::generateCustomProtocolID):
        (WebKit::WebSoupRequestAsyncData::WebSoupRequestAsyncData):
        (WebKit::WebSoupRequestAsyncData::~WebSoupRequestAsyncData):
        (WebKit::WebSoupRequestAsyncData::requestFailed):
        (WebKit::WebSoupRequestAsyncData::releaseTask):
        (WebKit::CustomProtocolManager::supplementName):
        (WebKit::CustomProtocolManager::CustomProtocolManager):
        (WebKit::CustomProtocolManager::initializeConnection):
        (WebKit::CustomProtocolManager::initialize):
        * Shared/Network/NetworkProcessCreationParameters.cpp:
        (WebKit::NetworkProcessCreationParameters::encode): Move
        urlSchemesRegisteredForCustomProtocols encoding out of platform
        ifdefs, since it's already guarded by ENABLE(CUSTOM_PROTOCOLS).
        (WebKit::NetworkProcessCreationParameters::decode): Ditto.
        * Shared/Network/NetworkProcessCreationParameters.h: Ditto.
        * UIProcess/Network/CustomProtocols/soup/CustomProtocolManagerProxySoup.cpp: Added.
        (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
        (WebKit::CustomProtocolManagerProxy::startLoading):
        (WebKit::CustomProtocolManagerProxy::stopLoading):

1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161
2014-01-16  Tim Horton  <timothy_horton@apple.com>

        On iOS, zooming in with a TileController-backed main frame makes hundreds of tiles
        https://bugs.webkit.org/show_bug.cgi?id=126531
        <rdar://problem/15745862>

        Reviewed by Anders Carlsson.

        * UIProcess/API/ios/WKContentView.mm:
        (-[WKContentView _updateViewExposedRect]):
        (-[WKContentView setViewportSize:]):
        (-[WKContentView didFinishScrollTo:]):
        (-[WKContentView didScrollTo:]):
        (-[WKContentView didZoomToScale:]):
        Because zooming is performed by the UIScrollView, we need to transform
        the exposedRect's offset in order to get it in FrameView-relative coordinates.

        * UIProcess/ios/WebPageProxyIOS.mm:
        (WebKit::WebPageProxy::didFinishZooming):
        Save the pageScaleFactor when it changes.

1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174
2014-01-16  Carlos Garcia Campos  <cgarcia@igalia.com>

        [GTK] Remove the weak pointer added to the web view in WebKitPrintOperation
        https://bugs.webkit.org/show_bug.cgi?id=127098

        Reviewed by Martin Robinson.

        If the print operation finishes and the web view is still alive,
        the weak pointer added to the view should be removed.

        * UIProcess/API/gtk/WebKitPrintOperation.cpp:
        (_WebKitPrintOperationPrivate::~_WebKitPrintOperationPrivate):

1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188
2014-01-15  Sam Weinig  <sam@webkit.org>

        TextBreakIterator's should support Latin-1 for all iterator types (Part 3)
        https://bugs.webkit.org/show_bug.cgi?id=126856

        Reviewed by Ryosuke Niwa.

        Change all the TextBreakIterator creation functions to take StringViews. Remove a few
        now unnecessary up-conversions to UTF-16 in the process.

        * UIProcess/efl/TextCheckerEfl.cpp:
        (WebKit::nextWordOffset):
        (WebKit::TextChecker::checkTextOfParagraph):

1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206
2014-01-16  Eunmi Lee  <eunmi15.lee@samsung.com>

        [EFL][WK2] EwkView can not be shown without re-sizing once it is hidden.
        https://bugs.webkit.org/show_bug.cgi?id=127084

        Reviewed by Gyuyoung Kim.

        Visibility of EwkView can not be controlled by evas_object_show/hide
        because EwkView can be shown only if re-sizing is requested, so modify
        codes to show EwkView directly if we do not wait for re-sizing.
        Additionally, we have to set default value of m_pendingSurfaceResize
        to true for accelerated mode to prevent to show black empty view for
        the first request to show.

        * UIProcess/API/efl/EwkView.cpp:
        (EwkView::EwkView):
        (EwkView::handleEvasObjectShow):

1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217
2014-01-16  Andy Estes  <aestes@apple.com>

        Build Fix: Use standard architectures when building for iOS

        Even though we don't use the plug-in services on iOS, we still need
        them to build (we won't install them). Be sure we specify valid iOS
        architectures when doing so.

        * Configurations/PluginService.32.xcconfig:
        * Configurations/PluginService.64.xcconfig:

1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236
2014-01-16  Enrica Casucci  <enrica@apple.com>

        Crash when destroying WKInteractionView.
        https://bugs.webkit.org/show_bug.cgi?id=127153
        <rdar://problem/15840761>

        Reviewed by Anders Carlsson.

        UIWKSelectionAssistant is a RetainPtr and it is being 
        deallocated after the view and its gesture recognizers
        have been destroyed.
        The parent class UIWebSelectionAssistant assumes to be
        deallocated before the view is gone.
        We deallocate the interaction assistants explicitly to
        fix the problem.

        * UIProcess/API/ios/WKInteractionView.mm:
        (-[WKInteractionView dealloc]):

1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269
2014-01-16  Brady Eidson  <beidson@apple.com>

        IDB: delete object store support
        <rdar://problem/15779641> and https://bugs.webkit.org/show_bug.cgi?id=127123

        Reviewed by Alexey Proskuryakov.

        Pipe through Web -> Database -> Web process messaging for delete object store.
        Perform dropping the object store in the backing store.

        * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
        (WebKit::DatabaseProcessIDBConnection::deleteObjectStore):
        * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
        * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in:

        * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
        (WebKit::UniqueIDBDatabase::didDeleteObjectStore):
        (WebKit::UniqueIDBDatabase::deleteObjectStore):
        (WebKit::UniqueIDBDatabase::deleteObjectStoreInBackingStore):
        * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:

        * DatabaseProcess/IndexedDB/UniqueIDBDatabaseBackingStore.h:
        * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.cpp:
        (WebKit::UniqueIDBDatabaseBackingStoreSQLite::createObjectStore):
        (WebKit::UniqueIDBDatabaseBackingStoreSQLite::deleteObjectStore):
        * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.h:

        * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
        (WebKit::WebIDBServerConnection::deleteObjectStore):
        (WebKit::WebIDBServerConnection::didDeleteObjectStore):
        * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
        * WebProcess/Databases/IndexedDB/WebIDBServerConnection.messages.in:

1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283
2014-01-16  Alexey Proskuryakov  <ap@apple.com>

        [Mac] [iOS] Add support for CFHTTPCookieStorageAcceptPolicyExclusivelyFromMainDocumentDomain
        https://bugs.webkit.org/show_bug.cgi?id=127139

        Reviewed by Brady Eidson.

        * Shared/HTTPCookieAcceptPolicy.h:
        * UIProcess/API/C/WKAPICast.h:
        (WebKit::toHTTPCookieAcceptPolicy):
        (WebKit::toAPI):
        * UIProcess/API/C/WKCookieManager.h:
        Added the policy to appropriate switches and enums.

1284 1285 1286 1287 1288 1289
2014-01-16  Jeffrey Pfau  <jpfau@apple.com>

        Fix build after r162161. One FINAL was still present.

        * Shared/cf/KeyedDecoder.h:

1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315
2014-01-16  Anders Carlsson  <andersca@apple.com>

        Change all uses of FINAL to final now that all our compilers support it
        https://bugs.webkit.org/show_bug.cgi?id=127142

        Reviewed by Benjamin Poulain.

        * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.h:
        * NetworkProcess/RemoteNetworkingContext.h:
        * Shared/API/Cocoa/RemoteObjectRegistry.h:
        * Shared/APIArray.h:
        * Shared/APIString.h:
        * Shared/AsyncRequest.h:
        * Shared/AsyncTask.h:
        * Shared/cf/KeyedEncoder.h:
        * UIProcess/API/gtk/PageClientImpl.h:
        * UIProcess/API/mac/PageClientImpl.h:
        * UIProcess/efl/WebViewEfl.h:
        * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.h:
        * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
        * WebProcess/Plugins/PDF/PDFPlugin.h:
        * WebProcess/Storage/StorageAreaImpl.h:
        * WebProcess/WebPage/mac/GraphicsLayerCARemote.h:
        * WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.h:
        * WebProcess/WebPage/mac/PlatformCALayerRemoteTiledBacking.h:

1316 1317 1318 1319 1320 1321
2014-01-16  Brady Eidson  <beidson@apple.com>

        Fix the build after r162148

        * Shared/cf/KeyedEncoder.h: s/OVERRIDE/override/

1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359
2014-01-15  Brady Eidson  <beidson@apple.com>

        Use KeyedCoding as a persistent storage mechanism for blobs
        https://bugs.webkit.org/show_bug.cgi?id=127012

        Reviewed by Anders Carlsson.

        Add a way to get the encoded buffer to save:
        * Shared/cf/KeyedEncoder.cpp:
        (WebKit::KeyedEncoder::finishEncoding):
        * Shared/cf/KeyedEncoder.h:

        Add a WebKit KeyedDecoder for CF platforms that can decode the previously encoded buffer:
        * Shared/cf/KeyedDecoder.cpp: Added.
        (WebKit::KeyedDecoder::KeyedDecoder):
        (WebKit::KeyedDecoder::~KeyedDecoder):
        (WebKit::KeyedDecoder::decodeInt64):
        (WebKit::KeyedDecoder::decodeUInt32):
        (WebKit::KeyedDecoder::decodeString):
        (WebKit::KeyedDecoder::beginObject):
        (WebKit::KeyedDecoder::endObject):
        (WebKit::KeyedDecoder::beginArray):
        (WebKit::KeyedDecoder::beginArrayElement):
        (WebKit::KeyedDecoder::endArrayElement):
        (WebKit::KeyedDecoder::endArray):
        * Shared/cf/KeyedDecoder.h:

        Create a WebKit KeyedEncoder/Decoder and use to encode/decode IDBKeyPaths:
        * DatabaseProcess/IndexedDB/IDBSerialization.cpp:
        (WebKit::serializeIDBKeyPath):
        (WebKit::deserializeIDBKeyPath):
        * DatabaseProcess/IndexedDB/IDBSerialization.h:

        * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.cpp:
        (WebKit::UniqueIDBDatabaseBackingStoreSQLite::createObjectStore):

        * WebKit2.xcodeproj/project.pbxproj:

1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370
2014-01-16  Andy Estes  <aestes@apple.com>

        Stop copying WKOriginDataManager.cpp into WebKit2.framework
        https://bugs.webkit.org/show_bug.cgi?id=127100

        Reviewed by Sam Weinig.

        The file was mistakenly added to the 'All' target. Remove it.

        * WebKit2.xcodeproj/project.pbxproj:

1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387
2014-01-16  Andy Estes  <aestes@apple.com>

        [iOS] Install WebKit2 XPC services correctly
        https://bugs.webkit.org/show_bug.cgi?id=127097

        Reviewed by Anders Carlsson.

        * Configurations/PluginService.32.xcconfig: Set SKIP_INSTALL to YES on iOS.
        * Configurations/PluginService.64.xcconfig: Ditto.
        * Configurations/PluginService.Development.xcconfig: Ditto.
        * WebKit2.xcodeproj/project.pbxproj: Modified the "Add XPCServices symlink"
        build phase to only execute on OS X. Modified the
        "Copy XPC services for engineering builds" build phase to copy files
        directly to WebKit2.framework/XPCServices/ on iOS, and modified its
        output file paths to omit "Versions/A/" (since OS X will have a
        XPCServices symlink at the root of the framework bundle).

1388 1389 1390 1391 1392 1393
2014-01-16  Roger Fong  <roger_fong@apple.com>

        Build fix for mac following r162141.

        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h: Switch OVERRIDE to override.

1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422
2014-01-16  Roger Fong  <roger_fong@apple.com>

        Add support for handling WebGL load policies.
        https://bugs.webkit.org/show_bug.cgi?id=126935
        <rdar://problem/15790448>.

        Reviewed by Timothy Horton.

        Boiler plate code for getting the load policy logic from WebProcess to the UIProcess.

        * UIProcess/API/C/WKAPICast.h:
        (WebKit::toWebGLLoadPolicy):
        * UIProcess/API/C/WKPageLoaderClient.h: Define a new WKPageLoaderClientV4 struct.
        * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
        (setUpPageLoaderClient):
        * UIProcess/WebLoaderClient.cpp:
        (WebKit::WebLoaderClient::webGLLoadPolicy):
        * UIProcess/WebLoaderClient.h:
        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::webGLPolicyForURL):
        * UIProcess/WebPageProxy.h:
        * UIProcess/WebPageProxy.messages.in:
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
        (WebKit::WebFrameLoaderClient::webGLPolicyForURL): 
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::webGLPolicyForURL): We use a sendSync to get the load policy value from the UIProcess.
        * WebProcess/WebPage/WebPage.h:

1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575
2014-01-16  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>

        Remove workaround for compilers not supporting explicit override control
        https://bugs.webkit.org/show_bug.cgi?id=127111

        Reviewed by Anders Carlsson.

        Now all compilers support explicit override control, this workaround can be removed.

        * DatabaseProcess/DatabaseProcess.h:
        * DatabaseProcess/DatabaseToWebProcessConnection.h:
        * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
        * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.h:
        * NetworkProcess/AsynchronousNetworkLoaderClient.h:
        * NetworkProcess/NetworkProcess.h:
        * NetworkProcess/NetworkProcessPlatformStrategies.h:
        * NetworkProcess/NetworkResourceLoader.h:
        * NetworkProcess/RemoteNetworkingContext.h:
        * NetworkProcess/SynchronousNetworkLoaderClient.h:
        * NetworkProcess/mac/DiskCacheMonitor.h:
        * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
        * PluginProcess/PluginControllerProxy.h:
        * PluginProcess/PluginProcess.h:
        * PluginProcess/WebProcessConnection.h:
        * Shared/API/Cocoa/RemoteObjectRegistry.h:
        * Shared/APIObject.h:
        * Shared/AsyncRequest.h:
        * Shared/AsyncTask.h:
        * Shared/Authentication/AuthenticationManager.h:
        * Shared/ChildProcess.h:
        * Shared/ChildProcessProxy.h:
        * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
        * Shared/Downloads/Download.h:
        * Shared/Network/CustomProtocols/CustomProtocolManager.h:
        * Shared/WebConnection.h:
        * Shared/WebResourceBuffer.h:
        * Shared/cf/KeyedEncoder.h:
        * Shared/mac/SecItemShim.h:
        * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
        * UIProcess/API/gtk/PageClientImpl.h:
        * UIProcess/API/ios/PageClientImplIOS.h:
        * UIProcess/API/mac/PageClientImpl.h:
        * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
        * UIProcess/CoordinatedGraphics/WebView.h:
        * UIProcess/Databases/DatabaseProcessProxy.h:
        * UIProcess/Downloads/DownloadProxy.h:
        * UIProcess/DrawingAreaProxy.h:
        * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
        * UIProcess/Network/NetworkProcessProxy.h:
        * UIProcess/Notifications/WebNotificationManagerProxy.h:
        * UIProcess/Plugins/PluginProcessProxy.h:
        * UIProcess/Scrolling/RemoteScrollingTree.h:
        * UIProcess/Storage/StorageManager.h:
        * UIProcess/WebApplicationCacheManagerProxy.h:
        * UIProcess/WebBatteryManagerProxy.h:
        * UIProcess/WebConnectionToWebProcess.h:
        * UIProcess/WebContext.h:
        * UIProcess/WebCookieManagerProxy.h:
        * UIProcess/WebDatabaseManagerProxy.h:
        * UIProcess/WebFullScreenManagerProxy.h:
        * UIProcess/WebGeolocationManagerProxy.h:
        * UIProcess/WebIconDatabase.h:
        * UIProcess/WebInspectorProxy.h:
        * UIProcess/WebKeyValueStorageManager.h:
        * UIProcess/WebMediaCacheManagerProxy.h:
        * UIProcess/WebNetworkInfoManagerProxy.h:
        * UIProcess/WebOriginDataManagerProxy.h:
        * UIProcess/WebPageProxy.h:
        * UIProcess/WebProcessProxy.h:
        * UIProcess/WebResourceCacheManagerProxy.h:
        * UIProcess/WebVibrationProxy.h:
        * UIProcess/efl/PageViewportControllerClientEfl.h:
        * UIProcess/efl/WebViewEfl.h:
        * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h:
        * UIProcess/mac/SecItemShimProxy.h:
        * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
        * UIProcess/mac/ViewGestureController.h:
        * UIProcess/mac/WebColorPickerMac.h:
        * UIProcess/soup/WebSoupRequestManagerProxy.h:
        * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
        * WebProcess/Battery/WebBatteryManager.h:
        * WebProcess/Cookies/WebCookieManager.h:
        * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.h:
        * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
        * WebProcess/Databases/WebToDatabaseProcessConnection.h:
        * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm:
        * WebProcess/FileAPI/BlobRegistryProxy.h:
        * WebProcess/Geolocation/WebGeolocationManager.h:
        * WebProcess/IconDatabase/WebIconDatabaseProxy.h:
        * WebProcess/InjectedBundle/API/c/mac/WKBundlePageBannerMac.mm:
        * WebProcess/MediaCache/WebMediaCacheManager.h:
        * WebProcess/Network/NetworkProcessConnection.h:
        * WebProcess/Network/WebResourceLoadScheduler.h:
        * WebProcess/Network/WebResourceLoader.h:
        * WebProcess/NetworkInfo/WebNetworkInfoManager.h:
        * WebProcess/Notifications/WebNotificationManager.h:
        * WebProcess/OriginData/WebOriginDataManager.h:
        * WebProcess/Plugins/Netscape/NetscapePlugin.h:
        * WebProcess/Plugins/PDF/PDFPlugin.h:
        * WebProcess/Plugins/PDF/PDFPluginAnnotation.h:
        * WebProcess/Plugins/PDF/PDFPluginChoiceAnnotation.h:
        * WebProcess/Plugins/PDF/PDFPluginPasswordField.h:
        * WebProcess/Plugins/PDF/PDFPluginTextAnnotation.h:
        * WebProcess/Plugins/PluginProcessConnection.h:
        * WebProcess/Plugins/PluginProcessConnectionManager.h:
        * WebProcess/Plugins/PluginProxy.h:
        * WebProcess/Plugins/PluginView.h:
        * WebProcess/ResourceCache/WebResourceCacheManager.h:
        * WebProcess/Scrolling/RemoteScrollingCoordinator.h:
        * WebProcess/Storage/StorageAreaImpl.h:
        * WebProcess/Storage/StorageAreaMap.h:
        * WebProcess/Storage/StorageNamespaceImpl.h:
        * WebProcess/WebConnectionToUIProcess.h:
        * WebProcess/WebCoreSupport/WebAlternativeTextClient.h:
        * WebProcess/WebCoreSupport/WebBatteryClient.h:
        * WebProcess/WebCoreSupport/WebChromeClient.h:
        * WebProcess/WebCoreSupport/WebColorChooser.h:
        * WebProcess/WebCoreSupport/WebContextMenuClient.h:
        * WebProcess/WebCoreSupport/WebDatabaseManager.h:
        * WebProcess/WebCoreSupport/WebDeviceProximityClient.h:
        * WebProcess/WebCoreSupport/WebDragClient.h:
        * WebProcess/WebCoreSupport/WebEditorClient.h:
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
        * WebProcess/WebCoreSupport/WebGeolocationClient.h:
        * WebProcess/WebCoreSupport/WebInspectorClient.h:
        * WebProcess/WebCoreSupport/WebInspectorFrontendClient.h:
        * WebProcess/WebCoreSupport/WebNavigatorContentUtilsClient.h:
        * WebProcess/WebCoreSupport/WebNetworkInfoClient.h:
        * WebProcess/WebCoreSupport/WebNotificationClient.h:
        * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
        * WebProcess/WebCoreSupport/WebPopupMenu.h:
        * WebProcess/WebCoreSupport/WebProgressTrackerClient.h:
        * WebProcess/WebCoreSupport/WebSearchPopupMenu.h:
        * WebProcess/WebCoreSupport/WebVibrationClient.h:
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
        * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h:
        * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
        * WebProcess/WebPage/DrawingAreaImpl.h:
        * WebProcess/WebPage/EventDispatcher.h:
        * WebProcess/WebPage/ViewGestureGeometryCollector.h:
        * WebProcess/WebPage/WebBackForwardListProxy.h:
        * WebProcess/WebPage/WebPage.h:
        * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
        * WebProcess/WebPage/mac/GraphicsLayerCARemote.h:
        * WebProcess/WebPage/mac/PlatformCALayerRemote.h:
        * WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.h:
        * WebProcess/WebPage/mac/PlatformCALayerRemoteTiledBacking.h:
        * WebProcess/WebPage/mac/RemoteLayerTreeContext.h:
        * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
        * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
        * WebProcess/WebProcess.h:
        * WebProcess/soup/WebSoupRequestManager.h:

1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605
2014-01-16  Ian Henderson  <ianh@apple.com>

        Expose scrollView on WKView
        https://bugs.webkit.org/show_bug.cgi?id=127085

        Reviewed by Antti Koivisto.

        Expose WKView's scroll view as a property.  In order to support
        clients calling setDelegate:, we create a forwarder object that sends
        delegate methods to both WKView (the "internal delegate") and the
        publicly-exposed delegate (the "external delegate").

        * UIProcess/API/Cocoa/WKView.h:
        * UIProcess/API/ios/WKScrollView.h:
        * UIProcess/API/ios/WKScrollView.mm:
        (-[WKScrollViewDelegateForwarder initWithInternalDelegate:externalDelegate:]):
        (-[WKScrollViewDelegateForwarder methodSignatureForSelector:]):
        (-[WKScrollViewDelegateForwarder respondsToSelector:]):
        (-[WKScrollViewDelegateForwarder forwardInvocation:]):
        (-[WKScrollView setInternalDelegate:]):
        (-[WKScrollView setDelegate:]):
        (-[WKScrollView delegate]):
        Pretend like _externalDelegate is the real delegate to avoid exposing
        our internal delegate or forwarder object.
        (-[WKScrollView _updateDelegate]):
        (-[WKScrollView dealloc]):
        * UIProcess/API/ios/WKViewIOS.mm:
        (-[WKView scrollView]):
        (-[WKView _commonInitializationWithContextRef:pageGroupRef:relatedToPage:]):

1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619
2014-01-15  Carlos Garcia Campos  <cgarcia@igalia.com>

        [GTK][EFL][NIX] Do not use PrintContext, Frame and DocumentLoader in Errors
        https://bugs.webkit.org/show_bug.cgi?id=127047

        Reviewed by Martin Robinson.

        * WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:
        (WebKit::WebPrintOperationGtk::frameURL): Helper function to get
        the URL of the frame being printed.
        (WebKit::WebPrintOperationGtk::print): Use frameURL() as failing
        URL for printing errors.
        * WebProcess/WebPage/gtk/WebPrintOperationGtk.h:

1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634
2014-01-15  Benjamin Poulain  <bpoulain@apple.com>

        Move user agent code to WebCore and unify some code between OS X and iOS
        https://bugs.webkit.org/show_bug.cgi?id=127080

        Reviewed by Sam Weinig.

        * UIProcess/ios/WebPageProxyIOS.mm:
        (WebKit::userVisibleWebKitVersionString):
        (WebKit::WebPageProxy::standardUserAgent):
        * UIProcess/mac/WebPageProxyMac.mm:
        (WebKit::WebPageProxy::standardUserAgent):
        * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
        (InitWebCoreSystemInterface):

1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667
2014-01-15  Eunmi Lee  <eunmi15.lee@samsung.com>

        [EFL][WK2] Use timestamp when event occurs for touch events.
        https://bugs.webkit.org/show_bug.cgi?id=126424

        Reviewed by Gyuyoung Kim.

        Current time is used for touch event's timestamp instead of timestamp
        when event occurs. Timestamp of touch event is used to implement flick
        gesture, so it should be real value for accurate gesture processing.

        * UIProcess/API/efl/EwkView.cpp:
        Function names for handling touch events are changed to distinguish
        mouse events and multi events.
        (EwkView::setTouchEventsEnabled):
        (EwkView::feedTouchEvents):
        (EwkView::handleMouseDownForTouch):
        (EwkView::handleMouseUpForTouch):
        (EwkView::handleMouseMoveForTouch):
        (EwkView::handleMultiDownForTouch):
        (EwkView::handleMultiUpForTouch):
        (EwkView::handleMultiMoveForTouch):
        * UIProcess/API/efl/EwkView.h:
        * UIProcess/API/efl/GestureRecognizer.cpp:
        (WebKit::GestureHandler::handlePan):
        (WebKit::GestureRecognizer::processTouchEvent):
        (WebKit::GestureRecognizer::noGesture):
        (WebKit::GestureRecognizer::singleTapGesture):
        (WebKit::GestureRecognizer::doubleTapGesture):
        (WebKit::GestureRecognizer::panGesture):
        (WebKit::GestureRecognizer::pinchGesture):
        * UIProcess/API/efl/GestureRecognizer.h:

1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684
2014-01-15  Gavin Barraclough  <barraclough@apple.com>

        Change Page, FocusController to use ViewState
        https://bugs.webkit.org/show_bug.cgi?id=126533

        Unreviewed rollout, this caused a regression.

        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::WebPage):
        (WebKit::WebPage::setActive):
        (WebKit::WebPage::setViewIsVisible):
        (WebKit::WebPage::setFocused):
        (WebKit::WebPage::setIsInWindow):
        (WebKit::WebPage::setViewStateInternal):
        (WebKit::WebPage::setIsVisuallyIdle):
        * WebProcess/WebPage/WebPage.h:

1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697
2014-01-15  Yongjun Zhang  <yongjun_zhang@apple.com>

        https://bugs.webkit.org/show_bug.cgi?id=127072
        Don't autorelease wrapper object (WebProcessPlugInScriptWorld) for InjectedBundleScriptWorld::normalWorld().

        Reviewed by Geoffrey Garen.

        In [WKWebProcessPlugInScriptWorld normalWorld], InjectedBundleScriptWorld::normalWorld() returns a static
        instance,  autoreleasing its wrapper object could cause a dangling pointer and crash later.

        * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorld.mm:
        (+[WKWebProcessPlugInScriptWorld normalWorld]):

1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716
2014-01-15  Andy Estes  <aestes@apple.com>

        [iOS] Properly exclude the shim dylibs this time
        https://bugs.webkit.org/show_bug.cgi?id=127075

        Reviewed by Anders Carlsson.

        BaseLegacyProcess.xcconfig was setting EXCLUDED_SOURCE_FILE_NAMES in
        conflict with what I added in r161918, and I misspelled the setting
        name in two instances. Fix these two bugs.

        Also remove a vestigial OTHER_LDFLAGS from WebContentProcess.xcconfig
        while we're here.

        * Configurations/BaseLegacyProcess.xcconfig:
        * Configurations/NetworkProcess.xcconfig:
        * Configurations/PluginProcess.xcconfig:
        * Configurations/WebContentProcess.xcconfig:

1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817
2014-01-15  Enrica Casucci  <enrica@apple.com>

        Support WebSelections in WK2 on iOS.
        https://bugs.webkit.org/show_bug.cgi?id=127015

        Reviewed by Benjamin Poulain.

        This is the first step towards adding support for selections in
        non editable content on iOS for WK2.
        In particular, this patch adds the basic plumbing to decide which
        gesture recognizers are enabled and adds empty stubs for the gestures
        that we'll need to support.
        There are two separate assistants for selections, one to be used
        in editable text (UIWKTextInteractionAssistant) and one for non editable
        text (UIWKSelectionAssistant) and they are mutually exclusive.
        UIWKSelectionAssistant is created at the time the view is created, 
        and swapped with UIWKTextInteraction assistant
        only when an editable element is focused and the keyboard appears on screen.

        gestureRecognizerShouldBegin is the delegate call used to decide which gestures
        should begin based on the position the gesture occurred at.
        We want to avoid as much as possible synchronous calls to the WebProcess to
        retrieve information about the content and in order to do so, we take advantage
        of the order in which the gesture recognizers will trigger, based on the delay
        configured at initialization.
        The first gesture to trigger is highlightLongPress, followed by longpress in the
        active assistant and longpress in the WKInteractionView.
        There are two different scenarios for highlighlongpress based on which assistant is
        currently active.

        UIWKSelectionAssistant is active:
            We send a request to the WebProcess to get information on the position
            and we return YES, allowing the gesture to start.
            We delegate to the WebProcess the proper handling of highlight based on the element.
            When longPress gesture fires for the assistant, we assume we have received the reply to our
            previous request, if not we fetch the information synchronously.
            We are then able to make an informed decision about whether
            or not to start the gesture. If the reply is NO, the third and last long press
            gesture can be evaluated to decide whether to show the action sheet or simply generate
            a click event.

        UIWKTextInteractionAssistant is active:
            In this case we must have information about the position immediately and we issue
            a synchronous request to the WebProcess.
            If we are not interacting with the same node, we return NO.
            Then the longpress gesture fires for the assistant which performs the same check.
            If the node is the same, the loupe gesture will start, otherwise the last longpress
            gesture will be evaluated to decide about showing the action sheet or generating a
            click event.

        * Scripts/webkit2/messages.py:
        * Shared/InteractionInformationAtPosition.cpp: Added.
        (WebKit::InteractionInformationAtPosition::encode):
        (WebKit::InteractionInformationAtPosition::decode):
        * Shared/InteractionInformationAtPosition.h: Added.
        (WebKit::InteractionInformationAtPosition::InteractionInformationAtPosition):
        * UIProcess/API/ios/PageClientImplIOS.h:
        * UIProcess/API/ios/PageClientImplIOS.mm:
        (WebKit::PageClientImpl::positionInformationDidChange):
        * UIProcess/API/ios/WKContentView.mm:
        (-[WKContentView _positionInformationDidChange:]):
        * UIProcess/API/ios/WKContentViewInternal.h:
        * UIProcess/API/ios/WKInteractionView.h:
        * UIProcess/API/ios/WKInteractionView.mm:
        (-[WKInteractionView initWithFrame:]):
        (-[WKInteractionView dealloc]):
        (-[WKInteractionView gestureRecognizer:canPreventGestureRecognizer:]):
        (-[WKInteractionView gestureRecognizer:canBePreventedByGestureRecognizer:]):
        (isSamePair):
        (-[WKInteractionView gestureRecognizer:shouldRecognizeSimultaneouslyWithGestureRecognizer:]):
        (-[WKInteractionView _showImageSheet]):
        (-[WKInteractionView _showLinkSheet]):
        (-[WKInteractionView _actionForLongPress]):
        (-[WKInteractionView ensurePositionInformationIsUpToDate:]):
        (-[WKInteractionView gestureRecognizerShouldBegin:]):
        (-[WKInteractionView hasSelectablePositionAtPoint:]):
        (-[WKInteractionView pointIsInAssistedNode:]):
        (-[WKInteractionView _longPressRecognized:]):
        (-[WKInteractionView _doubleTapRecognized:]):
        (-[WKInteractionView _twoFingerDoubleTapRecognized:]):
        (-[WKInteractionView _twoFingerPanRecognized:]):
        (-[WKInteractionView useSelectionAssistantWithMode:]):
        (-[WKInteractionView _positionInformationDidChange:]):
        (-[WKInteractionView interactionAssistant]):
        (-[WKInteractionView _startAssistingKeyboard]):
        (-[WKInteractionView _stopAssistingKeyboard]):
        * UIProcess/PageClient.h:
        * UIProcess/WebPageProxy.h:
        * UIProcess/WebPageProxy.messages.in:
        * UIProcess/ios/WebPageProxyIOS.mm:
        (WebKit::WebPageProxy::didReceivePositionInformation):
        (WebKit::WebPageProxy::getPositionInformation):
        (WebKit::WebPageProxy::requestPositionInformation):
        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/WebPage/WebPage.h:
        * WebProcess/WebPage/WebPage.messages.in:
        * WebProcess/WebPage/ios/WebPageIOS.mm:
        (WebKit::WebPage::selectWithGesture):
        (WebKit::WebPage::getPositionInformation):
        (WebKit::WebPage::requestPositionInformation):

1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829
2014-01-15  Yongjun Zhang  <yongjun_zhang@apple.com>

        https://bugs.webkit.org/show_bug.cgi?id=127066
        Add WKBrowsingContextHandle.h to WebKit2 private headers.

        Reviewed by Dan Bernstein.

        Add WKBrowsingContextHandle.h to WebKit2 private headers so that WebKit2 client
        can use WKBrowsingContextHandle class.

        * WebKit2.xcodeproj/project.pbxproj:

1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849
2014-01-15  Piotr Grad  <p.grad@samsung.com>

        toStringVector static function definition should not be redundant.
        https://bugs.webkit.org/show_bug.cgi?id=126872.

        Reviewed by Anders Carlsson.

        toStringVector function was declared twice in InjectedBundle.cpp and WebPageGroup.cpp as static.
        In order to remove redundant definition this function was moved into API::Array.

        * Shared/APIArray.cpp:
        (API::Array::toStringVector):
        * Shared/APIArray.h:
        * UIProcess/WebPageGroup.cpp:
        (WebKit::WebPageGroup::addUserStyleSheet):
        (WebKit::WebPageGroup::addUserScript):
        * WebProcess/InjectedBundle/InjectedBundle.cpp:
        (WebKit::InjectedBundle::addUserScript):
        (WebKit::InjectedBundle::addUserStyleSheet):

1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874
2014-01-10  Gavin Barraclough  <barraclough@apple.com>

        REGRESSION (r158369): Some pop-up windows open at incorrect size (affects GMail, theblaze.com)
        https://bugs.webkit.org/show_bug.cgi?id=126289

        Reviewed by Anders Carlson.

        Partial revert of https://bugs.webkit.org/show_bug.cgi?id=123557.
        On window.open, update page when the UIProcess sends the create message

        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::initializeWebPage):
        (WebKit::WebPageProxy::creationParameters):
        * UIProcess/WebPageProxy.h:
            - creation paraments are not preserved at window.open.
        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::reinitializeWebPage):
        (WebKit::WebPage::setViewState):
        (WebKit::WebPage::setViewStateInternal):
        * WebProcess/WebPage/WebPage.h:
            - add interface to update page.
        * WebProcess/WebProcess.cpp:
        (WebKit::WebProcess::createWebPage):
            - if we try to create a page that already exists, update the current page's view state.

1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916
2014-01-15  Carlos Garcia Campos  <cgarcia@igalia.com>

        [GTK] Web process sometimes crashes when printing in synchronous mode
        https://bugs.webkit.org/show_bug.cgi?id=126979

        Reviewed by Gustavo Noronha Silva.

        When printing synchronously in GTK+ we need to make sure that we
        have a list of Printers before starting the print operation. Getting
        the list of printers is done synchronously by GTK+, but using a
        nested main loop that might process IPC messages comming from the
        UI process like EndPrinting. When the EndPrinting message is
        received while the printer list is being populated, the print
        operation is finished unexpectely and the web process crashes. The
        PrinterListGtk class gets the list of printers in the constructor
        so we just need to ensure there's an instance alive during the
        synchronous print operation. In case of asynchronous printing the
        printer list will be created during the print operation without
        any risk, because the EndPrinting message is not sent until the
        printing callback has been received in the UI process.

        * GNUmakefile.list.am: Add new files to compilation.
        * PlatformGTK.cmake: Ditto.
        * WebProcess/WebCoreSupport/WebChromeClient.cpp:
        (WebKit::WebChromeClient::print): Ensure PrinterListGtk is created
        before the synchronous printing and destroyed afterwards.
        * WebProcess/WebPage/gtk/PrinterListGtk.cpp: Added.
        (WebKit::PrinterListGtk::shared): Return the singleton.
        (WebKit::PrinterListGtk::enumeratePrintersFunction): Callback
        called by gtk_enumerate_printers() when a new printer is found.
        (WebKit::PrinterListGtk::PrinterListGtk): Call
        gtk_enumerate_printers() in syhchronous mode.
        (WebKit::PrinterListGtk::~PrinterListGtk):
        (WebKit::PrinterListGtk::addPrinter): Add the printer to the list
        and set the default printer if needed.
        (WebKit::PrinterListGtk::findPrinter): Find the printer for the
        given name.
        * WebProcess/WebPage/gtk/PrinterListGtk.h: Added.
        * WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp: Use
        PrinterListGtk class to find the printer instead of calling
        gtk_enumerate_printers().

1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930
2014-01-15  Tomas Popela  <tpopela@redhat.com>

        [SOUP] [WK2] - Disable MemoryCache when the DOCUMENT_VIEWER cache model is set
        https://bugs.webkit.org/show_bug.cgi?id=126577

        Reviewed by Carlos Garcia Campos.

        As in http://trac.webkit.org/changeset/152483, but this time for
        WebKit2. When WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER is set we need to
        disable the MemoryCache completely to prevent caching of the resources.

        * WebProcess/soup/WebProcessSoup.cpp:
        (WebKit::WebProcess::platformSetCacheModel):

1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947
2014-01-14  Carlos Garcia Campos  <cgarcia@igalia.com>

        [GTK] UI process crashes when closing the window right after printing with javascript
        https://bugs.webkit.org/show_bug.cgi?id=126981

        Reviewed by Gustavo Noronha Silva.

        The UI process crashes because when the page is closed, the web
        view is destroyed before the print operation has actually
        finished. Use a weak pointer to make sure the web view pointer is
        set to NULL when the it's destroyed and emit the finished callback
        always so that the user can clean up the operation even when the
        web view has been closed.

        * UIProcess/API/gtk/WebKitPrintOperation.cpp:
        (drawPagesForPrintingCompleted):

1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964
2014-01-14  Carlos Garcia Campos  <cgarcia@igalia.com>

        [GTK] UI process crashes when the web process crashes while printing
        https://bugs.webkit.org/show_bug.cgi?id=126977

        Reviewed by Gustavo Noronha Silva.

        When the web process crashes, the printing callback is
        invalidated, so the function is called with a NULL error.

        * UIProcess/API/gtk/WebKitPrintOperation.cpp:
        (drawPagesForPrintingCompleted): Check wkError is not NULL before
        trying to use it.
        * UIProcess/API/gtk/WebKitWebView.cpp:
        (webkitWebViewPrintFrame): Set the print mode of the operation
        before emitting the print signal.

1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010
2014-01-14  Brady Eidson  <beidson@apple.com>

        IDB: create object store support
        <rdar://problem/15779639> and https://bugs.webkit.org/show_bug.cgi?id=127011

        Reviewed by Anders Carlsson.

        Add messaging/callback infrastructure for creating object stores:
        * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
        (WebKit::DatabaseProcessIDBConnection::createObjectStore):
        * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
        * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in:

        * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
        (WebKit::WebIDBServerConnection::createObjectStore):
        (WebKit::WebIDBServerConnection::didCreateObjectStore):
        * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
        * WebProcess/Databases/IndexedDB/WebIDBServerConnection.messages.in:

        * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
        (WebKit::UniqueIDBDatabase::didChangeDatabaseVersion):
        (WebKit::UniqueIDBDatabase::didCreateObjectStore):
        (WebKit::UniqueIDBDatabase::didCompleteBoolRequest):
        (WebKit::UniqueIDBDatabase::createObjectStore):
        (WebKit::UniqueIDBDatabase::createObjectStoreInBackingStore):
        * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:

        * DatabaseProcess/IndexedDB/UniqueIDBDatabaseBackingStore.h:

        Add serialization helpers to save/restore an IDBKeyPath to/from disk:
        * DatabaseProcess/IndexedDB/IDBSerialization.cpp:
        (WebKit::serializeIDBKeyPath):
        (WebKit::deserializeIDBKeyPath):
        * DatabaseProcess/IndexedDB/IDBSerialization.h:

        Add object store metadata to the schema, and save/restore the metadata:
        * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.cpp:
        (WebKit::UniqueIDBDatabaseBackingStoreSQLite::createAndPopulateInitialMetadata):
        (WebKit::UniqueIDBDatabaseBackingStoreSQLite::extractExistingMetadata):
        (WebKit::UniqueIDBDatabaseBackingStoreSQLite::createObjectStore):
        * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.h:

        * Scripts/webkit2/messages.py:
        (struct_or_class):
        * WebKit2.xcodeproj/project.pbxproj:

2011 2012 2013 2014 2015 2016
2014-01-14  Jae Hyun Park  <jae.park@company100.net>

        [GTK] Unreviewed build fix after r162034

        * GNUmakefile.list.am:

2017 2018 2019 2020 2021 2022
2014-01-14  Ryuan Choi  <ryuan.choi@samsung.com>

        Unreviewed build fix for CMake based ports after r162034.

        * CMakeLists.txt:

jpfau@apple.com's avatar
jpfau@apple.com committed
2023 2024 2025 2026 2027 2028 2029 2030
2014-01-14  Jeffrey Pfau  <jpfau@apple.com>

        Build fix after r162034

        Rubber-stamped by Benjamin Poulain.

        * WebProcess/WebCoreSupport/WebProgressTrackerClient.cpp:

2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050
2014-01-14  Anders Carlsson  <andersca@apple.com>

        Create separate progress tracker clients
        https://bugs.webkit.org/show_bug.cgi?id=127025

        Reviewed by Sam Weinig.

        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
        * WebProcess/WebCoreSupport/WebProgressTrackerClient.cpp: Copied from Source/WebCore/loader/ProgressTrackerClient.h.
        (WebKit::WebProgressTrackerClient::WebProgressTrackerClient):
        (WebKit::WebProgressTrackerClient::progressTrackerDestroyed):
        (WebKit::WebProgressTrackerClient::progressStarted):
        (WebKit::WebProgressTrackerClient::progressEstimateChanged):
        (WebKit::WebProgressTrackerClient::progressFinished):
        * WebProcess/WebCoreSupport/WebProgressTrackerClient.h: Copied from Source/WebCore/loader/ProgressTrackerClient.h.
        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::WebPage):

2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070
2014-01-14  Benjamin Poulain  <bpoulain@apple.com>

        [WK2] Make WebPageProxy's setUserAgent private
        https://bugs.webkit.org/show_bug.cgi?id=127013

        Reviewed by Anders Carlsson.

        * UIProcess/WebPageProxy.h:
        The API to modify the user agent already has 3 "setters":
        -standardUserAgent
        -setApplicationNameForUserAgent
        -setCustomUserAgent

        The method WebPageProxy::setUserAgent() is supposed to be internal, not used directly.
        Using it directly would cause unexpected behaviors, for example:
        -Set the user agent with setUserAgent.
        -Set CustomUserAgent.
        -Reset CustomUserAgent.
        ->The user agent is now standardUserAgent instead of the user agent defined initially.

2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097
2014-01-14  Commit Queue  <commit-queue@webkit.org>

        Unreviewed, rolling out r162000.
        http://trac.webkit.org/changeset/162000
        https://bugs.webkit.org/show_bug.cgi?id=127009

        API versioning is wrong (Requested by rfong on #webkit).

        * UIProcess/API/C/WKAPICast.h:
        * UIProcess/API/C/WKPageLoaderClient.h:
        * UIProcess/API/C/WKPageUIClient.h:
        * UIProcess/WebLoaderClient.cpp:
        * UIProcess/WebLoaderClient.h:
        * UIProcess/WebPageProxy.cpp:
        * UIProcess/WebPageProxy.h:
        * UIProcess/WebPageProxy.messages.in:
        * UIProcess/WebUIClient.cpp:
        * UIProcess/WebUIClient.h:
        * UIProcess/mac/WebInspectorProxyMac.mm:
        (WebKit::WebInspectorProxy::platformCreateInspectorPage):
        * WebProcess/WebCoreSupport/WebChromeClient.cpp:
        * WebProcess/WebCoreSupport/WebChromeClient.h:
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
        * WebProcess/WebPage/WebPage.cpp:
        * WebProcess/WebPage/WebPage.h:

2098 2099 2100 2101 2102 2103
2014-01-14  Csaba Osztrogonác  <ossy@webkit.org>

        Speculative buildfix after r161999.

        * Shared/APIObject.h:

2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141
2014-01-09  Roger Fong  <roger_fong@apple.com>

        Add support for handling WebGL load policies.
        https://bugs.webkit.org/show_bug.cgi?id=126935
        <rdar://problem/15790448>.

        Reviewed by Brent Fulgham.

        Boiler plate code for sending messages to and from the UI and Web Process. 

        * UIProcess/API/C/WKAPICast.h:
        (WebKit::toWebGLLoadPolicy):
        * UIProcess/API/C/WKPageLoaderClient.h:
        * UIProcess/API/C/WKPageUIClient.h:
        * UIProcess/WebLoaderClient.cpp:
        (WebKit::WebLoaderClient::webGLLoadPolicy):
        * UIProcess/WebLoaderClient.h:
        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::webGLContextCreated):
        (WebKit::WebPageProxy::webGLPolicyForHost):
        * UIProcess/WebPageProxy.h:
        * UIProcess/WebPageProxy.messages.in:
        * UIProcess/WebUIClient.cpp:
        (WebKit::WebUIClient::webGLContextCreated):
        * UIProcess/WebUIClient.h:
        * UIProcess/mac/WebInspectorProxyMac.mm:
        (WebKit::WebInspectorProxy::platformCreateInspectorPage):
        * WebProcess/WebCoreSupport/WebChromeClient.cpp:
        (WebKit::WebChromeClient::webGLContextCreated):
        * WebProcess/WebCoreSupport/WebChromeClient.h:
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
        (WebKit::WebFrameLoaderClient::webGLPolicyForHost):
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
        * WebProcess/WebPage/WebPage.cpp: A sendSync is used here to get the webGLPolicyForHost message sent between the Web and UI process.
                                          In the future this will be replaced with a strategy is non-blocking.
        (WebKit::WebPage::getWebGLPolicyForHost):
        * WebProcess/WebPage/WebPage.h:

2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160
2014-01-14  Mark Rowe  <mrowe@apple.com>

        WebKit2 leaks sudden termination assertions when a page with unload handlers is closed.
        <https://webkit.org/b/126974> / <rdar://problem/15812954>

        When a page with an unload handler is loaded, the web process tells the UI process that it
        should disable sudden termination. However, when the page is closed the connection between
        the web and UI process is torn down before the web content has a chance to tell the UI
        process to reenable sudden termination.

        Reviewed by Anders Carlsson.

        * UIProcess/WebProcessProxy.cpp:
        (WebKit::WebProcessProxy::WebProcessProxy):
        (WebKit::WebProcessProxy::~WebProcessProxy): Balance any outstanding disableSuddenTermination calls.
        (WebKit::WebProcessProxy::enableSuddenTermination): Decrement the count.
        (WebKit::WebProcessProxy::disableSuddenTermination): Increment the count.
        * UIProcess/WebProcessProxy.h:

2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172
2014-01-14  Joseph Pecoraro  <pecoraro@apple.com>

        Web Inspector: For Remote Inspection link WebProcess's to their parent UIProcess
        https://bugs.webkit.org/show_bug.cgi?id=126995

        Reviewed by Timothy Hatcher.

        * WebProcess/WebCoreSupport/WebInspectorClient.h:
        * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
        (WebKit::WebInspectorClient::parentProcessIdentifier):
        WebProcesses are proxies for a parent UIProcess.

2173 2174 2175 2176 2177 2178 2179
2014-01-14  Tim Horton  <timothy_horton@apple.com>

        iOS WebKit2 build fixes, part 3

        * WebKit2.xcodeproj/project.pbxproj:
        Remove some files from the 'All' target that should never have been a part of it.

2180 2181 2182 2183 2184 2185 2186
2014-01-14  Tim Horton  <timothy_horton@apple.com>

        iOS WebKit2 build fixes, part 2

        * WebKit2.xcodeproj/project.pbxproj:
        Add some missing files.

2187 2188 2189 2190 2191 2192 2193 2194 2195
2014-01-14  Brian J. Burg  <burg@cs.washington.edu>

        Add ENABLE(WEB_REPLAY) feature flag to the build system
        https://bugs.webkit.org/show_bug.cgi?id=126949

        Reviewed by Joseph Pecoraro.

        * Configurations/FeatureDefines.xcconfig:

2196 2197 2198 2199 2200 2201 2202
2014-01-14  Tim Horton  <timothy_horton@apple.com>

        Move WKView.mm to WKViewIOS.mm as 161950 was supposed to do.

        * UIProcess/API/ios/WKView.mm: Removed.
        * UIProcess/API/ios/WKViewIOS.mm: Copied from UIProcess/API/ios/WKView.mm.

2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240
2014-01-14  Carlos Garcia Campos  <cgarcia@igalia.com>

        [GTK] Test /webkit2/WebKitWebContext/languages crashes with network process enabled
        https://bugs.webkit.org/show_bug.cgi?id=126130

        Reviewed by Anders Carlsson.

        We need to notify the network process when the user preferred
        languages have changed to update the SoupSession accordingly.

        * NetworkProcess/NetworkProcess.h: Add
        userPreferredLanguagesChanged when using soup network backend.
        * NetworkProcess/NetworkProcess.messages.in: Add
        UserPreferredLanguagesChanged message when using soup network
        backend.
        * NetworkProcess/soup/NetworkProcessSoup.cpp:
        (WebKit::NetworkProcess::userPreferredLanguagesChanged): Update
        the SoupSession to use the given languages.
        (WebKit::NetworkProcess::platformInitializeNetworkProcess): Call
        userPreferredLanguagesChanged() when initialization parameters
        contain languages.
        (WebKit::NetworkProcess::allowSpecificHTTPSCertificateForHost):
        Remove unnedded WebCore prefix.
        (WebKit::NetworkProcess::clearCacheForAllOrigins): Simplify using
        a single line.
        * Shared/Network/NetworkProcessCreationParameters.cpp:
        (WebKit::NetworkProcessCreationParameters::encode): Encode the
        languages vector.
        (WebKit::NetworkProcessCreationParameters::decode): Decode the
        languages vector.
        * Shared/Network/NetworkProcessCreationParameters.h:
        * UIProcess/WebContext.cpp:
        (WebKit::WebContext::languageChanged): Send a message also to the
        network process.
        * UIProcess/soup/WebContextSoup.cpp:
        (WebKit::WebContext::platformInitializeNetworkProcess): Set
        languages initial parameter.

2241 2242 2243 2244 2245 2246 2247 2248 2249 2250
2014-01-14  Carlos Garcia Campos  <cgarcia@igalia.com>

        [SOUP] SoupNetworkSession::setAcceptLanguages should receive a const reference
        https://bugs.webkit.org/show_bug.cgi?id=126966

        Reviewed by Gustavo Noronha Silva.

        * WebProcess/soup/WebProcessSoup.cpp:
        (WebKit::setSoupSessionAcceptLanguage): Use const Vector<String>&.

2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263
2014-01-14  Andreas Kling  <akling@apple.com>

        Remove deprecated DeferrableOneShotTimer constructor.
        <https://webkit.org/b/126984>

        Reviewed by Anders Carlsson.

        * WebProcess/Plugins/PluginView.h:
        * WebProcess/Plugins/PluginView.cpp:
        (WebKit::PluginView::pluginSnapshotTimerFired):

            Take the timer by reference so we can use the new constructor.

2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285
2014-01-13  Tim Horton  <timothy_horton@apple.com>

        iOS WebKit2 build fixes, part 1

        * Configurations/WebKit2.xcconfig:
        * NetworkProcess/NetworkResourceLoader.cpp:
        * NetworkProcess/NetworkResourceLoader.h:
        * NetworkProcess/RemoteNetworkingContext.h:
        * Shared/WebEventConversion.h:
        * UIProcess/API/ios/WKGeolocationProviderIOS.mm:
        * UIProcess/API/ios/WKInteractionView.mm:
        (-[WKTextPosition isEqual:]):
        * UIProcess/API/ios/WKViewIOS.mm: Renamed from Source/WebKit2/UIProcess/API/ios/WKView.mm.
        * UIProcess/ios/WebPageProxyIOS.mm:
        * UIProcess/ios/WebProcessProxyIOS.mm:
        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
        * WebProcess/WebPage/WebPage.h:
        * WebProcess/WebPage/ios/WebPageIOS.mm:
        (WebKit::WebPage::elementDidFocus):
        * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:

2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297
2014-01-13  Jinwoo Song  <jinwoo7.song@samsung.com>

        [EFL][WK2] Disable failing API tests
        https://bugs.webkit.org/show_bug.cgi?id=126960

        Reviewed by Gyuyoung Kim.

        Disable color picker test until bug 119120 is resolved.

        * UIProcess/API/efl/tests/test_ewk2_color_picker.cpp:
        (TEST_F):

2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310
2014-01-13  Jinwoo Song  <jinwoo7.song@samsung.com>

        [EFL][WK2] ewk_view_page_contents_get() API test is failing
        https://bugs.webkit.org/show_bug.cgi?id=126957

        Reviewed by Gyuyoung Kim.

        As the day in 'Date' field may be one digit or two digit,
        the data length may also be varied by one byte.

        * UIProcess/API/efl/tests/test_ewk2_view.cpp:
        (EWK2ViewTest::PageContentsAsMHTMLCallback):

2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331
2014-01-13  Commit Queue  <commit-queue@webkit.org>

        Unreviewed, rolling out r161939.
        http://trac.webkit.org/changeset/161939
        https://bugs.webkit.org/show_bug.cgi?id=126956

        didn't work with mac, of course (Requested by thorton on
        #webkit).

        * NetworkProcess/NetworkResourceLoader.cpp:
        * NetworkProcess/NetworkResourceLoader.h:
        * NetworkProcess/RemoteNetworkingContext.h:
        * Shared/WebEventConversion.h:
        * UIProcess/API/ios/WKGeolocationProviderIOS.mm:
        * UIProcess/API/ios/WKInteractionView.mm:
        (-[WKTextPosition isEqual:]):
        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
        * WebProcess/WebPage/WebPage.h:
        * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:

2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343
2014-01-13  Benjamin Poulain  <bpoulain@apple.com>

        Update WebPageProxyIOS's user agent string
        https://bugs.webkit.org/show_bug.cgi?id=126933

        Reviewed by Darin Adler.

        * UIProcess/ios/WebPageProxyIOS.mm:
        (WebKit::WebPageProxy::standardUserAgent):
        Send a more reasonable user agent. The previous one was forcing
        iOS 5.1's iPad user-agent.

2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372
2014-01-13  Tim Horton  <timothy_horton@apple.com>

        iOS WebKit2 build fixes

        * NetworkProcess/NetworkResourceLoader.cpp:
        * NetworkProcess/NetworkResourceLoader.h:
        Introduce/clarify some confusion about CFNETWORK vs. PLATFORM(IOS).

        * NetworkProcess/RemoteNetworkingContext.h:
        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
        Get rid of an override of something that doesn't exist anymore.

        * WebKit2.xcodeproj/project.pbxproj:
        Add some files. It's likely there are more missing, but this is a start.

        * Shared/WebEventConversion.h:
        * WebProcess/WebPage/WebPage.h:
        Use WebKitAdditions.

        * UIProcess/API/ios/WKGeolocationProviderIOS.mm:
        Something bizarre is happening with internal deprecation warnings.

        * UIProcess/API/ios/WKInteractionView.mm:
        (-[WKTextPosition isEqual:]):
        Fix a typo.

        * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
        Remove an override of something that doesn't exist anymore.

2373 2374 2375 2376 2377 2378
2014-01-13  Andy Estes  <aestes@apple.com>

        [iOS] Build Fix: Don't build the 'All-iOS' target on iOS. Just use 'All'.

        * Makefile:

2379 2380 2381 2382 2383 2384 2385 2386 2387
2014-01-13  Martin Robinson  <mrobinson@igalia.com>

        [CMake] Mark all dependency include paths and libraries as advanced variables
        https://bugs.webkit.org/show_bug.cgi?id=126504

        Reviewed by Daniel Bates.

        * CMakeLists.txt: Mark the LIBRT_LIBRARIES variable as advanced.

2388 2389 2390 2391 2392 2393 2394 2395 2396 2397
2014-01-13  Martin Robinson  <mrobinson@igalia.com>

        [GTK][CMake] Circular dependency in generation of WebKitEnumTypes.h
        https://bugs.webkit.org/show_bug.cgi?id=126912

        Reviewed by Daniel Bates.

        * PlatformGTK.cmake: Remove the circular dependency by generating WebKitEnumTypes.h with
        all installed headers except for WebKitEnumTypes.h itself.

2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423
2014-01-13  Andy Estes  <aestes@apple.com>

        [iOS] Exclude shims and PluginProcess.app from the WebKit2 build
        https://bugs.webkit.org/show_bug.cgi?id=126936

        Reviewed by Daniel Bates.

        * Configurations/All.xcconfig: Added. Excluded PluginProcess.app from
        being copied into WebKit2.framework on iOS.
        * Configurations/NetworkProcess.xcconfig: Excluded SecItemShim.dylib
        from being copied into NetworkProcess.app on iOS.
        * Configurations/PluginProcess.xcconfig: Excluded
        PluginProcessShim.dylib from being copied into PluginProcess.app and
        set SKIP_INSTALL to YES on iOS.
        * Configurations/PluginProcessShim.xcconfig: Added. Linked the shim
        against necessary frameworks on Mac.
        * Configurations/SecItemShim.xcconfig: Ditto.
        * Configurations/WebProcessShim.xcconfig: Ditto.
        * Configurations/WebContentProcess.xcconfig: Excluded
        WebProcessShim.dylib from being copied into WebProcess.app on iOS.
        * PluginProcess/mac/PluginProcessShim.mm: Added #if !PLATFORM(IOS) guards.
        * Shared/mac/CookieStorageShimLibrary.cpp: Ditto.
        * WebProcess/mac/SecItemShimLibrary.mm: Ditto.
        * WebKit2.xcodeproj/project.pbxproj: Removed Mac-only frameworks from
        the shims' 'Link Binary with Libraries' build phases. Added new xcconfigs.

2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444
2014-01-13  Jinwoo Song  <jinwoo7.song@samsung.com>

        [EFL][WK2] Replace usage of DEFINE_STATIC_LOCAL with NeverDestroyed
        https://bugs.webkit.org/show_bug.cgi?id=126882

        Reviewed by Gyuyoung Kim.

        * Shared/efl/ProcessExecutablePathEfl.cpp:
        (WebKit::executablePathOfWebProcess):
        (WebKit::executablePathOfPluginProcess):
        (WebKit::executablePathOfNetworkProcess):
        * UIProcess/API/efl/EwkView.cpp:
        (wkPageToEvasObjectMap):
        * UIProcess/API/efl/ewk_context.cpp:
        (contextMap):
        * UIProcess/API/efl/ewk_page_group.cpp:
        (pageGroupMap):
        * UIProcess/efl/TextCheckerClientEfl.cpp:
        (TextCheckerClientEfl::instance):
        * UIProcess/efl/TextCheckerClientEfl.h:

2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466