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

Side by Side Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2058693002: Do not suppress referrers for '<a ... rel="noopener">'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 return getNavigationPolicy(features); 344 return getNavigationPolicy(features);
345 if (policy == WebNavigationPolicyNewBackgroundTab && getNavigationPolicy(fea tures) != WebNavigationPolicyNewBackgroundTab && !UIEventWithKeyState::newTabMod ifierSetFromIsolatedWorld()) 345 if (policy == WebNavigationPolicyNewBackgroundTab && getNavigationPolicy(fea tures) != WebNavigationPolicyNewBackgroundTab && !UIEventWithKeyState::newTabMod ifierSetFromIsolatedWorld())
346 return WebNavigationPolicyNewForegroundTab; 346 return WebNavigationPolicyNewForegroundTab;
347 347
348 return policy; 348 return policy;
349 } 349 }
350 350
351 } // namespace 351 } // namespace
352 352
353 Page* ChromeClientImpl::createWindow(LocalFrame* frame, const FrameLoadRequest& r, const WindowFeatures& features, 353 Page* ChromeClientImpl::createWindow(LocalFrame* frame, const FrameLoadRequest& r, const WindowFeatures& features,
354 NavigationPolicy navigationPolicy, ShouldSetOpener shouldSetOpener) 354 NavigationPolicy navigationPolicy)
355 { 355 {
356 if (!m_webView->client()) 356 if (!m_webView->client())
357 return nullptr; 357 return nullptr;
358 358
359 WebNavigationPolicy policy = effectiveNavigationPolicy(navigationPolicy, fea tures); 359 WebNavigationPolicy policy = effectiveNavigationPolicy(navigationPolicy, fea tures);
360 DCHECK(frame->document()); 360 DCHECK(frame->document());
361 Fullscreen::fullyExitFullscreen(*frame->document()); 361 Fullscreen::fullyExitFullscreen(*frame->document());
362 362
363 WebViewImpl* newView = toWebViewImpl( 363 WebViewImpl* newView = toWebViewImpl(
364 m_webView->client()->createView(WebLocalFrameImpl::fromFrame(frame), Wra ppedResourceRequest(r.resourceRequest()), features, r.frameName(), policy, shoul dSetOpener == NeverSetOpener)); 364 m_webView->client()->createView(WebLocalFrameImpl::fromFrame(frame), Wra ppedResourceRequest(r.resourceRequest()), features, r.frameName(), policy, r.get ShouldSetOpener() == NeverSetOpener || features.noopener));
365 if (!newView) 365 if (!newView)
366 return nullptr; 366 return nullptr;
367 return newView->page(); 367 return newView->page();
368 } 368 }
369 369
370 void ChromeClientImpl::didOverscroll(const FloatSize& overscrollDelta, const Flo atSize& accumulatedOverscroll, const FloatPoint& positionInViewport, const Float Size& velocityInViewport) 370 void ChromeClientImpl::didOverscroll(const FloatSize& overscrollDelta, const Flo atSize& accumulatedOverscroll, const FloatPoint& positionInViewport, const Float Size& velocityInViewport)
371 { 371 {
372 if (!m_webView->client()) 372 if (!m_webView->client())
373 return; 373 return;
374 374
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
1117 { 1117 {
1118 return adoptPtr(m_webView->scheduler()->createFrameScheduler(blameContext).r elease()); 1118 return adoptPtr(m_webView->scheduler()->createFrameScheduler(blameContext).r elease());
1119 } 1119 }
1120 1120
1121 double ChromeClientImpl::lastFrameTimeMonotonic() const 1121 double ChromeClientImpl::lastFrameTimeMonotonic() const
1122 { 1122 {
1123 return m_webView->lastFrameTimeMonotonic(); 1123 return m_webView->lastFrameTimeMonotonic();
1124 } 1124 }
1125 1125
1126 } // namespace blink 1126 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698