Merge pull request #10 from upsuper/master

Invalidate any content script
This commit is contained in:
Daniel Roesler 2015-02-09 09:56:16 -08:00
commit 938f8624e8
2 changed files with 4 additions and 0 deletions

View file

@ -25,6 +25,8 @@ function getIPs(callback){
//bypass naive webrtc blocking //bypass naive webrtc blocking
if (!RTCPeerConnection) { if (!RTCPeerConnection) {
var iframe = document.createElement('iframe'); var iframe = document.createElement('iframe');
//invalidate content script
iframe.sandbox = 'allow-same-origin';
iframe.style.display = 'none'; iframe.style.display = 'none';
document.body.appendChild(iframe); document.body.appendChild(iframe);
var win = iframe.contentWindow; var win = iframe.contentWindow;

View file

@ -32,6 +32,8 @@
//bypass naive webrtc blocking //bypass naive webrtc blocking
if (!RTCPeerConnection) { if (!RTCPeerConnection) {
var iframe = document.createElement('iframe'); var iframe = document.createElement('iframe');
//invalidate content script
iframe.sandbox = 'allow-same-origin';
iframe.style.display = 'none'; iframe.style.display = 'none';
document.body.appendChild(iframe); document.body.appendChild(iframe);
var win = iframe.contentWindow; var win = iframe.contentWindow;