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

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

Issue 2625773002: Reenable framebusting (Closed)
Patch Set: Fix unit tests Created 3 years, 11 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "web/WebRemoteFrameImpl.h" 5 #include "web/WebRemoteFrameImpl.h"
6 6
7 #include "core/dom/Fullscreen.h" 7 #include "core/dom/Fullscreen.h"
8 #include "core/dom/RemoteSecurityContext.h" 8 #include "core/dom/RemoteSecurityContext.h"
9 #include "core/dom/SecurityContext.h" 9 #include "core/dom/SecurityContext.h"
10 #include "core/frame/FrameView.h" 10 #include "core/frame/FrameView.h"
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 // to :-webkit-full-screen. 515 // to :-webkit-full-screen.
516 // 516 //
517 // TODO(alexmos): currently, this assumes prefixed requests, but in the 517 // TODO(alexmos): currently, this assumes prefixed requests, but in the
518 // future, this should plumb in information about which request type 518 // future, this should plumb in information about which request type
519 // (prefixed or unprefixed) to use for firing fullscreen events. 519 // (prefixed or unprefixed) to use for firing fullscreen events.
520 Fullscreen::requestFullscreen( 520 Fullscreen::requestFullscreen(
521 *ownerElement, 521 *ownerElement,
522 Fullscreen::RequestType::PrefixedForCrossProcessDescendant); 522 Fullscreen::RequestType::PrefixedForCrossProcessDescendant);
523 } 523 }
524 524
525 void WebRemoteFrameImpl::setHasReceivedUserGesture() {
526 frame()->setDocumentHasReceivedUserGesture();
527 }
528
525 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, 529 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope,
526 WebRemoteFrameClient* client) 530 WebRemoteFrameClient* client)
527 : WebRemoteFrame(scope), 531 : WebRemoteFrame(scope),
528 m_frameClient(RemoteFrameClientImpl::create(this)), 532 m_frameClient(RemoteFrameClientImpl::create(this)),
529 m_client(client), 533 m_client(client),
530 m_selfKeepAlive(this) {} 534 m_selfKeepAlive(this) {}
531 535
532 } // namespace blink 536 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698