The soft context menu options: Copy Link Address Copy Request Headers Copy Response Headers Copy Entry as HAR Copy All as HAR do not function at all since InspectorFrontendHostStub.js has an empty implementation for the copyText function.
Created attachment 123317 [details] patch partial patch to have all copy's use the same copy method.
Comment on attachment 123317 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=123317&action=review You should also remove copyNode from the Inspector.json and InspectorDOMAgent.h/cpp. > Source/WebCore/inspector/front-end/ElementsTreeOutline.js:1687 > + var copy = function(id, text) { Should be: function copy(error, text) { if (!error) .... }
You should also create a dedicated bug for this patch. As for the original issue, it can be solved via browser extensions. Chrome exposes access to the clipboard given the necessary permission is granted by the user. Web platform does not and will not allow accessing clipboard from within the page at a random point of time.
Comment on attachment 123317 [details] patch clear flag.
Closing as invalid, as this bug pertains to the old inspector UI and/or its tests. Please file a new bug (https://www.webkit.org/new-inspector-bug) if the bug/feature/issue is still relevant to WebKit trunk.