Reviewed by Darin.
Fix http://bugzilla.opendarwin.org/show_bug.cgi?id=10038
REGRESSION: Length of navigator.mimeTypes collection returns number of installed plugins, not number
of registered mime types
Test: fast/js/navigator-mimeTypes-length.html
* bindings/js/kjs_navigator.cpp:
(KJS::MimeTypes::getValueProperty): Return the length of the mime types vector, not the plugins one.
(KJS::MimeTypes::getOwnPropertySlot): Fixed another typo, which prevented MimeTypes::getValueProperty()
from even being called.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15573 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6 files changed