WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 44901
Bug 45227
when opening the inspector with a node to inspect, it's not focused.
https://bugs.webkit.org/show_bug.cgi?id=45227
Summary
when opening the inspector with a node to inspect, it's not focused.
arno.
Reported
2010-09-04 06:05:52 PDT
Hi, when opening inspector with a node to inspect, it's not focused. Instead I get following javascript exception: ** Message: console message: file:///usr/local/share/webkitgtk-1.0/webinspector/DOMAgent.js @410: TypeError: Result of expression 'this._idToDOMNode' [null] is not an object. I'm using midori with latest webkit/gtk trunk.
Attachments
patch v1
(2.54 KB, patch)
2010-09-04 06:14 PDT
,
arno.
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
arno.
Comment 1
2010-09-04 06:14:25 PDT
Created
attachment 66583
[details]
patch v1 This happens because InspectorController::focusNode is called before InspectorDOMAgent::setDocument then, in javascript method WebInspector.DOMAgent.nodeForId, this._idToDOMNode is null, and this._idToDOMNode[nodeId] throws an exception. Here is a fix proposal: call InspectorController::focusNode after, InspectorDOMAgent::setDocument. There is no more js exception, and selected node is focused.
Alexander Pavlov (apavlov)
Comment 2
2011-09-06 08:33:16 PDT
*** This bug has been marked as a duplicate of
bug 44901
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug