GNOME Bugzilla – Bug 61883
Crash with bookmark "javascript:window.close()" from popup menu
Last modified: 2009-08-15 18:40:50 UTC
I've added a bookmark for "javascript:window.close()" and set it to "Add to context menu", so that I'm able to close tabs from the popup context menu, but when i use it in any tab galeon crashes. I'm using mozilla 0.9.4-3 from debian unstable. Following is the debugging information i've got from bug-buddy. Debugging Information: 0x408889b9 in wait4 () from /lib/libc.so.6
+ Trace 11248
Thread 2 (Thread 3117 (initial thread))
Thread 1 (Thread 3124 (manager thread))
verified and reported to mozilla
Hey i'm noticing that the problem is gone now :-), here at least ! I'm using mozilla 0.9.5-3 debian packages.
Sorry for the inaccurate information :-(. Now I've realized that the bug actually *is* still there, but it only triggers if the tab in which I select the mentioned bookmark is the _only one_ tab currently open in Galeon. If there are more than one tab open, instead, no crash happens as long as the tab in which I choose the bookmark is not the last open tab. Cheers.
ok so with the recent blizzard on close changes the crash is gone, the only thing remaining is ** CRITICAL **: file embed.c: line 460 (embed_grab_focus): assertion `embed != NULL' failed.
Can I close this now?
actually with HEAD such bookmark put in the context menu tried over a empty initial galeon closes the window but leaves the program running with the process doing gettimeofday({1008259639, 257095}, NULL) = 0 ioctl(3, FIONREAD, [0]) = 0 poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN|POLLPRI}, {fd=11, events=POLLIN}, {fd=23, events=POLLIN}, {fd=9, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=18, events=POLLIN}], 9, 0) = 0 gettimeofday({1008259639, 257324}, NULL) = 0 ioctl(3, FIONREAD, [0]) = 0 poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN|POLLPRI}, {fd=11, events=POLLIN}, {fd=23, events=POLLIN}, {fd=9, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=18, events=POLLIN}], 9, 9) = 0 gettimeofday({1008259639, 276979}, NULL) = 0 over and over again everything else seems to have closed fine as the next time started (after being killed) it does not show the crash dialog the same bookmark being in a toolbar does close it normally
I am experiencing a similar problem with the following URL: javascript:openWindow('../main/headlines3.asp?ID=24 ', 'remote') Mozilla is able to open in it in a new tab OK, but Galeon is not. Entering it into the main location bar works, but "open in new tab" from the bookmarks dock causes a crash. The stack trace off the core file is rather odd; looks like another loop, perhaps like the one mentioned above. This is galeon-1.0.1, mozilla-0.9.6. (no debugging symbols found)...Core was generated by `/usr/bin/galeon-bin'. Program terminated with signal 11, Segmentation fault. (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...[New Thread 1024 (LWP 1553)]
+ Trace 15666
I just noticed the software upgrades; my problem is fixed for me in Galeon 1.0.2/Mozilla 0.9.7. Yay! -B.
*** Bug 70397 has been marked as a duplicate of this bug. ***
still reproducable ?
Here if I start galeon from a terminal and then choose the window.close bookmark in the galeon window (with only one tab), after I click "OK" in the confirmation dialog ("A script wants to close the current window ...") the GUI is completely shut down, but galeon is still alive apparently doing nothing. Then, if I go to another terminal and try to start galeon (without closing the old one, like with CTRL-C in the former terminal), I get the following: IDN support disabled escape UTF-8 enabled ** ERROR **: Couldn't create the factory! aborting... Abortito (However galeon will obviously start properly as soon as I kill the old one.)
This should be reevaluated with the latest mozilla and galeon (1.0rc1 and 1.2.1)
It behaves the same for with 1.2.3 and mozilla 1.0rc3
This is now fixed, at least in galeon-1-2.