diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
commit | 1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch) | |
tree | 4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/bindings/js/JSHTMLIFrameElementCustom.cpp | |
parent | 9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff) | |
download | external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2 |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/bindings/js/JSHTMLIFrameElementCustom.cpp')
-rw-r--r-- | WebCore/bindings/js/JSHTMLIFrameElementCustom.cpp | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/WebCore/bindings/js/JSHTMLIFrameElementCustom.cpp b/WebCore/bindings/js/JSHTMLIFrameElementCustom.cpp index 0f9f5a5..3f27462 100644 --- a/WebCore/bindings/js/JSHTMLIFrameElementCustom.cpp +++ b/WebCore/bindings/js/JSHTMLIFrameElementCustom.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007 Apple Inc. All rights reserved. + * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -29,35 +29,27 @@ #include "config.h" #include "JSHTMLIFrameElement.h" -#include "Document.h" #include "CSSHelper.h" +#include "Document.h" #include "HTMLIFrameElement.h" -#include "PlatformString.h" -#include "kjs_binding.h" -#include "kjs_dom.h" -#ifdef ANDROID_JAVASCRIPT_SECURITY -#include "KURL.h" -#endif +#include "JSDOMBinding.h" + +using namespace JSC; namespace WebCore { -void JSHTMLIFrameElement::setSrc(KJS::ExecState* exec, KJS::JSValue* value) +void JSHTMLIFrameElement::setSrc(ExecState* exec, JSValue* value) { HTMLIFrameElement* imp = static_cast<HTMLIFrameElement*>(impl()); String srcValue = valueToStringWithNullCheck(exec, value); -#ifdef ANDROID_JAVASCRIPT_SECURITY if (protocolIs(parseURL(srcValue), "javascript")) { -#else - if (parseURL(srcValue).startsWith("javascript:", false)) { -#endif if (!checkNodeSecurity(exec, imp->contentDocument())) return; } imp->setSrc(srcValue); - return; } } // namespace WebCore |