We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4a8935 commit c2af345Copy full SHA for c2af345
common/embed.cpp
@@ -86,7 +86,10 @@ static nsCOMPtr<WindowCreator> sWindowCreator;
86
87
MozApp::MozApp(const char* aProfilePath)
88
{
89
- InitEmbedding(aProfilePath);
+ nsresult rv = InitEmbedding(aProfilePath);
90
+ if (NS_FAILED(rv)) {
91
+ NS_RUNTIMEABORT("Embedding initialization failed!");
92
+ }
93
}
94
95
MozApp::~MozApp()
@@ -263,7 +266,11 @@ WindowCreator::CreateChromeWindow2(nsIWebBrowserChrome *aParent,
263
266
264
267
MozView::MozView()
265
268
- InitEmbedding();
269
+ nsresult rv = InitEmbedding();
270
271
272
273
+
274
mPrivate = new Private();
275
276
// TODO: should probably deal with WindowCreator in InitEmbedding
0 commit comments