Mountain Lion build fix
https://bugs.webkit.org/show_bug.cgi?id=138631

Reviewed by Simon Fraser.

* platform/spi/cocoa/CoreTextSPI.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@175978 268f45cc-cd09-0410-ab3c-d52691b4dbfc
compositing/video/video-border-radius.html frequently times out on 10.8

Add an event listener before setting source, not after. This should not affect
anything, but seems worth a try.

* compositing/video/video-border-radius.html:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@175979 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] a page with video in optimized fullscreen is visible
https://bugs.webkit.org/show_bug.cgi?id=138632

Reviewed by Anders Carlsson.

Source/WebCore:

* platform/ios/WebVideoFullscreenInterfaceAVKit.h:
(WebCore::WebVideoFullscreenInterfaceAVKit::mode): Expose fullscreen mode.

Source/WebKit2:

* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _isPlayingFullscreenOptimizedVideo]): New.

* UIProcess/API/Cocoa/WKWebViewInternal.h:
* UIProcess/ios/PageClientImplIOS.mm:
(WebKit::PageClientImpl::isViewVisible): Return true if displaying optimized fullscreen
    video.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@175980 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] video is sometimes allowed to play from the background
https://bugs.webkit.org/show_bug.cgi?id=138522

Rubber-stamped by Jer Noble.

* platform/audio/MediaSession.cpp:
(WebCore::MediaSession::updateClientDataBuffering): Call MediaSessionManager::sessionCanLoadMedia.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@175981 268f45cc-cd09-0410-ab3c-d52691b4dbfc
DRT and WKTR touch disk cache
https://bugs.webkit.org/show_bug.cgi?id=138622

Reviewed by Geoffrey Garen.

Source/WebKit2:

Setting a cache model has a very strange behavior in WebKit2, where it ignores
sizes that were explicitly passed from UI process, and uses different ones. As
setCacheModel() is always called on launch, it always creates a non-empty disk cache.

The design needs to be improved one day, but for now, just make sure that we never
create a disk cache during testing.

* NetworkProcess/NetworkProcess.cpp:
(WebKit::NetworkProcess::NetworkProcess):
(WebKit::NetworkProcess::initializeNetworkProcess):
* NetworkProcess/NetworkProcess.h:
* NetworkProcess/cocoa/NetworkProcessCocoa.mm:
(WebKit::NetworkProcess::platformInitializeNetworkProcessCocoa):
(WebKit::NetworkProcess::platformSetCacheModel):
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::WebProcess):
(WebKit::WebProcess::initializeWebProcess):
* WebProcess/WebProcess.h:
* WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::WebProcess::platformSetCacheModel):
(WebKit::WebProcess::platformInitializeWebProcess):

Tools:

* DumpRenderTree/mac/DumpRenderTree.mm: (prepareConsistentTestingEnvironment):
Set a shared cache before calling -_switchNetworkLoaderToNewTestingSession, not after,
because this function uses the shared cache.

* WebKitTestRunner/mac/TestControllerMac.mm: (WTR::TestController::platformInitializeContext):
Create an empty shared cache to prevent a default one from being created on disk.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@175982 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Update artwork for some action menu items
https://bugs.webkit.org/show_bug.cgi?id=138634
<rdar://problem/18871984>

Reviewed by Anders Carlsson.

* Resources/OpenInNewWindowTemplate.pdf: Removed.
* UIProcess/mac/WKActionMenuController.mm:
(-[WKActionMenuController _createActionMenuItemForTag:]):
(webKitBundleImageNamed): Deleted.
* WebKit2.xcodeproj/project.pbxproj:
Get rid of our custom art, and use system art for two more items.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@175983 268f45cc-cd09-0410-ab3c-d52691b4dbfc
inspector/css/matched-style-properties.html and inspector/css/selector-specificity.html
are very flaky on Mac
https://bugs.webkit.org/show_bug.cgi?id=138636

Updated the results and comments for tests that don't work in production builds,
those are not quite relevant here.

* platform/mac/TestExpectations:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@175984 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Clients should be notified when a page preview finishes
https://bugs.webkit.org/show_bug.cgi?id=138635

Reviewed by Tim Horton.

Add SPI to WKView to allow clients to do any cleanup that might be necessary when the preview closes.

* UIProcess/API/Cocoa/WKViewPrivate.h:
Declare new SPI.

* UIProcess/API/mac/WKView.mm:
(-[WKView _finishPreviewingURL:withPreviewView:]):
Stub SPI implementation.

* UIProcess/mac/WKActionMenuController.h:
Add an ivar for the preview view controller.

* UIProcess/mac/WKActionMenuController.mm:
(-[WKActionMenuController _createPreviewPopoverForURL:originRect:]):
Update to use the ivar.
(-[WKActionMenuController _clearPreviewPopover]):
Send -_finishPreviewingURL:withPreviewView: and nil out the view controller ivar.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@175985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
compositing/video/video-border-radius.html frequently times out on 10.8

Add an error even listener, to at hopefully get a proper failure when this happens.

* compositing/video/video-border-radius.html:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@175986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
inspector/css/matched-style-properties.html and inspector/css/selector-specificity.html
are very flaky on Mac
https://bugs.webkit.org/show_bug.cgi?id=138636

Bring back Crash expectattion, as this is how it's reported on WK1. Also added one more test.

* platform/mac/TestExpectations:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@175987 268f45cc-cd09-0410-ab3c-d52691b4dbfc
fast/text/international/hindi-spacing.html and transforms/2d/hindi-rotated.html are
flaky on Yosemite
https://bugs.webkit.org/show_bug.cgi?id=138075

* platform/mac/TestExpectations: Mark them as such.



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