Closed Bug 1827429 Opened 2 years ago Closed 1 year ago

Recently opened Firefox window on Wayland may be empty / fully transparent

Categories

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

defect

Tracking

()

RESOLVED FIXED
114 Branch
Tracking Status
firefox112 --- fixed
firefox113 --- fixed
firefox114 --- fixed

People

(Reporter: stransky, Assigned: stransky)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

In case newly opened window is not immediately visible (for instance is opened by remote instance), the window is created as occluded and can't be flipped back to visible.

We need to call explicitly NotifyOcclusionState(VISIBLE) from OnExposeEvent() to fix that as we know the window is visible.

Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/f2b8b117022c [Wayland] Call NotifyOcclusionState(OcclusionState::VISIBLE) from nsWindow::OnExposeEvent() as we know the window is visible r=emilio
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch

Comment on attachment 9327942 [details]
Bug 1827429 [Wayland] Call NotifyOcclusionState(OcclusionState::VISIBLE) from nsWindow::OnExposeEvent() as we know the window is visible r?emilio

Beta/Release Uplift Approval Request

  • User impact if declined: Newly opened Firefox window may be invisible/empty on Wayland.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): We enable rendering (set visible occlusion state) in Expose event which paints Firefox window.
    We used VSync for that only before this patch.
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9327942 - Flags: approval-mozilla-beta?

Comment on attachment 9327942 [details]
Bug 1827429 [Wayland] Call NotifyOcclusionState(OcclusionState::VISIBLE) from nsWindow::OnExposeEvent() as we know the window is visible r?emilio

Approved for 113 beta 3, thanks.

Attachment #9327942 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Duplicate of this bug: 1827608

Comment on attachment 9327942 [details]
Bug 1827429 [Wayland] Call NotifyOcclusionState(OcclusionState::VISIBLE) from nsWindow::OnExposeEvent() as we know the window is visible r?emilio

Beta/Release Uplift Approval Request

  • User impact if declined: Flatpak doesn't display sometimgs
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): GTK only fix has been verified.
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9327942 - Flags: approval-mozilla-release?

If we do another dot release, it would be nice to grab this.

Blocks: 1807601

Comment on attachment 9327942 [details]
Bug 1827429 [Wayland] Call NotifyOcclusionState(OcclusionState::VISIBLE) from nsWindow::OnExposeEvent() as we know the window is visible r?emilio

Approved for 112.0.2 dot release

Attachment #9327942 - Flags: approval-mozilla-release? → approval-mozilla-release+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: