[Webkit-unassigned] [Bug 189463] [GTK] Mark text in javascript alerts as selectable

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 11 22:39:07 PDT 2018


Michael Catanzaro <mcatanzaro at igalia.com> changed:

           What    |Removed                     |Added
                 CC|                            |mcatanzaro at igalia.com,
                   |                            |otte at gnome.org

--- Comment #1 from Michael Catanzaro <mcatanzaro at igalia.com> ---
(In reply to Benjamin Berg from comment #0)
> I expect it should be
> as simple as setting the "selectable" property of GtkLabel.

I can confirm this fixes the issue.

But I can reproduce the same issue in GNOME Chess. Move any chess piece, then press the open button and try to select the text in the "Save this game before loading another one?" message box that pops up. You can't. It's a general issue with GtkMessageDialog. I found this code in gtk_message_dialog_init():

  settings = gtk_widget_get_settings (GTK_WIDGET (dialog));
  g_object_get (settings, "gtk-keynav-use-caret", &use_caret, NULL);
  gtk_label_set_selectable (GTK_LABEL (priv->label), use_caret);
  gtk_label_set_selectable (GTK_LABEL (priv->secondary_label), use_caret);

So it seems intentional. CC Benjamin Otte. Should we change that? If so, this will need to pingpong back to gitlab.gnome.org.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180912/4b750978/attachment.html>

More information about the webkit-unassigned mailing list