Reviewed by Darin.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Jul 2006 07:39:49 +0000 (07:39 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Jul 2006 07:39:49 +0000 (07:39 +0000)
commit2b535cfe2b83e30bd7c790691df19911b63dd808
tree4c34635176532dd2ccf176852de1e7783a144a7b
parentaee70222415685072cf146a48338bdcc60c3fd34
    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: https://svn.webkit.org/repository/webkit/trunk@15573 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/js/navigator-mimeTypes-length-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/navigator-mimeTypes-length.html [new file with mode: 0644]
LayoutTests/fast/js/resources/navigator-mimeTypes-length.js [new file with mode: 0644]
WebCore/ChangeLog
WebCore/bindings/js/kjs_navigator.cpp