javascript - Chrome and Firefox are cancelling my local requests -
i'm trying test local flash development injecting swf file website being served test server.
i've set --disable-web-security
on chrome allow me load local resources.
on firefox i've set:
security.fileuri.strict_origin_policy = false security.checkloaduri = false
in both cases code failing. here markup looks like:
<object style="visibility: visible;" id="flash_test" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="480"> <param name="movie" value="file:///c:/users/peter/desktop/test.swf" /> <param name="allowscriptaccess" value="always" /> <param name="menu" value="false" /> <param name="quality" value="high" /> <param name="type" value="application/x-shockwave-flash" /> <param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" /> <embed id="flash_test" src="file:///c:/users/peter/desktop/test.swf" allowscriptaccess="always" menu="false" quality="high" width="640" height="480" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>
in chrome developer tools test.swf shows status canceled. in firefox doesn't show browser attempted load flash file, absent form network list.
in both browsers there no console message of kind showing.
my goal automate selenium in future, i'd prefer avoid plugin, unless work selenium.
nothing wrong html code. absolutely correct.
make sure following:-
- flash players installed , enabled
- swf must exist @ path given.
- try simple swf. (to make sure swf correct , nothing wrong swf itself)
Comments
Post a Comment