Bug 175758

Summary: Web Inspector: Can't copy text from "View variable value" popover in Styles sidebar
Product: WebKit Reporter: Matt Baker <mattbaker>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, hi, inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
[Image] After Patch is applied none

Description Matt Baker 2017-08-20 18:33:06 PDT
Summary:
Can't copy text from "View variable value" popover in Styles sidebar.

Test page:
<style>
body {
    --my-var: gray;
    background-color: var(--my-var);
}
</style>

Steps to Reproduce:
1. Inspect test page
2. Goto Elements tab > Styles
3. In the `body` rule, `background-color` property, click the "=" button.
4. Select popover text (gray) and right click.
  => Copy is disabled/grayed out.
  => ⌘+C has unpredictable results. Sometimes nothing happens. Sometimes the selector text from the rule is copied.
Comment 1 Devin Rousso 2017-08-21 10:59:01 PDT
Created attachment 318647 [details]
Patch
Comment 2 Devin Rousso 2017-08-21 10:59:27 PDT
Created attachment 318648 [details]
[Image] After Patch is applied
Comment 3 Matt Baker 2017-08-21 11:15:51 PDT
Comment on attachment 318647 [details]
Patch

r=me
Comment 4 WebKit Commit Bot 2017-08-21 11:45:39 PDT
Comment on attachment 318647 [details]
Patch

Clearing flags on attachment: 318647

Committed r220973: <http://trac.webkit.org/changeset/220973>
Comment 5 WebKit Commit Bot 2017-08-21 11:45:40 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2017-08-21 11:46:58 PDT
<rdar://problem/33995898>