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

Unified Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.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/frame/LocalDOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
index 9390336a5cb913f5d558a36ec3be4249edaaac83..5ba9b469a15c86c1539ea5390ec2abd981c4a013 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
@@ -701,15 +701,6 @@ void LocalDOMWindow::print(ScriptState* scriptState) {
if (!host)
return;
- if (document()->isSandboxed(SandboxModals)) {
- UseCounter::count(document(), UseCounter::DialogInSandboxedContext);
- frameConsole()->addMessage(ConsoleMessage::create(
- SecurityMessageSource, ErrorMessageLevel,
- "Ignored call to 'print()'. The document is sandboxed, and the "
- "'allow-modals' keyword is not set."));
- return;
- }
-
if (scriptState &&
v8::MicrotasksScope::IsRunningMicrotasks(scriptState->isolate())) {
UseCounter::count(document(), UseCounter::During_Microtask_Print);
« no previous file with comments | « third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp ('k') | third_party/WebKit/Source/core/page/ChromeClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698