mozilla

Compare Revisions

Setting HTTP request headers

Change Revisions

Revision 65484:

Revision 65484 by Sheppy on

Revision 65485:

Revision 65485 by ignisvulpis on

Title:
Setting HTTP request headers
Setting HTTP request headers
Slug:
Setting_HTTP_request_headers
Setting_HTTP_request_headers
Tags:
Extensions, Add-ons, XUL, XULRunner, HTTP
Extensions, Add-ons, XUL, XULRunner, HTTP
Content:

Revision 65484
Revision 65485
n126      You need to register a single <code>http-on-modify-request<n126      You need to register a single <code>http-on-modify-request<
>/code> observer per application (and not one per window). This me>/code> observer per application (and not one per window). This me
>ans that you should put the observer's implementation in an <a hr>ans that you should put the observer's implementation in an <a hr
>ef="/en/How_to_Build_an_XPCOM_Component_in_Javascript" title="en/>ef="/en/How_to_Build_an_XPCOM_Component_in_Javascript" title="en/
>How_to_Build_an_XPCOM_Component_in_Javascript">XPCOM component</a>How_to_Build_an_XPCOM_Component_in_Javascript">XPCOM component</a
>> instead of an <a href="/en/XUL_Overlays" title="en/XUL_Overlays>> instead of an <a href="/en/XUL_Overlays" title="en/XUL_Overlays
>">overlay</a>.>">overlay</a>. If you want to support Gecko2 (Firefox4) you need 
 >to register your javascript component as described here:&nbsp;htt
 >ps://developer.mozilla.org/en/XPCOM/XPCOM_changes_in_Gecko_2.0#Ja
 >vaScript_components.
n211      if (topic == "app-startup") {n211      if (topic == "profile-after-change") {
t213          LOG("----------------------------&gt; app-startup");t213          LOG("----------------------------&gt; profile-after-cha
 >nge");

Back to History