Closed Bug 1575786 Opened 3 months ago Closed 3 months ago

Remove usage of -moz-user-select in devtools CSS, prefer user-select

Categories

(DevTools :: General, task, P3)

task

Tracking

(firefox70 fixed)

RESOLVED FIXED
Firefox 70
Tracking Status
firefox70 --- fixed

People

(Reporter: fvsch, Assigned: fvsch)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

-moz-user-select was unprefixed in Firefox 69 (currently in Beta).

We have a few places with code like:

.moz-only {
  -moz-user-select: none;
}

.moz-and-unprefixed {
  -moz-user-select: none;
  user-select: none;
}

.all-the-things {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

We should be able to just use user-select: none;.

Re. browser support:

  • Chrome supports user-select unprefixed, Safari doesn't.
  • Most DevTools CSS code only targets Gecko.
  • Debugger CSS code targets Gecko primarily, and Chrome as a secondary target (in Launchpad mode). It also uses autoprefixer which should add the -webkit-user-select one for Safari.
Assignee: nobody → florens
Status: NEW → ASSIGNED
Priority: -- → P3
Pushed by florens@fvsch.com:
https://hg.mozilla.org/integration/autoland/rev/d6f691b8f534
Use unprefixed user-select property in devtools CSS; r=ladybenko,jlast
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70
You need to log in before you can comment on or make changes to this bug.