Chromium Code Reviews| 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(); |