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

Unified Diff: chrome/browser/ui/panels/panel_host.cc

Issue 2019373002: Fix page transition qualifiers not masked out (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added one more occurrence. Created 4 years, 7 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
Index: chrome/browser/ui/panels/panel_host.cc
diff --git a/chrome/browser/ui/panels/panel_host.cc b/chrome/browser/ui/panels/panel_host.cc
index 6386d0bd5da2201773dec604bc0ac9ec577f16ce..d42e0b68ead728400ab44b8ea73d45e0027a743d 100644
--- a/chrome/browser/ui/panels/panel_host.cc
+++ b/chrome/browser/ui/panels/panel_host.cc
@@ -113,8 +113,10 @@ content::WebContents* PanelHost::OpenURLFromTab(
return NULL;
// Only allow clicks on links.
- if (params.transition != ui::PAGE_TRANSITION_LINK)
+ if (!ui::PageTransitionCoreTypeIs(params.transition,
+ ui::PAGE_TRANSITION_LINK)) {
return NULL;
+ }
// Force all links to open in a new tab.
chrome::NavigateParams navigate_params(profile_,
« no previous file with comments | « chrome/browser/tab_contents/navigation_metrics_recorder.cc ('k') | chrome/browser/ui/pdf/pdf_unsupported_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698