[Webkit-unassigned] [Bug 55057] Web Inspector: refactor inspect() workflow so that it did not push dom nodes.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 24 04:28:22 PST 2011


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


Yury Semikhatsky <yurys at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #83546|review?                     |review+
               Flag|                            |




--- Comment #5 from Yury Semikhatsky <yurys at chromium.org>  2011-02-24 04:28:21 PST ---
(From update of attachment 83546)
View in context: https://bugs.webkit.org/attachment.cgi?id=83546&action=review

> Source/WebCore/bindings/js/JSInjectedScriptHostCustom.cpp:174
> +#if ENABLE(DATABASE)

Should be 2 lines above?

> Source/WebCore/bindings/js/JSInjectedScriptHostCustom.cpp:186
> +#if ENABLE(DOM_STORAGE)

same here

> Source/WebCore/bindings/v8/custom/V8InjectedScriptHostCustom.cpp:218
>      if (args.Length() < 1)

Why is this not under the #if guard below?

> Source/WebCore/inspector/InjectedScript.cpp:176
> +void InjectedScript::inspectNode(Node* node)

There are no nodes in the worker context, we will need to find a way to get rid of this method along with Frame.h dependency there.

> Source/WebCore/inspector/InjectedScript.cpp:182
> +        function.appendArgument(InjectedScriptHost::nodeAsScriptValue(mainWorldScriptState(frame), node));

You should give the state from the m_injectedScriptObject, shouldn't you?

> Source/WebCore/inspector/InjectedScriptSource.js:70
> +        if (arguments.length === 0)

What is this check for? If you need to check whether the object is valid you should check it explicitely.

> Source/WebCore/inspector/InjectedScriptSource.js:213
> +    releaseObject: function(objectId)

Probably we could switch from the object groups to this method?

> Source/WebCore/inspector/InspectorDatabaseResource.cpp:41
> +static long nextUnusedId = 1;

What's the reason for this change?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list