mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
change GetLastVisitDate semantics back to the way they were before - avoids a runtime assertion in nsWebShell.cpp
This commit is contained in:
parent
82f71853c7
commit
d3b787642e
@ -1022,8 +1022,10 @@ nsGlobalHistory::GetLastVisitDate(const char *aURL, PRInt64 *_retval)
|
||||
nsMdbPtr<nsIMdbRow> row(mEnv);
|
||||
rv = FindRow(kToken_URLColumn, aURL, getter_Acquires(row));
|
||||
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
if (!row) return NS_ERROR_FAILURE;
|
||||
if (NS_FAILED(rv)|| !row) {
|
||||
*_retval = LL_ZERO;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
return GetRowValue(row, kToken_LastVisitDateColumn, _retval);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user