From f12f4bb92562632e1a0c10031c47f0cf728ca024 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 1 Sep 2017 15:17:14 +0200 Subject: [PATCH] Integrate filepicker secure iframe in the code2 app --- www/code2/index.html | 11 +- www/code2/inner.js | 20 +-- www/common/cryptpad-common.js | 17 +- www/common/sframe-channel.js | 5 +- www/common/sframe-common-interface.js | 59 ++++--- www/common/sframe-common-outer.js | 33 +++- www/common/sframe-common.js | 26 +++ www/common/sframe-protocol.js | 8 + www/filepicker/inner.html | 20 ++- www/filepicker/inner.js | 28 +++- www/filepicker/main.js | 233 ++++++++++++++------------ 11 files changed, 310 insertions(+), 150 deletions(-) diff --git a/www/code2/index.html b/www/code2/index.html index 8be90cfb5..a564c32b7 100644 --- a/www/code2/index.html +++ b/www/code2/index.html @@ -24,7 +24,16 @@ padding:0; overflow:hidden; } + #sbox-filePicker-iframe { + position: fixed; + top:0; left:0; + bottom:0; right:0; + width:100%; + height: 100%; + border: 0; + } + -