GNOME Bugzilla – Bug 165445
crash on closing (gopher)
Last modified: 2005-03-14 19:13:59 UTC
Open google.com using gopher protocol. Close window.
Created attachment 36615 [details] [review] Proposed fix.
WARNING: NS_ENSURE_TRUE(mDocShell) failed, file nsDSURIContentListener.cpp, line 108 ** ERROR **: file ../../../embed/mozilla/mozilla-embed-single.cpp: line 320 (void mozilla_embed_single_new_window_orphan_cb(GtkMozEmbedSingle*, GtkMozEmbed**, unsigned int, EphyEmbedSingle*)): assertion failed: (chrome_mask & GTK_MOZ_EMBED_FLAG_OPENASCHROME) aborting... Program received signal SIGTRAP, Trace/breakpoint trap.
+ Trace 54997
Thread NaN (LWP 10577)
Comment on attachment 36615 [details] [review] Proposed fix. Sorry, but this is just papering over the bug; I'd rather fix the real problem.
This is actually two separate problems: 1) Closing the window causes the shell to be finalised, embed shell to be finalised, which does gtk_moz_embed_pop_startup, causing outstanding events to be processed. One event triggers a window open call (#13), which we're in no position to process at this time (since any open window will require a live shell). 2) Since there are no windows open, it emits the new_window signal on the embed_single where ephy only opens chrome windows not ordinary window (a g_assert, which is the cause of this crash). Marco, do you have any idea how we would go about fixing (1) ?
This is fixed.