Changeset 24528 in webkit


Ignore:
Timestamp:
Jul 22, 2007 10:28:37 PM (17 years ago)
Author:
weinig
Message:

LayoutTests:

Reviewed by Darin.

Test for http://bugs.webkit.org/show_bug.cgi?id=14682
REGRESSION(24285-24399): alerts do not appear at W3C RTL test page

  • fast/dom/Window/window-function-name-getter-precedence-expected.txt: Added.
  • fast/dom/Window/window-function-name-getter-precedence.html: Added.

WebCore:

Reviewed by Darin.

Fix for http://bugs.webkit.org/show_bug.cgi?id=14682
REGRESSION(24285-24399): alerts do not appear at W3C RTL test page

Test: fast/dom/Window/window-function-name-getter-precedence.html

  • bindings/js/JSDOMWindowCustom.cpp: (WebCore::JSDOMWindow::customGetOwnPropertySlot): Make sure to return functions before the custom name getter.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r24522 r24528  
     12007-07-22  Sam Weinig  <sam@webkit.org>
     2
     3        Reviewed by Darin.
     4
     5        Test for  http://bugs.webkit.org/show_bug.cgi?id=14682
     6        REGRESSION(24285-24399): alerts do not appear at W3C RTL test page
     7
     8        * fast/dom/Window/window-function-name-getter-precedence-expected.txt: Added.
     9        * fast/dom/Window/window-function-name-getter-precedence.html: Added.
     10
    1112007-07-22  Oliver Hunt  <oliver@apple.com>
    212
  • trunk/WebCore/ChangeLog

    r24527 r24528  
     12007-07-22  Sam Weinig  <sam@webkit.org>
     2
     3        Reviewed by Darin.
     4
     5        Fix for http://bugs.webkit.org/show_bug.cgi?id=14682
     6        REGRESSION(24285-24399): alerts do not appear at W3C RTL test page
     7
     8        Test: fast/dom/Window/window-function-name-getter-precedence.html
     9
     10        * bindings/js/JSDOMWindowCustom.cpp:
     11        (WebCore::JSDOMWindow::customGetOwnPropertySlot): Make sure to return functions
     12        before the custom name getter.
     13
    1142007-07-22  Darin Adler  <darin@apple.com>
    215
  • trunk/WebCore/bindings/js/JSDOMWindowCustom.cpp

    r24300 r24528  
    8383                        slot.setStaticEntry(this, entry, KJS::staticFunctionGetter<JSDOMWindowPrototypeFunction>);
    8484                        return true;
     85                    default:
     86                        if (!isSafeScript(exec))
     87                            slot.setUndefined(this);
     88                        else
     89                            slot.setStaticEntry(this, entry, KJS::staticFunctionGetter<JSDOMWindowPrototypeFunction>);
     90                        return true;
    8591                }
    8692            }
Note: See TracChangeset for help on using the changeset viewer.