Skip to content

Commit

Permalink
Merge branch 'develop' into sam/netp-quick-action
Browse files Browse the repository at this point in the history
* develop:
  address bar position (#2072)
  Fix privacy tests (#2097)
  Add note about Danger matching rules (#2087)
  Release 7.93.0 (#2096)
  Update tabs tests (#2088)
  • Loading branch information
samsymons committed Oct 17, 2023
2 parents 8a74193 + 6261549 commit e15e3d7
Show file tree
Hide file tree
Showing 52 changed files with 1,332 additions and 938 deletions.
6 changes: 2 additions & 4 deletions .maestro/privacy_tests/06_multi-tab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ tags:
- tapOn: "Done"
- assertVisible:
text: "Publisher site"
- assertVisible:
id: "Tabs"
- tapOn:
id: "Tabs"
- assertVisible: Tab Switcher
- tapOn: Tab Switcher
- assertVisible:
id: "Add"
- tapOn:
Expand Down
22 changes: 8 additions & 14 deletions .maestro/release_tests/tabs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tags:
id: "searchEntry"
- tapOn:
id: "searchEntry"
- inputText: "https://privacy-test-pages.glitch.me"
- inputText: "https://privacy-test-pages.site"
- pressKey: Enter

# Manage onboarding
Expand All @@ -34,10 +34,8 @@ tags:
- assertVisible: ".*Privacy Test Pages.*"

# Add tab
- assertVisible:
id: "Tabs"
- tapOn:
id: "Tabs"
- assertVisible: Tab Switcher
- tapOn: Tab Switcher
- assertVisible: ".*Privacy Test Pages.*"
- assertVisible:
id: "Add"
Expand All @@ -52,23 +50,19 @@ tags:
- assertVisible: "Search engine"

# Switch Tab
- assertVisible:
id: "Tabs"
- tapOn:
id: "Tabs"
- assertVisible: Tab Switcher
- tapOn: Tab Switcher
- assertVisible: ".*Privacy Test Pages.*"
- assertVisible: ".*Ad Click Flow.*"
- assertVisible: "2 Private Tabs"
- tapOn: "Open \"Privacy Test Pages - Home\" at privacy-test-pages.glitch.me"
- tapOn: "Open \"Privacy Test Pages - Home\" at privacy-test-pages.site"
- assertNotVisible: ".*Ad Click Flow.*"
- assertVisible: ".*Privacy Test Pages.*"
- tapOn: "Refresh Page"

# Close Tab
- assertVisible:
id: "Tabs"
- tapOn:
id: "Tabs"
- assertVisible: Tab Switcher
- tapOn: Tab Switcher
- assertVisible: ".*Privacy Test Pages.*"
- assertVisible: ".*Ad Click Flow.*"
- assertVisible: "2 Private Tabs"
Expand Down
4 changes: 2 additions & 2 deletions Core/AppPrivacyConfigurationDataProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import BrowserServicesKit
final public class AppPrivacyConfigurationDataProvider: EmbeddedDataProvider {

public struct Constants {
public static let embeddedDataETag = "\"54efb258435567856e087913f93d43df\""
public static let embeddedDataSHA = "d0f9c70c5baba23a0966b277f8b4c949ecf01612558a50d2bda720fe1919b43f"
public static let embeddedDataETag = "\"81da520221d37e6398ea3d8940595810\""
public static let embeddedDataSHA = "19766ed7e598cdc123c9db702264b99d0cff5ddfb2ed226fba85b06d304f7e0b"
}

public var embeddedDataEtag: String {
Expand Down
3 changes: 3 additions & 0 deletions Core/AppURLs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public extension URL {
static let aboutLink = URL(string: AppDeepLinkSchemes.quickLink.appending("\(ddg.host!)/about"))!

static let surrogates = URL(string: "\(staticBase)/surrogates.txt")!

// The following URLs shall match the ones in update_embedded.sh.
// Danger checks that the URLs match on every PR. If the code changes, the regex that Danger uses may need an update.
static let privacyConfig = URL(string: "\(staticBase)/trackerblocking/config/v3/ios-config.json")!
static let trackerDataSet = URL(string: "\(staticBase)/trackerblocking/v5/current/ios-tds.json")!
static let bloomFilter = URL(string: "\(staticBase)/https/https-mobile-v2-bloom.bin")!
Expand Down
8 changes: 7 additions & 1 deletion Core/PixelEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ extension Pixel {

case autofillJSPixelFired(_ pixel: AutofillUserScript.JSPixel)

case navigationbarPositionBottom
case navigationBarPositionTop

case secureVaultInitError
case secureVaultError

Expand Down Expand Up @@ -576,7 +579,10 @@ extension Pixel.Event {

case .autocompleteSelectedLocal: return "m_au_l"
case .autocompleteSelectedRemote: return "m_au_r"


case .navigationbarPositionBottom: return "m_seturlbar_bottom"
case .navigationBarPositionTop: return "m_seturlbar_top"

case .feedbackPositive: return "mfbs_positive_submit"
case .feedbackNegativePrefix(category: let category): return "mfbs_negative_\(category)"

Expand Down
3 changes: 3 additions & 0 deletions Core/UserDefaultsPropertyWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ public struct UserDefaultsWrapper<T> {
case syncEnvironment = "com.duckduckgo.ios.sync-environment"

case networkProtectionDebugOptionAlwaysOnDisabled = "com.duckduckgo.network-protection.always-on.disabled"

case addressBarPosition = "com.duckduckgo.ios.addressbarposition"
case showFullSiteAddress = "com.duckduckgo.ios.showfullsiteaddress"
}

private let key: Key
Expand Down
Loading

0 comments on commit e15e3d7

Please sign in to comment.