Files
UXP-Jihad/widget
Kui-Feng Lee 7071894a52 Bug 2033848 - Use non-default response ID for GTK file picker accept button. r=stransky
Replace GTK_RESPONSE_ACCEPT (-3) with a non-negative application-defined
response ID (kFilePickerAccept = 0) for the accept button in the GTK file
chooser dialog, and remove the gtk_dialog_set_default_response() call.

GTK treats buttons with negative built-in response IDs as candidates for
the dialog's default widget, which activates on Enter key press. By using
a non-negative ID and not calling set_default_response(), the accept button
is no longer pre-selected, preventing a page from tricking the user into
confirming a file upload by holding Enter before the dialog appears.

GTK's file chooser internally emits GTK_RESPONSE_ACCEPT via file_activated_cb
when the user double-clicks a file, so we keep that case in DoneNonPortal()
alongside kFilePickerAccept.
2026-06-21 14:20:22 +02:00
..
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-05-24 14:06:04 +02:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00