Welcome Guest Search | Active Topics | Sign In | Register

Plugin local storage permission issue with swf/flash Options
leo158
Posted: Thursday, August 3, 2017 2:58:11 PM
Rank: Newbie
Groups: Member

Joined: 7/5/2017
Posts: 6

I have a html file located on the machine. The html looks like this.

<BODY bgcolor="#000000">

<embed src="C:\something.swf"
height="768" width="1280"
type="application/x-shockwave-flash"
bgcolor="#000000"
wmode="direct"
flashvars="liveUrl=C:\data.xml"/>
</BODY>


C# Code:

WebControl.WebView.Url = "C:\sample.html";


Sample html successfully loads, and "something.swf" also successfully loads. I can see the content on the webview. However part of the content is also driven by "data.xml". The issue I'm having is something.swf can't seem to access data.xml, which is also stored locally.




This works if I hosted something.swf and data.xml. Example:

<BODY bgcolor="#000000">

<embed src="localhost://test/something.swf"
height="768" width="1280"
type="application/x-shockwave-flash"
bgcolor="#000000"
wmode="direct"
flashvars="liveUrl=localhost://test/data.xml"/>
</BODY>


So it seems to be if a swf file is loaded locally on the machine it lacks the permission to read other local files or it could be something else, what am I missing here? Here are the options I have set on the browser.

EO.WebEngine.BrowserOptions options = new EO.WebEngine.BrowserOptions();

options.AllowJavaScript = true;
options.EnableWebSecurity = false;
options.LoadImages = true;
options.AllowPlugins = true;
options.AllowJavaScriptOpenWindow = true;
options.EnableXSSAuditor = false;

EO.WebEngine.EngineOptions.Default.SetDefaultBrowserOptions(options);


Any help or suggestions would be greatly appreciated.


eo_support
Posted: Thursday, August 3, 2017 3:08:48 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,225
Hi,

I don't think this has anything to do with the browser engine ---- anything occurs inside the swf file is handled by the Adobe Flash Plugin. As such the related permission settings would be on the Flash plugin side, not on the browser engine side.

Thanks!
leo158
Posted: Thursday, August 3, 2017 3:24:35 PM
Rank: Newbie
Groups: Member

Joined: 7/5/2017
Posts: 6
Ouch, that is what I feared. If I have a flash.dll of my own, and I choose to use

EO.WebBrowser.Runtime.AdditionalPluginsDirs = new string[] { "c:\\plugins" };

The documentation says I have to include the dll and a "manifest.json", what is this file exactly?
eo_support
Posted: Thursday, August 3, 2017 4:09:05 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,225
Hi,

This is a file that is needed for Chromium to properly load the plugin. You can find this file in Flash's installation folder (the same folder you get your flash DLL).

Thanks!
leo158
Posted: Thursday, August 3, 2017 6:51:15 PM
Rank: Newbie
Groups: Member

Joined: 7/5/2017
Posts: 6



I figured out the issue so I thought I'd post about it. Starting from Adobe Flash Player version 23 local file access was disabled on swf files.
More details here:

https://forums.adobe.com/thread/2210842

The solution was to install an older version of the Adobe Flash Player pre-version 23 that was PPAPI.

eo_support
Posted: Friday, August 4, 2017 6:20:03 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,225
Thanks for sharing!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.