Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6736)

Unified Diff: chrome/browser/ui/website_settings/permission_bubble_manager.cc

Issue 1266003004: Do not expire permission bubbles for in-page navigations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/website_settings/permission_bubble_manager.cc
diff --git a/chrome/browser/ui/website_settings/permission_bubble_manager.cc b/chrome/browser/ui/website_settings/permission_bubble_manager.cc
index 6d62d7a42d2d64dadadef47001164f56009dd3e8..a2ace674da4eeb7e68fd9d0f0648eea5cbe140ae 100644
--- a/chrome/browser/ui/website_settings/permission_bubble_manager.cc
+++ b/chrome/browser/ui/website_settings/permission_bubble_manager.cc
@@ -273,7 +273,8 @@ void PermissionBubbleManager::NavigationEntryCommitted(
// the navigation is really to the same page.
if ((request_url_.GetAsReferrer() !=
web_contents()->GetLastCommittedURL().GetAsReferrer()) ||
- details.type == content::NAVIGATION_TYPE_EXISTING_PAGE) {
+ (details.type == content::NAVIGATION_TYPE_EXISTING_PAGE &&
+ !details.is_in_page)) {
mlamouri (slow - plz ping) 2015/08/04 11:56:38 Why not use ::DidNavigateAnyFrame() to merge this
Avi (use Gerrit) 2015/08/04 14:28:16 Because I don't know this code well, and I was try
hcarmona 2015/08/04 23:10:44 It looks like using GetAsReferrer to compare the r
Avi (use Gerrit) 2015/08/05 15:11:48 But that's different behavior. The bug calls out g
hcarmona 2015/08/05 18:51:04 Interesting. I didn't know there were cases where
// Kill off existing bubble and cancel any pending requests.
CancelPendingQueues();
FinalizeBubble();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698