Skip to content

Commit

Permalink
Merge pull request #780 from brave/fix_cookie_based_auth_pdf
Browse files Browse the repository at this point in the history
Fix loading of PDF protected by cookie-based login
  • Loading branch information
bbondy authored Nov 1, 2018
2 parents 3ce0c2d + fb86c2c commit 44f3cfe
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ void BraveCookieSettings::GetCookieSetting(const GURL& url,
GURL primary_brave_url = tab_url == GURL("about:blank") ?
first_party_url : tab_url;

if (primary_brave_url.SchemeIs("chrome-extension")) {
*cookie_setting = CONTENT_SETTING_ALLOW;
return;
}

// Check the Brave shields setting, if it is off, just return without
// blocking anything.
ContentSetting brave_shields_setting =
Expand Down

0 comments on commit 44f3cfe

Please sign in to comment.