Closed Bug 1431049 Opened 6 years ago Closed 6 years ago

[Wayland] Crash when there is no keyboard

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: stransky, Assigned: stransky)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Downstream report: https://bugzilla.redhat.com/show_bug.cgi?id=1505745

By Takuro Ashie:

I found an issue that some uninitialized variable are used in nsClipboardWayland.cpp of Firefox on Wayland. It will causes crash when no keyboard presents. Please see the attached patch for more detail.

The crash is reproduced on my embedded board but not confirmed on Fedora yet.
Priority: -- → P3
Comment on attachment 8943890 [details]
Bug 1431049 - don't crash when keyboard is not present, based on patch by Takuro Ashie.

https://reviewboard.mozilla.org/r/214250/#review220178

::: widget/gtk/nsClipboardWayland.cpp:295
(Diff revision 1)
>      static auto sGdkWaylandDisplayGetWlDisplay =
>          (wl_display *(*)(GdkDisplay *))
>          dlsym(RTLD_DEFAULT, "gdk_wayland_display_get_wl_display");
>  
>      mDisplay = sGdkWaylandDisplayGetWlDisplay(gdk_display_get_default());
>      wl_registry_add_listener(wl_display_get_registry(mDisplay),

Please emphatize how mSeat is initialized (since it is set to nullptr in the constructor) and what's the purpse of double call of wl_display_roundtrip.
Attachment #8943890 - Flags: review?(jhorak) → review+
Pushed by stransky@redhat.com:
https://hg.mozilla.org/integration/autoland/rev/f821cb905c0b
don't crash when keyboard is not present, based on patch by Takuro Ashie. r=jhorak
https://hg.mozilla.org/mozilla-central/rev/f821cb905c0b
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: