[Webkit-unassigned] [Bug 28806] [Qt] Make the WebInspector available as a widget class.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 10 07:26:58 PDT 2009


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


Jocelyn Turcotte <jocelyn.turcotte at nokia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #39347|                            |review?
               Flag|                            |
  Attachment #39254|0                           |1
        is obsolete|                            |




--- Comment #7 from Jocelyn Turcotte <jocelyn.turcotte at nokia.com>  2009-09-10 07:26:57 PDT ---
Created an attachment (id=39347)
 --> (https://bugs.webkit.org/attachment.cgi?id=39347)
Changes v0.5

Stuff that may be worth noting about this patch relatively to v0.4:

The inspectedElement argument to the webInspectorTriggered signal is currently,
as I saw, always the same as the focused element in the inspector.
However this is mostly luck since we can't create QWebElements out of non-html
nodes and the inspector also seems to focus on the enclosing Html element.

For example if we right click on a text node in the page, the hittestresult
will contain a WebCore::Text node.
- This patch will walk the parents until a QWebElement can be created from the
hittestresult's parents before giving it to the signal.
- The web inspector will select the surrounding <font> element, however I would
not expect this behavior since the text node is available for selection and it
may change in the future.

I documented in the signal that the inspectedElement argument is not garanteed
to be the same.
There is also the possibility of not giving this argument in the signal, since
the user may expect the same value and it may feel unreliable.

Please tell me what you think.

-- 
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