Changeset 17128 in webkit


Ignore:
Timestamp:
Oct 18, 2006 10:02:54 PM (18 years ago)
Author:
thatcher
Message:

Reviewed by Anders.

Bug 10851: Crash with Drosera
http://bugs.webkit.org/show_bug.cgi?id=10851

This crash results in an assert in debug builds.

assert(implementsCall());

The drosera_introspection propery was not callable. Now we just assign
this.
drosera_introspection in the evaluateWebScript call.
This change also removes one DO message.

  • Drosera/DebuggerDocument.m: (-[WebScriptObject webScriptAttributeKeysForScriptObject:]):
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r17119 r17128  
     12006-10-18  Timothy Hatcher  <timothy@apple.com>
     2
     3        Reviewed by Anders.
     4
     5        Bug 10851: Crash with Drosera
     6        http://bugs.webkit.org/show_bug.cgi?id=10851
     7
     8        This crash results in an assert in debug builds.
     9
     10        assert(implementsCall());
     11
     12        The __drosera_introspection propery was not callable. Now we just assign
     13        this.__drosera_introspection in the evaluateWebScript call.
     14        This change also removes one DO message.
     15
     16        * Drosera/DebuggerDocument.m:
     17        (-[WebScriptObject webScriptAttributeKeysForScriptObject:]):
     18
    1192006-10-18  Mark Rowe  <bdash@webkit.org>
    220
  • trunk/WebKitTools/Drosera/DebuggerDocument.m

    r15724 r17128  
    113113- (NSArray *)webScriptAttributeKeysForScriptObject:(WebScriptObject *)object
    114114{
    115     WebScriptObject *func = [object evaluateWebScript:@"(function () { var result = new Array(); for (var x in this) { result.push(x); } return result; })"];
    116     [object setValue:func forKey:@"__drosera_introspection"];
     115    [object evaluateWebScript:@"this.__drosera_introspection = function () { var result = new Array(); for (var x in this) { result.push(x); } return result; }"];
    117116
    118117    NSMutableArray *result = [[NSMutableArray alloc] init];
Note: See TracChangeset for help on using the changeset viewer.