Bug 28297

Summary: WebInspector: Wrap console objects late (in the frontend) so that injected script was already in place.
Product: WebKit Reporter: Pavel Feldman <pfeldman>
Component: Web Inspector (Deprecated)Assignee: Pavel Feldman <pfeldman>
Status: RESOLVED FIXED    
Severity: Normal CC: timothy
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
patch timothy: review+

Pavel Feldman
Reported 2009-08-14 02:32:52 PDT
Otherwise, console.log being executed before frontend has started causes operation on uninitialized ScriptObject.
Attachments
patch (9.70 KB, patch)
2009-08-14 03:11 PDT, Pavel Feldman
timothy: review+
Pavel Feldman
Comment 1 2009-08-14 03:11:09 PDT
Created attachment 34823 [details] patch This patch moves stack processing back to the ConsoleMessage and introduces dependency from InspectorFrontend to the InspectorController for object wrapping. It actually reverts ConsoleMessage.* to where they were before the DOMAgent-related change.
Pavel Feldman
Comment 2 2009-08-14 04:39:56 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebCore/ChangeLog M WebCore/inspector/ConsoleMessage.cpp M WebCore/inspector/ConsoleMessage.h M WebCore/inspector/InspectorController.cpp M WebCore/inspector/InspectorController.h M WebCore/inspector/InspectorFrontend.cpp M WebCore/inspector/InspectorFrontend.h Committed r47277
Note You need to log in before you can comment on or make changes to this bug.