REGRESSION (r230843): Flash doesn't work; Produces blue box on page
[WebKit.git] / Source / WebCore / testing / Internals.cpp
index 7ae04af..88feb66 100644 (file)
 #include "PathUtilities.h"
 #include "PlatformMediaSessionManager.h"
 #include "PlatformStrategies.h"
+#include "PluginData.h"
 #include "PrintContext.h"
 #include "PseudoElement.h"
 #include "Range.h"
@@ -4637,4 +4638,12 @@ void Internals::setUseSystemAppearance(bool value)
     contextDocument()->page()->setUseSystemAppearance(value);
 }
 
+size_t Internals::pluginCount()
+{
+    if (!contextDocument() || !contextDocument()->page())
+        return 0;
+
+    return contextDocument()->page()->pluginData().webVisiblePlugins().size();
+}
+
 } // namespace WebCore