Bug 820658 - Private Browsing leaks history in SQLite's Write-Ahead Log for tabs.db r=bnicholson

This commit is contained in:
Mark Finkle 2012-12-15 23:55:03 -05:00
parent cbcd03fffa
commit 58e59c52b0

View File

@ -190,9 +190,9 @@ public final class TabsAccessor {
int position = 0;
for (Tab tab : tabs) {
// Skip this tab if it has a null URL.
// Skip this tab if it has a null URL or is in private browsing mode
String url = tab.getURL();
if (url == null)
if (url == null || tab.isPrivate())
continue;
ContentValues values = new ContentValues();