Bug 1576672 - Disables the ability to highlight preview text in the Debugger. r=jlast
authoralexdominguezg <alexand.dominguez@gmail.com>
Thu, 14 Nov 2019 17:08:16 +0000
changeset 503528 8e1d3efe859d0be2dc1a809f36895c049e87e980
parent 503527 57ff77aaedc0ec0b7161c25258d51554035ff704
child 503529 148081b861c81c70c9e79bdb06a395106ab3750e
push id101363
push userjlaster@mozilla.com
push dateSat, 23 Nov 2019 04:06:36 +0000
treeherderautoland@8e1d3efe859d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlast
bugs1576672
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1576672 - Disables the ability to highlight preview text in the Debugger. r=jlast Bug 1576672 - Disables the ability to highlight preview text in the Debugger. r=jlast user-select: none rule was applied to the "inline-preview" class. Could instead have been applied to "CodeMirror-widget" class. Differential Revision: https://phabricator.services.mozilla.com/D52445
devtools/client/debugger/src/components/Editor/InlinePreview.css
--- a/devtools/client/debugger/src/components/Editor/InlinePreview.css
+++ b/devtools/client/debugger/src/components/Editor/InlinePreview.css
@@ -1,15 +1,16 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
 
 .inline-preview {
   display: inline-block;
   margin-inline-start: 8px;
+  user-select: none;
 }
 
 .inline-preview-outer {
   padding: 1px 0;
   background-color: var(--theme-inline-preview-background);
   border: 1px solid var(--theme-inline-preview-border-color);
   border-radius: 3px;
   font-size: 10px;