[Webkit-unassigned] [Bug 31238] Web Inspector: Inspector should support copy() in the command line

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Nov 8 03:59:01 PST 2009


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


Pavel Feldman <pfeldman at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #42713|review?                     |review-
               Flag|                            |




--- Comment #3 from Pavel Feldman <pfeldman at chromium.org>  2009-11-08 03:59:00 PDT ---
(From update of attachment 42713)
What you should do instead is:
- Introduce copyText in InspectorBackend.(idl, h, cpp). Just mimic copyNode
there and pass text instead of node id.
- Implement it as Pasteboard::generalPasteboard()->writePlainText(text); (see
copyNode again)
- Make a simple call to it from your new copy API method.

We could be even more cleaver here and copy markup in case selected object is
node (make an instanceof check under copy and choose between copyText and
copyNode to call). [object HTMLElement] is not too informative otherwise...

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