glReadPixels should use UNSIGNED_BYTE on iOS
https://bugs.webkit.org/show_bug.cgi?id=127148

Reviewed by Benjamin Poulain.

We were incorrectly mapping GL_UNSIGNED_INT_8_8_8_8_REV to
GL_RGBA on iOS. It's only used in glReadPixels, so should
be GL_UNSIGNED_BYTE.

This is covered by lots of tests in the Khronos test suite,
that now pass on iOS.

* platform/graphics/ios/GraphicsContext3DIOS.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162160 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove FINAL macro
https://bugs.webkit.org/show_bug.cgi?id=127149

Reviewed by Tim Horton.

* wtf/Compiler.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162161 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] Fix UIKit build warning about undefined macro ENABLE_NETSCAPE_PLUGIN_API

* WebView/WebFramePrivate.h: Wrap use of ENABLE_NETSCAPE_PLUGIN_API in TARGET_OS_IPHONE.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162162 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix build after r162161. One FINAL was still present.

* Shared/cf/KeyedDecoder.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162163 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix the iOS build after r162150.

* platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::GraphicsContext::platformInit):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162164 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Use final instead of FINAL

Unreviewed build fix.

Source/WebKit/efl:

* WebCoreSupport/ProgressTrackerClientEfl.h:

Source/WebKit/gtk:

* WebCoreSupport/ProgressTrackerClientGtk.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162165 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Mac] [iOS] Add support for CFHTTPCookieStorageAcceptPolicyExclusivelyFromMainDocumentDomain
https://bugs.webkit.org/show_bug.cgi?id=127139

Reviewed by Brady Eidson.

Source/WebCore: 

* platform/ios/WebCoreSystemInterfaceIOS.mm:
* platform/mac/WebCoreSystemInterface.h:
* platform/mac/WebCoreSystemInterface.mm:
Pass first party URL down, because reading cookies depends on it when this policy
in in action.

* platform/network/cf/CookieJarCFNet.cpp:
(WebCore::copyCookiesForURLWithFirstPartyURL):
(WebCore::cookiesForDOM):
(WebCore::cookieRequestHeaderFieldValue):
(WebCore::cookiesEnabled):
(WebCore::getRawCookies):
Use a new CFNetwork API that takes first party URL.

* platform/network/mac/CookieJarMac.mm:
(WebCore::cookiesForDOM):
(WebCore::cookieRequestHeaderFieldValue):
(WebCore::cookiesEnabled):
(WebCore::getRawCookies):
(WebCore::deleteCookie):
Pass first party URL (and null in deleteCookie, as there is none).

* platform/network/mac/ResourceHandleMac.mm:
(WebCore::ResourceHandle::platformLoadResourceSynchronously):
Removed a call to shouldRelaxThirdPartyCookiePolicy(), which no longer exists
in trunk.

Source/WebKit/mac: 

* WebView/WebPreferences.mm: (-[WebPreferences _synchronizeWebStoragePolicyWithCookiePolicy]):
Handle the new case.

Source/WebKit2: 

* 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.

WebKitLibraries: 

* WebKitSystemInterface.h:
* libWebKitSystemInterfaceLion.a:
* libWebKitSystemInterfaceMavericks.a:
* libWebKitSystemInterfaceMountainLion.a:
Update WebKitSystemInterface.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162166 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Another iOS build fix.

* platform/audio/ios/MediaSessionManagerIOS.mm:
(WebCore::m_objcObserver):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162169 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Build fix.

* platform/network/cf/CookieJarCFNet.cpp: Remove a spurious semicolon.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162170 268f45cc-cd09-0410-ab3c-d52691b4dbfc
More non-Mac build fix.

* platform/network/cf/CookieJarCFNet.cpp:
(WebCore::copyCookiesForURLWithFirstPartyURL):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162171 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove Nix from WTF
https://bugs.webkit.org/show_bug.cgi?id=127150

Patch by Benjamin Poulain <bpoulain@apple.com> on 2014-01-16
Reviewed by Alexey Proskuryakov.

* wtf/DisallowCType.h:
* wtf/FeatureDefines.h:
* wtf/Platform.h:
* wtf/PlatformNix.cmake: Removed.
* wtf/nix: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162172 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] MobileSafari build fix. Declare iOS-specific method mainFrameIconURL

For now, add mainFrameIconURL() to WebView.h. We should further investigate its
usage and API/SPI status.

* WebView/WebView.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162173 268f45cc-cd09-0410-ab3c-d52691b4dbfc
IDB: delete object store support
<rdar://problem/15779641> and https://bugs.webkit.org/show_bug.cgi?id=127123

Reviewed by Alexey Proskuryakov.

Source/WebCore:

* Modules/indexeddb/IDBTransactionBackendOperations.h:
(WebCore::DeleteObjectStoreOperation::transaction):

Source/WebKit2:

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:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162174 268f45cc-cd09-0410-ab3c-d52691b4dbfc