Firefox 124 & later mangle drag&dropped URLs
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
People
(Reporter: kevink9876543, Assigned: jhorak)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 file)
Environment:
- Firefox 124.0rc1, or Firefox 125.0a1 official Nightly built from https://hg.mozilla.org/mozilla-central/rev/2333872b0f5028fa1f0e9236440fe58df07a0235
- Xubuntu 22.04
- new Firefox profile
To reproduce:
Drag&drop a link from an email in Evolution (Evolution installed as flatpak) onto Firefox, either in the browser content area or on the tab bar.
Expected results:
Firefox should load the link URL in the same tab (if dropped in the content area) or in a new tab (if dropped in the end of the tab bar)
Actual results:
In most cases:
If the link is dropped in the content area, nothing happens. If dropped in the end of the tab bar, Firefox opens a new tab to search for a sequence of non-ASCII characters that according to Character Map are mostly, but not entirely, CJK characters.
With some URLs, Firefox will instead try to load a completely unrelated IDN instead of the dragged URL. For example https://github.com/mozilla/pdf.js
will transform into http://xn--4dmw12honcj4ap0a74lr7ds7bl9bc2jhmc6va99zk1ay74bwpx/
.
Last working nightly built from: https://hg.mozilla.org/mozilla-central/rev/5f1d087788bb55c6786e4f0fb0126feb4a556a8b
First broken nightly built from: https://hg.mozilla.org/mozilla-central/rev/dbe553dd13b79a3c4821f203f3adca31fe71cc56
Reporter | ||
Comment 1•8 months ago
|
||
Looking more closely at that regression range, tried building Firefox 124.0 release with applying hg backout --tool ':merge-other' bdabd37473ed5839557b90557ee6ca684a0d4500
, and so far that seems to have restored the expected behavior. So this is regression from Bug 1786251 ?
Reporter | ||
Updated•8 months ago
|
Comment 2•8 months ago
|
||
Set release status flags based on info from the regressing bug 1786251
:jhorak, since you are the author of the regressor, bug 1786251, could you take a look?
For more information, please visit BugBot documentation.
Updated•8 months ago
|
Updated•8 months ago
|
Updated•8 months ago
|
Updated•8 months ago
|
Assignee | ||
Comment 4•8 months ago
|
||
Filled as upstream issue: https://gitlab.gnome.org/GNOME/gtk/-/issues/6563 But I guess we'll fix/workaround this on our side too.
Assignee | ||
Updated•8 months ago
|
Comment 5•8 months ago
|
||
The bug is marked as tracked for firefox124 (release), tracked for firefox125 (beta) and tracked for firefox126 (nightly). However, the bug still has low priority.
:gcp, could you please increase the priority for this tracked bug? Given that it is a regression and we know the cause, we could also simply backout the regressor. If you disagree with the tracking decision, please talk with the release managers.
For more information, please visit BugBot documentation.
Updated•8 months ago
|
Assignee | ||
Comment 6•8 months ago
|
||
The targets vnd.portal.filetransfer and vnd.portal.files usually contains the
numeric value data associated with the file transfer portal. In case
the dragged data is non-local file - like https link, the vnd.portal.files
target could also be send by the drag source application and it contains https uri.
The gtk_selection_data_get_uris call fails and cause delay and wrong
data to be received. This needs to be fixed by upstream, meanwhile introducing this
workaround to mitigate regression.
Updated•7 months ago
|
Comment 9•7 months ago
|
||
The patch landed in nightly and beta is affected.
:jhorak, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox125
towontfix
.
For more information, please visit BugBot documentation.
Reporter | ||
Comment 10•7 months ago
|
||
Thanks for your work on this!
Unfortunately I'm still seeing the issue in Firefox Nightly (126.0a1 (2024-04-03) built from https://hg.mozilla.org/mozilla-central/rev/cfb42711da4589f5ede0032644a6d577d66aa468 ), as well as in a self build of Firefox 124.0.2 with https://hg.mozilla.org/mozilla-central/rev/d428c9e69fd5 applied via hg graft
.
Is this fix included in the Firefox Nightly I tested? When grafting this patch onto Firefox 124.0.2, did I miss something else that also needed to be backported for it to work?
Reporter | ||
Comment 11•7 months ago
|
||
(In reply to kevink9876543 from comment #10)
Is this fix included in the Firefox Nightly I tested?
Per bug 1888202 comment 7 it is. Reopening on that basis
Reporter | ||
Comment 12•7 months ago
|
||
Now this is interesting: converting the IDN in the description to Unicode, and then encoding the result as UTF-16 gives this -
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import encodings.idna as idna
>>> b=idna.ToUnicode('xn--4dmw12honcj4ap0a74lr7ds7bl9bc2jhmc6va99zk1ay74bwpx')
>>> b
'瑨灴㩳工楧桴扵挮浯洯穯汩慬瀯晤樮'
>>> import codecs
>>> codecs.encode(b, 'utf_16')
b'\xff\xfehttps:\xe5]github.com/mozilla/pdf.j'
Does this offer any insight into this issue?
Updated•7 months ago
|
Updated•7 months ago
|
Assignee | ||
Comment 13•7 months ago
|
||
Sorry I've focused on the first part of the bug, the unicode problem should be solved by: https://bugzilla.mozilla.org/show_bug.cgi?id=1888202
Reporter | ||
Comment 14•7 months ago
•
|
||
Seems this bug is a different Unicode problem? Tried a self build of mozilla-central rev 93d08e6b3d615ead541eee15f876af2c74e90d53 with the patch from bug 1888202 applied on top, and I can still reproduce this issue.
(I am not able to reproduce bug 1888202 on this self build, following the steps in bug 1888202 comment 3. Tested both the sample text in that comment, and the sample text in that bug's description.
On Firefox 124.0.2 release I do see bug 1888202, so can confirm the patch for bug 1888202 is working as intended on my system.)
Updated•7 months ago
|
Updated•7 months ago
|
Comment 15•7 months ago
|
||
:jhorak next week is the final week of beta for Fx126.
Was wondering if you plan on follow-ups here, or should we expect something in time for a later release?
Assignee | ||
Comment 16•7 months ago
|
||
This - the mangled unicode data should be fixed by: https://bugzilla.mozilla.org/show_bug.cgi?id=1888202 and uplifted to release.
Do you want me to create beta uplift too, or is it covered by the release uplift or is it enough?
Comment 17•7 months ago
|
||
(In reply to Jan Horak [:jhorak] from comment #16)
This - the mangled unicode data should be fixed by: https://bugzilla.mozilla.org/show_bug.cgi?id=1888202 and uplifted to release.
Do you want me to create beta uplift too, or is it covered by the release uplift or is it enough?
Thanks, Bug 1888202 is already in Fx126 Beta.
Are you planning any other changes here in Bug 1885400?
Assignee | ||
Comment 18•7 months ago
|
||
Let's ask reporter if he still see the other issue - evolution drag and drop fails.
Assignee | ||
Updated•7 months ago
|
Reporter | ||
Comment 19•7 months ago
|
||
Hi, yes I am still seeing this issue in Firefox 126.0b5.
(And can confirm that Bug 1888202 is still fixed in this version.)
Updated•6 months ago
|
Comment 20•6 months ago
|
||
Will address it at Bug 1881229.
Reporter | ||
Comment 21•6 months ago
|
||
Can confirm this seems fixed in Firefox Nightly 128.0a1 (2024-05-14) built from https://hg.mozilla.org/mozilla-central/rev/b2c1906d3f6e950d783cb681442333a5cea96d8f . Thanks :stransky! :D
Comment 22•6 months ago
|
||
Thanks for testing.
Updated•6 months ago
|
Comment 23•6 months ago
|
||
If we wanted to fix this in 127 still, is there a relatively backportable fix from that stack of changes we could uplift? I'm assuming we don't need all of them...
Comment 24•6 months ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #23)
If we wanted to fix this in 127 still, is there a relatively backportable fix from that stack of changes we could uplift? I'm assuming we don't need all of them...
The fix is quite big and hard to backport.
Updated•5 months ago
|
Description
•