зеркало из https://github.com/mozilla/gecko-dev.git
Bug 914294 - Don't throw exceptions from the history result end batch macro to retain backwards compatibility.
r=mano
This commit is contained in:
Родитель
3da4591020
Коммит
55f9714d25
|
@ -61,8 +61,8 @@
|
|||
#define END_RESULT_BATCH_AND_REFRESH_CONTENTS() \
|
||||
PR_BEGIN_MACRO \
|
||||
nsNavHistoryResult* result = GetResult(); \
|
||||
NS_ENSURE_STATE(result); \
|
||||
if (result->mBatchInProgress) { \
|
||||
NS_WARN_IF_FALSE(result, "Working with a non-live-updating Places container"); \
|
||||
if (result && result->mBatchInProgress) { \
|
||||
result->EndBatch(); \
|
||||
} \
|
||||
PR_END_MACRO
|
||||
|
|
Загрузка…
Ссылка в новой задаче