Closed Bug 86286 Opened 25 years ago Closed 25 years ago

gtk_moz_embed_push_startup should return success/failure

Categories

(Core Graveyard :: Embedding: GTK Widget, enhancement)

x86
Linux
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: timecop, Assigned: blizzard)

Details

Perhaps it would be beneficial for embedding work to have the gtk_moz_embed_push_startup call return a boolean value depending on whether the embedding API initialization succeeded or not. This could then be used to trap errors like MOZILLA_FIVE_HOME not being set, etc. According to EmbedPrivate.cpp in embedding/browser/gtk/src line 343, if NS_InitEmbedding() call fails, the function returns immediately, skipping a number of critical initializations. With return value in place, this condition can be trapped and user properly informed of the issue, instead of a segfault.
Can't change the signature of those functions - too many people use them.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.