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

Unified Diff: ui/file_manager/file_manager/foreground/elements/files_safe_img.html

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.html
diff --git a/ui/file_manager/file_manager/foreground/elements/files_safe_img.html b/ui/file_manager/file_manager/foreground/elements/files_safe_img.html
new file mode 100644
index 0000000000000000000000000000000000000000..1eaf84a43ddcfd995a808373777a7d40f4c7962e
--- /dev/null
+++ b/ui/file_manager/file_manager/foreground/elements/files_safe_img.html
@@ -0,0 +1,23 @@
+<!-- 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.
+-->
+
+<dom-module id="files-safe-img">
+ <style>
+ #content {
+ height: 100%;
+ width: 100%;
+ }
+ webview {
+ display: inline-block;
+ height: 100%;
+ width: 100%;
+ }
+ </style>
+ <template>
+ <div id="content"></div>
+ </template>
+</dom-module>
+
+<script src="files_safe_img.js"></script>

Powered by Google App Engine
This is Rietveld 408576698