jWebScokets explorer support - html

I'm using jWebSockets to run a small internet app. Even though the website says there is explorer support using a flash bridge and this should be transparent, I can't seem to have my app running on explorer.
Is there something that needs to be done to have support for explorer that I'm missing?

For a Flash WebSocket implementation like this to work, you need to run a Flash Policy File server on port 843 serving a policy file which instructs Flash player to allow outbound socket connections. Obviously, you also need to include the relevant Flash files in your client HTML page. Just follow the instructions in the reference. This specific bridge works with IE8/9 and also other WebSocket lacking browsers with Flash support like the native Android browser (pre Chrome Mobile).

Related

How to completely disable NativeMessaging in chrome and other browsers?

I was debugging a situation, where chrome keeps saying it is managed by third party organization. Whether it was due to the malware or not is yet to be seen. What bothers me that some process in Windows keeps creating the HKEY_LOCAL_MACHINE\Software\Google\Chrome\NativeMessagingHosts\ registry entries even if I uninstall Chrome. Whether the key is created by legit app or malware it seems that native applications can communicate with chrome without user noticing or having mechanisms to disable the communication.
Now I am really concerned by the security issues connected with the existence of the mechanism of communication between browser and native applications through native messaging see here. I would prefer my browser not being able to see other applications in the system and other applications to see that browser is running or at least have an option to sandbox the browser and isolate it from native applications.
Is there a way to disable this kind of communication in Chrome and in the host system, in my case Windows but I would be interested in Linux as well.

How does Chrome implement WebUSB on Android?

As I understand it, a native Android app must go through a special API to use Host mode which involves the USB OTG spec. However, the WebUSB spec appears to address host mode as the only option (such as on a normal computer) and doesn't mention OTG, so presumably the code for the is all inside Chrome. How does Chrome handle WebUSB on Android, and would that require code modifications vs desktop?
There shouldn't be any modifications needed to share code between Android and desktop. Chrome uses the Android USB host API to communicate with devices. When using an "OTG adapter" this is the API that can be used to communicate with the device. WebUSB does not support the Android-specific "accessory mode."

How to disable the Internet connection for a specific website?

I need to use a website to draw some diagrams, but I want to be sure that nothing goes to the server while I'm using it. This is why I want to use it locally.
After I visit that website, how can I disable the Internet connection only for that website in a given browser (I prefer Chrome, but I can also use Firefox or Internet Explorer)?
The website provides an "offline web application" containing:
<html manifest="cache.manifest">
</html>
so, it will work "offline". But this doesn't avoid the whole communication between the client and the server when the Internet connection is available. Using the Network tab I confirmed this "theoretical knowledge".
I don't want to stop the "whole" Internet connection, because I'd like to use other websites while drawing those diagrams.
Either edit your etc/hosts to resolve the hostname of the website in question to 127.0.0.1 or install some blocker extension like request policy or µmatrix

Offline Web App, Application Cache, Ipad iOS6, and HTTPS, HTML5

I am writing a web application that is meant to me utilized "sometimes" offline using the iPad's home bookmarked feature of Safari . By "sometimes", I mean that the app should work if the iPad is offline and data has been cached. If the iPad is online and the cache manifest has changed, the app should update the contents of the cache. The web page is protected through https.
Currently, I can get my app to work correctly using Chrome, Firefox, and Safari. I have tested them all in windows 7 and windows XP. The app also works correctly in the iPad's "normal" way of using Safari, but when I run the bookmarked version of the app (created by specifying the special standalone apple metas and then bookmarking) it does the initial password prompt and correctly moves on to download all the data specified in the cache manifest file. The trouble is that any subsequent runs of the standalone app do not seem to have access to the manifest file and thus any later updates to the manifest file do not get reflected.
So my question is this: does HTML5 specific caching work on the iPad (ios6) with https on a stand alone (bookmarked) web app?
Application Caching on iPad will not cache website data or pages
I was having the same problem. This answer worked. Hope it does for you too!

With Native Client (NaCl) is it possible to embed a server in a page that can accept incoming requests?

Is it possible to open a port using Native Client that other browsers can connect to? Like a browser to browser connection?
In general, no. NaCl does not allow programs to open sockets directly (that would be a security problem). It is intended that NaCl/Pepper applications have the same general capabilities as Javascript applications; so something like WebSockets (connection back to the server) would be supported, but not directly opening files or sockets on the client machine. There's some work going on to have a P2P style networking in HTML5 (e.g. http://www.w3.org/TR/2008/WD-html5-20080122/#peer-to-peer) which would likely get Pepper support as well, but I don't know what the status of that is.
The only way to get P2P connection in browser is through WebRTC. If NaCl allows to use WebRTC (though Pepper API or whatever) then the only thing you need besides implementation is broker server that will connect clients with each other. See PeerJS for some info.