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

Unified Diff: ui/file_manager/file_manager/foreground/elements/files_safe_img_webview_content.css

Issue 2140113003: QuickView: Improve security by rendering images inside webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 5 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: ui/file_manager/file_manager/foreground/elements/files_safe_img_webview_content.css
diff --git a/ui/file_manager/file_manager/foreground/elements/files_safe_img_webview_content.css b/ui/file_manager/file_manager/foreground/elements/files_safe_img_webview_content.css
new file mode 100644
index 0000000000000000000000000000000000000000..c939cf69e3f9ee9526e2559b9e49f4e2966df356
--- /dev/null
+++ b/ui/file_manager/file_manager/foreground/elements/files_safe_img_webview_content.css
@@ -0,0 +1,20 @@
+/* Copyright 2016 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file. */
+
+#content {
+ background-color: transparent;
+ bottom: 0;
+ left: 0;
+ margin: auto;
+ max-height: 100%;
+ max-width: 100%;
+ padding: 0;
+ position: absolute;
+ right: 0;
+ top: 0;
+}
+
+#content[hidden] {
+ display: none;
+}

Powered by Google App Engine
This is Rietveld 408576698