Fix for <rdar://problem/
5620151> Disable JavaScript for SVG as
image for <img> and CSS images
* platform/graphics/svg/SVGImage.cpp:
(WebCore::SVGImage::dataChanged): When we create the empty clients,
explicitly disable JavaScript in the settings.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28193
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-11-29 Beth Dakin <bdakin@apple.com>
+
+ Reviewed by Geoff.
+
+ Fix for <rdar://problem/5620151> Disable JavaScript for SVG as
+ image for <img> and CSS images
+
+ * platform/graphics/svg/SVGImage.cpp:
+ (WebCore::SVGImage::dataChanged): When we create the empty clients,
+ explicitly disable JavaScript in the settings.
+
2007-11-29 Brady Eidson <beidson@apple.com>
Reviewed by Anders
#include "SVGLength.h"
#include "SVGRenderSupport.h"
#include "SVGSVGElement.h"
+#include "Settings.h"
#include "SVGImageEmptyClients.h"
// FIXME: If this SVG ends up loading itself, we'll leak this Frame (and associated DOM & render trees).
// The Cache code does not know about CachedImages holding Frames and won't know to break the cycle.
m_page.set(new Page(dummyChromeClient, dummyContextMenuClient, dummyEditorClient, dummyDragClient, dummyInspectorClient));
+ m_page->settings()->setJavaScriptEnabled(false);
+
m_frame = new Frame(m_page.get(), 0, dummyFrameLoaderClient);
m_frame->init();
m_frameView = new FrameView(m_frame.get());