Changeset 36

Show
Ignore:
Timestamp:
04/08/06 13:02:29 (2 years ago)
Author:
kbarnes3
Message:

Changed alerts to dumps to the console and added the myDump function to facilitate this.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Makefile

    r34 r36  
    88#                               overhaul_headers.js 
    99#                               overhaul_host.js 
     10#                               myDump.js 
    1011# 
    1112#               install.rdf 
     
    2021        cp overhaul_headers.js ${OUTPUT_DIR}/content/overhaul 
    2122        cp overhaul_host.js ${OUTPUT_DIR}/content/overhaul 
     23        cp myDump.js ${OUTPUT_DIR}/content/overhaul 
    2224         
    2325        cp install.rdf ${OUTPUT_DIR} 
  • trunk/install.rdf

    r35 r36  
    2525                                <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> 
    2626                                <em:minVersion>0.7</em:minVersion> 
    27                                 <em:maxVersion>1.5.1</em:maxVersion> 
     27                                <em:maxVersion>1.5.0.1</em:maxVersion> 
    2828                        </Description> 
    2929                </em:targetApplication> 
  • trunk/overhaul_headers.js

    r33 r36  
    1 alert("Headers was included!"); 
     1myDump("Headers were included!"); 
    22var sendHeadersObserver = {  
    33        observe: function(subject,topic,data){ 
     
    77} 
    88var httpResponseObserver = {  
    9    observe: function(subject,topic,data) { 
    10                alert("blau"); 
    11             subject = subject.QueryInterface(Components.interfaces.nsIHttpChannel); 
    12             alert("start"); 
    13             var value = subject.getResponseHeader("Overhaul-chunks"); 
    14             alert("end"); 
    15             alert("value is "+value==null); 
    16          } 
    17    }; 
     9        observe: function(subject,topic,data) { 
     10                myDump("Observer starting"); 
     11                subject = subject.QueryInterface(Components.interfaces.nsIHttpChannel); 
     12                //var value = subject.getResponseHeader("Overhaul-chunks"); 
     13                var value = "hi"; 
     14                myDump("Observing ending"); 
     15                var message = "value is "; 
     16                myDump(message); 
     17        } 
     18}; 
     19 
    1820var observerService = Components.classes["@mozilla.org/observer-service;1"] 
    1921        .getService(Components.interfaces.nsIObserverService); 
  • trunk/overhaul_host.js

    r31 r36  
    1 alert("Host included!"); 
     1myDump("Host included!"); 
  • trunk/overlays.xul

    r35 r36  
    22<overlay id="overhaul-overlay" 
    33         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 
     4  <script src="myDump.js" /> 
    45  <script src="overhaul_headers.js" /> 
    56  <script src="overhaul_host.js" />