(I've seen this happen in nautilus) 1) Application calls gtk_moz_embed_open_stream 2) Failure occurs in GtkMozEmbedChrome::OpenStream after mDoingStream is set to TRUE (in my case, the failure is in " docShell = do_QueryInterface(contentItem);" 3) Subsequent call to gtk_moz_embed_append_data calls GtkMozEmbedChrome::AppendToStream. 4) GtkMozEmbedChrome::mStreamListener is still uninitialized, so useage of that in AppendToStream causes crash. Requested Fix: 1) GtkMozEmbedChrome::OpenStream should set mDoingStream to FALSE on failure 2) AppendToStream and CloseStream should return if mDoingStream is FALSE 3) gtk_moz_embed_open_stream should return error code instead of void. (I'll try to submit a patch in a bit)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Incidentally, it appears that this case can happen any time gtk_moz_embed_open_stream is called prior to the control being realized. Given that, perhaps some additional checking should be done there.
Yeah, I agree.
Target Milestone: --- → mozilla0.9
Target Milestone: mozilla0.9 → mozilla0.9.1
Status: NEW → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → FIXED
Component: Embedding: GTK Widget → Embedding: GTK Widget
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.