From 20afff8e6d5bfe11555146457dc5c43f0d15b6aa Mon Sep 17 00:00:00 2001 From: Wojciech Krawczyk Date: Sun, 26 May 2013 14:39:11 +0200 Subject: [PATCH] Responsive layout - add sandbox attribute (=allow-forms allow-scripts) to prevent redirect by framekiller --- source/common/javascript/generated/view-responsive-layouts.js | 1 + 1 file changed, 1 insertion(+) diff --git a/source/common/javascript/generated/view-responsive-layouts.js b/source/common/javascript/generated/view-responsive-layouts.js index bd0efab..729511d 100644 --- a/source/common/javascript/generated/view-responsive-layouts.js +++ b/source/common/javascript/generated/view-responsive-layouts.js @@ -73,6 +73,7 @@ WebDeveloper.Generated.initialize = function(data, locale) childElement.setAttribute("scrolling", "yes"); childElement.setAttribute("src", url); childElement.setAttribute("width", parseInt(width, 10) + scrollbarWidth); + childElement.setAttribute("sandbox", "allow-forms allow-scripts"); container.appendChild(childElement); content.appendChild(container);