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:
dougt%netscape.com
2000-07-04 21:53:27 +00:00
parent 4aa12d035b
commit bf51a63eae
8 changed files with 170 additions and 109 deletions

View File

@@ -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();
}