Cannot save "HTML Only"
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox64 | --- | wontfix |
firefox65 | --- | verified |
firefox66 | --- | verified |
People
(Reporter: jidanni, Assigned: stransky)
References
()
Details
(Keywords: regression)
Attachments
(1 file)
47 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details | Review |
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Comment 2•6 years ago
|
||
Martin, could you look in to this as you reviewed the regressing patch?
Assignee | ||
Comment 4•6 years ago
|
||
It's known Gtk+ issue - https://gitlab.gnome.org/GNOME/gtk/issues/1492.
Assignee | ||
Comment 5•6 years ago
|
||
Unfortunately there's no fix available for it. I tried to get the filter as a property from the dialog but it's saves as a property of an inner widget (GtkFileChooserWidget) and only when GtkFileChooserDialog fallback is used - so it's really hacky approach which may lead to even more failures.
I suggest to switch back to GtkFileChooserDialog and use GtkFileChooserNative under a pref which makes sense for KDE users and/or enable it for KDE only by default. When https://gitlab.gnome.org/GNOME/gtk/issues/1492 is fixed we can enable it for the appropriate Gtk+ version only.
Assignee | ||
Comment 6•6 years ago
|
||
Assignee | ||
Comment 7•6 years ago
|
||
Assignee | ||
Comment 8•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Pushed by ebalazs@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c8604d1a709c
[Linux/Gtk] Enable native (xdg-desktop based) file dialog on KDE only due to Gtk+ regression, r=jhorak
Comment 10•6 years ago
|
||
bugherder |
Comment 11•6 years ago
|
||
Please nominate this for Beta approval when you get a chance.
Assignee | ||
Comment 12•6 years ago
|
||
Comment on attachment 9035609 [details]
Bug 1517074 - [Linux/Gtk] Enable native (xdg-desktop based) file dialog on KDE only due to Gtk+ regression, r=jhorak
[Beta/Release Uplift Approval Request]
Feature/Bug causing the regression: Bug 1490186
User impact if declined: Only "Webpage Complete" can be saved. "HTML Only" or Text can't be saved by "Save As" dialog.
Is this code covered by automated tests?: No
Has the fix been verified in Nightly?: No
Needs manual test from QE?: Yes
If yes, steps to reproduce: 1) Go to any Web page
2) Select Menu -> File -> Save Page As.
3) In the Save As dialog select "Text" or "HTML Only" in bottom left corner.
4) Save the page to disk
5) Check that saved page is correct.
List of other uplifts needed: None
Risk to taking this patch: Low
Why is the change risky/not risky? (and alternatives if risky): Linux only. Reverts Bug 1490186 for non-flatpak environment.
String changes made/needed: none
Updated•6 years ago
|
Updated•6 years ago
|
Comment 13•6 years ago
|
||
Comment on attachment 9035609 [details]
Bug 1517074 - [Linux/Gtk] Enable native (xdg-desktop based) file dialog on KDE only due to Gtk+ regression, r=jhorak
[Triage Comment]
Works around a Linux-only GTK bug which causes "HTML Only" webpage saving to not work. Approved for 65.0b11.
Comment 14•6 years ago
|
||
bugherder uplift |
Comment 15•6 years ago
|
||
I successfully reproduced the issue on Firefox Beta 64.0b4 under Ubuntu 18.04 (x64) using the STR from Comment 0.
The issue is no longer reproducible on Firefox Beta 65.0b11 and latest Nightly 66.0a1 (2019-01-15) under Ubuntu 18.04 (x64).
Comment 16•5 years ago
|
||
I see this with FF 74.0 from Fedora repos and Qt file dialog (GTK_USE_PORTAL=1).
Saving web page with "html only" - getting directory created also (while it shall not).
Comment 17•5 years ago
|
||
This still doesn't work despite https://gitlab.gnome.org/GNOME/gtk/issues/1492 having been fixed in the meantime. From my analysis, the problem is that 'gtk_file_chooser_get_filter' still does not work for 'GtkFileChooserNative', only 'gtk_file_chooser_set_filter' (i.e. the function to set preselect a specific filter, not to get the one that is finally selected) was implemented.
For 'gtk_file_chooser_get_filter', there is another upstream GNOME bug report that is still open: https://gitlab.gnome.org/GNOME/gtk/-/issues/1820
Comment 18•5 years ago
|
||
(In reply to Michael Weghorn from comment #17)
This still doesn't work despite https://gitlab.gnome.org/GNOME/gtk/issues/1492 having been fixed in the meantime. From my analysis, the problem is that 'gtk_file_chooser_get_filter' still does not work for 'GtkFileChooserNative', only 'gtk_file_chooser_set_filter' (i.e. the function to set preselect a specific filter, not to get the one that is finally selected) was implemented.
For 'gtk_file_chooser_get_filter', there is another upstream GNOME bug report that is still open: https://gitlab.gnome.org/GNOME/gtk/-/issues/1820
As a clarification, this does not work when using a portal (e.g. with 'GTK_USE_PORTAL=1' set).
Comment 19•4 years ago
|
||
(In reply to Michael Weghorn from comment #17)
This still doesn't work despite https://gitlab.gnome.org/GNOME/gtk/issues/1492 having been fixed in the meantime. From my analysis, the problem is that 'gtk_file_chooser_get_filter' still does not work for 'GtkFileChooserNative', only 'gtk_file_chooser_set_filter' (i.e. the function to set preselect a specific filter, not to get the one that is finally selected) was implemented.
For 'gtk_file_chooser_get_filter', there is another upstream GNOME bug report that is still open: https://gitlab.gnome.org/GNOME/gtk/-/issues/1820
That issue has been fixed now, so this also works now with 'GTK_USE_PORTAL=1' set when using the current development versions of gtk, xdg-desktop-portal and xdg-desktop-portal-gtk. For xdg-desktop-portal-kde (i.e. the KF5/KDE Plasma native file choosers), there is a pending merge request to fix it there as well at https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/5/ .
See https://gitlab.gnome.org/GNOME/gtk/-/issues/1820 for more details.
Description
•