Commit 7f55132f authored by tommi@chromium.org's avatar tommi@chromium.org

Only store per-navigation permissions for http requests and not https.

Doing so caused us to ignore stored content settings for pages accessed via https if a page had been accessed, settings changed and then the page accessed again.

BUG=374393
R=xians@chromium.org

Review URL: https://codereview.chromium.org/304183006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273853 0039d316-1c4b-4281-b951-d872f2087c98
parent 69843a9c
...@@ -410,13 +410,16 @@ void MediaStreamDevicesController::Accept(bool update_content_setting) { ...@@ -410,13 +410,16 @@ void MediaStreamDevicesController::Accept(bool update_content_setting) {
&devices); &devices);
} }
// Tag this navigation entry with the granted permissions. // For pages accessed via http (not https), tag this navigation entry
// This avoids repeated prompts for requests accessed via http. // with the granted permissions. This avoids repeated prompts for
content::NavigationEntry* navigation_entry = // device access.
web_contents_->GetController().GetVisibleEntry(); if (!IsSchemeSecure()) {
if (navigation_entry) { content::NavigationEntry* navigation_entry =
SetMediaPermissionsForNavigationEntry( web_contents_->GetController().GetVisibleEntry();
navigation_entry, request_, audio_allowed, video_allowed); if (navigation_entry) {
SetMediaPermissionsForNavigationEntry(
navigation_entry, request_, audio_allowed, video_allowed);
}
} }
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment