44113, 44190, 44191.
r/a=valeski@netscape.com nsDocShellTreeOwner not handling chrome/content correctly. Asserts when no toplevel window set. Need to start chrome up from NS_InitEmbedding() Test App changes. git-svn-id: svn://10.0.0.236/trunk@73658 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsIEventQueueService.h"
|
||||
#include "nsIChromeRegistry.h"
|
||||
|
||||
#include "nsIStringBundle.h"
|
||||
|
||||
@@ -160,7 +161,17 @@ nsresult NS_InitEmbedding(nsILocalFile *aPath)
|
||||
}
|
||||
#endif
|
||||
|
||||
return NS_OK;
|
||||
|
||||
// Init the chrome registry.
|
||||
|
||||
nsCOMPtr <nsIChromeRegistry> chromeReg = do_GetService("component://netscape/chrome/chrome-registry");
|
||||
NS_ASSERTION(chromeReg, "chrome check couldn't get the chrome registry");
|
||||
|
||||
if (!chromeReg)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
return chromeReg->CheckForNewChrome();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user