[Webkit-unassigned] [Bug 171907] New: Web Inspector: Copy to clipboard fails via InspectorFrontendHostStub

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 9 20:14:03 PDT 2017


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

            Bug ID: 171907
           Summary: Web Inspector: Copy to clipboard fails via
                    InspectorFrontendHostStub
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ross.kirsling at sony.com
                CC: inspector-bugzilla-changes at group.apple.com

Verification steps:
1. Ensure that InspectorFrontendHostStub is being used, or at the least, that InspectorFrontendHost.copyText is overridden to the stub implementation.
2. Do something that copies to the clipboard (e.g. Copy as cURL).
-- Clipboard is not updated (console error: "Clipboard access is denied").

Details:
- The copyText stub is calling document.execCommand("copy"), but there's no current selection, so this is guaranteed to fail.
- More specifically, instead of setting up the text to copy as a selection, we're just setting an unused field _textToCopy, which is a remnant of the old Inspector:
  https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/inspector/front-end/InspectorFrontendHostStub.js?rev=154828

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170510/9c299757/attachment-0001.html>


More information about the webkit-unassigned mailing list