[BlackBerry] Handle testRunner.setCustomPolicyDelegate()
https://bugs.webkit.org/show_bug.cgi?id=117982 Patch by Carlos Garcia Campos <cargarcia@blackberry.com> on 2013-06-26 Reviewed by Rob Buis. Source/WebKit/blackberry: Take custom policy into account when deciding the policy for navigation actions. Fixes test fast/loader/onload-policy-ignore-for-frame.html. * Api/DumpRenderTreeClient.h: * WebCoreSupport/FrameLoaderClientBlackBerry.cpp: (WebCore::FrameLoaderClientBlackBerry::dispatchDecidePolicyForNavigationAction): If custom policy is enabled ignore the navigation action when it's not permissive. Tools: * DumpRenderTree/blackberry/DumpRenderTree.cpp: (BlackBerry::WebKit::DumpRenderTree::DumpRenderTree): Initialize m_policyDelegateIsPermissive. (BlackBerry::WebKit::DumpRenderTree::resetToConsistentStateBeforeTesting): Reset m_policyDelegateIsPermissive. (BlackBerry::WebKit::DumpRenderTree::setCustomPolicyDelegate): Set m_policyDelegateIsPermissive. * DumpRenderTree/blackberry/DumpRenderTreeBlackBerry.h: (BlackBerry::WebKit::DumpRenderTree::policyDelegateEnabled): Return whether custom policy is enabled. (BlackBerry::WebKit::DumpRenderTree::policyDelegateIsPermissive): Return whether custom policy is permissive. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152081 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Please register or sign in to comment