Changeset 896

Show
Ignore:
Timestamp:
2008-03-16 01:14:57 (10 months ago)
Author:
MaierMan
Message:

less memory-hungry and better cacheable icon URIs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/chrome/content/common/internalFunctions.js

    r871 r896  
    403403                                return "moz-icon://" + url + "?size=" + size; 
    404404                        } 
    405                         return "moz-icon://foo.html?size=" + size; 
     405                        return "moz-icon://file.html?size=" + size; 
    406406                }; 
    407407        } 
    408408        return function _getIconOther(url, size) { 
    409                         return "moz-icon://" + url + "?size=" + size;  
     409                url = url.replace(/^.*\//, '').replace(/^.*(\..*?)$/, 'file$1'); 
     410                return "moz-icon://" + url + "?size=" + size;  
    410411        }; 
    411412};