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

Unified Diff: third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp

Issue 2448833003: Sandbox should prevent 'execCommand("print", ...)'. (Closed)
Patch Set: Created 4 years, 2 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/editing/commands/EditorCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
index 6c5c75f14b7ea9cf220014e7b16cc71fc81177b0..64ac77640607a35767fd2c5f516e8ef1d4e3d089 100644
--- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
@@ -1538,8 +1538,7 @@ static bool executePrint(LocalFrame& frame,
FrameHost* host = frame.host();
if (!host)
return false;
- host->chromeClient().print(&frame);
- return true;
+ return host->chromeClient().print(&frame);
}
static bool executeRedo(LocalFrame& frame,

Powered by Google App Engine
This is Rietveld 408576698