Dragging and dropping files on Tor Browser triggers an assertion
Dropping a file on Tor Browser to open it triggers an assertion when they are enabled, on the validity of the event timestamp.
I haven't checked if Firefox also has this problem yet, because I don't have a debug build of Firefox.
Verified on Linux, for now, but might happen also on other platforms.
TimeDuration operator-(const TimeStamp& aOther) const {
MOZ_ASSERT(!IsNull(), "Cannot compute with a null value");
MOZ_ASSERT(!aOther.IsNull(), "Cannot compute with aOther null value"); // <-- this is the assertion
Stack trace
mozilla::TimeStamp::operator-(mozilla::TimeStamp const&) const (/home/piero/Tor/tor-browser/obj-x86_64-pc-linux-gnu/dist/include/mozilla/TimeStamp.h:478)
mozilla::TimeStamp mozilla::SystemTimeConverter<unsigned int, mozilla::TimeStamp>::GetTimeStampFromSystemTime<mozilla::CurrentX11TimeGetter>(unsigned int, mozilla::CurrentX11TimeGetter&) (/home/piero/Tor/tor-browser/widget/SystemTimeConverter.h:110)
nsWindow::GetEventTimeStamp(unsigned int) (/home/piero/Tor/tor-browser/widget/gtk/nsWindow.cpp:4925)
nsWindow::GetWidgetEventTime(unsigned int) (/home/piero/Tor/tor-browser/widget/gtk/nsWindow.cpp:4893)
nsWindow::OnEnterNotifyEvent(_GdkEventCrossing*) (/home/piero/Tor/tor-browser/widget/gtk/nsWindow.cpp:4237)
enter_notify_event_cb(_GtkWidget*, _GdkEventCrossing*) (/home/piero/Tor/tor-browser/widget/gtk/nsWindow.cpp:8023)
___lldb_unnamed_symbol9265 (@___lldb_unnamed_symbol9265:49)
___lldb_unnamed_symbol908 (@___lldb_unnamed_symbol908:104)
___lldb_unnamed_symbol1115 (@___lldb_unnamed_symbol1115:160)
g_signal_emit_valist (@g_signal_emit_valist:21)
g_signal_emit (@g_signal_emit:29)
___lldb_unnamed_symbol17566 (@___lldb_unnamed_symbol17566:109)
gtk_main_do_event (@gtk_main_do_event:474)
___lldb_unnamed_symbol2629 (@___lldb_unnamed_symbol2629:15)
___lldb_unnamed_symbol4021 (@___lldb_unnamed_symbol4021:14)
___lldb_unnamed_symbol2528 (@___lldb_unnamed_symbol2528:128)
___lldb_unnamed_symbol2539 (@___lldb_unnamed_symbol2539:151)
g_main_context_iteration (@g_main_context_iteration:18)
nsAppShell::ProcessNextNativeEvent(bool) (/home/piero/Tor/tor-browser/widget/gtk/nsAppShell.cpp:422)
nsBaseAppShell::DoProcessNextNativeEvent(bool) (/home/piero/Tor/tor-browser/widget/nsBaseAppShell.cpp:131)
nsBaseAppShell::OnProcessNextEvent(nsIThreadInternal*, bool) (/home/piero/Tor/tor-browser/widget/nsBaseAppShell.cpp:250)
non-virtual thunk to nsBaseAppShell::OnProcessNextEvent(nsIThreadInternal*, bool) (/home/piero/Tor/tor-browser/widget/nsBaseAppShell.cpp:0)
nsThread::ProcessNextEvent(bool, bool*) (/home/piero/Tor/tor-browser/xpcom/threads/nsThread.cpp:1154)
NS_ProcessNextEvent(nsIThread*, bool) (/home/piero/Tor/tor-browser/xpcom/threads/nsThreadUtils.cpp:479)
mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) (/home/piero/Tor/tor-browser/ipc/glue/MessagePump.cpp:85)
MessageLoop::RunHandler() (/home/piero/Tor/tor-browser/ipc/chromium/src/base/message_loop.cc:361)
MessageLoop::Run() (/home/piero/Tor/tor-browser/ipc/chromium/src/base/message_loop.cc:343)
nsBaseAppShell::Run() (/home/piero/Tor/tor-browser/widget/nsBaseAppShell.cpp:148)
nsAppStartup::Run() (/home/piero/Tor/tor-browser/toolkit/components/startup/nsAppStartup.cpp:295)
XREMain::XRE_mainRun() (/home/piero/Tor/tor-browser/toolkit/xre/nsAppRunner.cpp:5826)
XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) (/home/piero/Tor/tor-browser/toolkit/xre/nsAppRunner.cpp:6026)
XRE_main(int, char**, mozilla::BootstrapConfig const&) (/home/piero/Tor/tor-browser/toolkit/xre/nsAppRunner.cpp:6082)
do_main(int, char**, char**) (/home/piero/Tor/tor-browser/browser/app/nsBrowserApp.cpp:227)
main (/home/piero/Tor/tor-browser/browser/app/nsBrowserApp.cpp:445)
__libc_start_call_main (@__libc_start_call_main:26)
__libc_start_main_impl (@__libc_start_main@@GLIBC_2.34:43)
_start (@_start:14)
Other kind of drag and drops (e.g., tabs/links from Firefox) work, but I haven't done an extended test.
Edited by Pier Angelo Vendrame