sandbox

Semi-sandboxing Javascript eval

落花浮王杯 提交于 2019-12-19 19:56:41
问题 Background : I'm working on a framework/library to be used for a specific site in coordination with greasemonkey/userscripts. This framework/library will allow for addon support. The way it will work is an addon registers with the library listing required pages, resources, ectera and the library will wait until all critera is met to call the addon's load() function. The Issue :In this listing of 'required stuff' I want addon devs to be able to specify javascript(as string) to be evaluated as

Flash AS3 Getting Security sandbox violation when trying fetch an external swf

偶尔善良 提交于 2019-12-19 19:44:51
问题 Hii, I'm tring to load swf file to my flash application from a different server. When i try to load it on flash IDE (crl+enter) everything is working fine, but when i run the swf as an independent swf file or by debugging it, i'm getting this error: SecurityError: Error #2121: Security sandbox violation: LoaderInfo.content: file:///C|/Users/something/Desktop/blablabla/myplayer.swf cannot access http://www.somedomain.com/blablabla/lalalala/abc.swf. This may be worked around by calling Security

How to get the parent window URL from Iframe?

老子叫甜甜 提交于 2019-12-19 06:21:36
问题 I know it's a security issue. But is there any way in HTML5. Cause I seen the below code opens a window with the parents URL in tweet box <iframe src="https://platform.twitter.com/widgets/tweet_button.html" style="border: 0; width:130px; height:20px;"></iframe> 回答1: Try this inside the iframe. It will alert the parent window's location URL. alert(document.referrer); 回答2: Give this JavaScript a go var referrer = document.referrer; console.log(referrer); Hopefully it works for your purpose.

Sandboxing in Lua 5.2

拟墨画扇 提交于 2019-12-19 03:16:26
问题 I am learning from "Programing in Lua" by Roberto Ierusalimschy, and I found that in the book, the example of Sandboxing uses the function setfenv() to change the environment of a given function, but in lua 5.2 this function is no longer available. I tried to load some values from a file (a configuration file) into a field in a table, but, in lua 5.2 I can't use setfenv ( so I can load the values in the given environment). After reading some articles about lua 5.2 I found that each function

Read and Write access for FinderSync extension in a sandboxed environment

半城伤御伤魂 提交于 2019-12-19 02:06:08
问题 The scenario The user right-clicks a directory in Finder and finds a custom MenuItem. Clicking that Item will tell my app to open up a window where the user can do his work. When he is finished files need to be written to to the folder he selected by right-clicking. The Problem I got everything to work now, but the very last part. The extension can't write to the selected folder. The user selecting the folder he wants to interact with seems to not be part of the Powerbox which - how I

get push notification while the app is not running iPhone

北城以北 提交于 2019-12-18 13:58:08
问题 I am working on one iPhone app which involves a push notification. As I have seen in many documents and tutorials it suggests to register for push notification with in application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions like the following: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [[UIApplication sharedApplication] registerForRemoteNotificationTypes

Can you sign a Java applet but keep it in the sandbox (NOT give it full access to user's computer)?

╄→尐↘猪︶ㄣ 提交于 2019-12-18 12:14:06
问题 Thanks to Oracle's latest changes, it appears I have to sign an applet even though I don't need or want it to have unrestricted access to the user's computer (which is why its currently unsigned). In particular, I don't want the warning they show for signed applets: This application will run with unrestricted access which may put your computer and personal information at risk. ...which will scare the people using it. Is it possible to sign an applet but mark it in some way to say "but keep

Mac OS X app crash with Code Signature Invalid error

╄→尐↘猪︶ㄣ 提交于 2019-12-18 12:12:18
问题 I write an app for OS X and when I archive the app and export it as an application and try to open then it crashes with Code Signature Invalid error. I have created Mac App Distribution, Mac Installer Distribution, Developer ID Application, Developer ID Installer certificates and distribution provisiong profile. The app is sandboxed and I tested it on Mavericks. Exception Type: EXC_CRASH (Code Signature Invalid) Exception Codes: 0x0000000000000000, 0x0000000000000000 VM Regions Near

Is there any way to give my sandboxed Mac app read only access to files in ~/Library?

点点圈 提交于 2019-12-18 10:53:01
问题 I'm a little confused with the sandbox. Is this possible? Thanks! 回答1: Yes, but it requires a "temporary exception" entitlement. "Temporary" means that it may go away in some future version of the OS, but that's not much of a risk. The bigger problem is that word "exception": It means you will have to justify your use of the entitlement, or the App Store reviewers will probably reject you. File a bug report explaining exactly what it is you think you ought to be able to do, but can't do today

Using the Google Chrome Sandbox [closed]

旧城冷巷雨未停 提交于 2019-12-18 10:11:35
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . There are several resources out there that explain how the sandbox in Chrome works and what it does to protect users from malicious