https://bugs.webkit.org/show_bug.cgi?id=86748
Reverted r117428.
.:
* Source/autotools/symbols.filter:
Source/WebCore:
* testing/InternalSettings.cpp:
(WebCore::InternalSettings::setMediaPlaybackRequiresUserGesture):
* testing/InternalSettings.h:
(InternalSettings):
* testing/InternalSettings.idl:
Source/WebKit/chromium:
* public/WebView.h:
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::setDomainRelaxationForbidden):
(WebKit):
* src/WebViewImpl.h:
(WebViewImpl):
Source/WebKit/gtk:
* WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
(DumpRenderTreeSupportGtk::setDomainRelaxationForbiddenForURLScheme):
* WebCoreSupport/DumpRenderTreeSupportGtk.h:
(DumpRenderTreeSupportGtk):
Source/WebKit/mac:
* WebKit.order:
* WebView/WebView.mm:
(+[WebView _setDomainRelaxationForbidden:forURLScheme:]):
* WebView/WebViewPrivate.h:
Source/WebKit/qt:
* WebCoreSupport/DumpRenderTreeSupportQt.cpp:
(DumpRenderTreeSupportQt::setDomainRelaxationForbiddenForURLScheme):
* WebCoreSupport/DumpRenderTreeSupportQt.h:
Source/WebKit/win:
* Interfaces/IWebViewPrivate.idl:
* WebView.cpp:
(WebView::setDomainRelaxationForbiddenForURLScheme):
* WebView.h:
(WebView):
Source/WebKit2:
* win/WebKit2.def:
Tools:
* DumpRenderTree/LayoutTestController.cpp:
(setDomainRelaxationForbiddenForURLSchemeCallback):
(LayoutTestController::staticFunctions):
* DumpRenderTree/LayoutTestController.h:
(LayoutTestController):
* DumpRenderTree/blackberry/LayoutTestControllerBlackBerry.cpp:
(LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
* DumpRenderTree/chromium/LayoutTestController.cpp:
(LayoutTestController::LayoutTestController):
(LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
* DumpRenderTree/chromium/LayoutTestController.h:
(LayoutTestController):
* DumpRenderTree/efl/LayoutTestControllerEfl.cpp:
(LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
* DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
(LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
* DumpRenderTree/mac/LayoutTestControllerMac.mm:
(LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
* DumpRenderTree/qt/LayoutTestControllerQt.cpp:
(LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
* DumpRenderTree/qt/LayoutTestControllerQt.h:
(LayoutTestController):
* DumpRenderTree/win/LayoutTestControllerWin.cpp:
(LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
* DumpRenderTree/wx/LayoutTestControllerWx.cpp:
(LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
LayoutTests:
* http/tests/security/setDomainRelaxationForbiddenForURLScheme.html:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117460
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-05-17 Dan Bernstein <mitz@apple.com>
+
+ REGRESSION (r117428): WebKit API/SPI was removed
+ https://bugs.webkit.org/show_bug.cgi?id=86748
+
+ Reverted r117428.
+
+ * Source/autotools/symbols.filter:
+
2012-05-17 Thiago Marcos P. Santos <thiago.santos@intel.com>
[EFL] Fix link error caused by not directly linking with edbus
+2012-05-17 Dan Bernstein <mitz@apple.com>
+
+ REGRESSION (r117428): WebKit API/SPI was removed
+ https://bugs.webkit.org/show_bug.cgi?id=86748
+
+ Reverted r117428.
+
+ * http/tests/security/setDomainRelaxationForbiddenForURLScheme.html:
+
2012-05-17 Zan Dobersek <zandobersek@gmail.com>
Unreviewed, adding GTK baselines for new tests added in r115641, r116975 and r117339.
log("Forbidding domain relaxation for the http: scheme");
- if (window.internals)
- internals.settings.setDomainRelaxationForbiddenForURLScheme(true, "http");
+ if (window.layoutTestController)
+ layoutTestController.setDomainRelaxationForbiddenForURLScheme(true, "http");
var exception;
try {
domainShouldBe("0.0.1");
- if (window.internals)
- internals.settings.setDomainRelaxationForbiddenForURLScheme(false, "http");
+ if (window.layoutTestController)
+ layoutTestController.setDomainRelaxationForbiddenForURLScheme(false, "http");
log("Allowing domain relaxation for the http: scheme");
log("Forbidding domain relaxation for the not-http: scheme");
- if (window.internals)
- internals.settings.setDomainRelaxationForbiddenForURLScheme(true, "not-http");
+ if (window.layoutTestController)
+ layoutTestController.setDomainRelaxationForbiddenForURLScheme(true, "not-http");
document.domain = "1";
domainShouldBe("1");
log("Allowing domain relaxation for the not-http: scheme");
- if (window.internals)
- internals.settings.setDomainRelaxationForbiddenForURLScheme(false, "not-http");
+ if (window.layoutTestController)
+ layoutTestController.setDomainRelaxationForbiddenForURLScheme(false, "not-http");
</script>
</body>
</html>
+2012-05-17 Dan Bernstein <mitz@apple.com>
+
+ REGRESSION (r117428): WebKit API/SPI was removed
+ https://bugs.webkit.org/show_bug.cgi?id=86748
+
+ Reverted r117428.
+
+ * testing/InternalSettings.cpp:
+ (WebCore::InternalSettings::setMediaPlaybackRequiresUserGesture):
+ * testing/InternalSettings.h:
+ (InternalSettings):
+ * testing/InternalSettings.idl:
+
2012-05-17 Pavel Feldman <pfeldman@chromium.org>
Web Inspector: create SourceFrames with content providers.
#include "LocaleToScriptMapping.h"
#include "Page.h"
#include "RuntimeEnabledFeatures.h"
-#include "SchemeRegistry.h"
#include "Settings.h"
#if ENABLE(INPUT_TYPE_COLOR)
InternalSettingsGuardForSettings();
settings()->setMediaPlaybackRequiresUserGesture(enabled);
}
-
-void InternalSettings::setDomainRelaxationForbiddenForURLScheme(bool forbidden, const String& urlScheme, ExceptionCode&)
-{
- SchemeRegistry::setDomainRelaxationForbiddenForURLScheme(forbidden, urlScheme);
-}
}
bool scrollAnimatorEnabled(ExceptionCode&);
void setCSSExclusionsEnabled(bool enabled, ExceptionCode&);
void setMediaPlaybackRequiresUserGesture(bool, ExceptionCode&);
- void setDomainRelaxationForbiddenForURLScheme(bool forbidden, const String& urlScheme, ExceptionCode&);
void restoreTo(Settings*);
boolean scrollAnimatorEnabled() raises(DOMException);
void setCSSExclusionsEnabled(in boolean enabled) raises(DOMException);
void setMediaPlaybackRequiresUserGesture(in boolean enabled) raises(DOMException);
- void setDomainRelaxationForbiddenForURLScheme(in boolean forbidden, in DOMString urlScheme) raises(DOMException);
};
}
+2012-05-17 Dan Bernstein <mitz@apple.com>
+
+ REGRESSION (r117428): WebKit API/SPI was removed
+ https://bugs.webkit.org/show_bug.cgi?id=86748
+
+ Reverted r117428.
+
+ * public/WebView.h:
+ * src/WebViewImpl.cpp:
+ (WebKit::WebViewImpl::setDomainRelaxationForbidden):
+ (WebKit):
+ * src/WebViewImpl.h:
+ (WebViewImpl):
+
2012-05-17 Gyuyoung Kim <gyuyoung.kim@samsung.com>
Convert setDomainRelaxationForbiddenForURLScheme to use InternalSettings interface
virtual bool isActive() const = 0;
virtual void setIsActive(bool) = 0;
+ // Allows disabling domain relaxation.
+ virtual void setDomainRelaxationForbidden(bool, const WebString& scheme) = 0;
+
// Closing -------------------------------------------------------------
return (page() && page()->focusController()) ? page()->focusController()->isActive() : false;
}
+void WebViewImpl::setDomainRelaxationForbidden(bool forbidden, const WebString& scheme)
+{
+ SchemeRegistry::setDomainRelaxationForbiddenForURLScheme(forbidden, String(scheme));
+}
+
void WebViewImpl::setScrollbarColors(unsigned inactiveColor,
unsigned activeColor,
unsigned trackColor) {
virtual void setTabKeyCyclesThroughElements(bool value);
virtual bool isActive() const;
virtual void setIsActive(bool value);
+ virtual void setDomainRelaxationForbidden(bool, const WebString& scheme);
virtual bool dispatchBeforeUnloadEvent();
virtual void dispatchUnloadEvent();
virtual WebFrame* mainFrame();
+2012-05-17 Dan Bernstein <mitz@apple.com>
+
+ REGRESSION (r117428): WebKit API/SPI was removed
+ https://bugs.webkit.org/show_bug.cgi?id=86748
+
+ Reverted r117428.
+
+ * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
+ (DumpRenderTreeSupportGtk::setDomainRelaxationForbiddenForURLScheme):
+ * WebCoreSupport/DumpRenderTreeSupportGtk.h:
+ (DumpRenderTreeSupportGtk):
+
2012-05-17 Gyuyoung Kim <gyuyoung.kim@samsung.com>
Convert setDomainRelaxationForbiddenForURLScheme to use InternalSettings interface
#include "RenderListItem.h"
#include "RenderTreeAsText.h"
#include "RenderView.h"
+#include "SchemeRegistry.h"
#include "SecurityOrigin.h"
#include "SecurityPolicy.h"
#include "Settings.h"
WebKitMutationObserver::deliverAllMutations();
#endif
}
+
+void DumpRenderTreeSupportGtk::setDomainRelaxationForbiddenForURLScheme(bool forbidden, const char* urlScheme)
+{
+ SchemeRegistry::setDomainRelaxationForbiddenForURLScheme(forbidden, String::fromUTF8(urlScheme));
+}
static void setPageCacheSupportsPlugins(WebKitWebView*, bool enabled);
static void deliverAllMutationsIfNecessary();
+ static void setDomainRelaxationForbiddenForURLScheme(bool forbidden, const char* urlScheme);
private:
static bool s_drtRun;
+2012-05-17 Dan Bernstein <mitz@apple.com>
+
+ REGRESSION (r117428): WebKit API/SPI was removed
+ https://bugs.webkit.org/show_bug.cgi?id=86748
+
+ Reverted r117428.
+
+ * WebKit.order:
+ * WebView/WebView.mm:
+ (+[WebView _setDomainRelaxationForbidden:forURLScheme:]):
+ * WebView/WebViewPrivate.h:
+
2012-05-17 Gyuyoung Kim <gyuyoung.kim@samsung.com>
Convert setDomainRelaxationForbiddenForURLScheme to use InternalSettings interface
-[NSURL(WebNSURLExtras) _web_originalData]
_WebLocalizedString
+[WebView(WebPrivate) _registerURLSchemeAsSecure:]
++[WebView(WebPrivate) _setDomainRelaxationForbidden:forURLScheme:]
-[WebPreferences(WebPrivate) setDeveloperExtrasEnabled:]
-[WebPreferences _setBoolValue:forKey:]
+[NSPasteboard(WebExtras) _web_dragTypesForURL]
frame->animation()->resumeAnimations();
}
++ (void)_setDomainRelaxationForbidden:(BOOL)forbidden forURLScheme:(NSString *)scheme
+{
+ SchemeRegistry::setDomainRelaxationForbiddenForURLScheme(forbidden, scheme);
+}
+
+ (void)_registerURLSchemeAsSecure:(NSString *)scheme
{
SchemeRegistry::registerURLSchemeAsSecure(scheme);
*/
- (void)setCSSAnimationsSuspended:(BOOL)suspended;
++ (void)_setDomainRelaxationForbidden:(BOOL)forbidden forURLScheme:(NSString *)scheme;
+ (void)_registerURLSchemeAsSecure:(NSString *)scheme;
+ (void)_registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing:(NSString *)scheme;
+ (void)_registerURLSchemeAsAllowingDatabaseAccessInPrivateBrowsing:(NSString *)scheme;
+2012-05-17 Dan Bernstein <mitz@apple.com>
+
+ REGRESSION (r117428): WebKit API/SPI was removed
+ https://bugs.webkit.org/show_bug.cgi?id=86748
+
+ Reverted r117428.
+
+ * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
+ (DumpRenderTreeSupportQt::setDomainRelaxationForbiddenForURLScheme):
+ * WebCoreSupport/DumpRenderTreeSupportQt.h:
+
2012-05-17 Tsarko Yaroslav <eriktsarko@googlemail.com>
Reviewed by Yury Semikhatsky.
#include "PrintContext.h"
#include "RenderListItem.h"
#include "RenderTreeAsText.h"
+#include "SchemeRegistry.h"
#include "ScriptController.h"
#include "ScriptSourceCode.h"
#include "ScriptValue.h"
SecurityPolicy::resetOriginAccessWhitelists();
}
+void DumpRenderTreeSupportQt::setDomainRelaxationForbiddenForURLScheme(bool forbidden, const QString& scheme)
+{
+ SchemeRegistry::setDomainRelaxationForbiddenForURLScheme(forbidden, scheme);
+}
+
void DumpRenderTreeSupportQt::setCaretBrowsingEnabled(QWebPage* page, bool value)
{
page->handle()->page->settings()->setCaretBrowsingEnabled(value);
static void suspendActiveDOMObjects(QWebFrame* frame);
static void resumeActiveDOMObjects(QWebFrame* frame);
+ static void setDomainRelaxationForbiddenForURLScheme(bool forbidden, const QString& scheme);
static void setFrameFlatteningEnabled(QWebPage*, bool);
static void setCaretBrowsingEnabled(QWebPage* page, bool value);
static void setAuthorAndUserStylesEnabled(QWebPage*, bool);
+2012-05-17 Dan Bernstein <mitz@apple.com>
+
+ REGRESSION (r117428): WebKit API/SPI was removed
+ https://bugs.webkit.org/show_bug.cgi?id=86748
+
+ Reverted r117428.
+
+ * Interfaces/IWebViewPrivate.idl:
+ * WebView.cpp:
+ (WebView::setDomainRelaxationForbiddenForURLScheme):
+ * WebView.h:
+ (WebView):
+
2012-05-17 Gyuyoung Kim <gyuyoung.kim@samsung.com>
Convert setDomainRelaxationForbiddenForURLScheme to use InternalSettings interface
HRESULT geolocationDidChangePosition([in] IWebGeolocationPosition* position);
HRESULT geolocationDidFailWithError([in] IWebError* error);
+ HRESULT setDomainRelaxationForbiddenForURLScheme([in] BOOL forbidden, [in] BSTR scheme);
+
HRESULT registerURLSchemeAsSecure([in] BSTR scheme);
HRESULT nextDisplayIsSynchronous();
return S_OK;
}
+HRESULT WebView::setDomainRelaxationForbiddenForURLScheme(BOOL forbidden, BSTR scheme)
+{
+ SchemeRegistry::setDomainRelaxationForbiddenForURLScheme(forbidden, String(scheme, SysStringLen(scheme)));
+ return S_OK;
+}
+
HRESULT WebView::registerURLSchemeAsSecure(BSTR scheme)
{
SchemeRegistry::registerURLSchemeAsSecure(toString(scheme));
virtual HRESULT STDMETHODCALLTYPE geolocationDidChangePosition(IWebGeolocationPosition* position);
virtual HRESULT STDMETHODCALLTYPE geolocationDidFailWithError(IWebError* error);
+ virtual HRESULT STDMETHODCALLTYPE setDomainRelaxationForbiddenForURLScheme(BOOL forbidden, BSTR scheme);
virtual HRESULT STDMETHODCALLTYPE registerURLSchemeAsSecure(BSTR);
virtual HRESULT STDMETHODCALLTYPE registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing(BSTR);
virtual HRESULT STDMETHODCALLTYPE registerURLSchemeAsAllowingDatabaseAccessInPrivateBrowsing(BSTR);
+2012-05-17 Dan Bernstein <mitz@apple.com>
+
+ REGRESSION (r117428): WebKit API/SPI was removed
+ https://bugs.webkit.org/show_bug.cgi?id=86748
+
+ Reverted r117428.
+
+ * win/WebKit2.def:
+
2012-05-17 Gyuyoung Kim <gyuyoung.kim@samsung.com>
Convert setDomainRelaxationForbiddenForURLScheme to use InternalSettings interface
?isPageBoxVisible@Document@WebCore@@QAE_NH@Z
?suspendAnimations@AnimationController@WebCore@@QAEXXZ
?resumeAnimations@AnimationController@WebCore@@QAEXXZ
- ?setDomainRelaxationForbiddenForURLScheme@SchemeRegistry@WebCore@@SAX_NABVString@WTF@@@Z
_ZN7WebCore8Document34webkitWillExitFullScreenForElementEPNS_7ElementE;
_ZN7WebCore8Document35webkitWillEnterFullScreenForElementEPNS_7ElementE;
_ZN7WebCore17JSDOMGlobalObject6s_infoE;
-_ZN7WebCore14SchemeRegistry40setDomainRelaxationForbiddenForURLSchemeEbRKN3WTF6StringE;
local:
_Z*;
cti*;
+2012-05-17 Dan Bernstein <mitz@apple.com>
+
+ REGRESSION (r117428): WebKit API/SPI was removed
+ https://bugs.webkit.org/show_bug.cgi?id=86748
+
+ Reverted r117428.
+
+ * DumpRenderTree/LayoutTestController.cpp:
+ (setDomainRelaxationForbiddenForURLSchemeCallback):
+ (LayoutTestController::staticFunctions):
+ * DumpRenderTree/LayoutTestController.h:
+ (LayoutTestController):
+ * DumpRenderTree/blackberry/LayoutTestControllerBlackBerry.cpp:
+ (LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
+ * DumpRenderTree/chromium/LayoutTestController.cpp:
+ (LayoutTestController::LayoutTestController):
+ (LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
+ * DumpRenderTree/chromium/LayoutTestController.h:
+ (LayoutTestController):
+ * DumpRenderTree/efl/LayoutTestControllerEfl.cpp:
+ (LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
+ * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
+ (LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
+ * DumpRenderTree/mac/LayoutTestControllerMac.mm:
+ (LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
+ * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
+ (LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
+ * DumpRenderTree/qt/LayoutTestControllerQt.h:
+ (LayoutTestController):
+ * DumpRenderTree/win/LayoutTestControllerWin.cpp:
+ (LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
+ * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
+ (LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
+
2012-05-17 Li Yin <li.yin@intel.com>
[chromium] run-webkit-tests can't work on ubuntu 12.04
return JSValueMakeUndefined(context);
}
+static JSValueRef setDomainRelaxationForbiddenForURLSchemeCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
+{
+ // Has Mac and Windows implementation
+ if (argumentCount < 2)
+ return JSValueMakeUndefined(context);
+
+ LayoutTestController* controller = static_cast<LayoutTestController*>(JSObjectGetPrivate(thisObject));
+
+ bool forbidden = JSValueToBoolean(context, arguments[0]);
+ JSRetainPtr<JSStringRef> scheme(Adopt, JSValueToStringCopy(context, arguments[1], 0));
+ controller->setDomainRelaxationForbiddenForURLScheme(forbidden, scheme.get());
+
+ return JSValueMakeUndefined(context);
+}
+
static JSValueRef setMockDeviceOrientationCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
{
if (argumentCount < 6)
{ "setDatabaseQuota", setDatabaseQuotaCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
{ "setDeferMainResourceDataLoad", setDeferMainResourceDataLoadCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
{ "setDefersLoading", setDefersLoadingCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
+ { "setDomainRelaxationForbiddenForURLScheme", setDomainRelaxationForbiddenForURLSchemeCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
{ "setEditingBehavior", setEditingBehaviorCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
{ "setFrameFlatteningEnabled", setFrameFlatteningEnabledCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
{ "setGeolocationPermission", setGeolocationPermissionCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
void setCacheModel(int);
void setCustomPolicyDelegate(bool setDelegate, bool permissive);
void setDatabaseQuota(unsigned long long quota);
+ void setDomainRelaxationForbiddenForURLScheme(bool forbidden, JSStringRef scheme);
void setDefersLoading(bool);
void setIconDatabaseEnabled(bool iconDatabaseEnabled);
void setJavaScriptProfilingEnabled(bool profilingEnabled);
#include "OwnArrayPtr.h"
#include "Page.h"
#include "RenderTreeAsText.h"
+#include "SchemeRegistry.h"
#include "SecurityOrigin.h"
#include "SecurityPolicy.h"
#include "Settings.h"
WebCore::DatabaseTracker::tracker().setQuota(mainFrame->document()->securityOrigin(), quota);
}
+void LayoutTestController::setDomainRelaxationForbiddenForURLScheme(bool forbidden, JSStringRef scheme)
+{
+ WebCore::SchemeRegistry::setDomainRelaxationForbiddenForURLScheme(forbidden, jsStringRefToWebCoreString(scheme));
+}
+
void LayoutTestController::setIconDatabaseEnabled(bool iconDatabaseEnabled)
{
UNUSED_PARAM(iconDatabaseEnabled);
bindMethod("setCustomPolicyDelegate", &LayoutTestController::setCustomPolicyDelegate);
bindMethod("setDatabaseQuota", &LayoutTestController::setDatabaseQuota);
bindMethod("setDeferMainResourceDataLoad", &LayoutTestController::setDeferMainResourceDataLoad);
+ bindMethod("setDomainRelaxationForbiddenForURLScheme", &LayoutTestController::setDomainRelaxationForbiddenForURLScheme);
bindMethod("setEditingBehavior", &LayoutTestController::setEditingBehavior);
bindMethod("setAudioData", &LayoutTestController::setAudioData);
bindMethod("setGeolocationPermission", &LayoutTestController::setGeolocationPermission);
}
#endif
+void LayoutTestController::setDomainRelaxationForbiddenForURLScheme(const CppArgumentList& arguments, CppVariant* result)
+{
+ if (arguments.size() != 2 || !arguments[0].isBool() || !arguments[1].isString())
+ return;
+ m_shell->webView()->setDomainRelaxationForbidden(cppVariantToBool(arguments[0]), cppVariantToWebString(arguments[1]));
+}
+
void LayoutTestController::setDeferMainResourceDataLoad(const CppArgumentList& arguments, CppVariant* result)
{
if (arguments.size() == 1)
void simulateDesktopNotificationClick(const CppArgumentList&, CppVariant*);
#endif
+ void setDomainRelaxationForbiddenForURLScheme(const CppArgumentList&, CppVariant*);
void setDeferMainResourceDataLoad(const CppArgumentList&, CppVariant*);
void setEditingBehavior(const CppArgumentList&, CppVariant*);
notImplemented();
}
+void LayoutTestController::setDomainRelaxationForbiddenForURLScheme(bool, JSStringRef)
+{
+ notImplemented();
+}
+
void LayoutTestController::goBack()
{
ewk_frame_back(browser->mainFrame());
// FIXME: implement
}
+void LayoutTestController::setDomainRelaxationForbiddenForURLScheme(bool forbidden, JSStringRef scheme)
+{
+ GOwnPtr<gchar> urlScheme(JSStringCopyUTF8CString(scheme));
+ DumpRenderTreeSupportGtk::setDomainRelaxationForbiddenForURLScheme(forbidden, urlScheme.get());
+}
+
void LayoutTestController::goBack()
{
WebKitWebView* webView = webkit_web_frame_get_web_view(mainFrame);
[[mainFrame webView] setDefersCallbacks:defers];
}
+void LayoutTestController::setDomainRelaxationForbiddenForURLScheme(bool forbidden, JSStringRef scheme)
+{
+ RetainPtr<CFStringRef> schemeCFString(AdoptCF, JSStringCopyCFString(kCFAllocatorDefault, scheme));
+ [WebView _setDomainRelaxationForbidden:forbidden forURLScheme:(NSString *)schemeCFString.get()];
+}
+
void LayoutTestController::setMockDeviceOrientation(bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma)
{
// DumpRenderTree configured the WebView to use WebDeviceOrientationProviderMock.
m_drt->webPage()->settings()->setUserStyleSheetUrl(QUrl());
}
+void LayoutTestController::setDomainRelaxationForbiddenForURLScheme(bool forbidden, const QString& scheme)
+{
+ DumpRenderTreeSupportQt::setDomainRelaxationForbiddenForURLScheme(forbidden, scheme);
+}
+
int LayoutTestController::workerThreadCount()
{
return DumpRenderTreeSupportQt::workerThreadCount();
void overridePreference(const QString& name, const QVariant& value);
void setUserStyleSheetLocation(const QString& url);
void setUserStyleSheetEnabled(bool enabled);
+ void setDomainRelaxationForbiddenForURLScheme(bool forbidden, const QString& scheme);
int workerThreadCount();
int pageNumberForElementById(const QString& id, float width = 0, float height = 0);
int numberOfPages(float width = maxViewWidth, float height = maxViewHeight);
// FIXME: implement to enable loader/navigation-while-deferring-loads.html
}
+void LayoutTestController::setDomainRelaxationForbiddenForURLScheme(bool forbidden, JSStringRef scheme)
+{
+ COMPtr<IWebViewPrivate> webView;
+ if (FAILED(WebKitCreateInstance(__uuidof(WebView), 0, __uuidof(webView), reinterpret_cast<void**>(&webView))))
+ return;
+
+ BSTR schemeBSTR = JSStringCopyBSTR(scheme);
+ webView->setDomainRelaxationForbiddenForURLScheme(forbidden, schemeBSTR);
+ SysFreeString(schemeBSTR);
+}
+
void LayoutTestController::setAppCacheMaximumSize(unsigned long long size)
{
printf("ERROR: LayoutTestController::setAppCacheMaximumSize() not implemented\n");
// FIXME: implement to enable loader/navigation-while-deferring-loads.html
}
+void LayoutTestController::setDomainRelaxationForbiddenForURLScheme(bool, JSStringRef)
+{
+ // FIXME: implement
+}
+
void LayoutTestController::setAppCacheMaximumSize(unsigned long long size)
{
// FIXME: implement