Page MenuHomeIn-Portal Phabricator

D71.id171.diff
No OneTemporary

File Metadata

Created
Fri, Nov 21, 6:32 PM

D71.id171.diff

Index: core/admin_templates/incs/close_popup.tpl
===================================================================
--- core/admin_templates/incs/close_popup.tpl
+++ core/admin_templates/incs/close_popup.tpl
@@ -69,10 +69,16 @@
}
var $frameset = $main_window.parent.frames;
+
for ($i = 0; $i < $frameset.length; $i++) {
- if ($frameset[$i].name == $name) {
- return $frameset[$i];
- }
+ try {
+ if ($frameset[$i].name == $name) {
+ return $frameset[$i];
+ }
+ }
+ catch ( e ) {
+ // Foreign domain frame detected.
+ }
}
return $main_window.parent;
}
@@ -107,4 +113,4 @@
</head>
<body>
</body>
-</html>
\ No newline at end of file
+</html>

Event Timeline