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 988653e355
commit 901e71f467

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();