Invalidate any content script

This commit is contained in:
Xidorn Quan 2015-02-09 22:29:31 +11:00
parent bc5294e7b4
commit 981dd482f9
2 changed files with 4 additions and 0 deletions

View file

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

View file

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