1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:05:56 +00:00

detect whether browser supports iframe.sandbox and allow iframes accordingly; allow object and embed elements

This commit is contained in:
Andrew Dolgov
2013-03-19 12:49:55 +04:00
parent 55783ca45c
commit 4f7d69e185
3 changed files with 7 additions and 2 deletions

View File

@@ -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);
} });