Followup fix for bug 641552. Make sure to enumerate new category on startup. r=jst
authorFabrice Desré <fabrice@mozilla.com>
Tue, 06 Sep 2011 22:53:08 -0700
changeset 77906 09935ede3c77b175d1f8db7d1c764483d8ed6e4f
parent 77905 7fbe71f2b56e9203b67dc0585395820970c03a70
child 77955 0c7303e897c565ac2ed2783adb3c338c33265841
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjst
bugs641552
milestone9.0a1
first release with
nightly linux32
09935ede3c77 / 9.0a1 / 20110907030853 / files
nightly linux64
09935ede3c77 / 9.0a1 / 20110907030853 / files
nightly mac
09935ede3c77 / 9.0a1 / 20110907030853 / files
nightly win32
09935ede3c77 / 9.0a1 / 20110907030853 / files
nightly win64
09935ede3c77 / 9.0a1 / 20110907030853 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Followup fix for bug 641552. Make sure to enumerate new category on startup. r=jst
dom/base/nsScriptNameSpaceManager.cpp
--- a/dom/base/nsScriptNameSpaceManager.cpp
+++ b/dom/base/nsScriptNameSpaceManager.cpp
@@ -437,16 +437,19 @@ nsScriptNameSpaceManager::Init()
   NS_ENSURE_SUCCESS(rv, rv);
 
   rv = FillHash(cm, JAVASCRIPT_GLOBAL_STATIC_NAMESET_CATEGORY);
   NS_ENSURE_SUCCESS(rv, rv);
 
   rv = FillHash(cm, JAVASCRIPT_GLOBAL_DYNAMIC_NAMESET_CATEGORY);
   NS_ENSURE_SUCCESS(rv, rv);
 
+  rv = FillHash(cm, JAVASCRIPT_NAVIGATOR_PROPERTY_CATEGORY);
+  NS_ENSURE_SUCCESS(rv, rv);
+
   // Initial filling of the has table has been done.
   // Now, listen for changes.
   nsCOMPtr<nsIObserverService> serv = 
     do_GetService(NS_OBSERVERSERVICE_CONTRACTID);
 
   if (serv) {
     serv->AddObserver(this, NS_XPCOM_CATEGORY_ENTRY_ADDED_OBSERVER_ID, PR_TRUE);
   }