diff --git a/DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index f6b82ecf5d..7ddd8ae277 100644 --- a/DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -24,7 +24,7 @@ "location" : "https://github.com/duckduckgo/BrowserServicesKit", "state" : { "branch" : "jacek/report-on-toggle", - "revision" : "3f2c639a70bc928d211ad552c0cdc2ea58252d8c" + "revision" : "f7e1a3eb46ec011b531e7e7ef3c87bb6b1aa1eff" } }, { @@ -87,7 +87,7 @@ "location" : "https://github.com/duckduckgo/privacy-dashboard", "state" : { "branch" : "02-22-simple_report_screen", - "revision" : "72e544adf13e8bd55b28af24aa09029d2796daa1" + "revision" : "2e8139b6dec68919e0f5eaea29b10f390eb71ad8" } }, { diff --git a/DuckDuckGo/PrivacyDashboard/View/PrivacyDashboardViewController.swift b/DuckDuckGo/PrivacyDashboard/View/PrivacyDashboardViewController.swift index adfed9b315..b3e3e8adb5 100644 --- a/DuckDuckGo/PrivacyDashboard/View/PrivacyDashboardViewController.swift +++ b/DuckDuckGo/PrivacyDashboard/View/PrivacyDashboardViewController.swift @@ -276,9 +276,10 @@ extension PrivacyDashboardViewController: PrivacyDashboardReportBrokenSiteDelega extension PrivacyDashboardViewController: PrivacyDashboardToggleReportDelegate { func privacyDashboardController(_ privacyDashboardController: PrivacyDashboardController, - didRequestSubmitToggleReportWithSource source: BrokenSiteReport.Source) { + didRequestSubmitToggleReportWithSource source: BrokenSiteReport.Source, + didOpenReportInfo: Bool) { do { - let report = try makeBrokenSiteReport(source: source) + let report = try makeBrokenSiteReport(source: source, didOpenReportInfo: didOpenReportInfo) try toggleProtectionsOffReporter.report(report, reportMode: .toggle) } catch { os_log("Failed to generate or send the broken site report: %@", type: .error, error.localizedDescription) @@ -297,7 +298,8 @@ extension PrivacyDashboardViewController { private func makeBrokenSiteReport(category: String = "", description: String = "", - source: BrokenSiteReport.Source) throws -> BrokenSiteReport { + source: BrokenSiteReport.Source, + didOpenReportInfo: Bool = false) throws -> BrokenSiteReport { // ⚠️ To limit privacy risk, site URL is trimmed to not include query and fragment guard let currentTab = tabViewModel?.tab, @@ -337,7 +339,8 @@ extension PrivacyDashboardViewController { protectionsState: protectionsState, reportFlow: source, errors: errors, - httpStatusCodes: statusCodes) + httpStatusCodes: statusCodes, + didOpenReportInfo: didOpenReportInfo) return websiteBreakage } }