sandbox

javascript - postMessage to sandboxed iframe, why is recipient window origin null?

末鹿安然 提交于 2019-12-03 05:44:13
2 postMessage calls in the test: 1 using an asterisk for targetOrigin, one using the same https url of both the parent and child documents. button 1: $('.iframed')[0].contentWindow.postMessage( messageData , '*' ); button 2: $('.iframed')[0].contentWindow.postMessage( messageData , 'https://myurl.net' ); the iframe element in parent html document, which points to child html file on same domain, in same directory: <iframe name="childFrame" class="iframed" src="child.html" sandbox="allow-scripts"></iframe> both documents are fully loaded before I am clicking the buttons to trigger postMessage. =

Mini-OSGi that can run in a sandbox (like AppEngine or WebStart)?

余生长醉 提交于 2019-12-03 05:10:19
问题 I really like the concept of modular bundles as implemented by OSGi. I also like "managed deployment" services like Google AppEngine (for web application) or Java WebStart (for client software). These two ideas seem to complement each-other rather well conceptually. However, the OSGi standard includes a couple of features that make it impossible for implementations like Felix or Equinox to run on top of sandboxed virtual machines, such as AppEngine or Webstart. In these environments, it is

How to add a sandboxed app to the login items

♀尐吖头ヾ 提交于 2019-12-03 04:56:07
问题 I want my app to auto start if the user select the option. The methods I have been using is not allowed anymore in sandboxed apps. I know I have to create a helper to achieve that? Is there a simple tutorial with sample code to active that? I found this tutorial, but it does not work for me: http://www.delitestudio.com/2011/10/25/start-dockless-apps-at-login-with-app-sandbox-enabled/ It is a pretty standard thing to do, I don't understand why there is no example project available. UPDATE: I

How do i get identity token in paypal sandbox?

醉酒当歌 提交于 2019-12-03 02:17:16
I don`t know where is the identity token on paypal sandbox. is the identity token same like api number ? Robert Visit the Profile via www.sandbox.paypal.com, then go to https://www.sandbox.paypal.com/businessmanage/preferences/website , turn on "auto return" and "payment data transfer" and then the identity token will appear under "Payment data transfer". If it does not display PDT token then try to purge cookies related to *.paypal.com and try the same process again. I solved this issue by following this. I found this from comment for this answer. PayPal has updated their UI a bit. To save

Is possible to use Mac OS X XPC like IPC to exchange messages between processes? How?

浪尽此生 提交于 2019-12-03 01:12:33
问题 According to Apple, the new XPC Services API, introduced in Lion, provides a lightweight mechanism for basic interprocess communication integrated with Grand Central Dispatch (GCD) and launchd. It seems possible to use this API as a kind of IPC, like the POSIX IPC, however, I cannot find how to do it. I am trying to communicate two processes using the XPC API so I can pass messages between them but I always get a "XPC connection invalid" error in the server side. I don't want an XPC Service,

Is there a lightweight, programmable Sandbox API for the Windows platform? [closed]

帅比萌擦擦* 提交于 2019-12-02 23:33:16
To run untrusted code at home I use a VMWare virtual machine. I want to find an alternate lightweight sandbox API for running untrusted applications, without the overhead of installing VMWare, or any other kind of end-user virtualization tool like that. ( Edit: I don't want it to host an OS - I want it to run untrusted apps). Ideally the sandbox would be (or could be made) transparent so the app running in the sandbox doesn't display any extra chrome or features. (Don't they do this in Parallels on the Mac) The Windows .NET developer side of me wishes for an API so instead of booting up a

Sandboxed Mac app exhausting security scoped URL resources

让人想犯罪 __ 提交于 2019-12-02 23:20:31
I am developing a Mac application that prompts the user for files using the NSOpenPanel. The application is sandboxed (testing on OSX 10.9.4). I noticed that if I open a large amount of files (~3000), the open panel starts to emit errors to the log. This also happens if I try to open less amount of files in chucks for several times. After the errors start to appear the first time, every time the NSOpenPanel is used again to open files, no matter for how many files, these errors will be generated again (until the application is closed). The error message looks like this: TestPanel[98508:303] _

apple sandbox test user account?

蹲街弑〆低调 提交于 2019-12-02 21:10:11
I tried to created a test user for my IAP app for testing. Apple ask for the real credit card number in order to login the test user to apple store. I am afraid that apple store will charge me by chance while I do my testing. Do you have to provide real credit card number for sandbox user? No you dont. Log out by going through: Settings -> Store Do NOT login with your test user. (Otherwise you get that credit card screen). Instead run your app and login with the test user when asked to. Note: If you have already logged in with your test user it will become invalid. So in your case you will

How do I write entitlements to use NSWorkSpace's showSearchResultsForQueryString in sandboxed app?

家住魔仙堡 提交于 2019-12-02 19:47:48
问题 I have made one sandboxed app which calls NSWorkspace 's showSearchResultsForQueryString but this method doesn't work. I guess this error can be associated with entitlement key, but i could't find answer. How can I implement entitlement key for this? 回答1: That method won't work for a sandboxed app. It sends an Apple event to the Finder. Have a look at this link in the sandbox design guide: Determine Whether Your App Is Suitable for Sandboxing and you'll see the following text: With App

Sandbox IronPython?

偶尔善良 提交于 2019-12-02 19:34:17
Is it possible to run an IronPython interpreter inside my .Net application, but inside a sandbox? I want to deny the IP script access to the filesystem while still allowing the app itself access. Would this involve running the scripting engine in a second AppDomain? How would I handcuff it so it can't do whatever it pleases? Here's an article explaining how to create an AppDomain and execute code in a sandbox . Just create the AppDomain and handcuff the code that runs inside it. 来源: https://stackoverflow.com/questions/4393153/sandbox-ironpython