Display wrapper security errors and fix Firefox navigation blank pages
This commit is contained in:
parent
3e970df09b
commit
e96dd14e0d
1 changed files with 13 additions and 3 deletions
|
@ -16,9 +16,19 @@
|
||||||
</noscript>
|
</noscript>
|
||||||
<script>
|
<script>
|
||||||
// If we are inside iframe escape from it
|
// If we are inside iframe escape from it
|
||||||
if (window.self !== window.top) window.open(window.location.toString(), "_top");
|
if (window.self !== window.top) {
|
||||||
if (window.self !== window.top || window.opener) window.stop();
|
window.open(window.location.toString(), "_top");
|
||||||
if ((window.self !== window.top || window.opener) && document.execCommand) document.execCommand("Stop", false)
|
document.write("Escaping from iframe...");
|
||||||
|
window.stop();
|
||||||
|
document.execCommand("Stop", false);
|
||||||
|
}
|
||||||
|
|
||||||
|
// We are opened as a parent-window
|
||||||
|
else if (window.opener && window.opener.location.toString()) {
|
||||||
|
document.write("Opened as child-window, stopping...");
|
||||||
|
window.stop();
|
||||||
|
document.execCommand("Stop", false);
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="progressbar">
|
<div class="progressbar">
|
||||||
|
|
Loading…
Reference in a new issue