Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1247791
D71.id171.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 21, 6:32 PM
Size
734 B
Mime Type
text/x-diff
Expires
Sat, Nov 22, 6:32 PM (9 h, 32 m)
Engine
blob
Format
Raw Data
Handle
810741
Attached To
D71: INP-1432 Process only frames from same domain
D71.id171.diff
View Options
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
Log In to Comment