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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 2617773002: Turn off requirement that cross-origin top navigation be accompanied by a user gesture. (Closed)
Patch Set: Fix 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index 7f727395b15fa60c820522bad6242133aad68dfc..8037a55166c158ca9c4999d6075017b2d70f9e50 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -55,6 +55,7 @@
#include "core/html/HTMLFrameElementBase.h"
#include "core/html/HTMLPlugInElement.h"
#include "core/input/EventHandler.h"
+#include "core/inspector/ConsoleMessage.h"
#include "core/inspector/InspectorInstrumentation.h"
#include "core/layout/HitTestResult.h"
#include "core/layout/LayoutView.h"
@@ -478,6 +479,11 @@ void LocalFrame::printNavigationErrorMessage(const Frame& targetFrame,
domWindow()->printErrorMessage(message);
}
+void LocalFrame::printNavigationWarning(const String& message) {
+ m_console->addMessage(
+ ConsoleMessage::create(JSMessageSource, WarningMessageLevel, message));
+}
+
WindowProxyManager* LocalFrame::getWindowProxyManager() const {
return m_script->getWindowProxyManager();
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.h ('k') | third_party/WebKit/Source/core/frame/RemoteFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698