I have got a problem on Security after Firefox's window was shown up from executing ruby script.

2 views
Skip to first unread message

Gugcula

unread,
Jan 27, 2010, 11:10:37 PM1/27/10
to FunFX
Hi Guys,

Thanks to Peter and team, who are contributing this really great
tool.

I have been blocked by the problem regarding SecorityError for a
while. The problem is after I compiled my flex application with the
options -locale en_US --include-libraries "C:\flexlib\automation.swc"
"C:\flexlib\automation_agent.swc" "C:\flexlib\automation_dmv.swc" "C:
\flexlib\funfx-0.2.2.swc" I got no compile error and everything looked
fine, but when I try to open the html file, which was generated by
FlexBuilder, the pop-up with the error message always shows up and has
message below:

SecurityError: Error #2060: Security sandbox violation:
ExternalInterface caller
file:///C:/WebDev/workspace/Tomcat6.x/eCompliance2Workspace/SimpleTestProject/bin-debug/SimpleTestProject.swf
cannot access file:///C:/WebDev/workspace/Tomcat6.x/eCompliance2Workspace/SimpleTestProject/bin-debug/SimpleTestProject.html.
at flash.external::ExternalInterface$/_initJS()
at flash.external::ExternalInterface$/addCallback()
at funfx::Proxy()[/Users/aslakhellesoy/scm/funfx/flex/src/funfx/
Proxy.as:27]
at AQToolBar()[/Users/aslakhellesoy/scm/funfx/flex/src/AQToolBar.mxml:
76]...

but It works well on eclipse's internal browser. This problem is
blocking me from using FunFx with firewatir. Have you guys got any
clue on this?

My setup is:
Eclipse Ganymede and Flex Builder 3 eclipse's plug-in
FlexSDK 3.5 and Automation Framework 3.5 (I tried using 3.3 but
couldn't find the Automation API in the same version).
Ruby 1.8.x (Since the 1.9.x raised warning on fastcsv so I changed to
1.8.x).
Ruby libs:
funfx (0.2.2) and its dependencies.
firewatir (1.6.2) and its dependencies.
Firefox 3.5 with JSSh 1.0 and Redistributed package for VS 2008 SP1.

Any helps would be appreciate.

Best Regards,
K. Nitimate

Reply all
Reply to author
Forward
0 new messages