Bug 43934

Summary: Web Inspector: Make getPrototypes return objects, not names.
Product: WebKit Reporter: Pavel Feldman <pfeldman>
Component: Web Inspector (Deprecated)Assignee: Pavel Feldman <pfeldman>
Status: RESOLVED FIXED    
Severity: Normal CC: bweinstein, joepeck, keishi, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed change.
none
[PATCH] Proposed fix. yurys: review+

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