Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cookie debug screen and diagnostic report generation #913

Merged
merged 9 commits into from
Jul 1, 2021
Prev Previous commit
Next Next commit
show cookies which have been fireproofed
  • Loading branch information
brindy committed Jun 24, 2021
commit 400273bcdc2c14d8c26c346fb23f753ebc4f793a
6 changes: 5 additions & 1 deletion DuckDuckGo/CookieDebugViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import UIKit
import WebKit
import Core

class CookieDebugViewController: UITableViewController {

Expand Down Expand Up @@ -60,7 +61,10 @@ class CookieDebugViewController: UITableViewController {
.sorted(by: { $0.path.lowercased() < $1.path.lowercased() })
.reversed())

tmp.append(DomainCookies(domain: domain, cookies: domainCookies))
let domainName = domain +
(PreserveLogins.shared.isAllowed(cookieDomain: domain) ? " 👩‍🚒" : "")

tmp.append(DomainCookies(domain: domainName, cookies: domainCookies))
}
self.cookies = tmp
}
Expand Down