Invalidate any content script
This commit is contained in:
parent
bc5294e7b4
commit
981dd482f9
2 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue