Changeset 7719 for trunk/src/storage

Show
Ignore:
Timestamp:
03/20/07 17:00:34 (22 months ago)
Author:
BradNeuberg
Message:

We now pull all resources which might be required by Dojo Storage providers during the Dojo Offline syncing process. This is to solve the following potential bug: You use Firefox 2 to sync your web app; you then open Safari while offline, hitting your offline cache on the local proxy -- but it doesn't work! This is because Safari requires hidden Flash, while Firefox 2 doesn't. We now correctly pull and cache any resources which might be needed for Dojo Storage providers to function correctly, not just the one running in the browser we are syncing against

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/storage/browser.js

    r7416 r7719  
    484484         
    485485        getResourceList: function(){ /* Array[] */ 
    486                 var results =  
    487                                 [ 
    488                                         djConfig.baseRelativePath + "storage_dialog.swf", 
    489                                         djConfig.baseRelativePath + "Storage_version6.swf", 
    490                                         djConfig.baseRelativePath + "Storage_version8.swf", 
    491                                         djConfig.baseRelativePath + "flash6_gateway.swf" 
    492                                 ]; 
     486                var swfloc6 = dojo.uri.moduleUri("dojo", "../Storage_version6.swf").toString(); 
     487                var swfloc8 = dojo.uri.moduleUri("dojo", "../Storage_version8.swf").toString(); 
     488                 
     489                var results = dojo.flash.info.getResourceList(swfloc6, swfloc8); 
     490                 
     491                results.push(djConfig.baseRelativePath + "storage_dialog.swf"); 
    493492                                 
    494493                return results;