Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into alex/tab-content-url
Browse files Browse the repository at this point in the history
  • Loading branch information
mallexxx committed Apr 23, 2024
2 parents 0d71897 + ac42cb8 commit ed6a930
Show file tree
Hide file tree
Showing 80 changed files with 1,132 additions and 2,081 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/create_variant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,28 @@ jobs:
.github
scripts
- name: Download DMG artifact
id: download-dmg-artifact
continue-on-error: true
uses: actions/download-artifact@v4
with:
name: duckduckgo-dmg
path: ${{ github.workspace }}

- name: Download release app
# Download the release app only if download-dmg-artifact fails
if: ${{ steps.download-dmg-artifact.outcome == 'failure' }}
run: |
curl -fLSs "${{ vars.RELEASE_DMG_URL }}" --output duckduckgo.dmg
hdiutil attach duckduckgo.dmg -mountpoint vanilla
mkdir -p dmg
cp -R vanilla/DuckDuckGo.app dmg/DuckDuckGo.app
hdiutil detach vanilla
rm -f duckduckgo.dmg
- name: Extract App from DMG
id: extract-app-from-dmg
run: |
hdiutil attach duckduckgo.dmg -mountpoint vanilla
mkdir -p dmg
cp -R vanilla/DuckDuckGo.app dmg/DuckDuckGo.app
hdiutil detach vanilla
rm -f duckduckgo.dmg
- name: Install create-dmg
run: brew install create-dmg
Expand Down
22 changes: 20 additions & 2 deletions .github/workflows/create_variants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,29 @@ jobs:
atb-asana-task-id: ${{ vars.DMG_VARIANTS_LIST_TASK_ID }}
origin-asana-section-id: ${{ vars.DMG_VARIANTS_ORIGIN_SECTION_ID }}


download-dmg-and-upload-artifact:

name: Download Release App and upload artifact

runs-on: macos-13
timeout-minutes: 15

steps:
- name: Download release app
run: |
curl -fLSs "${{ vars.RELEASE_DMG_URL }}" --output duckduckgo.dmg
- name: Upload DMG artifact
uses: actions/upload-artifact@v4
with:
name: duckduckgo-dmg
path: ${{ github.workspace }}/duckduckgo.dmg
retention-days: 1

create-variants:

name: Create Variant
needs: set-up-variants
needs: [set-up-variants, download-dmg-and-upload-artifact]

strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion Configuration/BuildNumber.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CURRENT_PROJECT_VERSION = 169
CURRENT_PROJECT_VERSION = 171
2 changes: 1 addition & 1 deletion Configuration/Version.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MARKETING_VERSION = 1.84.0
MARKETING_VERSION = 1.85.0
393 changes: 184 additions & 209 deletions DuckDuckGo.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/duckduckgo/BrowserServicesKit",
"state" : {
"revision" : "b8f0e5db431c63943b509d522c157f870ef03ae0",
"version" : "138.0.0"
"revision" : "1c2e84e6cd4543e9104aff753e48b146eeb36007",
"version" : "139.0.0"
}
},
{
Expand Down Expand Up @@ -120,7 +120,7 @@
{
"identity" : "swift-argument-parser",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser",
"location" : "https://github.com/apple/swift-argument-parser.git",
"state" : {
"revision" : "46989693916f56d1186bd59ac15124caef896560",
"version" : "1.3.1"
Expand All @@ -138,7 +138,7 @@
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"location" : "https://github.com/apple/swift-syntax",
"state" : {
"revision" : "64889f0c732f210a935a0ad7cda38f77f876262d",
"version" : "509.1.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,6 @@
ReferencedContainer = "container:LocalPackages/SyncUI">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "PixelKitTests"
BuildableName = "PixelKitTests"
BlueprintName = "PixelKitTests"
ReferencedContainer = "container:LocalPackages/PixelKit">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
Expand All @@ -177,16 +167,6 @@
ReferencedContainer = "container:LocalPackages/NetworkProtectionMac">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "NetworkProtectionTests"
BuildableName = "NetworkProtectionTests"
BlueprintName = "NetworkProtectionTests"
ReferencedContainer = "container:../BrowserServicesKit">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,16 +188,6 @@
ReferencedContainer = "container:LocalPackages/NetworkProtectionMac">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "PixelKitTests"
BuildableName = "PixelKitTests"
BlueprintName = "PixelKitTests"
ReferencedContainer = "container:LocalPackages/PixelKit">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
Expand All @@ -208,16 +198,6 @@
ReferencedContainer = "container:LocalPackages/DataBrokerProtection">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "NetworkProtectionTests"
BuildableName = "NetworkProtectionTests"
BlueprintName = "NetworkProtectionTests"
ReferencedContainer = "container:../BrowserServicesKit">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
Expand Down
14 changes: 12 additions & 2 deletions DuckDuckGo.xcodeproj/xcshareddata/xcschemes/UI Tests.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
buildConfiguration = "Review"
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
shouldUseLaunchSchemeArgsEnv = "YES">
<PreActions>
<ExecutionAction
ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction">
Expand Down Expand Up @@ -55,6 +54,12 @@
</ActionContent>
</ExecutionAction>
</PostActions>
<TestPlans>
<TestPlanReference
reference = "container:UITests/UI Tests.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -65,6 +70,11 @@
BlueprintName = "UI Tests"
ReferencedContainer = "container:DuckDuckGo.xcodeproj">
</BuildableReference>
<SkippedTests>
<Test
Identifier = "PermissionsTests">
</Test>
</SkippedTests>
</TestableReference>
</Testables>
</TestAction>
Expand Down
2 changes: 1 addition & 1 deletion DuckDuckGo/Autofill/AutofillActionBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extension AutofillActionBuilder {
struct AutofillDeleteAllPasswordsBuilder: AutofillActionBuilder {
@MainActor
func buildExecutor() -> AutofillActionExecutor? {
guard let secureVault = try? AutofillSecureVaultFactory.makeVault(errorReporter: SecureVaultErrorReporter.shared),
guard let secureVault = try? AutofillSecureVaultFactory.makeVault(reporter: SecureVaultReporter.shared),
let syncService = NSApp.delegateTyped.syncService else { return nil }

return AutofillDeleteAllPasswordsExecutor(userAuthenticator: DeviceAuthenticator.shared,
Expand Down
4 changes: 2 additions & 2 deletions DuckDuckGo/Autofill/ContentOverlayViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ extension ContentOverlayViewController: SecureVaultManagerDelegate {
}
}

public func secureVaultInitFailed(_ error: SecureStorageError) {
SecureVaultErrorReporter.shared.secureVaultInitFailed(error)
public func secureVaultError(_ error: SecureStorageError) {
SecureVaultReporter.shared.secureVaultError(error)
}

public func secureVaultManager(_: BrowserServicesKit.SecureVaultManager, didReceivePixel pixel: AutofillUserScript.JSPixel) {
Expand Down
1 change: 1 addition & 0 deletions DuckDuckGo/Common/Localizables/UserText.swift
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ struct UserText {
static let addFolder = NSLocalizedString("menu.add.folder", value: "Add Folder…", comment: "Menu item to add a folder")

static let tabHomeTitle = NSLocalizedString("tab.home.title", value: "New Tab", comment: "Tab home title")
static let tabUntitledTitle = NSLocalizedString("tab.empty.title", value: "Untitled", comment: "Title for an empty tab without a title")
static let tabPreferencesTitle = NSLocalizedString("tab.preferences.title", value: "Settings", comment: "Tab preferences title")
static let tabBookmarksTitle = NSLocalizedString("tab.bookmarks.title", value: "Bookmarks", comment: "Tab bookmarks title")
static let tabOnboardingTitle = NSLocalizedString("tab.onboarding.title", value: "Welcome", comment: "Tab onboarding title")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import BrowserServicesKit
final class AppPrivacyConfigurationDataProvider: EmbeddedDataProvider {

public struct Constants {
public static let embeddedDataETag = "\"a482727f0d20b29eabd1e22fde2d54cf\""
public static let embeddedDataSHA = "993aa84559944a8866e40cebbce02beee2b1597f86b63f998d000d2a0e5d617a"
public static let embeddedDataETag = "\"7cf7b71adb62c3cbcbf8b84c61a0004d\""
public static let embeddedDataSHA = "20e9b59e7e60ccc9ae52853935ebe3d74227234fcf8b46da5a66cff3adc7e6c7"
}

var embeddedDataEtag: String {
Expand Down
59 changes: 42 additions & 17 deletions DuckDuckGo/ContentBlocker/macos-config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"readme": "https://github.com/duckduckgo/privacy-configuration",
"version": 1713140318814,
"version": 1713542334045,
"features": {
"adClickAttribution": {
"readme": "https://help.duckduckgo.com/duckduckgo-help-pages/privacy/web-tracking-protections/#3rd-party-tracker-loading-protection",
Expand Down Expand Up @@ -279,6 +279,15 @@
{
"domain": "condell-ltd.com"
},
{
"domain": "leefgemeenschapzilt.nl"
},
{
"domain": "healthline.com"
},
{
"domain": "sporthoj.com"
},
{
"domain": "marvel.com"
},
Expand All @@ -290,13 +299,12 @@
"disabledCMPs": [
"generic-cosmetic",
"termsfeed3",
"strato.de",
"healthline-media",
"tarteaucitron.js"
]
},
"state": "enabled",
"hash": "0eaff8b64b6d3e8a59879f3b4ab6c0ba"
"hash": "f35e24cf85485b441cb9a76146e77e17"
},
"autofill": {
"exceptions": [
Expand Down Expand Up @@ -2843,6 +2851,27 @@
}
]
},
{
"domain": "independent.co.uk",
"rules": [
{
"selector": "#partners",
"type": "hide-empty"
},
{
"selector": "#top-banner-wrapper",
"type": "hide-empty"
},
{
"selector": "[data-mpu1=true]",
"type": "hide-empty"
},
{
"selector": "#stickyFooterRoot",
"type": "hide"
}
]
},
{
"domain": "indiatimes.com",
"rules": [
Expand Down Expand Up @@ -4231,7 +4260,7 @@
]
},
"state": "enabled",
"hash": "c0fa0dfbc6231be31492023b623ac99b"
"hash": "765e789c939c6e3307f576bc698fbb9e"
},
"exceptionHandler": {
"exceptions": [
Expand Down Expand Up @@ -4884,18 +4913,11 @@
}
},
"toggleReports": {
"state": "enabled",
"rollout": {
"steps": [
{
"percent": 10
}
]
}
"state": "enabled"
}
},
"state": "enabled",
"hash": "b337f9c7cf15e7e4807ef232befaa999"
"hash": "66968d9b69520975185476473cc11824"
},
"privacyPro": {
"state": "enabled",
Expand Down Expand Up @@ -5218,7 +5240,8 @@
{
"rule": "static.adsafeprotected.com/iasPET.1.js",
"domains": [
"corriere.it"
"corriere.it",
"independent.co.uk"
]
},
{
Expand Down Expand Up @@ -6894,7 +6917,8 @@
"domains": [
"andieswim.com",
"footweartruth.com",
"kmail-lists.com"
"kmail-lists.com",
"usafacts.org"
]
}
]
Expand Down Expand Up @@ -7107,7 +7131,8 @@
{
"rule": "npttech.com/advertising.js",
"domains": [
"blick.ch"
"blick.ch",
"independent.co.uk"
]
}
]
Expand Down Expand Up @@ -8195,7 +8220,7 @@
"domain": "sundancecatalog.com"
}
],
"hash": "2d627140b59bca8b8edbc236e79cd46e"
"hash": "2d5ce26ddae089bcb61e4f4a0b1ae487"
},
"trackingCookies1p": {
"settings": {
Expand Down
Loading

0 comments on commit ed6a930

Please sign in to comment.