Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Duck Player Custom Error #3872

Closed
wants to merge 9 commits into from
Closed

Conversation

mgurgel
Copy link
Collaborator

@mgurgel mgurgel commented Feb 14, 2025

Task/Issue URL: https://app.asana.com/0/1206594217596623/1209151829557390

Description:

Shows a custom error screen when Duck Player detects an error message in the YouTube embed

Optional E2E tests:

  • Run PIR E2E tests
    Check this to run the Personal Information Removal end to end tests. If updating CCF, or any PIR related code, tick this.

Steps to test this PR:

  1. In the debug menu, override privacy config to https://www.jsonblob.com/api/jsonBlob/1339986346982432768
  2. Follow the steps here: https://app.asana.com/0/1142021229838617/1209392401656236

Definition of Done:


Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

@mgurgel mgurgel force-pushed the mgurgel/duckplayer-custom-error branch from ce91f9e to 1236215 Compare February 14, 2025 10:56
isCustomErrorFeatureEnabled =
privacyConfigurationManager.privacyConfig.isSubfeatureEnabled(DuckPlayerSubfeature.customError)

// TODO: Check if this logic can be moved into privacyConfig
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PrivacyConfigurationData has FeatureSettings = [String: Any] and SubfeatureSettings = String even though they are the same data type in the privacy config schema.

Is SubfeatureSettings just a stub that should be refactored to return [String: Any] like FeatureSettings, which would make the code block below much smaller?

@mgurgel
Copy link
Collaborator Author

mgurgel commented Feb 17, 2025

Closed in favor of duckduckgo/apple-browsers#23

@mgurgel mgurgel closed this Feb 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant