fix: allow persistent media salts (#22386)

* fix: allow persistent media salts

* chore: add regression test for persistent media device ids across reloads
This commit is contained in:
Samuel Attard 2020-02-26 16:03:55 -08:00 committed by GitHub
parent fc54db11f3
commit ee04c7f7ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 2 deletions

View file

@ -246,6 +246,11 @@ class ElectronBrowserClient : public content::ContentBrowserClient,
const GURL& site_url) override;
bool ShouldUseProcessPerSite(content::BrowserContext* browser_context,
const GURL& effective_url) override;
bool ArePersistentMediaDeviceIDsAllowed(
content::BrowserContext* browser_context,
const GURL& scope,
const GURL& site_for_cookies,
const base::Optional<url::Origin>& top_frame_origin) override;
// content::RenderProcessHostObserver:
void RenderProcessHostDestroyed(content::RenderProcessHost* host) override;