Open Bug 1696876 Opened 3 years ago Updated 2 months ago

[wayland] PiP window no longer has a shadow making it lack contrast against background


(Core :: Widget: Gtk, defect, P3)

Firefox 87



Tracking Status
firefox-esr78 --- unaffected
firefox86 --- unaffected
firefox87 --- wontfix
firefox88 --- wontfix
firefox89 --- fix-optional


(Reporter: ke5trel, Unassigned)


(Blocks 2 open bugs, Regression)


(Keywords: regression)


(1 file)


  1. Start with MOZ_ENABLE_WAYLAND=1 on Ubuntu 20.10.
  2. Visit (blank white video).
  3. Open video in PiP window.
  4. Place against white background.


PiP window has a shadow, making it stand out.


PiP window has no shadow, only a thin pale border, making it difficult to see.

X11 and XWayland are unaffected.

Regression window:

Regressed by Bug 1683075.

Priority: -- → P3
Has Regression Range: --- → yes

This is likely because we don't use CSD for it. So we either need the shadows from Gtk or draw them ourselves. Emilio, given that you looked into menu shadows before, do you have an idea what could be done here?

Flags: needinfo?(emilio)

Well, we could make the window bigger, flag it as transparent using GTK, and then use CSS to style around the player on Linux. It seems a reasonable effort tho, it'd be so much nicer to somehow let GTK draw the decorations...

Flags: needinfo?(emilio)
Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.