Skip to content

Commit

Permalink
Responsive layout - add sandbox attribute (=allow-forms allow-scripts…
Browse files Browse the repository at this point in the history
…) to prevent redirect by framekiller
  • Loading branch information
Wojciech Krawczyk committed May 26, 2013
1 parent 855caad commit 20afff8
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -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);
Expand Down

0 comments on commit 20afff8

Please sign in to comment.