Revert "Reland "Sanitize cursor theme name and size in GTK and Wayland"" [chromium/src : main]

0 views
Skip to first unread message

Chromium LUCI CQ (Gerrit)

unread,
Aug 10, 2026, 11:51:42 AM (3 days ago) Aug 10
to Zonghan Xu, rubber-...@appspot.gserviceaccount.com, Yichen Zhou, Thomas Anderson, android-bu...@system.gserviceaccount.com, Sadrul Chowdhury, chromium...@chromium.org, Henrique Ferreiro, nickdiego+wa...@igalia.com, ozone-...@chromium.org, max+watc...@igalia.com

Chromium LUCI CQ submitted the change

Change information

Commit message:
Revert "Reland "Sanitize cursor theme name and size in GTK and Wayland""

This reverts commit 91a2334cbf479f688cc421aa7f7eb1802e8e2bfb.

Reason for revert: CursorThemeSizesSanitizedAtWriteTime seems to be failing on multiple Linux builders

Failure Link: https://ci.chromium.org/ui/p/chromium/builders/ci/Linux%20Tests%20(dbg)(1)/133036/overview
https://ci.chromium.org/ui/p/chromium/builders/ci/Linux%20UBSan%20Tests/17465/overview
https://ci.chromium.org/ui/p/chromium/builders/ci/Linux%20CFI/32576/overview

Original change's description:
> Reland "Sanitize cursor theme name and size in GTK and Wayland"
>
> This is a reland of commit 283ac1ef12df16eb0256a4d5ce83477b5afba061
>
> Original change's description:
> > Sanitize cursor theme name and size in GTK and Wayland
> >
> > This change extends GtkSettingsSetProperty interceptor and GtkUi to
> > sanitize gtk-cursor-theme-name and gtk-cursor-theme-size at write-time,
> > preventing unsanitized cursor theme names from being set in GTK
> > settings.
> >
> > It also introduces unified ui::IsValidCursorThemeName and
> > ui::IsValidCursorThemeSize validation helpers in //ui/base/cursor, and
> > adds validation to WaylandCursorFactory to ensure invalid or
> > path-traversing cursor theme names are rejected before calling
> > wl_cursor_theme_load.
> >
> > Change-Id: Ibe8a3ce208d76d2e724902424491a6116d4352f6
> > Fixed: 540289900
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8164559
> > Reviewed-by: Yichen Zhou <yic...@chromium.org>
> > Commit-Queue: Thomas Anderson <thomasa...@chromium.org>
> > Cr-Commit-Position: refs/heads/main@{#1670761}
>
> Bug: 542165218
> Fixed: 540289900
> Change-Id: I29b295e3296eb82a1304d9884d547cf939528f5a
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8180111
> Reviewed-by: Yichen Zhou <yic...@chromium.org>
> Commit-Queue: Thomas Anderson <thomasa...@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1673803}
Bug: 542165218
Bug: 540289900
Change-Id: I5a4b67db878b65cd0f718c1ffd75145abfaffaaa
Commit-Queue: Zonghan Xu <xzon...@chromium.org>
Owners-Override: Zonghan Xu <xzon...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1676474}
Files:
  • M ui/base/cursor/cursor_factory.cc
  • M ui/base/cursor/cursor_factory.h
  • M ui/base/cursor/cursor_unittest.cc
  • M ui/base/x/x11_cursor_loader.cc
  • M ui/gtk/gtk_ui.cc
  • M ui/gtk/gtk_ui.h
  • M ui/gtk/gtk_util.cc
  • M ui/gtk/gtk_util.h
  • M ui/gtk/gtk_util_unittest.cc
  • M ui/ozone/platform/wayland/host/wayland_cursor_factory.cc
Change size: M
Delta: 10 files changed, 7 insertions(+), 166 deletions(-)
Branch: refs/heads/main
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5a4b67db878b65cd0f718c1ffd75145abfaffaaa
Gerrit-Change-Number: 8224843
Gerrit-PatchSet: 2
Gerrit-Owner: Zonghan Xu <xzon...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Thomas Anderson <thomasa...@chromium.org>
Gerrit-Reviewer: Yichen Zhou <yic...@chromium.org>
Gerrit-Reviewer: Zonghan Xu <xzon...@chromium.org>
Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
Gerrit-CC: Sadrul Chowdhury <sad...@chromium.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages