Need public interface to download management



> Epiphany has a download manager built into it.

And there's no public way to get notified about downloadings.

EphyEmbedShell provide a pointer to downloader view, but the GObject
does not emit any signal such as download added, removed, cancelled,
or done.

Particular download job does not appears in public.

I'm writing an extension which is port of downloadstatusbar.mozdev.org
And have put an "added" signal into downloader view to get notified.

Such a public interface to download management is really necessary.

kz.

ps. attachment is backtrace by bug-buddy from download "changed" signal
via customized downloader view's "added" signal. I don't understand why.
Backtrace was generated from '/usr/local/bin/epiphany'

Using host libthread_db library "/lib/libthread_db.so.1".
`shared object read from target memory' has disappeared; keeping its symbols.
[Thread debugging using libthread_db enabled]
[New Thread -1208924496 (LWP 25502)]
[New Thread -1313412176 (LWP 25510)]
[New Thread -1302922320 (LWP 25509)]
[New Thread -1292432464 (LWP 25508)]
[New Thread -1271256144 (LWP 25507)]
[New Thread -1281746000 (LWP 25506)]
[New Thread -1260627024 (LWP 25504)]
[New Thread -1214334032 (LWP 25503)]
0x003ee402 in __kernel_vsyscall ()
#0  0x003ee402 in __kernel_vsyscall ()
#1  0x0045207b in __waitpid_nocancel () from /lib/libpthread.so.0
#2  0x00c8d4dd in libgnomeui_module_info_get () from /usr/lib/libgnomeui-2.so.0
#3  0x00bb315f in nsProfileLock::FatalSignalHandler ()
   from /usr/lib/mozilla-1.7.12/libgtkembedmoz.so
#4  <signal handler called>
#5  0x0047a68d in g_type_check_instance_cast ()
   from /usr/lib/libgobject-2.0.so.0
#6  0x0093ded5 in download_changed_cb ()
   from /usr/local/lib/epiphany/1.9/extensions/libdownbarextension.so
#7  0x0046d303 in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#8  0x00461bd8 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#9  0x00470213 in g_signal_stop_emission () from /usr/lib/libgobject-2.0.so.0
#10 0x00471850 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#11 0x0047447f in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#12 0x080cc6e7 in MozDownload::OnStateChange (this=0x8f9ea80, 
    aWebProgress=0x0, aRequest=0x90a76c8, aStateFlags=327681, aStatus=0)
    at MozDownload.cpp:377
#13 0x0549718a in NSGetModule ()
   from /usr/lib/mozilla-1.7.12/components/libembedcomponents.so
#14 0x044b9ca6 in NSGetModule ()
   from /usr/lib/mozilla-1.7.12/components/libnecko.so
#15 0x044c3c7c in NSGetModule ()
   from /usr/lib/mozilla-1.7.12/components/libnecko.so
#16 0x0442bba2 in NSGetModule ()
   from /usr/lib/mozilla-1.7.12/components/libnecko.so
#17 0x0442c03a in NSGetModule ()
   from /usr/lib/mozilla-1.7.12/components/libnecko.so
#18 0x00dea938 in nsInputStreamReadyEvent::EventHandler ()
   from /usr/lib/mozilla-1.7.12/libxpcom.so
#19 0x00e014d9 in PL_HandleEvent () from /usr/lib/mozilla-1.7.12/libxpcom.so
#20 0x00e01a9c in PL_ProcessPendingEvents ()
   from /usr/lib/mozilla-1.7.12/libxpcom.so
#21 0x00e03a46 in nsEventQueueImpl::nsEventQueueImpl$base ()
   from /usr/lib/mozilla-1.7.12/libxpcom.so
#22 0x04f44b4d in ?? ()
   from /usr/lib/mozilla-1.7.12/components/libwidget_gtk2.so
#23 0x0063bc9c in g_vasprintf () from /usr/lib/libglib-2.0.so.0
#24 0x00614a50 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#25 0x00617a66 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#26 0x00617d53 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#27 0x0107ef05 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#28 0x0807f161 in main (argc=1, argv=0xbfb37504) at ephy-main.c:312

Thread 8 (Thread -1214334032 (LWP 25503)):
#0  0x003ee402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x07c0e560 in poll () from /lib/libc.so.6
No symbol table info available.
#2  0x007283ac in PR_Poll () from /usr/lib/libnspr4.so
No symbol table info available.
#3  0x0444401a in NSGetModule ()
   from /usr/lib/mozilla-1.7.12/components/libnecko.so
No symbol table info available.
#4  0x044446c5 in NSGetModule ()
   from /usr/lib/mozilla-1.7.12/components/libnecko.so
No symbol table info available.
#5  0x00e05281 in nsThread::Main () from /usr/lib/mozilla-1.7.12/libxpcom.so
No symbol table info available.
#6  0x00729c2d in PR_Select () from /usr/lib/libnspr4.so
No symbol table info available.
#7  0x0044cbe2 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#8  0x07c1853e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 7 (Thread -1260627024 (LWP 25504)):
#0  0x003ee402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x0044eabc in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
No symbol table info available.
#2  0x00724647 in PR_Lock () from /usr/lib/libnspr4.so
No symbol table info available.
#3  0x0072499d in PR_WaitCondVar () from /usr/lib/libnspr4.so
No symbol table info available.
#4  0x00e074f5 in TimerThread::Shutdown ()
   from /usr/lib/mozilla-1.7.12/libxpcom.so
No symbol table info available.
#5  0x00e05281 in nsThread::Main () from /usr/lib/mozilla-1.7.12/libxpcom.so
No symbol table info available.
#6  0x00729c2d in PR_Select () from /usr/lib/libnspr4.so
No symbol table info available.
#7  0x0044cbe2 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#8  0x07c1853e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 6 (Thread -1281746000 (LWP 25506)):
#0  0x003ee402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x0044eabc in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
No symbol table info available.
#2  0x00724647 in PR_Lock () from /usr/lib/libnspr4.so
No symbol table info available.
#3  0x0072499d in PR_WaitCondVar () from /usr/lib/libnspr4.so
No symbol table info available.
#4  0x04450a7e in NSGetModule ()
   from /usr/lib/mozilla-1.7.12/components/libnecko.so
No symbol table info available.
#5  0x04451347 in NSGetModule ()
   from /usr/lib/mozilla-1.7.12/components/libnecko.so
No symbol table info available.
#6  0x00729c2d in PR_Select () from /usr/lib/libnspr4.so
No symbol table info available.
#7  0x0044cbe2 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#8  0x07c1853e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 5 (Thread -1271256144 (LWP 25507)):
#0  0x003ee402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x0044eabc in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
No symbol table info available.
#2  0x00724647 in PR_Lock () from /usr/lib/libnspr4.so
No symbol table info available.
#3  0x0072499d in PR_WaitCondVar () from /usr/lib/libnspr4.so
No symbol table info available.
#4  0x04423b48 in NSGetModule ()
   from /usr/lib/mozilla-1.7.12/components/libnecko.so
No symbol table info available.
#5  0x00729c2d in PR_Select () from /usr/lib/libnspr4.so
No symbol table info available.
#6  0x0044cbe2 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x07c1853e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 4 (Thread -1292432464 (LWP 25508)):
#0  0x003ee402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x0044eabc in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
No symbol table info available.
#2  0x00724647 in PR_Lock () from /usr/lib/libnspr4.so
No symbol table info available.
#3  0x0072499d in PR_WaitCondVar () from /usr/lib/libnspr4.so
No symbol table info available.
#4  0x04423b48 in NSGetModule ()
   from /usr/lib/mozilla-1.7.12/components/libnecko.so
No symbol table info available.
#5  0x00729c2d in PR_Select () from /usr/lib/libnspr4.so
No symbol table info available.
#6  0x0044cbe2 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x07c1853e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 3 (Thread -1302922320 (LWP 25509)):
#0  0x003ee402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x0044eabc in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
No symbol table info available.
#2  0x00724647 in PR_Lock () from /usr/lib/libnspr4.so
No symbol table info available.
#3  0x0072499d in PR_WaitCondVar () from /usr/lib/libnspr4.so
No symbol table info available.
#4  0x04423b48 in NSGetModule ()
   from /usr/lib/mozilla-1.7.12/components/libnecko.so
No symbol table info available.
#5  0x00729c2d in PR_Select () from /usr/lib/libnspr4.so
No symbol table info available.
#6  0x0044cbe2 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x07c1853e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 2 (Thread -1313412176 (LWP 25510)):
#0  0x003ee402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x0044eabc in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
No symbol table info available.
#2  0x00724647 in PR_Lock () from /usr/lib/libnspr4.so
No symbol table info available.
#3  0x0072499d in PR_WaitCondVar () from /usr/lib/libnspr4.so
No symbol table info available.
#4  0x04423b48 in NSGetModule ()
   from /usr/lib/mozilla-1.7.12/components/libnecko.so
No symbol table info available.
#5  0x00729c2d in PR_Select () from /usr/lib/libnspr4.so
No symbol table info available.
#6  0x0044cbe2 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x07c1853e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 1 (Thread -1208924496 (LWP 25502)):
#0  0x003ee402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x0045207b in __waitpid_nocancel () from /lib/libpthread.so.0
No symbol table info available.
#2  0x00c8d4dd in libgnomeui_module_info_get () from /usr/lib/libgnomeui-2.so.0
No symbol table info available.
#3  0x00bb315f in nsProfileLock::FatalSignalHandler ()
   from /usr/lib/mozilla-1.7.12/libgtkembedmoz.so
No symbol table info available.
#4  <signal handler called>
No symbol table info available.
#5  0x0047a68d in g_type_check_instance_cast ()
   from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#6  0x0093ded5 in download_changed_cb ()
   from /usr/local/lib/epiphany/1.9/extensions/libdownbarextension.so
No symbol table info available.
#7  0x0046d303 in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#8  0x00461bd8 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#9  0x00470213 in g_signal_stop_emission () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#10 0x00471850 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#11 0x0047447f in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#12 0x080cc6e7 in MozDownload::OnStateChange (this=0x8f9ea80, 
    aWebProgress=0x0, aRequest=0x90a76c8, aStateFlags=327681, aStatus=0)
    at MozDownload.cpp:377
	rv = 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]