summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-19 12:49:55 +0400
committerAndrew Dolgov <[email protected]>2013-03-19 12:49:55 +0400
commit4f7d69e1856a611025f53eef273e5af039d9aa16 (patch)
tree9a5d2a357486bf32c53e42f979c91fcd297e9904 /js
parent55783ca45c7d87a671796842386afd0f5eb31b89 (diff)
detect whether browser supports iframe.sandbox and allow iframes accordingly; allow object and embed elements
Diffstat (limited to 'js')
-rw-r--r--js/tt-rss.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js
index 5ada64d31..5968f58eb 100644
--- a/js/tt-rss.js
+++ b/js/tt-rss.js
@@ -244,9 +244,11 @@ function init() {
loading_set_progress(20);
var hasAudio = !!((myAudioTag = document.createElement('audio')).canPlayType);
+ var hasSandbox = "sandbox" in document.createElement("iframe");
new Ajax.Request("backend.php", {
- parameters: {op: "rpc", method: "sanityCheck", hasAudio: hasAudio},
+ parameters: {op: "rpc", method: "sanityCheck", hasAudio: hasAudio,
+ hasSandbox: hasSandbox},
onComplete: function(transport) {
backend_sanity_check_callback(transport);
} });