Closed Bug 481417 Opened 16 years ago Closed 8 years ago

InitEmbedding called in constructor

Categories

(Core Graveyard :: Embedding: APIs, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: jreams, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.48 Safari/525.19 Build Identifier: In the new embedding APIs, InitEmbedding is called in the constructor of the MozView class, so if it fails, there is no way to gracefully report the error. So the MozView class will be created anyway, even though the underlying GRE has not been properly initialized. When the embedding application calls CreateBrowser, an access exception is raised because the embedding API is making calls to libraries that don't exist. Reproducible: Always Steps to Reproduce: 1. Do not set the GRE_HOME environment variable. 2. Run an application that uses the new embedding API. Actual Results: The application triggers a breakpoint with the following error: Unhandled exception at 0x0148d6db (js_gecko.dll) in njord.exe: 0xC0000005: Access violation writing location 0x00000000. Expected Results: The application should have started embedded Gecko and displayed an HTML page. I've only tested this in Windows, but since the bug exists in the embedding api, I imagine it would occur on all platforms.
Marking a bunch of bugs in the "Embedding: APIs" component INCOMPLETE in preparation to archive that component. If I have done this incorrectly, please reopen the bugs and move them to a more correct component as we don't have "embedding" APIs any more.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.