Changeset 48024 in webkit


Ignore:
Timestamp:
Sep 3, 2009 9:54:49 AM (15 years ago)
Author:
pfeldman@chromium.org
Message:

2009-09-03 Pavel Feldman <pfeldman@chromium.org>

Reviewed by Timothy Hatcher.

WebInspector: Do not query non-function call frames for function name.

https://bugs.webkit.org/show_bug.cgi?id=28799

  • inspector/front-end/InjectedScript.js: (InjectedScript.CallFrameProxy): (InjectedScript.CallFrameProxy.prototype._wrapScopeChain):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r48022 r48024  
     12009-09-03  Pavel Feldman  <pfeldman@chromium.org>
     2
     3        Reviewed by Timothy Hatcher.
     4
     5        WebInspector: Do not query non-function call frames for function name.
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=28799
     8
     9        * inspector/front-end/InjectedScript.js:
     10        (InjectedScript.CallFrameProxy):
     11        (InjectedScript.CallFrameProxy.prototype._wrapScopeChain):
     12
    1132009-09-03  Pavel Feldman  <pfeldman@chromium.org>
    214
  • trunk/WebCore/inspector/front-end/InjectedScript.js

    r48022 r48024  
    959959    this.id = id;
    960960    this.type = callFrame.type;
    961     this.functionName = callFrame.functionName;
     961    this.functionName = (this.type === "function" ? callFrame.functionName : "");
    962962    this.sourceID = callFrame.sourceID;
    963963    this.line = callFrame.line;
     
    974974            var scopeObject = scopeChain[i];
    975975            var scopeObjectProxy = InjectedScript.createProxyObject(scopeObject, { callFrame: this.id, chainIndex: i });
     976
    976977            if (Object.prototype.toString.call(scopeObject) === "[object JSActivation]") {
    977978                if (!foundLocalScope)
     
    985986            else if (foundLocalScope && scopeObject instanceof InjectedScript._window().Document)
    986987                scopeObjectProxy.isDocument = true;
    987             else if (!foundLocalScope && !localScope)
     988            else if (!foundLocalScope)
    988989                scopeObjectProxy.isWithBlock = true;
    989990            scopeObjectProxy.properties = [];
Note: See TracChangeset for help on using the changeset viewer.