Community
Participate
Working Groups
reload does not work, the Properties do not update. 0128-2050
I just tried this out with tonight's build ( I20120129-2230) and it seems to be working as far as I can see. Can you give me a bit more detail. I've added a one hour time-out on plugin metadata in this build so am trying to more generally make sure we understand what's going on here. One thing to be aware of is that if the plugin.html does not return cache headers we might get the version from the browsers cache in which case we would not see things get updated. We're loading the plugin via IFrame so can only control the url and cannot even control the headers we send during the request for the plugin page.
I'm loading the plugin from Orion. I'll check but the headers usually contain Cache-Control no-cache. The sequence copy-url, uninstall, install works. Chrome 18-dev.
I verified that the no-cache header is on the plugin.js that does not update with reload.
When I clear the Net panel in Web Inspector and hit "reload", there are no entries added.
When I step in to: this._load = function(isInstall) { if (!_channel) { _channel = internalRegistry.connect(url, _responseHandler); window.setTimeout(function() { if (!_loaded) { if (!isInstall) { data = {}; internalRegistry.updatePlugin(_self); } _deferredLoad.reject(new Error("Load timeout for plugin: " + url)); } }, 15000); } return _deferredLoad.promise; }; _channel is defined, and we never execution updatePlugin. If I set _channel = undefined on entry, then the update happens.
Thanks John. I understand now.
Fixed. I've added an "update" command to Plugin that will aggressively try to update regardless if the plugin is already loaded.