<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Cross Domain XHR with Firefox 2</title>
	<atom:link href="http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/</link>
	<description></description>
	<lastBuildDate>Fri, 05 Mar 2010 00:28:32 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Zach Leatherman</title>
		<link>http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/comment-page-1/#comment-974</link>
		<dc:creator>Zach Leatherman</dc:creator>
		<pubDate>Sun, 10 May 2009 15:58:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/#comment-974</guid>
		<description>Again, please keep in mind that this post should be considered deprecated, as it does not apply to the current version of Firefox.</description>
		<content:encoded><![CDATA[<p>Again, please keep in mind that this post should be considered deprecated, as it does not apply to the current version of Firefox.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Animal</title>
		<link>http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/comment-page-1/#comment-973</link>
		<dc:creator>Animal</dc:creator>
		<pubDate>Sat, 09 May 2009 16:40:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/#comment-973</guid>
		<description>Sorry, but NONE of this works.</description>
		<content:encoded><![CDATA[<p>Sorry, but NONE of this works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zach Leatherman</title>
		<link>http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/comment-page-1/#comment-950</link>
		<dc:creator>Zach Leatherman</dc:creator>
		<pubDate>Thu, 12 Feb 2009 17:16:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/#comment-950</guid>
		<description>If you&#039;re having trouble modifying your prefs, you probably still have Firefox open.  You must close Firefox when editing prefs.js.  Also, the above code was tested only with Firefox 2, as stated below the headline.</description>
		<content:encoded><![CDATA[<p>If you&#8217;re having trouble modifying your prefs, you probably still have Firefox open.  You must close Firefox when editing prefs.js.  Also, the above code was tested only with Firefox 2, as stated below the headline.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: venkat</title>
		<link>http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/comment-page-1/#comment-949</link>
		<dc:creator>venkat</dc:creator>
		<pubDate>Thu, 12 Feb 2009 13:30:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/#comment-949</guid>
		<description>Hi,

Many thanks to you. But my firefox doent get updated with the new user prefs. im running 3.0.6. Any clues.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Many thanks to you. But my firefox doent get updated with the new user prefs. im running 3.0.6. Any clues.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zach Leatherman</title>
		<link>http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/comment-page-1/#comment-835</link>
		<dc:creator>Zach Leatherman</dc:creator>
		<pubDate>Tue, 12 Aug 2008 13:19:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/#comment-835</guid>
		<description>Never say die.

http://developer.mozilla.org/en/docs/Cross-Site_XMLHttpRequest

Looks like you could make a plugin that enables this for the web :)  Have at it!</description>
		<content:encoded><![CDATA[<p>Never say die.</p>
<p><a href="http://developer.mozilla.org/en/docs/Cross-Site_XMLHttpRequest" rel="nofollow">http://developer.mozilla.org/en/docs/Cross-Site_XMLHttpRequest</a></p>
<p>Looks like you could make a plugin that enables this for the web :)  Have at it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/comment-page-1/#comment-834</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Tue, 12 Aug 2008 12:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/#comment-834</guid>
		<description>I&#039;ve read that the above technique will not work under Firefox 3. My tests seem to confirm this. And, there&#039;s this thread:

http://groups.google.com/group/mozilla.dev.apps.firefox/browse_thread/thread/0b3db90e1b452f33/d4fd6124df529739

So, is it game over?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve read that the above technique will not work under Firefox 3. My tests seem to confirm this. And, there&#8217;s this thread:</p>
<p><a href="http://groups.google.com/group/mozilla.dev.apps.firefox/browse_thread/thread/0b3db90e1b452f33/d4fd6124df529739" rel="nofollow">http://groups.google.com/group/mozilla.dev.apps.firefox/browse_thread/thread/0b3db90e1b452f33/d4fd6124df529739</a></p>
<p>So, is it game over?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/comment-page-1/#comment-823</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Wed, 09 Jul 2008 18:46:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/#comment-823</guid>
		<description>hi board!

y have this error, 
Permiso para obtener la propiedad Element.childNodes denegado

in english
Permission denied to get property Element.childNodes

and i create prefs.js file, and i have this error yet... i am using V 3.0

tks for u help.</description>
		<content:encoded><![CDATA[<p>hi board!</p>
<p>y have this error,<br />
Permiso para obtener la propiedad Element.childNodes denegado</p>
<p>in english<br />
Permission denied to get property Element.childNodes</p>
<p>and i create prefs.js file, and i have this error yet&#8230; i am using V 3.0</p>
<p>tks for u help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zach Leatherman</title>
		<link>http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/comment-page-1/#comment-818</link>
		<dc:creator>Zach Leatherman</dc:creator>
		<pubDate>Wed, 18 Jun 2008 23:24:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/#comment-818</guid>
		<description>Sure, this method is a client-side only solution.  It&#039;s fairly trivial (and common) to use a server side language to act as a proxy for your ajax calls.</description>
		<content:encoded><![CDATA[<p>Sure, this method is a client-side only solution.  It&#8217;s fairly trivial (and common) to use a server side language to act as a proxy for your ajax calls.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arian Hojat</title>
		<link>http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/comment-page-1/#comment-817</link>
		<dc:creator>Arian Hojat</dc:creator>
		<pubDate>Wed, 18 Jun 2008 15:37:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/#comment-817</guid>
		<description>Heard this was a viable production solution:
use php to pull the xml, and feed it into the javascript.

http://www.phpfour.com/blog/2008/03/06/cross-domain-ajax-using-php/</description>
		<content:encoded><![CDATA[<p>Heard this was a viable production solution:<br />
use php to pull the xml, and feed it into the javascript.</p>
<p><a href="http://www.phpfour.com/blog/2008/03/06/cross-domain-ajax-using-php/" rel="nofollow">http://www.phpfour.com/blog/2008/03/06/cross-domain-ajax-using-php/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zach Leatherman</title>
		<link>http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/comment-page-1/#comment-779</link>
		<dc:creator>Zach Leatherman</dc:creator>
		<pubDate>Sat, 10 May 2008 19:10:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/#comment-779</guid>
		<description>Also, please keep in mind that this is NOT a production solution.  It&#039;s a development solution for individual development machines.</description>
		<content:encoded><![CDATA[<p>Also, please keep in mind that this is NOT a production solution.  It&#8217;s a development solution for individual development machines.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zach Leatherman</title>
		<link>http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/comment-page-1/#comment-776</link>
		<dc:creator>Zach Leatherman</dc:creator>
		<pubDate>Sat, 10 May 2008 04:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/#comment-776</guid>
		<description>Dude, what?

To me that says:
I can parse an XML document.
OR if I can&#039;t, try a new way.

That doesn&#039;t have anything to do with XHR, other than supplying using it to supply an XML document.</description>
		<content:encoded><![CDATA[<p>Dude, what?</p>
<p>To me that says:<br />
I can parse an XML document.<br />
OR if I can&#8217;t, try a new way.</p>
<p>That doesn&#8217;t have anything to do with XHR, other than supplying using it to supply an XML document.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/comment-page-1/#comment-775</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Fri, 09 May 2008 23:58:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/#comment-775</guid>
		<description>If you want to ensure that what you are developing works for other users who will not want to do this to their firefox use this:

try{
// IE understands this
    var xml = $(response.responseXML)
    var codes = xml.documentElement.getElementsByTagName(&quot;code&quot;)
}catch(e){
//firefox understands this
    try{
        var xml = (new DOMParser()).parseFromString( response.responseXML, &quot;text/xml&quot;);
        var codes = xml.documentElement.getElementsByTagName(&quot;code&quot;)
    }catch(ee){       
    }
}</description>
		<content:encoded><![CDATA[<p>If you want to ensure that what you are developing works for other users who will not want to do this to their firefox use this:</p>
<p>try{<br />
// IE understands this<br />
    var xml = $(response.responseXML)<br />
    var codes = xml.documentElement.getElementsByTagName(&#8220;code&#8221;)<br />
}catch(e){<br />
//firefox understands this<br />
    try{<br />
        var xml = (new DOMParser()).parseFromString( response.responseXML, &#8220;text/xml&#8221;);<br />
        var codes = xml.documentElement.getElementsByTagName(&#8220;code&#8221;)<br />
    }catch(ee){<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Fecteau</title>
		<link>http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/comment-page-1/#comment-571</link>
		<dc:creator>Christian Fecteau</dc:creator>
		<pubDate>Sat, 16 Feb 2008 03:54:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/#comment-571</guid>
		<description>Problem solved. A Firefox search engine xml file has been made for this dictionnary (and more):
http://www.cnrtl.fr/portail/#footerright</description>
		<content:encoded><![CDATA[<p>Problem solved. A Firefox search engine xml file has been made for this dictionnary (and more):<br />
<a href="http://www.cnrtl.fr/portail/#footerright" rel="nofollow">http://www.cnrtl.fr/portail/#footerright</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Fecteau</title>
		<link>http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/comment-page-1/#comment-555</link>
		<dc:creator>Christian Fecteau</dc:creator>
		<pubDate>Sun, 10 Feb 2008 22:30:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/#comment-555</guid>
		<description>Shaun or Zach, how would I do the same for UniversalXPConnect? I&#039;m trying to make myself a Firefox favelet that would search this French dictionnary automatically with my clipboard text:
http://atilf.atilf.fr/dendien/scripts/tlfiv4/showps.exe?p=combi.htm

I&#039;m so close but I&#039;m still getting this error:
&lt;code&gt;uncaught exception: Un script de « http://atilf.atilf.fr » s&#039;est vu refuser des privilèges UniversalXPConnect.&lt;/code&gt;

I&#039;ve tried these with no luck in user.js:
&lt;code&gt;user_pref(&quot;capability.principal.codebase.p0.granted&quot;, &quot;UniversalXPConnect&quot;);
user_pref(&quot;capability.principal.codebase.p0.id&quot;, &quot;http://atilf.atilf.fr&quot;);
user_pref(&quot;capability.principal.codebase.p0.subjectName&quot;, &quot;&quot;);

user_pref(&quot;capability.principal.codebase.p1.granted&quot;, &quot;UniversalXPConnect&quot;);
user_pref(&quot;capability.principal.codebase.p1.id&quot;, &quot;http://dell&quot;);
user_pref(&quot;capability.principal.codebase.p1.subjectName&quot;, &quot;&quot;);

user_pref(&quot;capability.policy.policynames&quot;, &quot;allowclipboard&quot;);
user_pref(&quot;capability.policy.allowclipboard.sites&quot;, &quot;file:// http://dell http://atilf.atilf.fr&quot;);
user_pref(&quot;capability.policy.allowclipboard.Clipboard.cutcopy&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.allowclipboard.Clipboard.paste&quot;, &quot;allAccess&quot;);

/*
user_pref(&quot;capability.policy.allowclipboard.UniversalXPConnect.QueryInterface&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.allowclipboard.UniversalXPConnect.createInstance&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.allowclipboard.UniversalXPConnect.equals&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.allowclipboard.UniversalXPConnect.getService&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.allowclipboard.UniversalXPConnect.initialize&quot;, &quot;allAccess&quot;);
*/
&lt;/code&gt;

and my favelet:
&lt;code&gt;function getClipboardText() {

	if (window.clipboardData) // IE
		return (window.clipboardData.getData(&#039;Text&#039;));

	if (!window.netscape) // promt for text if not Mozilla
		return prompt();

	// ask permission to Mozilla
	netscape.security.PrivilegeManager.enablePrivilege(&#039;UniversalXPConnect&#039;);

	// go on with XUL code
	var	clip = Components
			.classes[&#039;@mozilla.org/widget/clipboard;1&#039;]
			.createInstance(Components.interfaces.nsIClipboard),
		trans = Components
				.classes[&#039;@mozilla.org/widget/transferable;1&#039;]
				.createInstance(Components.interfaces.nsITransferable),
		str = {},
		len = {};

	trans.addDataFlavor(&#039;text/unicode&#039;);
	clip.getData(trans, clip.kGlobalClipboard);
	trans.getTransferData(&#039;text/unicode&#039;, str, len);

	str =	Components.interfaces.nsISupportsWString
		? str.value.QueryInterface(Components.interfaces.nsISupportsWString)
		: str.value.QueryInterface(Components.interfaces.nsISupportsString);

	return(str.data.substring(0, len.value / 2));
}

var clip = getClipboardText();

console.log(clip);

//document.form1.elements.mot.value = clip;

//verif1();&lt;/code&gt;

Thanks for the XHR code. I&#039;ve added it to my FF dev profile. Now I can code cross-domain ajax.</description>
		<content:encoded><![CDATA[<p>Shaun or Zach, how would I do the same for UniversalXPConnect? I&#8217;m trying to make myself a Firefox favelet that would search this French dictionnary automatically with my clipboard text:<br />
<a href="http://atilf.atilf.fr/dendien/scripts/tlfiv4/showps.exe?p=combi.htm" rel="nofollow">http://atilf.atilf.fr/dendien/scripts/tlfiv4/showps.exe?p=combi.htm</a></p>
<p>I&#8217;m so close but I&#8217;m still getting this error:<br />
<code>uncaught exception: Un script de « <a href="http://atilf.atilf.fr" rel="nofollow">http://atilf.atilf.fr</a> » s'est vu refuser des privilèges UniversalXPConnect.</code></p>
<p>I&#8217;ve tried these with no luck in user.js:<br />
<code>user_pref("capability.principal.codebase.p0.granted", "UniversalXPConnect");<br />
user_pref("capability.principal.codebase.p0.id", "http://atilf.atilf.fr");<br />
user_pref("capability.principal.codebase.p0.subjectName", "");</p>
<p>user_pref("capability.principal.codebase.p1.granted", "UniversalXPConnect");<br />
user_pref("capability.principal.codebase.p1.id", "http://dell");<br />
user_pref("capability.principal.codebase.p1.subjectName", "");</p>
<p>user_pref("capability.policy.policynames", "allowclipboard");<br />
user_pref("capability.policy.allowclipboard.sites", "file:// <a href="http://dell" rel="nofollow">http://dell</a> <a href="http://atilf.atilf.fr" rel="nofollow">http://atilf.atilf.fr</a>");<br />
user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");<br />
user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");</p>
<p>/*<br />
user_pref("capability.policy.allowclipboard.UniversalXPConnect.QueryInterface", "allAccess");<br />
user_pref("capability.policy.allowclipboard.UniversalXPConnect.createInstance", "allAccess");<br />
user_pref("capability.policy.allowclipboard.UniversalXPConnect.equals", "allAccess");<br />
user_pref("capability.policy.allowclipboard.UniversalXPConnect.getService", "allAccess");<br />
user_pref("capability.policy.allowclipboard.UniversalXPConnect.initialize", "allAccess");<br />
*/<br />
</code></p>
<p>and my favelet:<br />
<code>function getClipboardText() {</p>
<p>	if (window.clipboardData) // IE<br />
		return (window.clipboardData.getData('Text'));</p>
<p>	if (!window.netscape) // promt for text if not Mozilla<br />
		return prompt();</p>
<p>	// ask permission to Mozilla<br />
	netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');</p>
<p>	// go on with XUL code<br />
	var	clip = Components<br />
			.classes['@mozilla.org/widget/clipboard;1']<br />
			.createInstance(Components.interfaces.nsIClipboard),<br />
		trans = Components<br />
				.classes['@mozilla.org/widget/transferable;1']<br />
				.createInstance(Components.interfaces.nsITransferable),<br />
		str = {},<br />
		len = {};</p>
<p>	trans.addDataFlavor('text/unicode');<br />
	clip.getData(trans, clip.kGlobalClipboard);<br />
	trans.getTransferData('text/unicode', str, len);</p>
<p>	str =	Components.interfaces.nsISupportsWString<br />
		? str.value.QueryInterface(Components.interfaces.nsISupportsWString)<br />
		: str.value.QueryInterface(Components.interfaces.nsISupportsString);</p>
<p>	return(str.data.substring(0, len.value / 2));<br />
}</p>
<p>var clip = getClipboardText();</p>
<p>console.log(clip);</p>
<p>//document.form1.elements.mot.value = clip;</p>
<p>//verif1();</code></p>
<p>Thanks for the XHR code. I&#8217;ve added it to my FF dev profile. Now I can code cross-domain ajax.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zach Leatherman</title>
		<link>http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/comment-page-1/#comment-543</link>
		<dc:creator>Zach Leatherman</dc:creator>
		<pubDate>Thu, 07 Feb 2008 00:27:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/#comment-543</guid>
		<description>Great comment Shaun!  That will definitely tighten the security up.</description>
		<content:encoded><![CDATA[<p>Great comment Shaun!  That will definitely tighten the security up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaun</title>
		<link>http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/comment-page-1/#comment-498</link>
		<dc:creator>Shaun</dc:creator>
		<pubDate>Sat, 26 Jan 2008 13:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/#comment-498</guid>
		<description>Rather than set these preferences on the default profile, set them on a custom one that&#039;s only available for your development site:
&lt;code&gt;
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.sites&quot;, &quot;http://YOURDEVHOSTHERE&quot;);
user_pref(&quot;capability.policy.policynames&quot;, &quot;XMLHttpRequestToAnySite&quot;);
&lt;/code&gt;

Here&#039;s the final list I ended up using, which includes a few new ones than the OP:

&lt;code&gt;
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.CDATASection.nodeValue&quot;, &quot;allAccess&quot;);

user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.Element.attributes&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.Element.childNodes&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.Element.firstChild&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.Element.getAttribute&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.Element.getElementsByTagName&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.Element.nodeType&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.Element.nodeName&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.Element.tagName&quot;, &quot;allAccess&quot;);

user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.HTMLCollection.length&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.HTMLCollection.item&quot;, &quot;allAccess&quot;);

user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.ProcessingInstruction.nodeType&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.ProcessingInstruction.nodeName&quot;, &quot;allAccess&quot;);

user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.Text.nodeType&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.Text.nodeName&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.Text.data&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.Text.nodeValue&quot;, &quot;allAccess&quot;);

user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.XMLDocument.documentElement&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.XMLDocument.getElementsByTagName&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.XMLDocument.nodeType&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.XMLDocument.nodeName&quot;, &quot;allAccess&quot;);

user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.XMLHttpRequest.channel&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.XMLHttpRequest.responseText&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.XMLHttpRequest.responseXML&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.XMLHttpRequest.send&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.XMLHttpRequest.setRequestHeader&quot;, &quot;allAccess&quot;);
user_pref(&quot;capability.policy.XMLHttpRequestToAnySite.XMLHttpRequest.open&quot;, &quot;allAccess&quot;);
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Rather than set these preferences on the default profile, set them on a custom one that&#8217;s only available for your development site:<br />
<code><br />
user_pref("capability.policy.XMLHttpRequestToAnySite.sites", "http://YOURDEVHOSTHERE");<br />
user_pref("capability.policy.policynames", "XMLHttpRequestToAnySite");<br />
</code></p>
<p>Here&#8217;s the final list I ended up using, which includes a few new ones than the OP:</p>
<p><code><br />
user_pref("capability.policy.XMLHttpRequestToAnySite.CDATASection.nodeValue", "allAccess");</p>
<p>user_pref("capability.policy.XMLHttpRequestToAnySite.Element.attributes", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.Element.childNodes", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.Element.firstChild", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.Element.getAttribute", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.Element.getElementsByTagName", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.Element.nodeType", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.Element.nodeName", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.Element.tagName", "allAccess");</p>
<p>user_pref("capability.policy.XMLHttpRequestToAnySite.HTMLCollection.length", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.HTMLCollection.item", "allAccess");</p>
<p>user_pref("capability.policy.XMLHttpRequestToAnySite.ProcessingInstruction.nodeType", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.ProcessingInstruction.nodeName", "allAccess");</p>
<p>user_pref("capability.policy.XMLHttpRequestToAnySite.Text.nodeType", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.Text.nodeName", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.Text.data", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.Text.nodeValue", "allAccess");</p>
<p>user_pref("capability.policy.XMLHttpRequestToAnySite.XMLDocument.documentElement", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.XMLDocument.getElementsByTagName", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.XMLDocument.nodeType", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.XMLDocument.nodeName", "allAccess");</p>
<p>user_pref("capability.policy.XMLHttpRequestToAnySite.XMLHttpRequest.channel", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.XMLHttpRequest.responseText", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.XMLHttpRequest.responseXML", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.XMLHttpRequest.send", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.XMLHttpRequest.setRequestHeader", "allAccess");<br />
user_pref("capability.policy.XMLHttpRequestToAnySite.XMLHttpRequest.open", "allAccess");<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zach Leatherman</title>
		<link>http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/comment-page-1/#comment-431</link>
		<dc:creator>Zach Leatherman</dc:creator>
		<pubDate>Tue, 30 Oct 2007 22:56:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/#comment-431</guid>
		<description>If you read the solution carefully you will see that you can add that exact property to your prefs.js like so:

user_pref(&quot;capability.policy.default.XMLDocument.firstChild&quot;, &quot;allAccess&quot;);

Anytime you get a &quot;Permission denied&quot; exception, this solution should work</description>
		<content:encoded><![CDATA[<p>If you read the solution carefully you will see that you can add that exact property to your prefs.js like so:</p>
<p>user_pref(&#8220;capability.policy.default.XMLDocument.firstChild&#8221;, &#8220;allAccess&#8221;);</p>
<p>Anytime you get a &#8220;Permission denied&#8221; exception, this solution should work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alberto</title>
		<link>http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/comment-page-1/#comment-429</link>
		<dc:creator>alberto</dc:creator>
		<pubDate>Tue, 30 Oct 2007 10:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.zachleat.com/web/2007/08/30/cross-domain-xhr-with-firefox/#comment-429</guid>
		<description>this method works as well but when I need to read the response xml i get this exception:

uncaught exception: Permission denied to get property XMLDocument.firstChild

any solution?? 
i don&#039;t want to use ie6/7 again for this purpose...</description>
		<content:encoded><![CDATA[<p>this method works as well but when I need to read the response xml i get this exception:</p>
<p>uncaught exception: Permission denied to get property XMLDocument.firstChild</p>
<p>any solution??<br />
i don&#8217;t want to use ie6/7 again for this purpose&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
