Commit a7b8b87b authored by Benjamin Smedberg's avatar Benjamin Smedberg
Browse files

Bug 725015 - Always deliver category-change notifications asynchronously. This...

Bug 725015 - Always deliver category-change notifications asynchronously. This is required because extensions need the JavaScript-global-property category to work, but we always register contracts at the "end" of a chrome.manifest so that they will always be after the CIDs, but that means that they are after the categories are registered. r=bz

--HG--
extra : rebase_source : 495126e85c6a76697610cb5eceab124871b8c5db
parent b012d47b
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -556,13 +556,8 @@ nsCategoryManager::NotifyObservers( const char *aTopic,
    r = new CategoryNotificationRunnable(this, aTopic, aCategoryName);
  }

  if (NS_IsMainThread()) {
    r->Run();
  }
  else {
  NS_DispatchToMainThread(r);
}
}

NS_IMETHODIMP
nsCategoryManager::GetCategoryEntry( const char *aCategoryName,