Crash in gtk_moz_embed_append_data() - embedding API not back compatible?

RESOLVED INCOMPLETE

Status

Core Graveyard
Embedding: GTK Widget
--
critical
RESOLVED INCOMPLETE
17 years ago
6 years ago

People

(Reporter: Bernie Maier, Assigned: blizzard)

Tracking

({crash})

Trunk
x86
Linux
crash

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

17 years ago
My app uses the GTK+ Mozilla embedding widget.  I've used the 0.9.1 milestone
embedding package as the baseline, and compiled and linked my app using the
header files and shared libraries from that release.  However, the app calls
gtk_moz_embed_append_data() when run against the 0.9.4 milestone release, it seg
faults.  Are there embedding APIs meant to be backwards compatible like this? 
See attachments for stack backtrace and code fragment.
(Reporter)

Comment 1

17 years ago
Created attachment 50203 [details]
Code fragment with call to gtk_moz_embed_append_data()
(Reporter)

Comment 2

17 years ago
Created attachment 50204 [details]
Stack backtrace

Comment 3

17 years ago
Makring NEW.
Severity: normal → critical
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: crash
(Assignee)

Comment 4

17 years ago
 gtk_moz_embed_open_stream(GTK_MOZ_EMBED(aBrowser->aMozEmbed),
                              "ant://", "text/html");

Is ant:// a valid protocol handler?
(Reporter)

Comment 5

17 years ago
No, ant:// isn't a valid protocol handler.  I didn't want to put http://, as
that's not how the HTML got to my code to be written to the stream, so I just
invented something.  (I was worried about side-effects from the history facility
if I put http:// there.)  Under milestone 0.9.1, Mozilla didn't seem to care
what you put there, as long as you put something.  Perhaps that's an erroneous
assumption on my part.  Regardless, it shouldn't seg fault (IMO).  But it gives
me an idea for a workaround.
(Reporter)

Comment 6

17 years ago
I tried changing the "ant://" to "http://" but the app still seg faults.
(Assignee)

Comment 7

17 years ago
I can't reproduce this.
I am wondering if this bug is still valid,
- it has been more than a year since this bug has been touched, and much has
happend since moz 0.9.4 and in the gtk world.
- last time cb (comment #7), could not reproduce this. 

Reporter, could you please retest to see if the problem persist, and either
comment or resolve the bug.
QA Contact: pavlov → gtk-widget

Comment 9

6 years ago
Blizzard, this bug is so old, I don't know what to do with it. Do we leave it open? You couldn't reproduce it back in 2001. Do we close as invalid?

Comment 10

6 years ago
The embedding gtk widget was removed, why did it come up?
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → INCOMPLETE
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.