JavaScriptCore:
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Nov 2006 02:14:01 +0000 (02:14 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Nov 2006 02:14:01 +0000 (02:14 +0000)
commit903f737126ce6a71d10d1e4272b5bc58dd3f45e4
treeec16304dc23183fa23995e638f1c8d1183d3c458
parent0151cc508668a1d01637623830652bfac20b3aad
JavaScriptCore:

        Reviewed by Beth.

        Fixed http://bugs.webkit.org/show_bug.cgi?id=11477
        REGRESSION: GMail crashes in KJS::FunctionImp::callerGetter

        * kjs/function.cpp:
        (KJS::FunctionImp::argumentsGetter): Removed unnecessary braces.
        (KJS::FunctionImp::callerGetter): More logical NULL checking.

LayoutTests:

        Added test for accessing the 'caller' property from inside an event
        listener.

        * fast/events/caller-access-from-event-listener-expected.txt: Added.
        * fast/events/caller-access-from-event-listener.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17507 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/function.cpp
LayoutTests/ChangeLog
LayoutTests/fast/events/caller-access-from-event-listener-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/caller-access-from-event-listener.html [new file with mode: 0644]