Bug 175758 - Web Inspector: Can't copy text from "View variable value" popover in Styles sidebar
Summary: Web Inspector: Can't copy text from "View variable value" popover in Styles s...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-08-20 18:33 PDT by Matt Baker
Modified: 2017-08-21 11:46 PDT (History)
4 users (show)

See Also:


Attachments
Patch (1.65 KB, patch)
2017-08-21 10:59 PDT, Devin Rousso
no flags Details | Formatted Diff | Diff
[Image] After Patch is applied (41.50 KB, image/png)
2017-08-21 10:59 PDT, Devin Rousso
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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>