Bug 43934 - Web Inspector: Make getPrototypes return objects, not names.
Summary: Web Inspector: Make getPrototypes return objects, not names.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Pavel Feldman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-12 14:27 PDT by Pavel Feldman
Modified: 2010-08-12 23:36 PDT (History)
8 users (show)

See Also:


Attachments
[PATCH] Proposed change. (9.95 KB, patch)
2010-08-12 14:37 PDT, Pavel Feldman
no flags Details | Formatted Diff | Diff
[PATCH] Proposed fix. (8.88 KB, patch)
2010-08-12 23:14 PDT, Pavel Feldman
yurys: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Feldman 2010-08-12 14:27:03 PDT
Patch to follow.
Comment 1 Pavel Feldman 2010-08-12 14:37:37 PDT
Created attachment 64264 [details]
[PATCH] Proposed change.
Comment 2 Yury Semikhatsky 2010-08-12 23:06:09 PDT
Comment on attachment 64264 [details]
[PATCH] Proposed change.

WebCore/inspector/front-end/InjectedScript.js:393
 +  InjectedScript.RemoteObjectId.deriveProperty = function(objectId, propertyName)
Why not make it an instance method on RemoteObjectId? The code would be more compact.

WebCore/inspector/front-end/inspector.js:1467
 +      WebInspector.console.addMessage(new WebInspector.ConsoleMessage(
It will fail if it's called before WebInspector.console is initialized, please revert this code.
Comment 3 Pavel Feldman 2010-08-12 23:14:15 PDT
(In reply to comment #2)
> (From update of attachment 64264 [details])
> WebCore/inspector/front-end/InjectedScript.js:393
>  +  InjectedScript.RemoteObjectId.deriveProperty = function(objectId, propertyName)
> Why not make it an instance method on RemoteObjectId? The code would be more compact.
> 

I'd like to emphasize the fact that the RemoteObjectId is payload here. Will rename it later when extracting the common part from both sides.

> WebCore/inspector/front-end/inspector.js:1467
>  +      WebInspector.console.addMessage(new WebInspector.ConsoleMessage(
> It will fail if it's called before WebInspector.console is initialized, please revert this code.

Done, thanks.
Comment 4 Pavel Feldman 2010-08-12 23:14:36 PDT
Created attachment 64304 [details]
[PATCH] Proposed fix.
Comment 5 Yury Semikhatsky 2010-08-12 23:20:26 PDT
Comment on attachment 64304 [details]
[PATCH] Proposed fix.

WebCore/inspector/front-end/inspector.js:1471
 +      function isLogAvailable()
Please remove this
Comment 6 Pavel Feldman 2010-08-12 23:36:07 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebCore/ChangeLog
	M	WebCore/inspector/front-end/ConsoleView.js
	M	WebCore/inspector/front-end/InjectedScript.js
	M	WebCore/inspector/front-end/PropertiesSidebarPane.js
	M	WebCore/inspector/front-end/RemoteObject.js
	M	WebCore/inspector/front-end/inspector.js
Committed r65300
Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebCore/ChangeLog
	M	WebCore/inspector/front-end/inspector.js
Committed r65301