Fixed: Error: Permission denied to access property '_childAppIsStarting' in Firefox.

This error would occur when running an app in an iframe which could not access its parent frame.
This commit is contained in:
Alexander Ljungberg committed 2012-11-08 17:30:17 +00:00
1 parent 0fa499bd61
commit f1c6a8bc12
1 file changed
+11 -1
+11 -1
View File
@@ -1218,7 +1218,17 @@ function CPApplicationMain(args, namedArgs)
#if PLATFORM(DOM)
// hook to allow recorder, etc to manipulate things before starting AppKit
if (window.parent !== window && typeof window.parent._childAppIsStarting === "function")
window.parent._childAppIsStarting(window);
{
try
{
window.parent._childAppIsStarting(window);
}
catch(err)
{
// This could happen if we're in an iframe without access to the parent frame.
CPLog.warn("Failed to call parent frame's _childAppIsStarting().");
}
}
#endif
var mainBundle = [CPBundle mainBundle],