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

@ -872,6 +872,14 @@ bool ElectronBrowserClient::ShouldUseProcessPerSite(
#endif
}
bool ElectronBrowserClient::ArePersistentMediaDeviceIDsAllowed(
content::BrowserContext* browser_context,
const GURL& scope,
const GURL& site_for_cookies,
const base::Optional<url::Origin>& top_frame_origin) {
return true;
}
void ElectronBrowserClient::SiteInstanceDeleting(
content::SiteInstance* site_instance) {
// We are storing weak_ptr, is it fundamental to maintain the map up-to-date