Closed Bug 1888773 Opened 2 years ago Closed 2 years ago

There's a chance that _tabDropIndicator won't be hidden

Categories

(Core :: Widget: Gtk, defect)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jackyzy823, Unassigned)

References

Details

Attachments

(1 obsolete file)

I'm not sure how to reproduce, but there's a chance that _tabDropIndicator won't be hidden automatically. You need manually drag tabs around to hide it.

There's also a description and screenshot from a Reddit thread: https://www.reddit.com/r/firefox/comments/1ab87im/firefox_changing_tabs_itself/kjtivpk/?context=3

Also, the reddit user and i are using same desktop environment : KDE Plasma. I'm not sure if it is related.

I add some debug breakpoint/ log in chrome://browser/content/tabbrowser-tabs.js and found out that

Uncaught TypeError: dt is null
    getDropEffectForTabDrag chrome://browser/content/tabbrowser-tabs.js:1980
    on_dragover chrome://browser/content/tabbrowser-tabs.js:566
    handleEvent chrome://browser/content/tabbrowser-tabs.js:1848
    getDropEffectForTabDrag chrome://browser/content/tabbrowser-tabs.js:1980

According to the example from https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/dataTransfer , dataTransfer might be null

Assignee: nobody → jackyzy823
Status: NEW → ASSIGNED

Wasn't this fixed in bug 1875031?

Oh, sorry , i haven't notice that :(

But i think this patch is still worthwhile.

See Also: → 1875031
Severity: -- → N/A
Priority: -- → P5

Hey jackyzy823,

So the module owners and peers talked about this a bit, and we thought maybe what'd be better here is to try to write a test that exercises some native dragging and dropping and ensuring that the dataTransfer property exists (because it should always exist). Are you interested in doing that?

Mentor: mconley
Flags: needinfo?(jackyzy823)

Hi mconley .

Are you interested in doing that?

I'm ok with helping , but i have little knowledge about this.

Flags: needinfo?(jackyzy823)

I found that my approach doesn't work :( Also Fixes in bug 1875031 didn't work either, it still reproducible with Nightly (20240404)

Attachment #9394090 - Attachment is obsolete: true

The severity field is not set for this bug.
:mconley, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(mconley)

jackyzy823, I'm removing you as the assignee here for now, as we don't have a clear path forward.

emilio, since you worked on bug 1875031, any idea why the dataTransfer might still be null?

Assignee: jackyzy823 → nobody
Mentor: mconley
Status: ASSIGNED → NEW
Component: Tabbed Browser → Widget: Gtk
Flags: needinfo?(mconley) → needinfo?(emilio)
Product: Firefox → Core

I think this is https://bugs.kde.org/show_bug.cgi?id=464196 which was a KDE+GTK bug, and is fixed upstream.

Flags: needinfo?(emilio)

Jacky, can you confirm that if you use an updated KDE plasma version this doesn't reproduce anymore?

Flags: needinfo?(jackyzy823)
Severity: N/A → --
Priority: P5 → --

Hi, i updated to KDE 6 (with Fedora 40) , it seems work normally now.

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(jackyzy823)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: