Changeset 117599 in webkit


Ignore:
Timestamp:
May 18, 2012 8:57:26 AM (12 years ago)
Author:
yurys@chromium.org
Message:

Web Inspector: error when expanding an HTMLAllCollection object in the console
https://bugs.webkit.org/show_bug.cgi?id=86741

Reviewed by Pavel Feldman.

Source/WebCore:

RuntimeAgent.callFunctionOn should work correcly with arguments of type HTMLAllCollection.

  • inspector/InjectedScriptSource.js:

LayoutTests:

  • inspector/console/inspect-html-all-collection.html:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r117597 r117599  
     12012-05-18  Yury Semikhatsky  <yurys@chromium.org>
     2
     3        Web Inspector: error when expanding an HTMLAllCollection object in the console
     4        https://bugs.webkit.org/show_bug.cgi?id=86741
     5
     6        Reviewed by Pavel Feldman.
     7
     8        * inspector/console/inspect-html-all-collection.html:
     9
    1102012-05-18  Krzysztof Czech  <k.czech@samsung.com>,  Mariusz Grzegorczyk <mariusz.g@samsung.com>
    211
  • trunk/LayoutTests/inspector/console/inspect-html-all-collection.html

    r117454 r117599  
    1515        }
    1616        var htmlAllCollection = WebInspector.RemoteObject.fromPayload(result);
    17         htmlAllCollection.callFunctionJSON("function() { return this.length; }", [], didGetLength.bind(this));
     17        htmlAllCollection.callFunctionJSON("function(collection) { return this.length + collection.length; }", [{objectId: htmlAllCollection.objectId}], didGetLength.bind(this));
    1818    }
    1919
  • trunk/Source/WebCore/ChangeLog

    r117598 r117599  
     12012-05-18  Yury Semikhatsky  <yurys@chromium.org>
     2
     3        Web Inspector: error when expanding an HTMLAllCollection object in the console
     4        https://bugs.webkit.org/show_bug.cgi?id=86741
     5
     6        Reviewed by Pavel Feldman.
     7
     8        RuntimeAgent.callFunctionOn should work correcly with arguments of type HTMLAllCollection.
     9
     10        * inspector/InjectedScriptSource.js:
     11
    1122012-05-18  Pavel Feldman  <pfeldman@chromium.org>
    213
  • trunk/Source/WebCore/inspector/InjectedScriptSource.js

    r117454 r117599  
    286286
    287287                    var resolvedArg = this._objectForId(parsedArgId);
    288                     if (!resolvedArg)
     288                    if (!this._isDefined(resolvedArg))
    289289                        return "Could not find object with given id";
    290290
Note: See TracChangeset for help on using the changeset viewer.