зеркало из https://github.com/mozilla/pjs.git
Follow up fix to bug 516728. Fixes assertion description and removing an extra ws
This commit is contained in:
Родитель
b3d59190cc
Коммит
b83811097b
|
@ -1179,13 +1179,12 @@ History::RegisterVisitedCallback(nsIURI* aURI,
|
||||||
NS_ASSERTION(aURI, "Must pass a non-null URI!");
|
NS_ASSERTION(aURI, "Must pass a non-null URI!");
|
||||||
#ifdef MOZ_IPC
|
#ifdef MOZ_IPC
|
||||||
if (XRE_GetProcessType() == GeckoProcessType_Content) {
|
if (XRE_GetProcessType() == GeckoProcessType_Content) {
|
||||||
NS_PRECONDITION(aLink, "Must pass a non-null URI!");
|
NS_PRECONDITION(aLink, "Must pass a non-null Link!");
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
NS_PRECONDITION(aLink, "Must pass a non-null URI!");
|
NS_PRECONDITION(aLink, "Must pass a non-null Link!");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// First, ensure that our hash table is setup.
|
// First, ensure that our hash table is setup.
|
||||||
if (!mObservers.IsInitialized()) {
|
if (!mObservers.IsInitialized()) {
|
||||||
NS_ENSURE_TRUE(mObservers.Init(), NS_ERROR_OUT_OF_MEMORY);
|
NS_ENSURE_TRUE(mObservers.Init(), NS_ERROR_OUT_OF_MEMORY);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче