<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>Enigmatic Thought &#187; firefox</title>
	<atom:link href="http://blog.enigmaticthought.com/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.enigmaticthought.com</link>
	<description>import com.enigmaticThought.blog;</description>
	<lastBuildDate>Fri, 25 Jun 2010 19:54:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Flash Debug crashing in Firefox?</title>
		<link>http://blog.enigmaticthought.com/2010/06/flash-debug-crashing-in-firefox/</link>
		<comments>http://blog.enigmaticthought.com/2010/06/flash-debug-crashing-in-firefox/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 19:52:53 +0000</pubDate>
		<dc:creator>Matt C</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Builder]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[firefox]]></category>
		<guid isPermaLink="false">http://enigmaticthought.com/?p=274</guid>
		<description><![CDATA[If you&#8217;ve just updated to Firefox 3.6.4 and use the Flash debug player, you may have noticed a problem. While you&#8217;re debugging, Firefox is killing you&#8217;re flash player session. Here&#8217;s the quick fix: type about:config in the firefox address bar search for dom.ipc.plugins.timeoutSecs double click and change the value to -1 This will disable the [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve just updated to Firefox 3.6.4 and use the Flash debug player, you may have noticed a problem.  While you&#8217;re debugging, Firefox is killing you&#8217;re flash player session.  Here&#8217;s the quick fix: </p>
<ol>
<li>type about:config in the firefox address bar</li>
<li>search for dom.ipc.plugins.timeoutSecs</li>
<li>double click and change the value to -1</li>
</ol>
<p>This will disable the hang detector that was added.  It&#8217;s the same reason I don&#8217;t do any debugging in Chrome (alongside the lack of HttpFox).  Sometimes a break point needs more than 10-15 seconds for me to figure out what&#8217;s going on.  <a href="http://benjamin.smedbergs.us/blog/2010-06-09/the-firefox-plugin-hang-detector/">Check out more details here</a><br />
<h3 class='related_post_title'>Related Posts (generated):</h3>
<ul class='related_post'>
<li><a href='http://enigmaticthought.com/2009/09/flash-builders-new-menu/' title='Altering Flash Builder&#8217;s new menu'>Altering Flash Builder&#8217;s new menu</a></li>
<li><a href='http://enigmaticthought.com/2009/02/firefox-and-flex/' title='Firefox and flex'>Firefox and flex</a></li>
<li><a href='http://enigmaticthought.com/2009/02/flex-in-eclipse-tips/' title='Flex in Eclipse tips'>Flex in Eclipse tips</a></li>
<li><a href='http://enigmaticthought.com/2010/03/clever-code/' title='Clever Code is dangerous'>Clever Code is dangerous</a></li>
<li><a href='http://enigmaticthought.com/2009/12/bugquash-badges-fixed/' title='Bugquash badges fixed'>Bugquash badges fixed</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.enigmaticthought.com/2010/06/flash-debug-crashing-in-firefox/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Firefox and flex</title>
		<link>http://blog.enigmaticthought.com/2009/02/firefox-and-flex/</link>
		<comments>http://blog.enigmaticthought.com/2009/02/firefox-and-flex/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 21:13:58 +0000</pubDate>
		<dc:creator>Matt C</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[firefox]]></category>
		<guid isPermaLink="false">http://enigmaticthought.com/blog/?p=27</guid>
		<description><![CDATA[File uploading in Flash (and therefore Flex) doesn&#8217;t work properly. If you have to log into a website, flex won&#8217;t keep the session info and you&#8217;ll have all kinds of trouble. Especially if you want any indication that the upload actually happened. Adobe is fully aware but doesn&#8217;t seem that interested. They blame the NPAPI [...]]]></description>
			<content:encoded><![CDATA[<p>File uploading in Flash (and therefore Flex) doesn&#8217;t work properly. If you have to log into a website, flex won&#8217;t keep the session info and you&#8217;ll have all kinds of trouble.  Especially if you want any indication that the upload actually happened.  Adobe is <a href="http://bugs.adobe.com/jira/browse/FP-201">fully aware</a> but doesn&#8217;t seem that interested.  They blame the NPAPI (Netscape Plugin API) for the issue, but don&#8217;t reference any bugs in the Mozilla project.  In fact you can search <a href="https://bugzilla.mozilla.org/buglist.cgi?quicksearch=ssl+upload">bugzilla</a> but you won&#8217;t get any open bugs.</p>
<p>You&#8217;d think that a technology that&#8217;s big selling point is browser independence would actually try and be browser independent.  Unfortunately only IE file uploads seem to work properly.</p>
<p>So, how do you workaround?  Javascript!</p>
<p><a href="http://sethonflex.blogspot.com/2007/10/flex-and-filereferenceupload-using.html">Seth On Flex</a> has an excellent workaround, but I had problems on my results.  You see, I&#8217;d loose my connection to window.opener for some reason when I got a response back from the server.  So, I used frames.</p>
<p>My upload function and response code from my index.template.html looks like this:</p>
<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p27code5'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p275"><td class="code" id="p27code5"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> showUploadComponent<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> w <span style="color: #339933;">=</span> window.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;ARESUploadWindow&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;height=100, width=600,scrollbars=no,status=no,titlebar=no,toolbar=no&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> s <span style="color: #339933;">=</span> 	<span style="color: #3366CC;">&quot;&lt;form method='POST' action='/upload' ENCTYPE='multipart/form-data' name='formUpload'&gt;File:&lt;input type='file' name='file' /&gt;&lt;input type='submit' value='Upload' /&gt;&lt;/form&gt;&quot;</span><span style="color: #339933;">;</span>
	w.<span style="color: #660066;">document</span>.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	w.<span style="color: #660066;">document</span>.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&lt;frameset rows='100%,*' framespacing='0'&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	w.<span style="color: #660066;">document</span>.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&lt;frame name='visibleFrame' /&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	w.<span style="color: #660066;">document</span>.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&lt;/frameset&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	w.<span style="color: #660066;">document</span>.<span style="color: #000066;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> f <span style="color: #339933;">=</span> w.<span style="color: #660066;">visibleFrame</span><span style="color: #339933;">;</span>
	f.<span style="color: #660066;">document</span>.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	f.<span style="color: #660066;">document</span>.<span style="color: #000066;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> uploadedFile<span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	getFlexApp<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;${application}&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">uploadedFile</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> getFlexApp<span style="color: #009900;">&#40;</span>appName<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">appName</span>.<span style="color: #660066;">indexOf</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Microsoft&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>  <span style="color: #000066; font-weight: bold;">return</span> window<span style="color: #009900;">&#91;</span>appName<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
  <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">return</span> document<span style="color: #009900;">&#91;</span>appName<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>
<p>Then the response from the server becomes:</p>
<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p27code6'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p276"><td class="code" id="p27code6"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script language<span style="color: #339933;">=</span><span style="color: #3366CC;">'JavaScript'</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">'text/javascript'</span><span style="color: #339933;">&gt;</span>
<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">parent</span>.<span style="color: #000066;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">parent</span>.<span style="color: #660066;">window</span>.<span style="color: #660066;">opener</span>.<span style="color: #660066;">uploadedFile</span><span style="color: #009900;">&#40;</span>result<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>
<p>Everything within Flex is the same as Seth&#8217;s solution:<br />
Calling the Javascript:</p>
<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p27code7'); return false;">View Code</a> ACTIONSCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p277"><td class="code" id="p27code7"><pre class="actionscript" style="font-family:monospace;">ExternalInterface.<span style="color: #0066CC;">call</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;showUploadComponent&quot;</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>
<p>And registering for the return:</p>
<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p27code8'); return false;">View Code</a> ACTIONSCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p278"><td class="code" id="p27code8"><pre class="actionscript" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>ExternalInterface.<span style="color: #006600;">available</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	ExternalInterface.<span style="color: #006600;">addCallback</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;uploadedFile&quot;</span>,callbackFunction<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>
<h3 class='related_post_title'>Related Posts (generated):</h3>
<ul class='related_post'>
<li><a href='http://enigmaticthought.com/2010/06/flash-debug-crashing-in-firefox/' title='Flash Debug crashing in Firefox?'>Flash Debug crashing in Firefox?</a></li>
<li><a href='http://enigmaticthought.com/2009/12/big-o-notation/' title='Big O Notation'>Big O Notation</a></li>
<li><a href='http://enigmaticthought.com/2009/12/why-algorithms-matter/' title='Why Algorithms Matter'>Why Algorithms Matter</a></li>
<li><a href='http://enigmaticthought.com/2009/11/scientific-notation-patch-accepted/' title='Scientific Notation Patch Accepted'>Scientific Notation Patch Accepted</a></li>
<li><a href='http://enigmaticthought.com/2009/10/the-flex-component-lifecycle/' title='The Flex Component Lifecycle'>The Flex Component Lifecycle</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.enigmaticthought.com/2009/02/firefox-and-flex/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
