Changeset 1040

Show
Ignore:
Timestamp:
2008-08-08 05:43:05 (3 months ago)
Author:
MaierMan
Message:

fix: .spec is escaped, better use .usable

Files:

Legend:

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

    r1027 r1040  
    117117function BatchGenerator(link) { 
    118118        this.url = link.url; 
    119         let url = this.url.spec
     119        let url = link.usable
    120120        this._length = 1; 
    121121        this._pats = []; 
     
    275275                                else if (typeof(a.url) == 'object' && 'url' in a.url) { 
    276276                                        // we've got a DTA_URL. 
    277                                         // In this case it is not safe to modify it because of encoding issues. 
     277                                        // In this case it is not safe to modify it because of encoding 
     278                                        // issues. 
    278279                                        address.value = a.url.usable; 
    279                                         // JS does not preserve types between windows (as each window gets an own sandbox) 
     280                                        // JS does not preserve types between windows (as each window gets an 
     281                                        // own sandbox) 
    280282                                        // This hack makes our URL a DTA_URL again ;) 
    281283                                        address._realURL = a.url;