Changeset 894

Show
Ignore:
Timestamp:
2008-03-15 01:13:58 (10 months ago)
Author:
MaierMan
Message:

less noisy version

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/chrome/content/dta/manager.js

    r874 r894  
    25072507                        d.hash = null; // to initialize prettyHash  
    25082508                } 
     2509 
     2510                let postData = ContentHandling.getPostDataFor(d.urlManager.url.toURI()); 
    25092511                if (e.url.postData) { 
    2510                         d.postData = e.url.postData; 
    2511                 } 
    2512                 else { 
    2513                         try { 
    2514                                 d.postData = ContentHandling.getPostDataFor(d.urlManager.url.toURI()); 
    2515                         } 
    2516                         catch (ex) { 
    2517                                 Debug.log("No post data for me: " + d.urlManager.url, ex); 
    2518                                 // no-op 
    2519                         } 
    2520                 } 
     2512                        postData = e.url.postData; 
     2513                } 
     2514                if (postData) { 
     2515                        d.postData = postData; 
     2516                }                
     2517 
    25212518                d.state = start ? QUEUED : PAUSED; 
    25222519                if (d.is(QUEUED)) { 
  • trunk/components/contentHandling.js

    r867 r894  
    114114        } 
    115115        if (!(uri in this._dataDict)) { 
    116                 throw new Exception("No data Found!")
     116                return ''
    117117        } 
    118118        return this._dataDict[uri]; 
  • trunk/components/contenthandling.idl

    r867 r894  
    4040[scriptable, uuid(47C53284-E2D1-49af-9524-4D42D70D1279)] 
    4141interface dtaIContentHandling : nsISupports { 
    42         /* 
    43                 The dtaIContentHandling Service will store the last view post-data strings 
     42        /** 
     43                The dtaIContentHandling Service will store the last few post-data strings 
    4444                so that requests might be replayed easier later on. 
    4545                 
    4646                Only the first 64kb of the post-data will be stored. 
     47                 
     48                @return empty string when not found, otherwise mime-channel bytes 
    4749        */ 
    4850        AUTF8String getPostDataFor(in nsIURI uri);