Skip to content
  • allan.jensen@digia.com's avatar
    [Qt] DRT bug revealed/caused by r154300 · 7c45fdba
    allan.jensen@digia.com authored
    https://bugs.webkit.org/show_bug.cgi?id=120151
    
    Reviewed by Simon Hausmann.
    
    Since QtInstance had an implementation of getOwnPropertySlot and not getOwnPropertyDescriptor,
    the behavior of getOwnPropertyDescriptor changed when it got implemented using getOwnPropertySlot
    in r154300.
    
    DRT relied on getOwnPropertyDescriptor returning undefined for JS set properties to distinguish
    between native Qt methods and JSC bound methods. This patch changes the check to see if the
    property is writable since the Qt methods are ReadOnly.
    
    * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
    (DumpRenderTree::initJSObjects):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154444 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    7c45fdba