Changeset 894
- Timestamp:
- 2008-03-15 01:13:58 (10 months ago)
- Files:
-
- trunk/chrome/content/dta/manager.js (modified) (1 diff)
- trunk/components/contentHandling.js (modified) (1 diff)
- trunk/components/contenthandling.idl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/chrome/content/dta/manager.js
r874 r894 2507 2507 d.hash = null; // to initialize prettyHash 2508 2508 } 2509 2510 let postData = ContentHandling.getPostDataFor(d.urlManager.url.toURI()); 2509 2511 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 2521 2518 d.state = start ? QUEUED : PAUSED; 2522 2519 if (d.is(QUEUED)) { trunk/components/contentHandling.js
r867 r894 114 114 } 115 115 if (!(uri in this._dataDict)) { 116 throw new Exception("No data Found!");116 return ''; 117 117 } 118 118 return this._dataDict[uri]; trunk/components/contenthandling.idl
r867 r894 40 40 [scriptable, uuid(47C53284-E2D1-49af-9524-4D42D70D1279)] 41 41 interface dtaIContentHandling : nsISupports { 42 /* 43 The dtaIContentHandling Service will store the last view post-data strings42 /** 43 The dtaIContentHandling Service will store the last few post-data strings 44 44 so that requests might be replayed easier later on. 45 45 46 46 Only the first 64kb of the post-data will be stored. 47 48 @return empty string when not found, otherwise mime-channel bytes 47 49 */ 48 50 AUTF8String getPostDataFor(in nsIURI uri);
