Closed Bug 1389133 Opened 7 years ago Closed 7 years ago

gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed

Categories

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

x86_64
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox-esr52 --- unaffected
firefox55 --- unaffected
firefox56 --- fixed
firefox57 --- fixed

People

(Reporter: stransky, Assigned: stransky)

References

Details

(Keywords: regression)

Attachments

(1 file)

There's a minor regression from Bug 1365556. MOZ_GTK_COMBOBOX_SEPARATOR may not be defined for some themes so GetWidget(MOZ_GTK_COMBOBOX_SEPARATOR) can return null. We count with that: https://dxr.mozilla.org/mozilla-central/source/widget/gtk/gtk3drawing.cpp#1122 but the patch from Bug 1365556 always expect widget != null and calls gtk_widget_get_style_context(widget) on it which causes the gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed message.
Comment on attachment 8895886 [details] Bug 1389133 - don't invalidate style content for missing widgets, https://reviewboard.mozilla.org/r/167168/#review172578 Thank you :)
Attachment #8895886 - Flags: review?(karlt) → review+
Blocks: 1365556
No longer depends on: 1365556
Assignee: nobody → stransky
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/autoland/rev/dcbf487465de don't invalidate style content for missing widgets, r=karlt
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Please nominate this for Beta approval when you get a chance.
Flags: needinfo?(stransky)
Comment on attachment 8895886 [details] Bug 1389133 - don't invalidate style content for missing widgets, Approval Request Comment [Feature/Bug causing the regression]: Bug 1365556 [User impact if declined]: Error messages on console, crash on some systems (Bug 1388810) [Is this code covered by automated tests?]: no [Has the fix been verified in Nightly?]: yes [Needs manual test from QE? If yes, steps to reproduce]: no [List of other uplifts needed for the feature/fix]: none [Is the change risky?]: no [Why is the change risky/not risky?]: not risky, it's a straightforward null pointer check [String changes made/needed]: none
Flags: needinfo?(stransky)
Attachment #8895886 - Flags: approval-mozilla-beta?
Comment on attachment 8895886 [details] Bug 1389133 - don't invalidate style content for missing widgets, Fix a regression. Beta56+.
Attachment #8895886 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: