diff --git a/dom/encoding/FallbackEncoding.cpp b/dom/encoding/FallbackEncoding.cpp index 6ecc12438395c..3ed2d8a751b8b 100644 --- a/dom/encoding/FallbackEncoding.cpp +++ b/dom/encoding/FallbackEncoding.cpp @@ -71,8 +71,7 @@ NotNull FallbackEncoding::Get() { // Don't let the user break things by setting the override to unreasonable // values via about:config auto encoding = Encoding::ForLabel(override); - if (!encoding || !encoding->IsAsciiCompatible() || - encoding == UTF_8_ENCODING) { + if (!encoding || !encoding->IsAsciiCompatible()) { mFallback = nullptr; } else { mFallback = encoding; diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp index b64fc87a946bc..e79d821a5c665 100644 --- a/widget/gtk/nsWindow.cpp +++ b/widget/gtk/nsWindow.cpp @@ -5293,12 +5293,10 @@ static GdkCursor* get_gtk_cursor(nsCursor aCursor) { if (!gdkcursor) newType = MOZ_CURSOR_SPINNING; break; case eCursor_zoom_in: - gdkcursor = gdk_cursor_new_from_name(defaultDisplay, "zoom-in"); - if (!gdkcursor) newType = MOZ_CURSOR_ZOOM_IN; + newType = MOZ_CURSOR_ZOOM_IN; break; case eCursor_zoom_out: - gdkcursor = gdk_cursor_new_from_name(defaultDisplay, "zoom-out"); - if (!gdkcursor) newType = MOZ_CURSOR_ZOOM_OUT; + newType = MOZ_CURSOR_ZOOM_OUT; break; case eCursor_not_allowed: gdkcursor = gdk_cursor_new_from_name(defaultDisplay, "not-allowed");