The open-source Arc replacement for macOS. Spaces, pinned tabs, split view, Little Windows and Arc's shortcuts on Chromium, with your Arc sidebar imported in one go.
Crunchyroll, Hotstar, JioHotstar and Tencent Video play in WebKit too
Victore5b5f0fedc04
diff --git a/Packages/CraCore/Sources/CraCore/ProtectedMedia.swift b/Packages/CraCore/Sources/CraCore/ProtectedMedia.swiftindex 5302119..ef187a2 100644--- a/Packages/CraCore/Sources/CraCore/ProtectedMedia.swift+++ b/Packages/CraCore/Sources/CraCore/ProtectedMedia.swift@@ -46,6 +46,11 @@ public struct ProtectedMediaSites: Equatable, Sendable {"tv.apple.com", "music.apple.com","listen.tidal.com","www.deezer.com",+ // Also on Ardia's list (another open-source browser that sends DRM sites to WebKit,+ // apps/browser/src/state/engines/engines.ts, 5 Nov 2026).+ "crunchyroll.com",+ "hotstar.com", "jiohotstar.com",+ "v.qq.com",]/// What Cra calls each service when it tells the user why a page is WebKit's (the toast,@@ -55,6 +60,7 @@ public struct ProtectedMediaSites: Equatable, Sendable {"max.com": "Max", "hbomax.com": "HBO Max", "primevideo.com": "Prime Video", "hulu.com": "Hulu","paramountplus.com": "Paramount+", "peacocktv.com": "Peacock", "tv.apple.com": "Apple TV","music.apple.com": "Apple Music", "listen.tidal.com": "Tidal", "www.deezer.com": "Deezer",+ "crunchyroll.com": "Crunchyroll", "hotstar.com": "Hotstar", "jiohotstar.com": "JioHotstar", "v.qq.com": "Tencent Video",]/// Off: every page is Chromium's, as before.diff --git a/Packages/CraCore/Tests/CraCoreTests/ProtectedMediaTests.swift b/Packages/CraCore/Tests/CraCoreTests/ProtectedMediaTests.swiftindex ec8bb9d..2916faa 100644--- a/Packages/CraCore/Tests/CraCoreTests/ProtectedMediaTests.swift+++ b/Packages/CraCore/Tests/CraCoreTests/ProtectedMediaTests.swift@@ -19,6 +19,10 @@ struct ProtectedMediaTests {"https://tv.apple.com/","https://music.apple.com/us/browse","https://listen.tidal.com/",+ "https://www.crunchyroll.com/watch/x",+ "https://www.hotstar.com/in",+ "https://www.jiohotstar.com/",+ "https://v.qq.com/x/cover/x.html","http://www.hulu.com/","https://www.netflix.com./browse",])@@ -39,6 +43,8 @@ struct ProtectedMediaTests {"https://login.tidal.com/authorize","https://connect.deezer.com/oauth/auth.php","https://www.youtube.com/watch?v=x",+ "https://qq.com/",+ "https://mail.qq.com/","about:blank","chrome://settings","view-source:https://open.spotify.com/",@@ -58,8 +64,10 @@ struct ProtectedMediaTests {#expect(sites.serviceName(for: "https://www.disneyplus.com/") == "Disney+")#expect(sites.serviceName(for: "https://play.hbomax.com/") == "HBO Max")#expect(sites.serviceName(for: "https://music.apple.com/us/browse") == "Apple Music")+ #expect(sites.serviceName(for: "https://www.crunchyroll.com/") == "Crunchyroll")+ #expect(sites.serviceName(for: "https://v.qq.com/") == "Tencent Video")#expect(sites.serviceName(for: "https://www.google.com/") == nil)- #expect(ProtectedMediaSites(extraHosts: ["crunchyroll.com"]).serviceName(for: "https://www.crunchyroll.com/") == "crunchyroll.com")+ #expect(ProtectedMediaSites(extraHosts: ["stream.example.org"]).serviceName(for: "https://stream.example.org/") == "stream.example.org")#expect(ProtectedMediaSites(isEnabled: false).serviceName(for: "https://open.spotify.com/") == nil)// Every listed service has a name.#expect(ProtectedMediaSites.defaultHosts.allSatisfy { ProtectedMediaSites.serviceNames[$0] != nil })@@ -72,12 +80,12 @@ struct ProtectedMediaTests {}@Test func listCanGrowAndShrink() {- let custom = ProtectedMediaSites(extraHosts: [" 127.0.0.1 ", "https://Stream.Example.org/path", ".crunchyroll.com."],+ let custom = ProtectedMediaSites(extraHosts: [" 127.0.0.1 ", "https://Stream.Example.org/path", ".videos.example.net."],removedHosts: ["NETFLIX.com"])#expect(custom.engine(for: "http://127.0.0.1:8123/page.html") == .webKit)#expect(custom.engine(for: "https://stream.example.org/") == .webKit)#expect(custom.engine(for: "https://example.org/") == .chromium)- #expect(custom.engine(for: "https://www.crunchyroll.com/") == .webKit)+ #expect(custom.engine(for: "https://www.videos.example.net/") == .webKit)#expect(custom.engine(for: "https://www.netflix.com/") == .chromium)#expect(custom.engine(for: "https://open.spotify.com/") == .webKit)#expect(custom.engine(for: "https://open.spotify.com.") == .webKit)diff --git a/docs/protected-media.md b/docs/protected-media.mdindex 98e797b..e6bc323 100644--- a/docs/protected-media.md+++ b/docs/protected-media.md@@ -33,7 +33,9 @@ licence, keys usable, 720p playing). That is the whole requirement.- **Which pages:** the services' web players. Each host matches itself and its subdomains:`open.spotify.com`, `netflix.com`, `disneyplus.com`, `max.com`, `hbomax.com`,`primevideo.com`, `hulu.com`, `paramountplus.com`, `peacocktv.com`, `tv.apple.com`,- `music.apple.com`, `listen.tidal.com` and `www.deezer.com`. They are players, not whole domains, except where nothing else signs in through the service (Max sends `play.max.com` on to `www.hbomax.com` and signs in on its own hosts):+ `music.apple.com`, `listen.tidal.com`, `www.deezer.com`, `crunchyroll.com`, `hotstar.com`,+ `jiohotstar.com` and `v.qq.com`. The last four come from Ardia, another open-source browser that+ sends DRM sites to WebKit (its `PROTECTED_VIDEO_SITES`). They are players, not whole domains, except where nothing else signs in through the service (Max sends `play.max.com` on to `www.hbomax.com` and signs in on its own hosts):other sites send their "Sign in with Spotify/Tidal/Deezer" through `accounts.spotify.com`,`login.tidal.com` and `connect.deezer.com`, and those must finish in the engine they started in.- **A page Cra opens** (a tab restored or created, a link opened in a new tab, a Little Window, an