Skip to content

Commit

Permalink
only use ephemeral storage for local and session storage
Browse files Browse the repository at this point in the history
  • Loading branch information
bridiver committed Jan 19, 2021
1 parent 64e699d commit 83a051b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ bool BraveContentSettingsAgentImpl::UseEphemeralStorageSync(
if (!base::FeatureList::IsEnabled(net::features::kBraveEphemeralStorage))
return false;

if (storage_type != StorageType::kLocalStorage &&
storage_type != StorageType::kSessionStorage)
return false;

blink::WebLocalFrame* frame = render_frame()->GetWebFrame();

if (!frame || IsFrameWithOpaqueOrigin(frame))
Expand Down

0 comments on commit 83a051b

Please sign in to comment.