Skip to content

Commit

Permalink
SAK-39946 allow trusted iframes to use camera or microphone (sakaipro…
Browse files Browse the repository at this point in the history
  • Loading branch information
ottenhoff authored and ern committed May 8, 2018
1 parent d0b35dd commit eb331fd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ public void doView(RenderRequest request, RenderResponse response)
text.append("width=\"100%\" frameborder=\"0\" marginwidth=\"0\"\n");
text.append("marginheight=\"0\" scrolling=\"auto\"\n");
text.append(" allowfullscreen=\"true\" webkitallowfullscreen=\"true\" mozallowfullscreen=\"true\"\n");
text.append(" allow=\"camera; microphone\"\n");
text.append("src=\""+iframeUrl+"\">\n");
text.append(rb.getString("noiframes"));
text.append("<br>");
Expand Down
1 change: 1 addition & 0 deletions lessonbuilder/tool/src/webapp/templates/IFramePage.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ <h2 rsf:id="title">Insert Page Title Here</h2>
allowfullscreen="true"
webkitallowfullscreen="true"
mozallowfullscreen="true"
allow="camera; microphone"
rsf:id="iframe"
>
</iframe>
Expand Down
1 change: 1 addition & 0 deletions lessonbuilder/tool/src/webapp/templates/ShowItem.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
allowfullscreen="true"
webkitallowfullscreen="true"
mozallowfullscreen="true"
allow="camera; microphone"
scrolling="auto">
</iframe>
<script>
Expand Down
4 changes: 4 additions & 0 deletions lessonbuilder/tool/src/webapp/templates/ShowPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ <h3 rsf:id="sectionHeader" id="sectionHeader" class="sectionHeader"><span rsf:id
allowfullscreen="true"
webkitallowfullscreen="true"
mozallowfullscreen="true"
allow="camera; microphone"
rsf:id="blti-iframe"
id="blti-iframe"
>
Expand Down Expand Up @@ -569,6 +570,7 @@ <h3 rsf:id="sectionHeader" id="sectionHeader" class="sectionHeader"><span rsf:id
allowfullscreen="true"
webkitallowfullscreen="true"
mozallowfullscreen="true"
allow="camera; microphone"
rsf:id="iframe"
id="iframe"
></iframe>
Expand Down Expand Up @@ -611,6 +613,7 @@ <h3 rsf:id="sectionHeader" id="sectionHeader" class="sectionHeader"><span rsf:id
allowfullscreen="allowfullscreen"
webkitallowfullscreen="true"
mozallowfullscreen="true"
allow="camera; microphone"
class="playerwidth"></iframe>
<div rsf:id="youtube-td" role="toolbar" class="edit-col"><div><a role="button" aria-haspopup="dialog" aria-controls="youtube-dialog" href="#" class="usebutton edit-youtube" onclick="return false" rsf:id="youtube-edit"><span aria-hidden="true" class="fa-edit fa-edit-icon"></span></a><a role="button" href="#" class="usebutton del-item-link" onclick="return false"><span aria-hidden="true" class="fa-trash-o fa-edit-icon"></span></a><a role="button" aria-haspopup="dialog" aria-controls="youtube-dialog" href="#" class="usebutton add-link" onclick="return false"><span aria-hidden="true" class="fa-plus fa-edit-icon plus-edit-icon"></span></a></div></div>
</div>
Expand Down Expand Up @@ -962,6 +965,7 @@ <h3 class="questionText" rsf:id="questionText"></h3>
allowfullscreen="true"
webkitallowfullscreen="true"
mozallowfullscreen="true"
allow="camera; microphone"
id="iframe"
></iframe>
<ul class="navIntraTool">
Expand Down
1 change: 1 addition & 0 deletions web/web-portlet/src/bundle/vm/main.vm
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ $tlang.getString("gen.trouble.loading")
marginheight="0"
scrolling="auto"
allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"
allow="camera; microphone"
src="$!source">
</iframe>
<script>
Expand Down

0 comments on commit eb331fd

Please sign in to comment.